diff --git a/src/visier_api_administration/.openapi-generator/FILES b/src/visier_api_administration/.openapi-generator/FILES index 68f6aea5f8..d85b6e20ee 100644 --- a/src/visier_api_administration/.openapi-generator/FILES +++ b/src/visier_api_administration/.openapi-generator/FILES @@ -4,200 +4,199 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_accessible_tenant_profile_assignment_request_dto.py -test/test_accessible_tenant_profile_assignment_response_dto.py -test/test_accessible_tenant_profile_revoke_request_dto.py -test/test_accessible_tenant_profile_revoke_response_dto.py -test/test_additional_capabilities_dto.py -test/test_admin_capability_config_dto.py -test/test_all_permissions_assigned_for_local_tenant_dto.py -test/test_all_profile_assigned_for_accessible_tenant_dto.py -test/test_all_profile_assigned_for_local_tenant_dto.py -test/test_all_tenants_status_apidto.py -test/test_all_user_groups_assigned_for_local_tenant_dto.py -test/test_all_users_get_api_response_dto.py -test/test_analytic_object_dto.py -test/test_assign_revoke_permission_by_permission_dto.py -test/test_assign_revoke_permission_by_tenant_dto.py -test/test_assign_revoke_permission_by_user_dto.py -test/test_assign_revoke_permission_request_dto.py -test/test_assign_revoke_permissions_request_dto.py -test/test_assign_revoke_permissions_response_dto.py -test/test_batch_tenant_provision_apidto.py -test/test_bulk_data_access_set_response_dto.py -test/test_business_location_dto.py -test/test_capabilities_dto.py -test/test_capability_dto.py -test/test_commit_and_publish_operation_response_dto.py -test/test_commit_dto.py +test/test_admin_delete_user_group_v2_request.py +test/test_admin_excluded_sources_body.py +test/test_admin_key_name.py +test/test_admin_mask_message.py +test/test_admin_permissions_list_dto.py +test/test_admin_publicapi_transfers_all_tenants_status_apidto.py +test/test_admin_publicapi_transfers_batch_tenant_provision_apidto.py +test/test_admin_publicapi_transfers_business_location_dto.py +test/test_admin_publicapi_transfers_custom_property_dto.py +test/test_admin_publicapi_transfers_custom_tenant_property_dto.py +test/test_admin_publicapi_transfers_element_ids_dto.py +test/test_admin_publicapi_transfers_home_analysis_by_user_group_dto.py +test/test_admin_publicapi_transfers_tenant_detail_apidto.py +test/test_admin_publicapi_transfers_tenant_management_api_get_response_dto.py +test/test_admin_publicapi_transfers_tenant_management_api_list_response_dto.py +test/test_admin_publicapi_transfers_tenant_management_api_update_request_dto.py +test/test_admin_publicapi_transfers_tenant_management_api_update_response_dto.py +test/test_admin_publicapi_transfers_tenant_provision_apidto.py +test/test_admin_publicapi_transfers_tenant_status_apidto.py +test/test_admin_publicapi_transfers_user_group_change_definition_dto.py +test/test_admin_publicapi_transfers_user_group_change_dimension_filter_dto.py +test/test_admin_publicapi_transfers_user_group_change_failure_dto.py +test/test_admin_publicapi_transfers_user_group_change_filter_dto.py +test/test_admin_publicapi_transfers_user_group_change_member_selection_dto.py +test/test_admin_publicapi_transfers_user_group_change_response_dto.py +test/test_admin_publicapi_transfers_user_group_change_success_dto.py +test/test_admin_publicapi_transfers_user_group_change_users_dto.py +test/test_admin_publicapi_transfers_user_group_delete_dto.py +test/test_admin_publicapi_transfers_user_group_delete_failure_dto.py +test/test_admin_publicapi_transfers_user_group_delete_response_dto.py +test/test_admin_publicapi_transfers_user_group_delete_success_dto.py +test/test_admin_publicapi_transfers_user_group_filters_dto.py +test/test_admin_publicapi_transfers_user_group_single_delete_response_dto.py +test/test_admin_publicapi_transfers_user_groups_change_dto.py +test/test_admin_publicapi_transfers_user_groups_delete_request_dto.py +test/test_admin_put_project_commits_request.py +test/test_admin_tenant_code_body.py +test/test_admin_transfers_consolidated_analytics_api_excluded_source_list_dto.py +test/test_admin_transfers_consolidated_analytics_api_source_tenant_list_dto.py +test/test_admin_transfers_consolidated_analytics_api_tenant_create_request_dto.py +test/test_admin_transfers_consolidated_analytics_api_tenant_list_response_dto.py +test/test_admin_transfers_consolidated_analytics_api_tenant_with_details.py +test/test_admin_transfers_consolidated_analytics_api_tenant_with_details_list_response_dto.py +test/test_admin_transfers_email_domains_dto.py +test/test_admin_transfers_permission_response_dto.py +test/test_admin_transfers_permissions_to_user_group_for_tenant_dto.py +test/test_admin_transfers_permissions_to_user_group_request_dto.py +test/test_admin_transfers_permissions_to_user_groups_request_dto.py +test/test_admin_transfers_security_assignment_response_dto.py +test/test_admin_transfers_simple_user_dto.py +test/test_admin_transfers_target_project_for_tenant_dto.py +test/test_admin_transfers_target_project_for_tenants_list_dto.py +test/test_admin_transfers_tenant_assignments_dto.py +test/test_admin_transfers_user_group_get_api_response_dto.py +test/test_admin_transfers_user_groups_get_api_response_dto.py +test/test_admin_transfers_user_groups_users_dto.py +test/test_admin_transfers_user_groups_users_for_tenant_dto.py +test/test_admin_transfers_user_security_assignments_dto.py +test/test_admin_transfers_users_to_user_group_request_dto.py +test/test_admin_transfers_users_to_user_groups_request_dto.py +test/test_admin_update_tenant_model.py test/test_consolidated_analytics_api.py -test/test_consolidated_analytics_api_excluded_source_list_dto.py -test/test_consolidated_analytics_api_source_tenant_list_dto.py -test/test_consolidated_analytics_api_tenant_create_request_dto.py -test/test_consolidated_analytics_api_tenant_list_response_dto.py -test/test_consolidated_analytics_api_tenant_with_details.py -test/test_consolidated_analytics_api_tenant_with_details_list_response_dto.py -test/test_content_package_dto.py -test/test_create_data_access_set_request_dto.py -test/test_custom_property_dto.py -test/test_custom_tenant_property_dto.py -test/test_data_access_set_dto.py -test/test_data_access_set_error_dto.py -test/test_data_access_set_failure_dto.py -test/test_data_access_set_success_dto.py -test/test_data_security_profile_dto.py -test/test_delete_permissions_request_dto.py -test/test_delete_user_group_v2_request.py -test/test_dimension_filter_dto.py -test/test_dynamic_dimension_filter_dto.py -test/test_dynamic_property_mapping_dto.py -test/test_element_ids_dto.py +test/test_designer_crypto_generate_key_request_dto.py +test/test_designer_crypto_tenant_encryption_key_details_dto.py +test/test_designer_crypto_tenant_encryption_key_dto.py +test/test_designer_transfers_module_settings_dto.py +test/test_designer_transfers_tenant_module_dto.py +test/test_dp_automation_transfers_metric_validation_summary_dto.py +test/test_dp_automation_transfers_tenant_preview_entries_summary_dto.py +test/test_dp_automation_transfers_tenant_preview_entries_summary_list_dto.py test/test_email_domains_api.py -test/test_email_domains_dto.py test/test_encryption_keys_api.py -test/test_error_dto.py -test/test_excluded_sources_body.py -test/test_export_production_versions_api_operation_parameters_dto.py -test/test_failed_accessible_tenant_profile_assignment_dto.py -test/test_failed_local_tenant_profile_assignment_dto.py -test/test_failed_local_tenant_profile_revoke_dto.py -test/test_generate_key_request_dto.py -test/test_get_capabilities_api_response_dto.py -test/test_get_content_packages_api_response_dto.py -test/test_get_data_access_sets_api_response_dto.py -test/test_get_data_security_objects_api_response_dto.py -test/test_get_permissions_api_response_dto.py -test/test_get_production_versions_api_response_dto.py -test/test_get_projects_api_response_dto.py -test/test_google_protobuf_any.py -test/test_hierarchy_property_dto.py -test/test_home_analysis_by_user_group_dto.py -test/test_inherited_access_config_dto.py -test/test_inherited_reference_member_filter_config_dto.py -test/test_key_name.py -test/test_last_login_dto.py -test/test_local_tenant_profile_assignment_request_dto.py -test/test_local_tenant_profile_assignment_response_dto.py -test/test_local_tenant_profile_revoke_request_dto.py -test/test_local_tenant_profile_revoke_response_dto.py -test/test_mask_message.py -test/test_member_filter_config_dto.py -test/test_member_selection_dto.py -test/test_metric_validation_summary_dto.py -test/test_module_settings_dto.py -test/test_permission_assigned_by_tenant_dto.py -test/test_permission_assigned_for_local_tenant_dto.py -test/test_permission_assigned_user_dto.py -test/test_permission_assigned_users_dto.py -test/test_permission_bulk_operation_response_dto.py -test/test_permission_dto.py -test/test_permission_error_dto.py -test/test_permission_failure_dto.py -test/test_permission_response_dto.py -test/test_permission_success_dto.py test/test_permissions_api.py -test/test_permissions_list_dto.py -test/test_permissions_to_user_group_for_tenant_dto.py -test/test_permissions_to_user_group_request_dto.py -test/test_permissions_to_user_groups_request_dto.py -test/test_production_version_api_operation_request_dto.py -test/test_production_version_api_operation_response_dto.py test/test_production_versions_api.py -test/test_production_versions_api_operation_request_dto.py -test/test_production_versions_api_operation_response_dto.py -test/test_profile_assigned_for_accessible_tenant_dto.py -test/test_profile_assigned_for_local_tenant_dto.py -test/test_profile_get_api_response_dto.py test/test_profiles_api.py -test/test_profiles_get_api_response_dto.py -test/test_project_commits_api_response_dto.py -test/test_project_dto.py -test/test_project_operation_request_dto.py -test/test_project_operation_response_dto.py test/test_projects_api.py -test/test_property_access_config_dto.py -test/test_property_set_config_dto.py -test/test_put_project_commits_request.py -test/test_reduced_error_dto.py -test/test_reduced_tenant_code_error_dto.py -test/test_reduced_user_id_error_dto.py -test/test_related_analytic_object_dto.py -test/test_role_modules_config_dto.py -test/test_securable_dimension_dto.py -test/test_securable_property_dto.py -test/test_security_assignment_response_dto.py -test/test_shareable_data_access_set.py -test/test_simple_user_dto.py +test/test_servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto.py +test/test_servicing_publicapi_transfers_accessible_tenant_profile_assignment_response_dto.py +test/test_servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto.py +test/test_servicing_publicapi_transfers_accessible_tenant_profile_revoke_response_dto.py +test/test_servicing_publicapi_transfers_additional_capabilities_dto.py +test/test_servicing_publicapi_transfers_admin_capability_config_dto.py +test/test_servicing_publicapi_transfers_all_permissions_assigned_for_local_tenant_dto.py +test/test_servicing_publicapi_transfers_all_profile_assigned_for_accessible_tenant_dto.py +test/test_servicing_publicapi_transfers_all_profile_assigned_for_local_tenant_dto.py +test/test_servicing_publicapi_transfers_all_user_groups_assigned_for_local_tenant_dto.py +test/test_servicing_publicapi_transfers_all_users_get_api_response_dto.py +test/test_servicing_publicapi_transfers_analytic_object_dto.py +test/test_servicing_publicapi_transfers_assign_revoke_permission_by_permission_dto.py +test/test_servicing_publicapi_transfers_assign_revoke_permission_by_tenant_dto.py +test/test_servicing_publicapi_transfers_assign_revoke_permission_by_user_dto.py +test/test_servicing_publicapi_transfers_assign_revoke_permission_request_dto.py +test/test_servicing_publicapi_transfers_assign_revoke_permissions_request_dto.py +test/test_servicing_publicapi_transfers_assign_revoke_permissions_response_dto.py +test/test_servicing_publicapi_transfers_bulk_data_access_set_response_dto.py +test/test_servicing_publicapi_transfers_capabilities_dto.py +test/test_servicing_publicapi_transfers_capability_dto.py +test/test_servicing_publicapi_transfers_commit_and_publish_operation_response_dto.py +test/test_servicing_publicapi_transfers_commit_dto.py +test/test_servicing_publicapi_transfers_content_package_dto.py +test/test_servicing_publicapi_transfers_create_data_access_set_request_dto.py +test/test_servicing_publicapi_transfers_data_access_set_dto.py +test/test_servicing_publicapi_transfers_data_access_set_error_dto.py +test/test_servicing_publicapi_transfers_data_access_set_failure_dto.py +test/test_servicing_publicapi_transfers_data_access_set_success_dto.py +test/test_servicing_publicapi_transfers_data_security_profile_dto.py +test/test_servicing_publicapi_transfers_delete_permissions_request_dto.py +test/test_servicing_publicapi_transfers_dimension_filter_dto.py +test/test_servicing_publicapi_transfers_dynamic_dimension_filter_dto.py +test/test_servicing_publicapi_transfers_dynamic_property_mapping_dto.py +test/test_servicing_publicapi_transfers_error_dto.py +test/test_servicing_publicapi_transfers_export_production_versions_api_operation_parameters_dto.py +test/test_servicing_publicapi_transfers_failed_accessible_tenant_profile_assignment_dto.py +test/test_servicing_publicapi_transfers_failed_local_tenant_profile_assignment_dto.py +test/test_servicing_publicapi_transfers_failed_local_tenant_profile_revoke_dto.py +test/test_servicing_publicapi_transfers_get_capabilities_api_response_dto.py +test/test_servicing_publicapi_transfers_get_content_packages_api_response_dto.py +test/test_servicing_publicapi_transfers_get_data_access_sets_api_response_dto.py +test/test_servicing_publicapi_transfers_get_data_security_objects_api_response_dto.py +test/test_servicing_publicapi_transfers_get_permissions_api_response_dto.py +test/test_servicing_publicapi_transfers_get_production_versions_api_response_dto.py +test/test_servicing_publicapi_transfers_get_projects_api_response_dto.py +test/test_servicing_publicapi_transfers_hierarchy_property_dto.py +test/test_servicing_publicapi_transfers_inherited_access_config_dto.py +test/test_servicing_publicapi_transfers_inherited_reference_member_filter_config_dto.py +test/test_servicing_publicapi_transfers_last_login_dto.py +test/test_servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto.py +test/test_servicing_publicapi_transfers_local_tenant_profile_assignment_response_dto.py +test/test_servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto.py +test/test_servicing_publicapi_transfers_local_tenant_profile_revoke_response_dto.py +test/test_servicing_publicapi_transfers_member_filter_config_dto.py +test/test_servicing_publicapi_transfers_member_selection_dto.py +test/test_servicing_publicapi_transfers_permission_assigned_by_tenant_dto.py +test/test_servicing_publicapi_transfers_permission_assigned_for_local_tenant_dto.py +test/test_servicing_publicapi_transfers_permission_assigned_user_dto.py +test/test_servicing_publicapi_transfers_permission_assigned_users_dto.py +test/test_servicing_publicapi_transfers_permission_bulk_operation_response_dto.py +test/test_servicing_publicapi_transfers_permission_dto.py +test/test_servicing_publicapi_transfers_permission_error_dto.py +test/test_servicing_publicapi_transfers_permission_failure_dto.py +test/test_servicing_publicapi_transfers_permission_success_dto.py +test/test_servicing_publicapi_transfers_production_version_api_operation_request_dto.py +test/test_servicing_publicapi_transfers_production_version_api_operation_response_dto.py +test/test_servicing_publicapi_transfers_production_versions_api_operation_request_dto.py +test/test_servicing_publicapi_transfers_production_versions_api_operation_response_dto.py +test/test_servicing_publicapi_transfers_profile_assigned_for_accessible_tenant_dto.py +test/test_servicing_publicapi_transfers_profile_assigned_for_local_tenant_dto.py +test/test_servicing_publicapi_transfers_profile_get_api_response_dto.py +test/test_servicing_publicapi_transfers_profiles_get_api_response_dto.py +test/test_servicing_publicapi_transfers_project_commits_api_response_dto.py +test/test_servicing_publicapi_transfers_project_dto.py +test/test_servicing_publicapi_transfers_project_operation_request_dto.py +test/test_servicing_publicapi_transfers_project_operation_response_dto.py +test/test_servicing_publicapi_transfers_property_access_config_dto.py +test/test_servicing_publicapi_transfers_property_set_config_dto.py +test/test_servicing_publicapi_transfers_reduced_error_dto.py +test/test_servicing_publicapi_transfers_reduced_tenant_code_error_dto.py +test/test_servicing_publicapi_transfers_reduced_user_id_error_dto.py +test/test_servicing_publicapi_transfers_related_analytic_object_dto.py +test/test_servicing_publicapi_transfers_role_modules_config_dto.py +test/test_servicing_publicapi_transfers_securable_dimension_dto.py +test/test_servicing_publicapi_transfers_securable_property_dto.py +test/test_servicing_publicapi_transfers_shareable_data_access_set.py +test/test_servicing_publicapi_transfers_sources_api_operation_request_dto.py +test/test_servicing_publicapi_transfers_static_dimension_filter_dto.py +test/test_servicing_publicapi_transfers_successful_accessible_tenant_profile_assignment_dto.py +test/test_servicing_publicapi_transfers_successful_local_tenant_profile_assignment_dto.py +test/test_servicing_publicapi_transfers_target_tenant_code_dto.py +test/test_servicing_publicapi_transfers_tenant_code_error_dto.py +test/test_servicing_publicapi_transfers_user_creation_api_request_dto.py +test/test_servicing_publicapi_transfers_user_get_api_response_dto.py +test/test_servicing_publicapi_transfers_user_group_assigned_for_local_tenant_dto.py +test/test_servicing_publicapi_transfers_user_id_error_dto.py +test/test_servicing_publicapi_transfers_user_property_dto.py +test/test_servicing_publicapi_transfers_user_update_api_request_dto.py +test/test_servicing_publicapi_transfers_users_api_error_message_dto.py +test/test_servicing_publicapi_transfers_users_api_failure_dto.py +test/test_servicing_publicapi_transfers_users_api_response_dto.py +test/test_servicing_publicapi_transfers_users_api_success_dto.py +test/test_servicing_publicapi_transfers_users_creation_api_request_dto.py +test/test_servicing_publicapi_transfers_users_delete_api_request_dto.py +test/test_servicing_publicapi_transfers_users_update_api_request_dto.py +test/test_servicing_publicapi_transfers_users_update_api_user_dto.py test/test_source_import_result_summary_dto.py test/test_sources_api.py -test/test_sources_api_operation_request_dto.py test/test_sources_api_put_response_dto.py -test/test_static_dimension_filter_dto.py test/test_status.py -test/test_successful_accessible_tenant_profile_assignment_dto.py -test/test_successful_local_tenant_profile_assignment_dto.py test/test_system_status_api.py -test/test_system_status_dto.py -test/test_target_project_for_tenant_dto.py -test/test_target_project_for_tenants_list_dto.py -test/test_target_tenant_code_dto.py -test/test_tenant_assignments_dto.py -test/test_tenant_code_body.py -test/test_tenant_code_error_dto.py -test/test_tenant_detail_apidto.py -test/test_tenant_encryption_key_details_dto.py -test/test_tenant_encryption_key_dto.py -test/test_tenant_management_api_get_response_dto.py -test/test_tenant_management_api_list_response_dto.py -test/test_tenant_management_api_update_request_dto.py -test/test_tenant_management_api_update_response_dto.py -test/test_tenant_module_dto.py -test/test_tenant_preview_entries_summary_dto.py -test/test_tenant_preview_entries_summary_list_dto.py -test/test_tenant_provision_apidto.py -test/test_tenant_status_apidto.py +test/test_systemstatus_publicapi_transfers_system_status_dto.py test/test_tenants_v1_api.py test/test_tenants_v2_api.py -test/test_update_tenant_model.py -test/test_user_creation_api_request_dto.py test/test_user_creation_api_response_dto.py -test/test_user_get_api_response_dto.py -test/test_user_group_assigned_for_local_tenant_dto.py -test/test_user_group_change_definition_dto.py -test/test_user_group_change_dimension_filter_dto.py -test/test_user_group_change_failure_dto.py -test/test_user_group_change_filter_dto.py -test/test_user_group_change_member_selection_dto.py -test/test_user_group_change_response_dto.py -test/test_user_group_change_success_dto.py -test/test_user_group_change_users_dto.py -test/test_user_group_delete_dto.py -test/test_user_group_delete_failure_dto.py -test/test_user_group_delete_response_dto.py -test/test_user_group_delete_success_dto.py -test/test_user_group_filters_dto.py -test/test_user_group_get_api_response_dto.py -test/test_user_group_single_delete_response_dto.py -test/test_user_groups_change_dto.py -test/test_user_groups_delete_request_dto.py -test/test_user_groups_get_api_response_dto.py -test/test_user_groups_users_dto.py -test/test_user_groups_users_for_tenant_dto.py test/test_user_groups_v2_api.py -test/test_user_id_error_dto.py -test/test_user_property_dto.py -test/test_user_security_assignments_dto.py -test/test_user_update_api_request_dto.py -test/test_users_api_error_message_dto.py -test/test_users_api_failure_dto.py -test/test_users_api_response_dto.py -test/test_users_api_success_dto.py -test/test_users_creation_api_request_dto.py -test/test_users_delete_api_request_dto.py -test/test_users_to_user_group_request_dto.py -test/test_users_to_user_groups_request_dto.py -test/test_users_update_api_request_dto.py -test/test_users_update_api_user_dto.py test/test_users_v1_api.py test/test_users_v2_api.py tox.ini @@ -218,186 +217,185 @@ visier_api_administration/api/user_groups_v2_api.py visier_api_administration/api/users_v1_api.py visier_api_administration/api/users_v2_api.py visier_api_administration/models/__init__.py -visier_api_administration/models/accessible_tenant_profile_assignment_request_dto.py -visier_api_administration/models/accessible_tenant_profile_assignment_response_dto.py -visier_api_administration/models/accessible_tenant_profile_revoke_request_dto.py -visier_api_administration/models/accessible_tenant_profile_revoke_response_dto.py -visier_api_administration/models/additional_capabilities_dto.py -visier_api_administration/models/admin_capability_config_dto.py -visier_api_administration/models/all_permissions_assigned_for_local_tenant_dto.py -visier_api_administration/models/all_profile_assigned_for_accessible_tenant_dto.py -visier_api_administration/models/all_profile_assigned_for_local_tenant_dto.py -visier_api_administration/models/all_tenants_status_apidto.py -visier_api_administration/models/all_user_groups_assigned_for_local_tenant_dto.py -visier_api_administration/models/all_users_get_api_response_dto.py -visier_api_administration/models/analytic_object_dto.py -visier_api_administration/models/assign_revoke_permission_by_permission_dto.py -visier_api_administration/models/assign_revoke_permission_by_tenant_dto.py -visier_api_administration/models/assign_revoke_permission_by_user_dto.py -visier_api_administration/models/assign_revoke_permission_request_dto.py -visier_api_administration/models/assign_revoke_permissions_request_dto.py -visier_api_administration/models/assign_revoke_permissions_response_dto.py -visier_api_administration/models/batch_tenant_provision_apidto.py -visier_api_administration/models/bulk_data_access_set_response_dto.py -visier_api_administration/models/business_location_dto.py -visier_api_administration/models/capabilities_dto.py -visier_api_administration/models/capability_dto.py -visier_api_administration/models/commit_and_publish_operation_response_dto.py -visier_api_administration/models/commit_dto.py -visier_api_administration/models/consolidated_analytics_api_excluded_source_list_dto.py -visier_api_administration/models/consolidated_analytics_api_source_tenant_list_dto.py -visier_api_administration/models/consolidated_analytics_api_tenant_create_request_dto.py -visier_api_administration/models/consolidated_analytics_api_tenant_list_response_dto.py -visier_api_administration/models/consolidated_analytics_api_tenant_with_details.py -visier_api_administration/models/consolidated_analytics_api_tenant_with_details_list_response_dto.py -visier_api_administration/models/content_package_dto.py -visier_api_administration/models/create_data_access_set_request_dto.py -visier_api_administration/models/custom_property_dto.py -visier_api_administration/models/custom_tenant_property_dto.py -visier_api_administration/models/data_access_set_dto.py -visier_api_administration/models/data_access_set_error_dto.py -visier_api_administration/models/data_access_set_failure_dto.py -visier_api_administration/models/data_access_set_success_dto.py -visier_api_administration/models/data_security_profile_dto.py -visier_api_administration/models/delete_permissions_request_dto.py -visier_api_administration/models/delete_user_group_v2_request.py -visier_api_administration/models/dimension_filter_dto.py -visier_api_administration/models/dynamic_dimension_filter_dto.py -visier_api_administration/models/dynamic_property_mapping_dto.py -visier_api_administration/models/element_ids_dto.py -visier_api_administration/models/email_domains_dto.py -visier_api_administration/models/error_dto.py -visier_api_administration/models/excluded_sources_body.py -visier_api_administration/models/export_production_versions_api_operation_parameters_dto.py -visier_api_administration/models/failed_accessible_tenant_profile_assignment_dto.py -visier_api_administration/models/failed_local_tenant_profile_assignment_dto.py -visier_api_administration/models/failed_local_tenant_profile_revoke_dto.py -visier_api_administration/models/generate_key_request_dto.py -visier_api_administration/models/get_capabilities_api_response_dto.py -visier_api_administration/models/get_content_packages_api_response_dto.py -visier_api_administration/models/get_data_access_sets_api_response_dto.py -visier_api_administration/models/get_data_security_objects_api_response_dto.py -visier_api_administration/models/get_permissions_api_response_dto.py -visier_api_administration/models/get_production_versions_api_response_dto.py -visier_api_administration/models/get_projects_api_response_dto.py -visier_api_administration/models/google_protobuf_any.py -visier_api_administration/models/hierarchy_property_dto.py -visier_api_administration/models/home_analysis_by_user_group_dto.py -visier_api_administration/models/inherited_access_config_dto.py -visier_api_administration/models/inherited_reference_member_filter_config_dto.py -visier_api_administration/models/key_name.py -visier_api_administration/models/last_login_dto.py -visier_api_administration/models/local_tenant_profile_assignment_request_dto.py -visier_api_administration/models/local_tenant_profile_assignment_response_dto.py -visier_api_administration/models/local_tenant_profile_revoke_request_dto.py -visier_api_administration/models/local_tenant_profile_revoke_response_dto.py -visier_api_administration/models/mask_message.py -visier_api_administration/models/member_filter_config_dto.py -visier_api_administration/models/member_selection_dto.py -visier_api_administration/models/metric_validation_summary_dto.py -visier_api_administration/models/module_settings_dto.py -visier_api_administration/models/permission_assigned_by_tenant_dto.py -visier_api_administration/models/permission_assigned_for_local_tenant_dto.py -visier_api_administration/models/permission_assigned_user_dto.py -visier_api_administration/models/permission_assigned_users_dto.py -visier_api_administration/models/permission_bulk_operation_response_dto.py -visier_api_administration/models/permission_dto.py -visier_api_administration/models/permission_error_dto.py -visier_api_administration/models/permission_failure_dto.py -visier_api_administration/models/permission_response_dto.py -visier_api_administration/models/permission_success_dto.py -visier_api_administration/models/permissions_list_dto.py -visier_api_administration/models/permissions_to_user_group_for_tenant_dto.py -visier_api_administration/models/permissions_to_user_group_request_dto.py -visier_api_administration/models/permissions_to_user_groups_request_dto.py -visier_api_administration/models/production_version_api_operation_request_dto.py -visier_api_administration/models/production_version_api_operation_response_dto.py -visier_api_administration/models/production_versions_api_operation_request_dto.py -visier_api_administration/models/production_versions_api_operation_response_dto.py -visier_api_administration/models/profile_assigned_for_accessible_tenant_dto.py -visier_api_administration/models/profile_assigned_for_local_tenant_dto.py -visier_api_administration/models/profile_get_api_response_dto.py -visier_api_administration/models/profiles_get_api_response_dto.py -visier_api_administration/models/project_commits_api_response_dto.py -visier_api_administration/models/project_dto.py -visier_api_administration/models/project_operation_request_dto.py -visier_api_administration/models/project_operation_response_dto.py -visier_api_administration/models/property_access_config_dto.py -visier_api_administration/models/property_set_config_dto.py -visier_api_administration/models/put_project_commits_request.py -visier_api_administration/models/reduced_error_dto.py -visier_api_administration/models/reduced_tenant_code_error_dto.py -visier_api_administration/models/reduced_user_id_error_dto.py -visier_api_administration/models/related_analytic_object_dto.py -visier_api_administration/models/role_modules_config_dto.py -visier_api_administration/models/securable_dimension_dto.py -visier_api_administration/models/securable_property_dto.py -visier_api_administration/models/security_assignment_response_dto.py -visier_api_administration/models/shareable_data_access_set.py -visier_api_administration/models/simple_user_dto.py +visier_api_administration/models/admin_delete_user_group_v2_request.py +visier_api_administration/models/admin_excluded_sources_body.py +visier_api_administration/models/admin_key_name.py +visier_api_administration/models/admin_mask_message.py +visier_api_administration/models/admin_permissions_list_dto.py +visier_api_administration/models/admin_publicapi_transfers_all_tenants_status_apidto.py +visier_api_administration/models/admin_publicapi_transfers_batch_tenant_provision_apidto.py +visier_api_administration/models/admin_publicapi_transfers_business_location_dto.py +visier_api_administration/models/admin_publicapi_transfers_custom_property_dto.py +visier_api_administration/models/admin_publicapi_transfers_custom_tenant_property_dto.py +visier_api_administration/models/admin_publicapi_transfers_element_ids_dto.py +visier_api_administration/models/admin_publicapi_transfers_home_analysis_by_user_group_dto.py +visier_api_administration/models/admin_publicapi_transfers_tenant_detail_apidto.py +visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_get_response_dto.py +visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_list_response_dto.py +visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_update_request_dto.py +visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_update_response_dto.py +visier_api_administration/models/admin_publicapi_transfers_tenant_provision_apidto.py +visier_api_administration/models/admin_publicapi_transfers_tenant_status_apidto.py +visier_api_administration/models/admin_publicapi_transfers_user_group_change_definition_dto.py +visier_api_administration/models/admin_publicapi_transfers_user_group_change_dimension_filter_dto.py +visier_api_administration/models/admin_publicapi_transfers_user_group_change_failure_dto.py +visier_api_administration/models/admin_publicapi_transfers_user_group_change_filter_dto.py +visier_api_administration/models/admin_publicapi_transfers_user_group_change_member_selection_dto.py +visier_api_administration/models/admin_publicapi_transfers_user_group_change_response_dto.py +visier_api_administration/models/admin_publicapi_transfers_user_group_change_success_dto.py +visier_api_administration/models/admin_publicapi_transfers_user_group_change_users_dto.py +visier_api_administration/models/admin_publicapi_transfers_user_group_delete_dto.py +visier_api_administration/models/admin_publicapi_transfers_user_group_delete_failure_dto.py +visier_api_administration/models/admin_publicapi_transfers_user_group_delete_response_dto.py +visier_api_administration/models/admin_publicapi_transfers_user_group_delete_success_dto.py +visier_api_administration/models/admin_publicapi_transfers_user_group_filters_dto.py +visier_api_administration/models/admin_publicapi_transfers_user_group_single_delete_response_dto.py +visier_api_administration/models/admin_publicapi_transfers_user_groups_change_dto.py +visier_api_administration/models/admin_publicapi_transfers_user_groups_delete_request_dto.py +visier_api_administration/models/admin_put_project_commits_request.py +visier_api_administration/models/admin_tenant_code_body.py +visier_api_administration/models/admin_transfers_consolidated_analytics_api_excluded_source_list_dto.py +visier_api_administration/models/admin_transfers_consolidated_analytics_api_source_tenant_list_dto.py +visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_create_request_dto.py +visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_list_response_dto.py +visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_with_details.py +visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_with_details_list_response_dto.py +visier_api_administration/models/admin_transfers_email_domains_dto.py +visier_api_administration/models/admin_transfers_permission_response_dto.py +visier_api_administration/models/admin_transfers_permissions_to_user_group_for_tenant_dto.py +visier_api_administration/models/admin_transfers_permissions_to_user_group_request_dto.py +visier_api_administration/models/admin_transfers_permissions_to_user_groups_request_dto.py +visier_api_administration/models/admin_transfers_security_assignment_response_dto.py +visier_api_administration/models/admin_transfers_simple_user_dto.py +visier_api_administration/models/admin_transfers_target_project_for_tenant_dto.py +visier_api_administration/models/admin_transfers_target_project_for_tenants_list_dto.py +visier_api_administration/models/admin_transfers_tenant_assignments_dto.py +visier_api_administration/models/admin_transfers_user_group_get_api_response_dto.py +visier_api_administration/models/admin_transfers_user_groups_get_api_response_dto.py +visier_api_administration/models/admin_transfers_user_groups_users_dto.py +visier_api_administration/models/admin_transfers_user_groups_users_for_tenant_dto.py +visier_api_administration/models/admin_transfers_user_security_assignments_dto.py +visier_api_administration/models/admin_transfers_users_to_user_group_request_dto.py +visier_api_administration/models/admin_transfers_users_to_user_groups_request_dto.py +visier_api_administration/models/admin_update_tenant_model.py +visier_api_administration/models/designer_crypto_generate_key_request_dto.py +visier_api_administration/models/designer_crypto_tenant_encryption_key_details_dto.py +visier_api_administration/models/designer_crypto_tenant_encryption_key_dto.py +visier_api_administration/models/designer_transfers_module_settings_dto.py +visier_api_administration/models/designer_transfers_tenant_module_dto.py +visier_api_administration/models/dp_automation_transfers_metric_validation_summary_dto.py +visier_api_administration/models/dp_automation_transfers_tenant_preview_entries_summary_dto.py +visier_api_administration/models/dp_automation_transfers_tenant_preview_entries_summary_list_dto.py +visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_assignment_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_revoke_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_additional_capabilities_dto.py +visier_api_administration/models/servicing_publicapi_transfers_admin_capability_config_dto.py +visier_api_administration/models/servicing_publicapi_transfers_all_permissions_assigned_for_local_tenant_dto.py +visier_api_administration/models/servicing_publicapi_transfers_all_profile_assigned_for_accessible_tenant_dto.py +visier_api_administration/models/servicing_publicapi_transfers_all_profile_assigned_for_local_tenant_dto.py +visier_api_administration/models/servicing_publicapi_transfers_all_user_groups_assigned_for_local_tenant_dto.py +visier_api_administration/models/servicing_publicapi_transfers_all_users_get_api_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_analytic_object_dto.py +visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_by_permission_dto.py +visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_by_tenant_dto.py +visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_by_user_dto.py +visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permissions_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permissions_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_bulk_data_access_set_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_capabilities_dto.py +visier_api_administration/models/servicing_publicapi_transfers_capability_dto.py +visier_api_administration/models/servicing_publicapi_transfers_commit_and_publish_operation_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_commit_dto.py +visier_api_administration/models/servicing_publicapi_transfers_content_package_dto.py +visier_api_administration/models/servicing_publicapi_transfers_create_data_access_set_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_data_access_set_dto.py +visier_api_administration/models/servicing_publicapi_transfers_data_access_set_error_dto.py +visier_api_administration/models/servicing_publicapi_transfers_data_access_set_failure_dto.py +visier_api_administration/models/servicing_publicapi_transfers_data_access_set_success_dto.py +visier_api_administration/models/servicing_publicapi_transfers_data_security_profile_dto.py +visier_api_administration/models/servicing_publicapi_transfers_delete_permissions_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_dimension_filter_dto.py +visier_api_administration/models/servicing_publicapi_transfers_dynamic_dimension_filter_dto.py +visier_api_administration/models/servicing_publicapi_transfers_dynamic_property_mapping_dto.py +visier_api_administration/models/servicing_publicapi_transfers_error_dto.py +visier_api_administration/models/servicing_publicapi_transfers_export_production_versions_api_operation_parameters_dto.py +visier_api_administration/models/servicing_publicapi_transfers_failed_accessible_tenant_profile_assignment_dto.py +visier_api_administration/models/servicing_publicapi_transfers_failed_local_tenant_profile_assignment_dto.py +visier_api_administration/models/servicing_publicapi_transfers_failed_local_tenant_profile_revoke_dto.py +visier_api_administration/models/servicing_publicapi_transfers_get_capabilities_api_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_get_content_packages_api_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_get_data_access_sets_api_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_get_data_security_objects_api_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_get_permissions_api_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_get_production_versions_api_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_get_projects_api_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_hierarchy_property_dto.py +visier_api_administration/models/servicing_publicapi_transfers_inherited_access_config_dto.py +visier_api_administration/models/servicing_publicapi_transfers_inherited_reference_member_filter_config_dto.py +visier_api_administration/models/servicing_publicapi_transfers_last_login_dto.py +visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_assignment_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_revoke_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_member_filter_config_dto.py +visier_api_administration/models/servicing_publicapi_transfers_member_selection_dto.py +visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_by_tenant_dto.py +visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_for_local_tenant_dto.py +visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_user_dto.py +visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_users_dto.py +visier_api_administration/models/servicing_publicapi_transfers_permission_bulk_operation_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_permission_dto.py +visier_api_administration/models/servicing_publicapi_transfers_permission_error_dto.py +visier_api_administration/models/servicing_publicapi_transfers_permission_failure_dto.py +visier_api_administration/models/servicing_publicapi_transfers_permission_success_dto.py +visier_api_administration/models/servicing_publicapi_transfers_production_version_api_operation_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_production_version_api_operation_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_production_versions_api_operation_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_production_versions_api_operation_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_profile_assigned_for_accessible_tenant_dto.py +visier_api_administration/models/servicing_publicapi_transfers_profile_assigned_for_local_tenant_dto.py +visier_api_administration/models/servicing_publicapi_transfers_profile_get_api_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_profiles_get_api_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_project_commits_api_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_project_dto.py +visier_api_administration/models/servicing_publicapi_transfers_project_operation_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_project_operation_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_property_access_config_dto.py +visier_api_administration/models/servicing_publicapi_transfers_property_set_config_dto.py +visier_api_administration/models/servicing_publicapi_transfers_reduced_error_dto.py +visier_api_administration/models/servicing_publicapi_transfers_reduced_tenant_code_error_dto.py +visier_api_administration/models/servicing_publicapi_transfers_reduced_user_id_error_dto.py +visier_api_administration/models/servicing_publicapi_transfers_related_analytic_object_dto.py +visier_api_administration/models/servicing_publicapi_transfers_role_modules_config_dto.py +visier_api_administration/models/servicing_publicapi_transfers_securable_dimension_dto.py +visier_api_administration/models/servicing_publicapi_transfers_securable_property_dto.py +visier_api_administration/models/servicing_publicapi_transfers_shareable_data_access_set.py +visier_api_administration/models/servicing_publicapi_transfers_sources_api_operation_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_static_dimension_filter_dto.py +visier_api_administration/models/servicing_publicapi_transfers_successful_accessible_tenant_profile_assignment_dto.py +visier_api_administration/models/servicing_publicapi_transfers_successful_local_tenant_profile_assignment_dto.py +visier_api_administration/models/servicing_publicapi_transfers_target_tenant_code_dto.py +visier_api_administration/models/servicing_publicapi_transfers_tenant_code_error_dto.py +visier_api_administration/models/servicing_publicapi_transfers_user_creation_api_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_user_get_api_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_user_group_assigned_for_local_tenant_dto.py +visier_api_administration/models/servicing_publicapi_transfers_user_id_error_dto.py +visier_api_administration/models/servicing_publicapi_transfers_user_property_dto.py +visier_api_administration/models/servicing_publicapi_transfers_user_update_api_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_users_api_error_message_dto.py +visier_api_administration/models/servicing_publicapi_transfers_users_api_failure_dto.py +visier_api_administration/models/servicing_publicapi_transfers_users_api_response_dto.py +visier_api_administration/models/servicing_publicapi_transfers_users_api_success_dto.py +visier_api_administration/models/servicing_publicapi_transfers_users_creation_api_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_users_delete_api_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_users_update_api_request_dto.py +visier_api_administration/models/servicing_publicapi_transfers_users_update_api_user_dto.py visier_api_administration/models/source_import_result_summary_dto.py -visier_api_administration/models/sources_api_operation_request_dto.py visier_api_administration/models/sources_api_put_response_dto.py -visier_api_administration/models/static_dimension_filter_dto.py visier_api_administration/models/status.py -visier_api_administration/models/successful_accessible_tenant_profile_assignment_dto.py -visier_api_administration/models/successful_local_tenant_profile_assignment_dto.py -visier_api_administration/models/system_status_dto.py -visier_api_administration/models/target_project_for_tenant_dto.py -visier_api_administration/models/target_project_for_tenants_list_dto.py -visier_api_administration/models/target_tenant_code_dto.py -visier_api_administration/models/tenant_assignments_dto.py -visier_api_administration/models/tenant_code_body.py -visier_api_administration/models/tenant_code_error_dto.py -visier_api_administration/models/tenant_detail_apidto.py -visier_api_administration/models/tenant_encryption_key_details_dto.py -visier_api_administration/models/tenant_encryption_key_dto.py -visier_api_administration/models/tenant_management_api_get_response_dto.py -visier_api_administration/models/tenant_management_api_list_response_dto.py -visier_api_administration/models/tenant_management_api_update_request_dto.py -visier_api_administration/models/tenant_management_api_update_response_dto.py -visier_api_administration/models/tenant_module_dto.py -visier_api_administration/models/tenant_preview_entries_summary_dto.py -visier_api_administration/models/tenant_preview_entries_summary_list_dto.py -visier_api_administration/models/tenant_provision_apidto.py -visier_api_administration/models/tenant_status_apidto.py -visier_api_administration/models/update_tenant_model.py -visier_api_administration/models/user_creation_api_request_dto.py +visier_api_administration/models/systemstatus_publicapi_transfers_system_status_dto.py visier_api_administration/models/user_creation_api_response_dto.py -visier_api_administration/models/user_get_api_response_dto.py -visier_api_administration/models/user_group_assigned_for_local_tenant_dto.py -visier_api_administration/models/user_group_change_definition_dto.py -visier_api_administration/models/user_group_change_dimension_filter_dto.py -visier_api_administration/models/user_group_change_failure_dto.py -visier_api_administration/models/user_group_change_filter_dto.py -visier_api_administration/models/user_group_change_member_selection_dto.py -visier_api_administration/models/user_group_change_response_dto.py -visier_api_administration/models/user_group_change_success_dto.py -visier_api_administration/models/user_group_change_users_dto.py -visier_api_administration/models/user_group_delete_dto.py -visier_api_administration/models/user_group_delete_failure_dto.py -visier_api_administration/models/user_group_delete_response_dto.py -visier_api_administration/models/user_group_delete_success_dto.py -visier_api_administration/models/user_group_filters_dto.py -visier_api_administration/models/user_group_get_api_response_dto.py -visier_api_administration/models/user_group_single_delete_response_dto.py -visier_api_administration/models/user_groups_change_dto.py -visier_api_administration/models/user_groups_delete_request_dto.py -visier_api_administration/models/user_groups_get_api_response_dto.py -visier_api_administration/models/user_groups_users_dto.py -visier_api_administration/models/user_groups_users_for_tenant_dto.py -visier_api_administration/models/user_id_error_dto.py -visier_api_administration/models/user_property_dto.py -visier_api_administration/models/user_security_assignments_dto.py -visier_api_administration/models/user_update_api_request_dto.py -visier_api_administration/models/users_api_error_message_dto.py -visier_api_administration/models/users_api_failure_dto.py -visier_api_administration/models/users_api_response_dto.py -visier_api_administration/models/users_api_success_dto.py -visier_api_administration/models/users_creation_api_request_dto.py -visier_api_administration/models/users_delete_api_request_dto.py -visier_api_administration/models/users_to_user_group_request_dto.py -visier_api_administration/models/users_to_user_groups_request_dto.py -visier_api_administration/models/users_update_api_request_dto.py -visier_api_administration/models/users_update_api_user_dto.py visier_api_administration/py.typed diff --git a/src/visier_api_administration/pyproject.toml b/src/visier_api_administration/pyproject.toml index 781f62457e..a57578d6ee 100644 --- a/src/visier_api_administration/pyproject.toml +++ b/src/visier_api_administration/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "visier_api_administration" -version = "0.99201.1772" +version = "0.99201.1793" description = "Visier Administration APIs" authors = ["Visier "] license = "Apache License, Version 2.0" @@ -12,7 +12,7 @@ include = ["visier_api_administration/py.typed"] [tool.poetry.dependencies] python = "^3.8" -visier-api-core = "~= 0.99201.1772" +visier-api-core = "~= 0.99201.1793" [tool.poetry.dev-dependencies] pytest = ">=7.2.1" diff --git a/src/visier_api_administration/requirements.txt b/src/visier_api_administration/requirements.txt index abc44fc65a..ebf9a91559 100644 --- a/src/visier_api_administration/requirements.txt +++ b/src/visier_api_administration/requirements.txt @@ -1 +1 @@ -visier-api-core ~= 0.99201.1772 \ No newline at end of file +visier-api-core ~= 0.99201.1793 \ No newline at end of file diff --git a/src/visier_api_administration/setup.py b/src/visier_api_administration/setup.py index 3555e40a31..8d115ae953 100644 --- a/src/visier_api_administration/setup.py +++ b/src/visier_api_administration/setup.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,10 +23,10 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "visier-api-administration" -VERSION = "0.99201.1772" +VERSION = "0.99201.1793" PYTHON_REQUIRES = ">=3.8" REQUIRES = [ - "visier-api-core ~= 0.99201.1772", + "visier-api-core ~= 0.99201.1793", ] setup( diff --git a/src/visier_api_administration/test/test_accessible_tenant_profile_assignment_request_dto.py b/src/visier_api_administration/test/test_accessible_tenant_profile_assignment_request_dto.py deleted file mode 100644 index dc2e2f147e..0000000000 --- a/src/visier_api_administration/test/test_accessible_tenant_profile_assignment_request_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.accessible_tenant_profile_assignment_request_dto import AccessibleTenantProfileAssignmentRequestDTO - -class TestAccessibleTenantProfileAssignmentRequestDTO(unittest.TestCase): - """AccessibleTenantProfileAssignmentRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AccessibleTenantProfileAssignmentRequestDTO: - """Test AccessibleTenantProfileAssignmentRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AccessibleTenantProfileAssignmentRequestDTO( - target_tenant_codes = [ - visier_api_administration.models.target_tenant_code_dto.TargetTenantCodeDTO( - for_all_children = True, - tenant_code = '', ) - ], - target_user_ids = [ - '' - ], - validity_end_time = '', - validity_start_time = '' - ) - else: - return AccessibleTenantProfileAssignmentRequestDTO( - ) - - def testAccessibleTenantProfileAssignmentRequestDTO(self): - """Test AccessibleTenantProfileAssignmentRequestDTO""" - def validate_instance(instance): - AccessibleTenantProfileAssignmentRequestDTO.model_validate(inst_req_only) - instance_deserialized = AccessibleTenantProfileAssignmentRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_accessible_tenant_profile_assignment_response_dto.py b/src/visier_api_administration/test/test_accessible_tenant_profile_assignment_response_dto.py deleted file mode 100644 index f14c57412e..0000000000 --- a/src/visier_api_administration/test/test_accessible_tenant_profile_assignment_response_dto.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.accessible_tenant_profile_assignment_response_dto import AccessibleTenantProfileAssignmentResponseDTO - -class TestAccessibleTenantProfileAssignmentResponseDTO(unittest.TestCase): - """AccessibleTenantProfileAssignmentResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AccessibleTenantProfileAssignmentResponseDTO: - """Test AccessibleTenantProfileAssignmentResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AccessibleTenantProfileAssignmentResponseDTO( - bad_tenant_codes = [ - visier_api_administration.models.tenant_code_error_dto.TenantCodeErrorDTO( - error = None, - for_all_children = True, - tenant_code = '', ) - ], - bad_user_ids = [ - visier_api_administration.models.user_id_error_dto.UserIdErrorDTO( - error = None, - user_id = '', ) - ], - errors = True, - failed_assignments = [ - visier_api_administration.models.failed_accessible_tenant_profile_assignment_dto.FailedAccessibleTenantProfileAssignmentDTO( - error = None, - for_all_children = True, - tenant_code = '', - user_id = '', ) - ], - successful_assignments = [ - visier_api_administration.models.successful_accessible_tenant_profile_assignment_dto.SuccessfulAccessibleTenantProfileAssignmentDTO( - for_all_children = True, - tenant_code = '', - user_id = '', ) - ] - ) - else: - return AccessibleTenantProfileAssignmentResponseDTO( - ) - - def testAccessibleTenantProfileAssignmentResponseDTO(self): - """Test AccessibleTenantProfileAssignmentResponseDTO""" - def validate_instance(instance): - AccessibleTenantProfileAssignmentResponseDTO.model_validate(inst_req_only) - instance_deserialized = AccessibleTenantProfileAssignmentResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_accessible_tenant_profile_revoke_request_dto.py b/src/visier_api_administration/test/test_accessible_tenant_profile_revoke_request_dto.py deleted file mode 100644 index 49effc1bd9..0000000000 --- a/src/visier_api_administration/test/test_accessible_tenant_profile_revoke_request_dto.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.accessible_tenant_profile_revoke_request_dto import AccessibleTenantProfileRevokeRequestDTO - -class TestAccessibleTenantProfileRevokeRequestDTO(unittest.TestCase): - """AccessibleTenantProfileRevokeRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AccessibleTenantProfileRevokeRequestDTO: - """Test AccessibleTenantProfileRevokeRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AccessibleTenantProfileRevokeRequestDTO( - target_tenant_codes = [ - visier_api_administration.models.target_tenant_code_dto.TargetTenantCodeDTO( - for_all_children = True, - tenant_code = '', ) - ], - target_user_ids = [ - '' - ] - ) - else: - return AccessibleTenantProfileRevokeRequestDTO( - ) - - def testAccessibleTenantProfileRevokeRequestDTO(self): - """Test AccessibleTenantProfileRevokeRequestDTO""" - def validate_instance(instance): - AccessibleTenantProfileRevokeRequestDTO.model_validate(inst_req_only) - instance_deserialized = AccessibleTenantProfileRevokeRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_accessible_tenant_profile_revoke_response_dto.py b/src/visier_api_administration/test/test_accessible_tenant_profile_revoke_response_dto.py deleted file mode 100644 index ac469da8d8..0000000000 --- a/src/visier_api_administration/test/test_accessible_tenant_profile_revoke_response_dto.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.accessible_tenant_profile_revoke_response_dto import AccessibleTenantProfileRevokeResponseDTO - -class TestAccessibleTenantProfileRevokeResponseDTO(unittest.TestCase): - """AccessibleTenantProfileRevokeResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AccessibleTenantProfileRevokeResponseDTO: - """Test AccessibleTenantProfileRevokeResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AccessibleTenantProfileRevokeResponseDTO( - bad_tenant_codes = [ - visier_api_administration.models.reduced_tenant_code_error_dto.ReducedTenantCodeErrorDTO( - error = None, - for_all_children = True, - tenant_code = '', ) - ], - bad_user_ids = [ - visier_api_administration.models.reduced_user_id_error_dto.ReducedUserIdErrorDTO( - error = None, - user_id = '', ) - ], - succeeded = [ - visier_api_administration.models.successful_local_tenant_profile_assignment_dto.SuccessfulLocalTenantProfileAssignmentDTO( - user_id = '', ) - ], - unaffected_users = [ - visier_api_administration.models.successful_local_tenant_profile_assignment_dto.SuccessfulLocalTenantProfileAssignmentDTO( - user_id = '', ) - ] - ) - else: - return AccessibleTenantProfileRevokeResponseDTO( - ) - - def testAccessibleTenantProfileRevokeResponseDTO(self): - """Test AccessibleTenantProfileRevokeResponseDTO""" - def validate_instance(instance): - AccessibleTenantProfileRevokeResponseDTO.model_validate(inst_req_only) - instance_deserialized = AccessibleTenantProfileRevokeResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_additional_capabilities_dto.py b/src/visier_api_administration/test/test_additional_capabilities_dto.py deleted file mode 100644 index 5da6ed399e..0000000000 --- a/src/visier_api_administration/test/test_additional_capabilities_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.additional_capabilities_dto import AdditionalCapabilitiesDTO - -class TestAdditionalCapabilitiesDTO(unittest.TestCase): - """AdditionalCapabilitiesDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AdditionalCapabilitiesDTO: - """Test AdditionalCapabilitiesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AdditionalCapabilitiesDTO( - additional_capabilities = [ - '' - ] - ) - else: - return AdditionalCapabilitiesDTO( - ) - - def testAdditionalCapabilitiesDTO(self): - """Test AdditionalCapabilitiesDTO""" - def validate_instance(instance): - AdditionalCapabilitiesDTO.model_validate(inst_req_only) - instance_deserialized = AdditionalCapabilitiesDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_admin_capability_config_dto.py b/src/visier_api_administration/test/test_admin_capability_config_dto.py deleted file mode 100644 index 034ccab496..0000000000 --- a/src/visier_api_administration/test/test_admin_capability_config_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.admin_capability_config_dto import AdminCapabilityConfigDTO - -class TestAdminCapabilityConfigDTO(unittest.TestCase): - """AdminCapabilityConfigDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AdminCapabilityConfigDTO: - """Test AdminCapabilityConfigDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AdminCapabilityConfigDTO( - all_capabilities_access = True, - capabilities = [ - '' - ] - ) - else: - return AdminCapabilityConfigDTO( - ) - - def testAdminCapabilityConfigDTO(self): - """Test AdminCapabilityConfigDTO""" - def validate_instance(instance): - AdminCapabilityConfigDTO.model_validate(inst_req_only) - instance_deserialized = AdminCapabilityConfigDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_admin_delete_user_group_v2_request.py b/src/visier_api_administration/test/test_admin_delete_user_group_v2_request.py new file mode 100644 index 0000000000..7689b4aaed --- /dev/null +++ b/src/visier_api_administration/test/test_admin_delete_user_group_v2_request.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_delete_user_group_v2_request import AdminDeleteUserGroupV2Request + +class TestAdminDeleteUserGroupV2Request(unittest.TestCase): + """AdminDeleteUserGroupV2Request unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminDeleteUserGroupV2Request: + """Test AdminDeleteUserGroupV2Request + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminDeleteUserGroupV2Request( + user_group_id = '' + ) + else: + return AdminDeleteUserGroupV2Request( + ) + + def testAdminDeleteUserGroupV2Request(self): + """Test AdminDeleteUserGroupV2Request""" + def validate_instance(instance): + AdminDeleteUserGroupV2Request.model_validate(inst_req_only) + instance_deserialized = AdminDeleteUserGroupV2Request.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_excluded_sources_body.py b/src/visier_api_administration/test/test_admin_excluded_sources_body.py new file mode 100644 index 0000000000..6fe8122b3f --- /dev/null +++ b/src/visier_api_administration/test/test_admin_excluded_sources_body.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_excluded_sources_body import AdminExcludedSourcesBody + +class TestAdminExcludedSourcesBody(unittest.TestCase): + """AdminExcludedSourcesBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminExcludedSourcesBody: + """Test AdminExcludedSourcesBody + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminExcludedSourcesBody( + excluded_sources = [ + '' + ] + ) + else: + return AdminExcludedSourcesBody( + ) + + def testAdminExcludedSourcesBody(self): + """Test AdminExcludedSourcesBody""" + def validate_instance(instance): + AdminExcludedSourcesBody.model_validate(inst_req_only) + instance_deserialized = AdminExcludedSourcesBody.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_key_name.py b/src/visier_api_administration/test/test_admin_key_name.py new file mode 100644 index 0000000000..dcddd979f5 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_key_name.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_key_name import AdminKeyName + +class TestAdminKeyName(unittest.TestCase): + """AdminKeyName unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminKeyName: + """Test AdminKeyName + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminKeyName( + key_name = '' + ) + else: + return AdminKeyName( + ) + + def testAdminKeyName(self): + """Test AdminKeyName""" + def validate_instance(instance): + AdminKeyName.model_validate(inst_req_only) + instance_deserialized = AdminKeyName.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_mask_message.py b/src/visier_api_administration/test/test_admin_mask_message.py new file mode 100644 index 0000000000..2fc745a439 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_mask_message.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_mask_message import AdminMaskMessage + +class TestAdminMaskMessage(unittest.TestCase): + """AdminMaskMessage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminMaskMessage: + """Test AdminMaskMessage + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminMaskMessage( + mask = '' + ) + else: + return AdminMaskMessage( + ) + + def testAdminMaskMessage(self): + """Test AdminMaskMessage""" + def validate_instance(instance): + AdminMaskMessage.model_validate(inst_req_only) + instance_deserialized = AdminMaskMessage.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_permissions_list_dto.py b/src/visier_api_administration/test/test_admin_permissions_list_dto.py new file mode 100644 index 0000000000..e7f4786b24 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_permissions_list_dto.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_permissions_list_dto import AdminPermissionsListDTO + +class TestAdminPermissionsListDTO(unittest.TestCase): + """AdminPermissionsListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPermissionsListDTO: + """Test AdminPermissionsListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPermissionsListDTO( + permissions = [ + visier_api_administration.models.servicing/publicapi/transfers/permission_dto.servicing.publicapi.transfers.PermissionDTO( + admin_capability_config = None, + data_security_profiles = [ + visier_api_administration.models.servicing/publicapi/transfers/data_security_profile_dto.servicing.publicapi.transfers.DataSecurityProfileDTO( + all_data_point_access = True, + analytic_object_id = '', + analytic_object_status = 'Unset', + inherited_access_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/inherited_access_config_dto.servicing.publicapi.transfers.InheritedAccessConfigDTO( + analytic_object_id = '', + member_filter_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/member_filter_config_dto.servicing.publicapi.transfers.MemberFilterConfigDTO( + dimension_filters = [ + visier_api_administration.models.servicing/publicapi/transfers/dimension_filter_dto.servicing.publicapi.transfers.DimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/dynamic_dimension_filter_dto.servicing.publicapi.transfers.DynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/publicapi/transfers/dynamic_property_mapping_dto.servicing.publicapi.transfers.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ], ), + static_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/static_dimension_filter_dto.servicing.publicapi.transfers.StaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/publicapi/transfers/member_selection_dto.servicing.publicapi.transfers.MemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ], ) + ], ), ) + ], ) + ], + remove_access = True, ) + ], + inherited_reference_member_filter_config = None, + member_filter_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/member_filter_config_dto.servicing.publicapi.transfers.MemberFilterConfigDTO() + ], + property_set_config = None, ) + ], + description = '', + display_name = '', + permission_id = '', + role_modules_config = None, ) + ] + ) + else: + return AdminPermissionsListDTO( + ) + + def testAdminPermissionsListDTO(self): + """Test AdminPermissionsListDTO""" + def validate_instance(instance): + AdminPermissionsListDTO.model_validate(inst_req_only) + instance_deserialized = AdminPermissionsListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_all_tenants_status_apidto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_all_tenants_status_apidto.py new file mode 100644 index 0000000000..8db32181fe --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_all_tenants_status_apidto.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_all_tenants_status_apidto import AdminPublicapiTransfersAllTenantsStatusAPIDTO + +class TestAdminPublicapiTransfersAllTenantsStatusAPIDTO(unittest.TestCase): + """AdminPublicapiTransfersAllTenantsStatusAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersAllTenantsStatusAPIDTO: + """Test AdminPublicapiTransfersAllTenantsStatusAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersAllTenantsStatusAPIDTO( + limit = 56, + start = 56, + tenants = [ + visier_api_administration.models.admin/publicapi/transfers/tenant_detail_apidto.admin.publicapi.transfers.TenantDetailAPIDTO( + allowed_o_auth_idp_url_domains = [ + '' + ], + can_administer_other_tenants = True, + current_data_version = '', + custom_properties = [ + visier_api_administration.models.admin/publicapi/transfers/custom_tenant_property_dto.admin.publicapi.transfers.CustomTenantPropertyDTO( + key = '', + value = '', ) + ], + data_version_date = '', + embeddable_domains = [ + '' + ], + industry_code = 56, + modules = [ + visier_api_administration.models.designer/transfers/tenant_module_dto.designer.transfers.TenantModuleDTO( + display_name = '', + module_settings = None, + symbol_name = '', ) + ], + provision_date = '', + sso_instance_issuers = [ + '' + ], + status = '', + tenant_code = '', + tenant_display_name = '', + vanity_url_name = '', ) + ] + ) + else: + return AdminPublicapiTransfersAllTenantsStatusAPIDTO( + ) + + def testAdminPublicapiTransfersAllTenantsStatusAPIDTO(self): + """Test AdminPublicapiTransfersAllTenantsStatusAPIDTO""" + def validate_instance(instance): + AdminPublicapiTransfersAllTenantsStatusAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersAllTenantsStatusAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_batch_tenant_provision_apidto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_batch_tenant_provision_apidto.py new file mode 100644 index 0000000000..54b2d255f1 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_batch_tenant_provision_apidto.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_batch_tenant_provision_apidto import AdminPublicapiTransfersBatchTenantProvisionAPIDTO + +class TestAdminPublicapiTransfersBatchTenantProvisionAPIDTO(unittest.TestCase): + """AdminPublicapiTransfersBatchTenantProvisionAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersBatchTenantProvisionAPIDTO: + """Test AdminPublicapiTransfersBatchTenantProvisionAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersBatchTenantProvisionAPIDTO( + tenants = [ + visier_api_administration.models.admin/publicapi/transfers/tenant_provision_apidto.admin.publicapi.transfers.TenantProvisionAPIDTO( + allowed_o_auth_idp_url_domains = [ + '' + ], + custom_properties = [ + visier_api_administration.models.admin/publicapi/transfers/custom_tenant_property_dto.admin.publicapi.transfers.CustomTenantPropertyDTO( + key = '', + value = '', ) + ], + embeddable_domains = [ + '' + ], + industry_code = 56, + purchased_modules = [ + '' + ], + sso_instance_issuers = [ + '' + ], + tenant_code = '', + tenant_display_name = '', ) + ] + ) + else: + return AdminPublicapiTransfersBatchTenantProvisionAPIDTO( + ) + + def testAdminPublicapiTransfersBatchTenantProvisionAPIDTO(self): + """Test AdminPublicapiTransfersBatchTenantProvisionAPIDTO""" + def validate_instance(instance): + AdminPublicapiTransfersBatchTenantProvisionAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersBatchTenantProvisionAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_business_location_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_business_location_dto.py new file mode 100644 index 0000000000..e18d2be704 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_business_location_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_business_location_dto import AdminPublicapiTransfersBusinessLocationDTO + +class TestAdminPublicapiTransfersBusinessLocationDTO(unittest.TestCase): + """AdminPublicapiTransfersBusinessLocationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersBusinessLocationDTO: + """Test AdminPublicapiTransfersBusinessLocationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersBusinessLocationDTO( + country_code = '', + postal_code = '' + ) + else: + return AdminPublicapiTransfersBusinessLocationDTO( + ) + + def testAdminPublicapiTransfersBusinessLocationDTO(self): + """Test AdminPublicapiTransfersBusinessLocationDTO""" + def validate_instance(instance): + AdminPublicapiTransfersBusinessLocationDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersBusinessLocationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_custom_property_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_custom_property_dto.py new file mode 100644 index 0000000000..a958676004 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_custom_property_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_custom_property_dto import AdminPublicapiTransfersCustomPropertyDTO + +class TestAdminPublicapiTransfersCustomPropertyDTO(unittest.TestCase): + """AdminPublicapiTransfersCustomPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersCustomPropertyDTO: + """Test AdminPublicapiTransfersCustomPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersCustomPropertyDTO( + key = '', + value = '' + ) + else: + return AdminPublicapiTransfersCustomPropertyDTO( + ) + + def testAdminPublicapiTransfersCustomPropertyDTO(self): + """Test AdminPublicapiTransfersCustomPropertyDTO""" + def validate_instance(instance): + AdminPublicapiTransfersCustomPropertyDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersCustomPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_custom_tenant_property_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_custom_tenant_property_dto.py new file mode 100644 index 0000000000..32625c3426 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_custom_tenant_property_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_custom_tenant_property_dto import AdminPublicapiTransfersCustomTenantPropertyDTO + +class TestAdminPublicapiTransfersCustomTenantPropertyDTO(unittest.TestCase): + """AdminPublicapiTransfersCustomTenantPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersCustomTenantPropertyDTO: + """Test AdminPublicapiTransfersCustomTenantPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersCustomTenantPropertyDTO( + key = '', + value = '' + ) + else: + return AdminPublicapiTransfersCustomTenantPropertyDTO( + ) + + def testAdminPublicapiTransfersCustomTenantPropertyDTO(self): + """Test AdminPublicapiTransfersCustomTenantPropertyDTO""" + def validate_instance(instance): + AdminPublicapiTransfersCustomTenantPropertyDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersCustomTenantPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_element_ids_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_element_ids_dto.py new file mode 100644 index 0000000000..337e5bc5ad --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_element_ids_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_element_ids_dto import AdminPublicapiTransfersElementIDsDTO + +class TestAdminPublicapiTransfersElementIDsDTO(unittest.TestCase): + """AdminPublicapiTransfersElementIDsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersElementIDsDTO: + """Test AdminPublicapiTransfersElementIDsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersElementIDsDTO( + ids = [ + '' + ] + ) + else: + return AdminPublicapiTransfersElementIDsDTO( + ) + + def testAdminPublicapiTransfersElementIDsDTO(self): + """Test AdminPublicapiTransfersElementIDsDTO""" + def validate_instance(instance): + AdminPublicapiTransfersElementIDsDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersElementIDsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_home_analysis_by_user_group_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_home_analysis_by_user_group_dto.py new file mode 100644 index 0000000000..1ff1f4b17b --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_home_analysis_by_user_group_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_home_analysis_by_user_group_dto import AdminPublicapiTransfersHomeAnalysisByUserGroupDTO + +class TestAdminPublicapiTransfersHomeAnalysisByUserGroupDTO(unittest.TestCase): + """AdminPublicapiTransfersHomeAnalysisByUserGroupDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersHomeAnalysisByUserGroupDTO: + """Test AdminPublicapiTransfersHomeAnalysisByUserGroupDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersHomeAnalysisByUserGroupDTO( + home_analysis_id = '', + user_group_id = '' + ) + else: + return AdminPublicapiTransfersHomeAnalysisByUserGroupDTO( + ) + + def testAdminPublicapiTransfersHomeAnalysisByUserGroupDTO(self): + """Test AdminPublicapiTransfersHomeAnalysisByUserGroupDTO""" + def validate_instance(instance): + AdminPublicapiTransfersHomeAnalysisByUserGroupDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersHomeAnalysisByUserGroupDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_detail_apidto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_detail_apidto.py new file mode 100644 index 0000000000..c01155c915 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_detail_apidto.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_tenant_detail_apidto import AdminPublicapiTransfersTenantDetailAPIDTO + +class TestAdminPublicapiTransfersTenantDetailAPIDTO(unittest.TestCase): + """AdminPublicapiTransfersTenantDetailAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersTenantDetailAPIDTO: + """Test AdminPublicapiTransfersTenantDetailAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersTenantDetailAPIDTO( + allowed_o_auth_idp_url_domains = [ + '' + ], + can_administer_other_tenants = True, + current_data_version = '', + custom_properties = [ + visier_api_administration.models.admin/publicapi/transfers/custom_tenant_property_dto.admin.publicapi.transfers.CustomTenantPropertyDTO( + key = '', + value = '', ) + ], + data_version_date = '', + embeddable_domains = [ + '' + ], + industry_code = 56, + modules = [ + visier_api_administration.models.designer/transfers/tenant_module_dto.designer.transfers.TenantModuleDTO( + display_name = '', + module_settings = None, + symbol_name = '', ) + ], + provision_date = '', + sso_instance_issuers = [ + '' + ], + status = '', + tenant_code = '', + tenant_display_name = '', + vanity_url_name = '' + ) + else: + return AdminPublicapiTransfersTenantDetailAPIDTO( + ) + + def testAdminPublicapiTransfersTenantDetailAPIDTO(self): + """Test AdminPublicapiTransfersTenantDetailAPIDTO""" + def validate_instance(instance): + AdminPublicapiTransfersTenantDetailAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersTenantDetailAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_management_api_get_response_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_management_api_get_response_dto.py new file mode 100644 index 0000000000..427da6e2b7 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_management_api_get_response_dto.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_get_response_dto import AdminPublicapiTransfersTenantManagementAPIGetResponseDTO + +class TestAdminPublicapiTransfersTenantManagementAPIGetResponseDTO(unittest.TestCase): + """AdminPublicapiTransfersTenantManagementAPIGetResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersTenantManagementAPIGetResponseDTO: + """Test AdminPublicapiTransfersTenantManagementAPIGetResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersTenantManagementAPIGetResponseDTO( + allowed_o_auth_idp_url_domains = [ + '' + ], + can_administer_other_tenants = True, + click_through_link = '', + click_through_link_enabled = '', + current_data_version = '', + custom_properties = [ + visier_api_administration.models.admin/publicapi/transfers/custom_property_dto.admin.publicapi.transfers.CustomPropertyDTO( + key = '', + value = '', ) + ], + data_version_date = '', + default_currency = '', + embeddable_domains = [ + '' + ], + home_analysis_by_user_group = [ + visier_api_administration.models.admin/publicapi/transfers/home_analysis_by_user_group_dto.admin.publicapi.transfers.HomeAnalysisByUserGroupDTO( + home_analysis_id = '', + user_group_id = '', ) + ], + home_analysis_id = '', + industry_code = 56, + primary_business_location = visier_api_administration.models.admin/publicapi/transfers/business_location_dto.admin.publicapi.transfers.BusinessLocationDTO( + country_code = '', + postal_code = '', ), + provision_date = '', + purchased_modules = [ + '' + ], + sso_instance_issuers = [ + '' + ], + status = '', + tenant_code = '', + tenant_display_name = '', + vanity_url_name = '' + ) + else: + return AdminPublicapiTransfersTenantManagementAPIGetResponseDTO( + ) + + def testAdminPublicapiTransfersTenantManagementAPIGetResponseDTO(self): + """Test AdminPublicapiTransfersTenantManagementAPIGetResponseDTO""" + def validate_instance(instance): + AdminPublicapiTransfersTenantManagementAPIGetResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersTenantManagementAPIGetResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_management_api_list_response_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_management_api_list_response_dto.py new file mode 100644 index 0000000000..0bdacf1fdf --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_management_api_list_response_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_list_response_dto import AdminPublicapiTransfersTenantManagementAPIListResponseDTO + +class TestAdminPublicapiTransfersTenantManagementAPIListResponseDTO(unittest.TestCase): + """AdminPublicapiTransfersTenantManagementAPIListResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersTenantManagementAPIListResponseDTO: + """Test AdminPublicapiTransfersTenantManagementAPIListResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersTenantManagementAPIListResponseDTO( + limit = 56, + start = 56, + tenants = [ + visier_api_administration.models.admin/publicapi/transfers/tenant_management_api_get_response_dto.admin.publicapi.transfers.TenantManagementAPIGetResponseDTO( + allowed_o_auth_idp_url_domains = [ + '' + ], + can_administer_other_tenants = True, + click_through_link = '', + click_through_link_enabled = '', + current_data_version = '', + custom_properties = [ + visier_api_administration.models.admin/publicapi/transfers/custom_property_dto.admin.publicapi.transfers.CustomPropertyDTO( + key = '', + value = '', ) + ], + data_version_date = '', + default_currency = '', + embeddable_domains = [ + '' + ], + home_analysis_by_user_group = [ + visier_api_administration.models.admin/publicapi/transfers/home_analysis_by_user_group_dto.admin.publicapi.transfers.HomeAnalysisByUserGroupDTO( + home_analysis_id = '', + user_group_id = '', ) + ], + home_analysis_id = '', + industry_code = 56, + primary_business_location = None, + provision_date = '', + purchased_modules = [ + '' + ], + sso_instance_issuers = [ + '' + ], + status = '', + tenant_code = '', + tenant_display_name = '', + vanity_url_name = '', ) + ] + ) + else: + return AdminPublicapiTransfersTenantManagementAPIListResponseDTO( + ) + + def testAdminPublicapiTransfersTenantManagementAPIListResponseDTO(self): + """Test AdminPublicapiTransfersTenantManagementAPIListResponseDTO""" + def validate_instance(instance): + AdminPublicapiTransfersTenantManagementAPIListResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersTenantManagementAPIListResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_management_api_update_request_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_management_api_update_request_dto.py new file mode 100644 index 0000000000..e1df2dc9cf --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_management_api_update_request_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_update_request_dto import AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO + +class TestAdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO(unittest.TestCase): + """AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO: + """Test AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO( + allowed_o_auth_idp_url_domains = [ + '' + ], + click_through_link = '', + custom_properties = [ + visier_api_administration.models.admin/publicapi/transfers/custom_property_dto.admin.publicapi.transfers.CustomPropertyDTO( + key = '', + value = '', ) + ], + default_currency = '', + embeddable_domains = [ + '' + ], + enabled = True, + home_analysis_by_user_group = [ + visier_api_administration.models.admin/publicapi/transfers/home_analysis_by_user_group_dto.admin.publicapi.transfers.HomeAnalysisByUserGroupDTO( + home_analysis_id = '', + user_group_id = '', ) + ], + home_analysis_id = '', + industry_code = 56, + primary_business_location = visier_api_administration.models.admin/publicapi/transfers/business_location_dto.admin.publicapi.transfers.BusinessLocationDTO( + country_code = '', + postal_code = '', ), + purchased_modules = [ + '' + ], + sso_instance_issuers = [ + '' + ], + tenant_code = '', + tenant_display_name = '', + tenant_short_name = '', + update_action = 'MERGE', + vanity_url_name = '' + ) + else: + return AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO( + ) + + def testAdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO(self): + """Test AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO""" + def validate_instance(instance): + AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_management_api_update_response_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_management_api_update_response_dto.py new file mode 100644 index 0000000000..7465e2e564 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_management_api_update_response_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_update_response_dto import AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO + +class TestAdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO(unittest.TestCase): + """AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO: + """Test AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO( + allowed_o_auth_idp_url_domains = [ + '' + ], + click_through_link = '', + custom_properties = [ + visier_api_administration.models.admin/publicapi/transfers/custom_property_dto.admin.publicapi.transfers.CustomPropertyDTO( + key = '', + value = '', ) + ], + default_currency = '', + embeddable_domains = [ + '' + ], + home_analysis_by_user_group = [ + visier_api_administration.models.admin/publicapi/transfers/home_analysis_by_user_group_dto.admin.publicapi.transfers.HomeAnalysisByUserGroupDTO( + home_analysis_id = '', + user_group_id = '', ) + ], + home_analysis_id = '', + industry_code = 56, + primary_business_location = visier_api_administration.models.admin/publicapi/transfers/business_location_dto.admin.publicapi.transfers.BusinessLocationDTO( + country_code = '', + postal_code = '', ), + purchased_modules = [ + '' + ], + sso_instance_issuers = [ + '' + ], + status = '', + tenant_code = '', + tenant_display_name = '', + vanity_url_name = '' + ) + else: + return AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO( + ) + + def testAdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO(self): + """Test AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO""" + def validate_instance(instance): + AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_provision_apidto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_provision_apidto.py new file mode 100644 index 0000000000..e0d109b8ae --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_provision_apidto.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_tenant_provision_apidto import AdminPublicapiTransfersTenantProvisionAPIDTO + +class TestAdminPublicapiTransfersTenantProvisionAPIDTO(unittest.TestCase): + """AdminPublicapiTransfersTenantProvisionAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersTenantProvisionAPIDTO: + """Test AdminPublicapiTransfersTenantProvisionAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersTenantProvisionAPIDTO( + allowed_o_auth_idp_url_domains = [ + '' + ], + custom_properties = [ + visier_api_administration.models.admin/publicapi/transfers/custom_tenant_property_dto.admin.publicapi.transfers.CustomTenantPropertyDTO( + key = '', + value = '', ) + ], + embeddable_domains = [ + '' + ], + industry_code = 56, + purchased_modules = [ + '' + ], + sso_instance_issuers = [ + '' + ], + tenant_code = '', + tenant_display_name = '' + ) + else: + return AdminPublicapiTransfersTenantProvisionAPIDTO( + ) + + def testAdminPublicapiTransfersTenantProvisionAPIDTO(self): + """Test AdminPublicapiTransfersTenantProvisionAPIDTO""" + def validate_instance(instance): + AdminPublicapiTransfersTenantProvisionAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersTenantProvisionAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_status_apidto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_status_apidto.py new file mode 100644 index 0000000000..a363eaaba6 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_tenant_status_apidto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_tenant_status_apidto import AdminPublicapiTransfersTenantStatusAPIDTO + +class TestAdminPublicapiTransfersTenantStatusAPIDTO(unittest.TestCase): + """AdminPublicapiTransfersTenantStatusAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersTenantStatusAPIDTO: + """Test AdminPublicapiTransfersTenantStatusAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersTenantStatusAPIDTO( + can_administer_other_tenants = True, + status = '', + tenant_code = '', + tenant_display_name = '' + ) + else: + return AdminPublicapiTransfersTenantStatusAPIDTO( + ) + + def testAdminPublicapiTransfersTenantStatusAPIDTO(self): + """Test AdminPublicapiTransfersTenantStatusAPIDTO""" + def validate_instance(instance): + AdminPublicapiTransfersTenantStatusAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersTenantStatusAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_definition_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_definition_dto.py new file mode 100644 index 0000000000..8650f7f220 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_definition_dto.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_definition_dto import AdminPublicapiTransfersUserGroupChangeDefinitionDTO + +class TestAdminPublicapiTransfersUserGroupChangeDefinitionDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupChangeDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupChangeDefinitionDTO: + """Test AdminPublicapiTransfersUserGroupChangeDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupChangeDefinitionDTO( + description = '', + display_name = '', + permission_ids = visier_api_administration.models.admin/publicapi/transfers/element_ids_dto.admin.publicapi.transfers.ElementIDsDTO( + ids = [ + '' + ], ), + project_id = '', + tenant_code = '', + user_group_id = '', + users = visier_api_administration.models.admin/publicapi/transfers/user_group_change_users_dto.admin.publicapi.transfers.UserGroupChangeUsersDTO( + dynamic_filter_definition = None, + include_all_users = True, + manually_excluded_ids = None, + manually_included_ids = None, ) + ) + else: + return AdminPublicapiTransfersUserGroupChangeDefinitionDTO( + ) + + def testAdminPublicapiTransfersUserGroupChangeDefinitionDTO(self): + """Test AdminPublicapiTransfersUserGroupChangeDefinitionDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupChangeDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupChangeDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_dimension_filter_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_dimension_filter_dto.py new file mode 100644 index 0000000000..608ffd2530 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_dimension_filter_dto.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_dimension_filter_dto import AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO + +class TestAdminPublicapiTransfersUserGroupChangeDimensionFilterDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO: + """Test AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO( + dimension_id = '', + member_selections = [ + visier_api_administration.models.admin/publicapi/transfers/user_group_change_member_selection_dto.admin.publicapi.transfers.UserGroupChangeMemberSelectionDTO( + is_excluded = True, + name_path = [ + '' + ], ) + ], + subject_reference_path = visier_api_administration.models.admin/publicapi/transfers/element_ids_dto.admin.publicapi.transfers.ElementIDsDTO( + ids = [ + '' + ], ) + ) + else: + return AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO( + ) + + def testAdminPublicapiTransfersUserGroupChangeDimensionFilterDTO(self): + """Test AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_failure_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_failure_dto.py new file mode 100644 index 0000000000..f8a41b7edb --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_failure_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_failure_dto import AdminPublicapiTransfersUserGroupChangeFailureDTO + +class TestAdminPublicapiTransfersUserGroupChangeFailureDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupChangeFailureDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupChangeFailureDTO: + """Test AdminPublicapiTransfersUserGroupChangeFailureDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupChangeFailureDTO( + display_name = '', + message = '', + project_id = '', + rci = '', + tenant_code = '' + ) + else: + return AdminPublicapiTransfersUserGroupChangeFailureDTO( + ) + + def testAdminPublicapiTransfersUserGroupChangeFailureDTO(self): + """Test AdminPublicapiTransfersUserGroupChangeFailureDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupChangeFailureDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupChangeFailureDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_filter_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_filter_dto.py new file mode 100644 index 0000000000..e45a30d054 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_filter_dto.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_filter_dto import AdminPublicapiTransfersUserGroupChangeFilterDTO + +class TestAdminPublicapiTransfersUserGroupChangeFilterDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupChangeFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupChangeFilterDTO: + """Test AdminPublicapiTransfersUserGroupChangeFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupChangeFilterDTO( + analytic_object_id = '', + dimension_filters = [ + visier_api_administration.models.admin/publicapi/transfers/user_group_change_dimension_filter_dto.admin.publicapi.transfers.UserGroupChangeDimensionFilterDTO( + dimension_id = '', + member_selections = [ + visier_api_administration.models.admin/publicapi/transfers/user_group_change_member_selection_dto.admin.publicapi.transfers.UserGroupChangeMemberSelectionDTO( + is_excluded = True, + name_path = [ + '' + ], ) + ], + subject_reference_path = None, ) + ], + filter_id = '' + ) + else: + return AdminPublicapiTransfersUserGroupChangeFilterDTO( + ) + + def testAdminPublicapiTransfersUserGroupChangeFilterDTO(self): + """Test AdminPublicapiTransfersUserGroupChangeFilterDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupChangeFilterDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupChangeFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_member_selection_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_member_selection_dto.py new file mode 100644 index 0000000000..61126049a1 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_member_selection_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_member_selection_dto import AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO + +class TestAdminPublicapiTransfersUserGroupChangeMemberSelectionDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO: + """Test AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO( + is_excluded = True, + name_path = [ + '' + ] + ) + else: + return AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO( + ) + + def testAdminPublicapiTransfersUserGroupChangeMemberSelectionDTO(self): + """Test AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_response_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_response_dto.py new file mode 100644 index 0000000000..66ed42dfb6 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_response_dto.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_response_dto import AdminPublicapiTransfersUserGroupChangeResponseDTO + +class TestAdminPublicapiTransfersUserGroupChangeResponseDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupChangeResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupChangeResponseDTO: + """Test AdminPublicapiTransfersUserGroupChangeResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupChangeResponseDTO( + failures = [ + visier_api_administration.models.admin/publicapi/transfers/user_group_change_failure_dto.admin.publicapi.transfers.UserGroupChangeFailureDTO( + display_name = '', + message = '', + project_id = '', + rci = '', + tenant_code = '', ) + ], + successes = [ + visier_api_administration.models.admin/publicapi/transfers/user_group_change_success_dto.admin.publicapi.transfers.UserGroupChangeSuccessDTO( + display_name = '', + project_id = '', + tenant_code = '', + user_group_id = '', ) + ] + ) + else: + return AdminPublicapiTransfersUserGroupChangeResponseDTO( + ) + + def testAdminPublicapiTransfersUserGroupChangeResponseDTO(self): + """Test AdminPublicapiTransfersUserGroupChangeResponseDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupChangeResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupChangeResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_success_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_success_dto.py new file mode 100644 index 0000000000..7ee65fe90b --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_success_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_success_dto import AdminPublicapiTransfersUserGroupChangeSuccessDTO + +class TestAdminPublicapiTransfersUserGroupChangeSuccessDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupChangeSuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupChangeSuccessDTO: + """Test AdminPublicapiTransfersUserGroupChangeSuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupChangeSuccessDTO( + display_name = '', + project_id = '', + tenant_code = '', + user_group_id = '' + ) + else: + return AdminPublicapiTransfersUserGroupChangeSuccessDTO( + ) + + def testAdminPublicapiTransfersUserGroupChangeSuccessDTO(self): + """Test AdminPublicapiTransfersUserGroupChangeSuccessDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupChangeSuccessDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupChangeSuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_users_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_users_dto.py new file mode 100644 index 0000000000..a914afaed0 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_change_users_dto.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_users_dto import AdminPublicapiTransfersUserGroupChangeUsersDTO + +class TestAdminPublicapiTransfersUserGroupChangeUsersDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupChangeUsersDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupChangeUsersDTO: + """Test AdminPublicapiTransfersUserGroupChangeUsersDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupChangeUsersDTO( + dynamic_filter_definition = visier_api_administration.models.admin/publicapi/transfers/user_group_filters_dto.admin.publicapi.transfers.UserGroupFiltersDTO( + filters = [ + visier_api_administration.models.admin/publicapi/transfers/user_group_change_filter_dto.admin.publicapi.transfers.UserGroupChangeFilterDTO( + analytic_object_id = '', + dimension_filters = [ + visier_api_administration.models.admin/publicapi/transfers/user_group_change_dimension_filter_dto.admin.publicapi.transfers.UserGroupChangeDimensionFilterDTO( + dimension_id = '', + member_selections = [ + visier_api_administration.models.admin/publicapi/transfers/user_group_change_member_selection_dto.admin.publicapi.transfers.UserGroupChangeMemberSelectionDTO( + is_excluded = True, + name_path = [ + '' + ], ) + ], + subject_reference_path = None, ) + ], + filter_id = '', ) + ], ), + include_all_users = True, + manually_excluded_ids = visier_api_administration.models.admin/publicapi/transfers/element_ids_dto.admin.publicapi.transfers.ElementIDsDTO( + ids = [ + '' + ], ), + manually_included_ids = visier_api_administration.models.admin/publicapi/transfers/element_ids_dto.admin.publicapi.transfers.ElementIDsDTO( + ids = [ + '' + ], ) + ) + else: + return AdminPublicapiTransfersUserGroupChangeUsersDTO( + ) + + def testAdminPublicapiTransfersUserGroupChangeUsersDTO(self): + """Test AdminPublicapiTransfersUserGroupChangeUsersDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupChangeUsersDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupChangeUsersDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_delete_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_delete_dto.py new file mode 100644 index 0000000000..51292a2c9c --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_delete_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_dto import AdminPublicapiTransfersUserGroupDeleteDTO + +class TestAdminPublicapiTransfersUserGroupDeleteDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupDeleteDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupDeleteDTO: + """Test AdminPublicapiTransfersUserGroupDeleteDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupDeleteDTO( + project_id = '', + tenant_code = '', + user_group_id = '' + ) + else: + return AdminPublicapiTransfersUserGroupDeleteDTO( + ) + + def testAdminPublicapiTransfersUserGroupDeleteDTO(self): + """Test AdminPublicapiTransfersUserGroupDeleteDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupDeleteDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupDeleteDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_delete_failure_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_delete_failure_dto.py new file mode 100644 index 0000000000..f659d3c762 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_delete_failure_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_failure_dto import AdminPublicapiTransfersUserGroupDeleteFailureDTO + +class TestAdminPublicapiTransfersUserGroupDeleteFailureDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupDeleteFailureDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupDeleteFailureDTO: + """Test AdminPublicapiTransfersUserGroupDeleteFailureDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupDeleteFailureDTO( + message = '', + project_id = '', + rci = '', + tenant_code = '', + user_group_id = '' + ) + else: + return AdminPublicapiTransfersUserGroupDeleteFailureDTO( + ) + + def testAdminPublicapiTransfersUserGroupDeleteFailureDTO(self): + """Test AdminPublicapiTransfersUserGroupDeleteFailureDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupDeleteFailureDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupDeleteFailureDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_delete_response_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_delete_response_dto.py new file mode 100644 index 0000000000..7cd10d6610 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_delete_response_dto.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_response_dto import AdminPublicapiTransfersUserGroupDeleteResponseDTO + +class TestAdminPublicapiTransfersUserGroupDeleteResponseDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupDeleteResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupDeleteResponseDTO: + """Test AdminPublicapiTransfersUserGroupDeleteResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupDeleteResponseDTO( + failures = [ + visier_api_administration.models.admin/publicapi/transfers/user_group_delete_failure_dto.admin.publicapi.transfers.UserGroupDeleteFailureDTO( + message = '', + project_id = '', + rci = '', + tenant_code = '', + user_group_id = '', ) + ], + successes = [ + visier_api_administration.models.admin/publicapi/transfers/user_group_delete_success_dto.admin.publicapi.transfers.UserGroupDeleteSuccessDTO( + project_id = '', + tenant_code = '', + user_group_id = '', ) + ] + ) + else: + return AdminPublicapiTransfersUserGroupDeleteResponseDTO( + ) + + def testAdminPublicapiTransfersUserGroupDeleteResponseDTO(self): + """Test AdminPublicapiTransfersUserGroupDeleteResponseDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupDeleteResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupDeleteResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_delete_success_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_delete_success_dto.py new file mode 100644 index 0000000000..c6c3140c3d --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_delete_success_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_success_dto import AdminPublicapiTransfersUserGroupDeleteSuccessDTO + +class TestAdminPublicapiTransfersUserGroupDeleteSuccessDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupDeleteSuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupDeleteSuccessDTO: + """Test AdminPublicapiTransfersUserGroupDeleteSuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupDeleteSuccessDTO( + project_id = '', + tenant_code = '', + user_group_id = '' + ) + else: + return AdminPublicapiTransfersUserGroupDeleteSuccessDTO( + ) + + def testAdminPublicapiTransfersUserGroupDeleteSuccessDTO(self): + """Test AdminPublicapiTransfersUserGroupDeleteSuccessDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupDeleteSuccessDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupDeleteSuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_filters_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_filters_dto.py new file mode 100644 index 0000000000..1a582916e7 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_filters_dto.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_group_filters_dto import AdminPublicapiTransfersUserGroupFiltersDTO + +class TestAdminPublicapiTransfersUserGroupFiltersDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupFiltersDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupFiltersDTO: + """Test AdminPublicapiTransfersUserGroupFiltersDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupFiltersDTO( + filters = [ + visier_api_administration.models.admin/publicapi/transfers/user_group_change_filter_dto.admin.publicapi.transfers.UserGroupChangeFilterDTO( + analytic_object_id = '', + dimension_filters = [ + visier_api_administration.models.admin/publicapi/transfers/user_group_change_dimension_filter_dto.admin.publicapi.transfers.UserGroupChangeDimensionFilterDTO( + dimension_id = '', + member_selections = [ + visier_api_administration.models.admin/publicapi/transfers/user_group_change_member_selection_dto.admin.publicapi.transfers.UserGroupChangeMemberSelectionDTO( + is_excluded = True, + name_path = [ + '' + ], ) + ], + subject_reference_path = None, ) + ], + filter_id = '', ) + ] + ) + else: + return AdminPublicapiTransfersUserGroupFiltersDTO( + ) + + def testAdminPublicapiTransfersUserGroupFiltersDTO(self): + """Test AdminPublicapiTransfersUserGroupFiltersDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupFiltersDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupFiltersDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_single_delete_response_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_single_delete_response_dto.py new file mode 100644 index 0000000000..a3a0a7746d --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_group_single_delete_response_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_group_single_delete_response_dto import AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO + +class TestAdminPublicapiTransfersUserGroupSingleDeleteResponseDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO: + """Test AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO( + failure = visier_api_administration.models.admin/publicapi/transfers/user_group_delete_failure_dto.admin.publicapi.transfers.UserGroupDeleteFailureDTO( + message = '', + project_id = '', + rci = '', + tenant_code = '', + user_group_id = '', ), + success = visier_api_administration.models.admin/publicapi/transfers/user_group_delete_success_dto.admin.publicapi.transfers.UserGroupDeleteSuccessDTO( + project_id = '', + tenant_code = '', + user_group_id = '', ) + ) + else: + return AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO( + ) + + def testAdminPublicapiTransfersUserGroupSingleDeleteResponseDTO(self): + """Test AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_groups_change_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_groups_change_dto.py new file mode 100644 index 0000000000..be721f3f52 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_groups_change_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_groups_change_dto import AdminPublicapiTransfersUserGroupsChangeDTO + +class TestAdminPublicapiTransfersUserGroupsChangeDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupsChangeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupsChangeDTO: + """Test AdminPublicapiTransfersUserGroupsChangeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupsChangeDTO( + user_groups = [ + visier_api_administration.models.admin/publicapi/transfers/user_group_change_definition_dto.admin.publicapi.transfers.UserGroupChangeDefinitionDTO( + description = '', + display_name = '', + permission_ids = None, + project_id = '', + tenant_code = '', + user_group_id = '', + users = None, ) + ] + ) + else: + return AdminPublicapiTransfersUserGroupsChangeDTO( + ) + + def testAdminPublicapiTransfersUserGroupsChangeDTO(self): + """Test AdminPublicapiTransfersUserGroupsChangeDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupsChangeDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupsChangeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_publicapi_transfers_user_groups_delete_request_dto.py b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_groups_delete_request_dto.py new file mode 100644 index 0000000000..bb82b626be --- /dev/null +++ b/src/visier_api_administration/test/test_admin_publicapi_transfers_user_groups_delete_request_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_publicapi_transfers_user_groups_delete_request_dto import AdminPublicapiTransfersUserGroupsDeleteRequestDTO + +class TestAdminPublicapiTransfersUserGroupsDeleteRequestDTO(unittest.TestCase): + """AdminPublicapiTransfersUserGroupsDeleteRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPublicapiTransfersUserGroupsDeleteRequestDTO: + """Test AdminPublicapiTransfersUserGroupsDeleteRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPublicapiTransfersUserGroupsDeleteRequestDTO( + user_groups = [ + visier_api_administration.models.admin/publicapi/transfers/user_group_delete_dto.admin.publicapi.transfers.UserGroupDeleteDTO( + project_id = '', + tenant_code = '', + user_group_id = '', ) + ] + ) + else: + return AdminPublicapiTransfersUserGroupsDeleteRequestDTO( + ) + + def testAdminPublicapiTransfersUserGroupsDeleteRequestDTO(self): + """Test AdminPublicapiTransfersUserGroupsDeleteRequestDTO""" + def validate_instance(instance): + AdminPublicapiTransfersUserGroupsDeleteRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminPublicapiTransfersUserGroupsDeleteRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_put_project_commits_request.py b/src/visier_api_administration/test/test_admin_put_project_commits_request.py new file mode 100644 index 0000000000..c84de21429 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_put_project_commits_request.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_put_project_commits_request import AdminPutProjectCommitsRequest + +class TestAdminPutProjectCommitsRequest(unittest.TestCase): + """AdminPutProjectCommitsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPutProjectCommitsRequest: + """Test AdminPutProjectCommitsRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPutProjectCommitsRequest( + project_id = '' + ) + else: + return AdminPutProjectCommitsRequest( + ) + + def testAdminPutProjectCommitsRequest(self): + """Test AdminPutProjectCommitsRequest""" + def validate_instance(instance): + AdminPutProjectCommitsRequest.model_validate(inst_req_only) + instance_deserialized = AdminPutProjectCommitsRequest.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_tenant_code_body.py b/src/visier_api_administration/test/test_admin_tenant_code_body.py new file mode 100644 index 0000000000..db215b9bca --- /dev/null +++ b/src/visier_api_administration/test/test_admin_tenant_code_body.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_tenant_code_body import AdminTenantCodeBody + +class TestAdminTenantCodeBody(unittest.TestCase): + """AdminTenantCodeBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTenantCodeBody: + """Test AdminTenantCodeBody + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTenantCodeBody( + tenant_codes = [ + '' + ] + ) + else: + return AdminTenantCodeBody( + ) + + def testAdminTenantCodeBody(self): + """Test AdminTenantCodeBody""" + def validate_instance(instance): + AdminTenantCodeBody.model_validate(inst_req_only) + instance_deserialized = AdminTenantCodeBody.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_excluded_source_list_dto.py b/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_excluded_source_list_dto.py new file mode 100644 index 0000000000..0f3fdf50d3 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_excluded_source_list_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_excluded_source_list_dto import AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO + +class TestAdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO(unittest.TestCase): + """AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO: + """Test AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO( + excluded_sources = [ + '' + ] + ) + else: + return AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO( + ) + + def testAdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO(self): + """Test AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO""" + def validate_instance(instance): + AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_source_tenant_list_dto.py b/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_source_tenant_list_dto.py new file mode 100644 index 0000000000..67b59b6892 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_source_tenant_list_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_source_tenant_list_dto import AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO + +class TestAdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO(unittest.TestCase): + """AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO: + """Test AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO( + tenant_codes = [ + '' + ] + ) + else: + return AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO( + ) + + def testAdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO(self): + """Test AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO""" + def validate_instance(instance): + AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_tenant_create_request_dto.py b/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_tenant_create_request_dto.py new file mode 100644 index 0000000000..2c1acc46d3 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_tenant_create_request_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_create_request_dto import AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO + +class TestAdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO(unittest.TestCase): + """AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO: + """Test AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO( + tenant_code = '' + ) + else: + return AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO( + ) + + def testAdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO(self): + """Test AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO""" + def validate_instance(instance): + AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_tenant_list_response_dto.py b/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_tenant_list_response_dto.py new file mode 100644 index 0000000000..7c010ec75f --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_tenant_list_response_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_list_response_dto import AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO + +class TestAdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO(unittest.TestCase): + """AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO: + """Test AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO( + tenant_codes = [ + '' + ] + ) + else: + return AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO( + ) + + def testAdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO(self): + """Test AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO""" + def validate_instance(instance): + AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_tenant_with_details.py b/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_tenant_with_details.py new file mode 100644 index 0000000000..65f3c9e36d --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_tenant_with_details.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_with_details import AdminTransfersConsolidatedAnalyticsAPITenantWithDetails + +class TestAdminTransfersConsolidatedAnalyticsAPITenantWithDetails(unittest.TestCase): + """AdminTransfersConsolidatedAnalyticsAPITenantWithDetails unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersConsolidatedAnalyticsAPITenantWithDetails: + """Test AdminTransfersConsolidatedAnalyticsAPITenantWithDetails + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersConsolidatedAnalyticsAPITenantWithDetails( + excluded_sources_list = [ + '' + ], + source_tenants_list = [ + '' + ], + tenant_code = '' + ) + else: + return AdminTransfersConsolidatedAnalyticsAPITenantWithDetails( + ) + + def testAdminTransfersConsolidatedAnalyticsAPITenantWithDetails(self): + """Test AdminTransfersConsolidatedAnalyticsAPITenantWithDetails""" + def validate_instance(instance): + AdminTransfersConsolidatedAnalyticsAPITenantWithDetails.model_validate(inst_req_only) + instance_deserialized = AdminTransfersConsolidatedAnalyticsAPITenantWithDetails.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_tenant_with_details_list_response_dto.py b/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_tenant_with_details_list_response_dto.py new file mode 100644 index 0000000000..37e49c69dc --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_consolidated_analytics_api_tenant_with_details_list_response_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_with_details_list_response_dto import AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO + +class TestAdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO(unittest.TestCase): + """AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO: + """Test AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO( + tenants = [ + visier_api_administration.models.admin/transfers/consolidated_analytics_api_tenant_with_details.admin.transfers.ConsolidatedAnalyticsAPITenantWithDetails( + excluded_sources_list = [ + '' + ], + source_tenants_list = [ + '' + ], + tenant_code = '', ) + ] + ) + else: + return AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO( + ) + + def testAdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO(self): + """Test AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO""" + def validate_instance(instance): + AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_email_domains_dto.py b/src/visier_api_administration/test/test_admin_transfers_email_domains_dto.py new file mode 100644 index 0000000000..5289309266 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_email_domains_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_email_domains_dto import AdminTransfersEmailDomainsDTO + +class TestAdminTransfersEmailDomainsDTO(unittest.TestCase): + """AdminTransfersEmailDomainsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersEmailDomainsDTO: + """Test AdminTransfersEmailDomainsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersEmailDomainsDTO( + confirm_not_allowed_domain = True, + domains = [ + '' + ] + ) + else: + return AdminTransfersEmailDomainsDTO( + ) + + def testAdminTransfersEmailDomainsDTO(self): + """Test AdminTransfersEmailDomainsDTO""" + def validate_instance(instance): + AdminTransfersEmailDomainsDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersEmailDomainsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_permission_response_dto.py b/src/visier_api_administration/test/test_admin_transfers_permission_response_dto.py new file mode 100644 index 0000000000..cbb378666a --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_permission_response_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_permission_response_dto import AdminTransfersPermissionResponseDTO + +class TestAdminTransfersPermissionResponseDTO(unittest.TestCase): + """AdminTransfersPermissionResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersPermissionResponseDTO: + """Test AdminTransfersPermissionResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersPermissionResponseDTO( + display_name = '', + permission_id = '' + ) + else: + return AdminTransfersPermissionResponseDTO( + ) + + def testAdminTransfersPermissionResponseDTO(self): + """Test AdminTransfersPermissionResponseDTO""" + def validate_instance(instance): + AdminTransfersPermissionResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersPermissionResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_permissions_to_user_group_for_tenant_dto.py b/src/visier_api_administration/test/test_admin_transfers_permissions_to_user_group_for_tenant_dto.py new file mode 100644 index 0000000000..02ae50bac5 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_permissions_to_user_group_for_tenant_dto.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_permissions_to_user_group_for_tenant_dto import AdminTransfersPermissionsToUserGroupForTenantDTO + +class TestAdminTransfersPermissionsToUserGroupForTenantDTO(unittest.TestCase): + """AdminTransfersPermissionsToUserGroupForTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersPermissionsToUserGroupForTenantDTO: + """Test AdminTransfersPermissionsToUserGroupForTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersPermissionsToUserGroupForTenantDTO( + message = '', + status = '', + tenant_code = '', + user_groups = [ + visier_api_administration.models.admin/transfers/user_group_get_api_response_dto.admin.transfers.UserGroupGetAPIResponseDTO( + display_name = '', + permissions = [ + visier_api_administration.models.admin/transfers/permission_response_dto.admin.transfers.PermissionResponseDTO( + display_name = '', + permission_id = '', ) + ], + user_group_id = '', ) + ] + ) + else: + return AdminTransfersPermissionsToUserGroupForTenantDTO( + ) + + def testAdminTransfersPermissionsToUserGroupForTenantDTO(self): + """Test AdminTransfersPermissionsToUserGroupForTenantDTO""" + def validate_instance(instance): + AdminTransfersPermissionsToUserGroupForTenantDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersPermissionsToUserGroupForTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_permissions_to_user_group_request_dto.py b/src/visier_api_administration/test/test_admin_transfers_permissions_to_user_group_request_dto.py new file mode 100644 index 0000000000..67dabbd626 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_permissions_to_user_group_request_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_permissions_to_user_group_request_dto import AdminTransfersPermissionsToUserGroupRequestDTO + +class TestAdminTransfersPermissionsToUserGroupRequestDTO(unittest.TestCase): + """AdminTransfersPermissionsToUserGroupRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersPermissionsToUserGroupRequestDTO: + """Test AdminTransfersPermissionsToUserGroupRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersPermissionsToUserGroupRequestDTO( + permissions_ids = [ + '' + ], + user_group_id = '' + ) + else: + return AdminTransfersPermissionsToUserGroupRequestDTO( + ) + + def testAdminTransfersPermissionsToUserGroupRequestDTO(self): + """Test AdminTransfersPermissionsToUserGroupRequestDTO""" + def validate_instance(instance): + AdminTransfersPermissionsToUserGroupRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersPermissionsToUserGroupRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_permissions_to_user_groups_request_dto.py b/src/visier_api_administration/test/test_admin_transfers_permissions_to_user_groups_request_dto.py new file mode 100644 index 0000000000..e32f75a9f2 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_permissions_to_user_groups_request_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_permissions_to_user_groups_request_dto import AdminTransfersPermissionsToUserGroupsRequestDTO + +class TestAdminTransfersPermissionsToUserGroupsRequestDTO(unittest.TestCase): + """AdminTransfersPermissionsToUserGroupsRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersPermissionsToUserGroupsRequestDTO: + """Test AdminTransfersPermissionsToUserGroupsRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersPermissionsToUserGroupsRequestDTO( + user_groups = [ + visier_api_administration.models.admin/transfers/permissions_to_user_group_request_dto.admin.transfers.PermissionsToUserGroupRequestDTO( + permissions_ids = [ + '' + ], + user_group_id = '', ) + ] + ) + else: + return AdminTransfersPermissionsToUserGroupsRequestDTO( + ) + + def testAdminTransfersPermissionsToUserGroupsRequestDTO(self): + """Test AdminTransfersPermissionsToUserGroupsRequestDTO""" + def validate_instance(instance): + AdminTransfersPermissionsToUserGroupsRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersPermissionsToUserGroupsRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_security_assignment_response_dto.py b/src/visier_api_administration/test/test_admin_transfers_security_assignment_response_dto.py new file mode 100644 index 0000000000..e70717f23b --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_security_assignment_response_dto.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_security_assignment_response_dto import AdminTransfersSecurityAssignmentResponseDTO + +class TestAdminTransfersSecurityAssignmentResponseDTO(unittest.TestCase): + """AdminTransfersSecurityAssignmentResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersSecurityAssignmentResponseDTO: + """Test AdminTransfersSecurityAssignmentResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersSecurityAssignmentResponseDTO( + tenants = [ + visier_api_administration.models.admin/transfers/tenant_assignments_dto.admin.transfers.TenantAssignmentsDTO( + assignments = [ + visier_api_administration.models.admin/transfers/user_security_assignments_dto.admin.transfers.UserSecurityAssignmentsDTO( + id = '', + name = '', + users = [ + visier_api_administration.models.admin/transfers/simple_user_dto.admin.transfers.SimpleUserDTO( + user_id = '', + username = '', ) + ], ) + ], + message = '', + project_id = '', + status = 'Unknown', + tenant_code = '', ) + ] + ) + else: + return AdminTransfersSecurityAssignmentResponseDTO( + ) + + def testAdminTransfersSecurityAssignmentResponseDTO(self): + """Test AdminTransfersSecurityAssignmentResponseDTO""" + def validate_instance(instance): + AdminTransfersSecurityAssignmentResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersSecurityAssignmentResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_simple_user_dto.py b/src/visier_api_administration/test/test_admin_transfers_simple_user_dto.py new file mode 100644 index 0000000000..73449e3f42 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_simple_user_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_simple_user_dto import AdminTransfersSimpleUserDTO + +class TestAdminTransfersSimpleUserDTO(unittest.TestCase): + """AdminTransfersSimpleUserDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersSimpleUserDTO: + """Test AdminTransfersSimpleUserDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersSimpleUserDTO( + user_id = '', + username = '' + ) + else: + return AdminTransfersSimpleUserDTO( + ) + + def testAdminTransfersSimpleUserDTO(self): + """Test AdminTransfersSimpleUserDTO""" + def validate_instance(instance): + AdminTransfersSimpleUserDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersSimpleUserDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_target_project_for_tenant_dto.py b/src/visier_api_administration/test/test_admin_transfers_target_project_for_tenant_dto.py new file mode 100644 index 0000000000..2a332c4ff4 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_target_project_for_tenant_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_target_project_for_tenant_dto import AdminTransfersTargetProjectForTenantDTO + +class TestAdminTransfersTargetProjectForTenantDTO(unittest.TestCase): + """AdminTransfersTargetProjectForTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersTargetProjectForTenantDTO: + """Test AdminTransfersTargetProjectForTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersTargetProjectForTenantDTO( + project_id = '', + tenant_code = '' + ) + else: + return AdminTransfersTargetProjectForTenantDTO( + ) + + def testAdminTransfersTargetProjectForTenantDTO(self): + """Test AdminTransfersTargetProjectForTenantDTO""" + def validate_instance(instance): + AdminTransfersTargetProjectForTenantDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersTargetProjectForTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_target_project_for_tenants_list_dto.py b/src/visier_api_administration/test/test_admin_transfers_target_project_for_tenants_list_dto.py new file mode 100644 index 0000000000..682cc02238 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_target_project_for_tenants_list_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_target_project_for_tenants_list_dto import AdminTransfersTargetProjectForTenantsListDTO + +class TestAdminTransfersTargetProjectForTenantsListDTO(unittest.TestCase): + """AdminTransfersTargetProjectForTenantsListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersTargetProjectForTenantsListDTO: + """Test AdminTransfersTargetProjectForTenantsListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersTargetProjectForTenantsListDTO( + target_project_for_tenants = [ + visier_api_administration.models.admin/transfers/target_project_for_tenant_dto.admin.transfers.TargetProjectForTenantDTO( + project_id = '', + tenant_code = '', ) + ] + ) + else: + return AdminTransfersTargetProjectForTenantsListDTO( + ) + + def testAdminTransfersTargetProjectForTenantsListDTO(self): + """Test AdminTransfersTargetProjectForTenantsListDTO""" + def validate_instance(instance): + AdminTransfersTargetProjectForTenantsListDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersTargetProjectForTenantsListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_tenant_assignments_dto.py b/src/visier_api_administration/test/test_admin_transfers_tenant_assignments_dto.py new file mode 100644 index 0000000000..764e29ff2c --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_tenant_assignments_dto.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_tenant_assignments_dto import AdminTransfersTenantAssignmentsDTO + +class TestAdminTransfersTenantAssignmentsDTO(unittest.TestCase): + """AdminTransfersTenantAssignmentsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersTenantAssignmentsDTO: + """Test AdminTransfersTenantAssignmentsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersTenantAssignmentsDTO( + assignments = [ + visier_api_administration.models.admin/transfers/user_security_assignments_dto.admin.transfers.UserSecurityAssignmentsDTO( + id = '', + name = '', + users = [ + visier_api_administration.models.admin/transfers/simple_user_dto.admin.transfers.SimpleUserDTO( + user_id = '', + username = '', ) + ], ) + ], + message = '', + project_id = '', + status = 'Unknown', + tenant_code = '' + ) + else: + return AdminTransfersTenantAssignmentsDTO( + ) + + def testAdminTransfersTenantAssignmentsDTO(self): + """Test AdminTransfersTenantAssignmentsDTO""" + def validate_instance(instance): + AdminTransfersTenantAssignmentsDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersTenantAssignmentsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_user_group_get_api_response_dto.py b/src/visier_api_administration/test/test_admin_transfers_user_group_get_api_response_dto.py new file mode 100644 index 0000000000..366ff1f2a2 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_user_group_get_api_response_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_user_group_get_api_response_dto import AdminTransfersUserGroupGetAPIResponseDTO + +class TestAdminTransfersUserGroupGetAPIResponseDTO(unittest.TestCase): + """AdminTransfersUserGroupGetAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersUserGroupGetAPIResponseDTO: + """Test AdminTransfersUserGroupGetAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersUserGroupGetAPIResponseDTO( + display_name = '', + permissions = [ + visier_api_administration.models.admin/transfers/permission_response_dto.admin.transfers.PermissionResponseDTO( + display_name = '', + permission_id = '', ) + ], + user_group_id = '' + ) + else: + return AdminTransfersUserGroupGetAPIResponseDTO( + ) + + def testAdminTransfersUserGroupGetAPIResponseDTO(self): + """Test AdminTransfersUserGroupGetAPIResponseDTO""" + def validate_instance(instance): + AdminTransfersUserGroupGetAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersUserGroupGetAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_user_groups_get_api_response_dto.py b/src/visier_api_administration/test/test_admin_transfers_user_groups_get_api_response_dto.py new file mode 100644 index 0000000000..3a4a0f9dcc --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_user_groups_get_api_response_dto.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_user_groups_get_api_response_dto import AdminTransfersUserGroupsGetAPIResponseDTO + +class TestAdminTransfersUserGroupsGetAPIResponseDTO(unittest.TestCase): + """AdminTransfersUserGroupsGetAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersUserGroupsGetAPIResponseDTO: + """Test AdminTransfersUserGroupsGetAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersUserGroupsGetAPIResponseDTO( + limit = 56, + start = 56, + user_groups = [ + visier_api_administration.models.admin/transfers/user_group_get_api_response_dto.admin.transfers.UserGroupGetAPIResponseDTO( + display_name = '', + permissions = [ + visier_api_administration.models.admin/transfers/permission_response_dto.admin.transfers.PermissionResponseDTO( + display_name = '', + permission_id = '', ) + ], + user_group_id = '', ) + ] + ) + else: + return AdminTransfersUserGroupsGetAPIResponseDTO( + ) + + def testAdminTransfersUserGroupsGetAPIResponseDTO(self): + """Test AdminTransfersUserGroupsGetAPIResponseDTO""" + def validate_instance(instance): + AdminTransfersUserGroupsGetAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersUserGroupsGetAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_user_groups_users_dto.py b/src/visier_api_administration/test/test_admin_transfers_user_groups_users_dto.py new file mode 100644 index 0000000000..d8d97600df --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_user_groups_users_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_user_groups_users_dto import AdminTransfersUserGroupsUsersDTO + +class TestAdminTransfersUserGroupsUsersDTO(unittest.TestCase): + """AdminTransfersUserGroupsUsersDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersUserGroupsUsersDTO: + """Test AdminTransfersUserGroupsUsersDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersUserGroupsUsersDTO( + limit = 56, + start = 56, + tenants = [ + visier_api_administration.models.admin/transfers/user_groups_users_for_tenant_dto.admin.transfers.UserGroupsUsersForTenantDTO( + tenant_code = '', + users = [ + visier_api_administration.models.admin/transfers/simple_user_dto.admin.transfers.SimpleUserDTO( + user_id = '', + username = '', ) + ], ) + ] + ) + else: + return AdminTransfersUserGroupsUsersDTO( + ) + + def testAdminTransfersUserGroupsUsersDTO(self): + """Test AdminTransfersUserGroupsUsersDTO""" + def validate_instance(instance): + AdminTransfersUserGroupsUsersDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersUserGroupsUsersDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_user_groups_users_for_tenant_dto.py b/src/visier_api_administration/test/test_admin_transfers_user_groups_users_for_tenant_dto.py new file mode 100644 index 0000000000..b124cc19f4 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_user_groups_users_for_tenant_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_user_groups_users_for_tenant_dto import AdminTransfersUserGroupsUsersForTenantDTO + +class TestAdminTransfersUserGroupsUsersForTenantDTO(unittest.TestCase): + """AdminTransfersUserGroupsUsersForTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersUserGroupsUsersForTenantDTO: + """Test AdminTransfersUserGroupsUsersForTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersUserGroupsUsersForTenantDTO( + tenant_code = '', + users = [ + visier_api_administration.models.admin/transfers/simple_user_dto.admin.transfers.SimpleUserDTO( + user_id = '', + username = '', ) + ] + ) + else: + return AdminTransfersUserGroupsUsersForTenantDTO( + ) + + def testAdminTransfersUserGroupsUsersForTenantDTO(self): + """Test AdminTransfersUserGroupsUsersForTenantDTO""" + def validate_instance(instance): + AdminTransfersUserGroupsUsersForTenantDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersUserGroupsUsersForTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_user_security_assignments_dto.py b/src/visier_api_administration/test/test_admin_transfers_user_security_assignments_dto.py new file mode 100644 index 0000000000..28170f0cab --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_user_security_assignments_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_user_security_assignments_dto import AdminTransfersUserSecurityAssignmentsDTO + +class TestAdminTransfersUserSecurityAssignmentsDTO(unittest.TestCase): + """AdminTransfersUserSecurityAssignmentsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersUserSecurityAssignmentsDTO: + """Test AdminTransfersUserSecurityAssignmentsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersUserSecurityAssignmentsDTO( + id = '', + name = '', + users = [ + visier_api_administration.models.admin/transfers/simple_user_dto.admin.transfers.SimpleUserDTO( + user_id = '', + username = '', ) + ] + ) + else: + return AdminTransfersUserSecurityAssignmentsDTO( + ) + + def testAdminTransfersUserSecurityAssignmentsDTO(self): + """Test AdminTransfersUserSecurityAssignmentsDTO""" + def validate_instance(instance): + AdminTransfersUserSecurityAssignmentsDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersUserSecurityAssignmentsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_users_to_user_group_request_dto.py b/src/visier_api_administration/test/test_admin_transfers_users_to_user_group_request_dto.py new file mode 100644 index 0000000000..2eff6a6243 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_users_to_user_group_request_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_users_to_user_group_request_dto import AdminTransfersUsersToUserGroupRequestDTO + +class TestAdminTransfersUsersToUserGroupRequestDTO(unittest.TestCase): + """AdminTransfersUsersToUserGroupRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersUsersToUserGroupRequestDTO: + """Test AdminTransfersUsersToUserGroupRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersUsersToUserGroupRequestDTO( + user_group_id = '', + user_ids = [ + '' + ] + ) + else: + return AdminTransfersUsersToUserGroupRequestDTO( + ) + + def testAdminTransfersUsersToUserGroupRequestDTO(self): + """Test AdminTransfersUsersToUserGroupRequestDTO""" + def validate_instance(instance): + AdminTransfersUsersToUserGroupRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersUsersToUserGroupRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_transfers_users_to_user_groups_request_dto.py b/src/visier_api_administration/test/test_admin_transfers_users_to_user_groups_request_dto.py new file mode 100644 index 0000000000..ed3de8687b --- /dev/null +++ b/src/visier_api_administration/test/test_admin_transfers_users_to_user_groups_request_dto.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_transfers_users_to_user_groups_request_dto import AdminTransfersUsersToUserGroupsRequestDTO + +class TestAdminTransfersUsersToUserGroupsRequestDTO(unittest.TestCase): + """AdminTransfersUsersToUserGroupsRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersUsersToUserGroupsRequestDTO: + """Test AdminTransfersUsersToUserGroupsRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersUsersToUserGroupsRequestDTO( + target_project_for_tenants_list = visier_api_administration.models.admin/transfers/target_project_for_tenants_list_dto.admin.transfers.TargetProjectForTenantsListDTO( + target_project_for_tenants = [ + visier_api_administration.models.admin/transfers/target_project_for_tenant_dto.admin.transfers.TargetProjectForTenantDTO( + project_id = '', + tenant_code = '', ) + ], ), + user_groups = [ + visier_api_administration.models.admin/transfers/users_to_user_group_request_dto.admin.transfers.UsersToUserGroupRequestDTO( + user_group_id = '', + user_ids = [ + '' + ], ) + ] + ) + else: + return AdminTransfersUsersToUserGroupsRequestDTO( + ) + + def testAdminTransfersUsersToUserGroupsRequestDTO(self): + """Test AdminTransfersUsersToUserGroupsRequestDTO""" + def validate_instance(instance): + AdminTransfersUsersToUserGroupsRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersUsersToUserGroupsRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_admin_update_tenant_model.py b/src/visier_api_administration/test/test_admin_update_tenant_model.py new file mode 100644 index 0000000000..b50fd6e29d --- /dev/null +++ b/src/visier_api_administration/test/test_admin_update_tenant_model.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.admin_update_tenant_model import AdminUpdateTenantModel + +class TestAdminUpdateTenantModel(unittest.TestCase): + """AdminUpdateTenantModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUpdateTenantModel: + """Test AdminUpdateTenantModel + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUpdateTenantModel( + custom_properties = { + 'key' : '' + }, + embeddable_domains = [ + '' + ], + industry_code = 56, + purchased_modules = [ + '' + ], + sso_instance_issuers = [ + '' + ], + tenant_display_name = '' + ) + else: + return AdminUpdateTenantModel( + ) + + def testAdminUpdateTenantModel(self): + """Test AdminUpdateTenantModel""" + def validate_instance(instance): + AdminUpdateTenantModel.model_validate(inst_req_only) + instance_deserialized = AdminUpdateTenantModel.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_all_permissions_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_all_permissions_assigned_for_local_tenant_dto.py deleted file mode 100644 index 739d3a0924..0000000000 --- a/src/visier_api_administration/test/test_all_permissions_assigned_for_local_tenant_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.all_permissions_assigned_for_local_tenant_dto import AllPermissionsAssignedForLocalTenantDTO - -class TestAllPermissionsAssignedForLocalTenantDTO(unittest.TestCase): - """AllPermissionsAssignedForLocalTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AllPermissionsAssignedForLocalTenantDTO: - """Test AllPermissionsAssignedForLocalTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AllPermissionsAssignedForLocalTenantDTO( - assigned_permissions = [ - visier_api_administration.models.permission_assigned_for_local_tenant_dto.PermissionAssignedForLocalTenantDTO( - description = '', - display_name = '', - permission_id = '', ) - ] - ) - else: - return AllPermissionsAssignedForLocalTenantDTO( - ) - - def testAllPermissionsAssignedForLocalTenantDTO(self): - """Test AllPermissionsAssignedForLocalTenantDTO""" - def validate_instance(instance): - AllPermissionsAssignedForLocalTenantDTO.model_validate(inst_req_only) - instance_deserialized = AllPermissionsAssignedForLocalTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_all_profile_assigned_for_accessible_tenant_dto.py b/src/visier_api_administration/test/test_all_profile_assigned_for_accessible_tenant_dto.py deleted file mode 100644 index 9b52586ff7..0000000000 --- a/src/visier_api_administration/test/test_all_profile_assigned_for_accessible_tenant_dto.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.all_profile_assigned_for_accessible_tenant_dto import AllProfileAssignedForAccessibleTenantDTO - -class TestAllProfileAssignedForAccessibleTenantDTO(unittest.TestCase): - """AllProfileAssignedForAccessibleTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AllProfileAssignedForAccessibleTenantDTO: - """Test AllProfileAssignedForAccessibleTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AllProfileAssignedForAccessibleTenantDTO( - assigned_profiles_for_accessible_tenant = [ - visier_api_administration.models.profile_assigned_for_accessible_tenant_dto.ProfileAssignedForAccessibleTenantDTO( - display_name = '', - for_all_children = True, - profile_id = '', - tenant_code = '', - validity_end_time = '', - validity_start_time = '', ) - ] - ) - else: - return AllProfileAssignedForAccessibleTenantDTO( - ) - - def testAllProfileAssignedForAccessibleTenantDTO(self): - """Test AllProfileAssignedForAccessibleTenantDTO""" - def validate_instance(instance): - AllProfileAssignedForAccessibleTenantDTO.model_validate(inst_req_only) - instance_deserialized = AllProfileAssignedForAccessibleTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_all_profile_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_all_profile_assigned_for_local_tenant_dto.py deleted file mode 100644 index a8923b970b..0000000000 --- a/src/visier_api_administration/test/test_all_profile_assigned_for_local_tenant_dto.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.all_profile_assigned_for_local_tenant_dto import AllProfileAssignedForLocalTenantDTO - -class TestAllProfileAssignedForLocalTenantDTO(unittest.TestCase): - """AllProfileAssignedForLocalTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AllProfileAssignedForLocalTenantDTO: - """Test AllProfileAssignedForLocalTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AllProfileAssignedForLocalTenantDTO( - assigned_profiles = [ - visier_api_administration.models.profile_assigned_for_local_tenant_dto.ProfileAssignedForLocalTenantDTO( - additional_capabilities = None, - capabilities = [ - visier_api_administration.models.capabilities_dto.CapabilitiesDTO( - access_level = '', - capability = '', - view_level = '', ) - ], - display_name = '', - profile_id = '', - validity_end_time = '', - validity_start_time = '', ) - ] - ) - else: - return AllProfileAssignedForLocalTenantDTO( - ) - - def testAllProfileAssignedForLocalTenantDTO(self): - """Test AllProfileAssignedForLocalTenantDTO""" - def validate_instance(instance): - AllProfileAssignedForLocalTenantDTO.model_validate(inst_req_only) - instance_deserialized = AllProfileAssignedForLocalTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_all_tenants_status_apidto.py b/src/visier_api_administration/test/test_all_tenants_status_apidto.py deleted file mode 100644 index 2d690e8422..0000000000 --- a/src/visier_api_administration/test/test_all_tenants_status_apidto.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.all_tenants_status_apidto import AllTenantsStatusAPIDTO - -class TestAllTenantsStatusAPIDTO(unittest.TestCase): - """AllTenantsStatusAPIDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AllTenantsStatusAPIDTO: - """Test AllTenantsStatusAPIDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AllTenantsStatusAPIDTO( - limit = 56, - start = 56, - tenants = [ - visier_api_administration.models.tenant_detail_apidto.TenantDetailAPIDTO( - allowed_o_auth_idp_url_domains = [ - '' - ], - can_administer_other_tenants = True, - current_data_version = '', - custom_properties = [ - visier_api_administration.models.custom_tenant_property_dto.CustomTenantPropertyDTO( - key = '', - value = '', ) - ], - data_version_date = '', - embeddable_domains = [ - '' - ], - industry_code = 56, - modules = [ - visier_api_administration.models.tenant_module_dto.TenantModuleDTO( - display_name = '', - module_settings = None, - symbol_name = '', ) - ], - provision_date = '', - sso_instance_issuers = [ - '' - ], - status = '', - tenant_code = '', - tenant_display_name = '', - vanity_url_name = '', ) - ] - ) - else: - return AllTenantsStatusAPIDTO( - ) - - def testAllTenantsStatusAPIDTO(self): - """Test AllTenantsStatusAPIDTO""" - def validate_instance(instance): - AllTenantsStatusAPIDTO.model_validate(inst_req_only) - instance_deserialized = AllTenantsStatusAPIDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_all_user_groups_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_all_user_groups_assigned_for_local_tenant_dto.py deleted file mode 100644 index 9a3ba0718a..0000000000 --- a/src/visier_api_administration/test/test_all_user_groups_assigned_for_local_tenant_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.all_user_groups_assigned_for_local_tenant_dto import AllUserGroupsAssignedForLocalTenantDTO - -class TestAllUserGroupsAssignedForLocalTenantDTO(unittest.TestCase): - """AllUserGroupsAssignedForLocalTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AllUserGroupsAssignedForLocalTenantDTO: - """Test AllUserGroupsAssignedForLocalTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AllUserGroupsAssignedForLocalTenantDTO( - assigned_user_groups = [ - visier_api_administration.models.user_group_assigned_for_local_tenant_dto.UserGroupAssignedForLocalTenantDTO( - display_name = '', - user_group_id = '', ) - ] - ) - else: - return AllUserGroupsAssignedForLocalTenantDTO( - ) - - def testAllUserGroupsAssignedForLocalTenantDTO(self): - """Test AllUserGroupsAssignedForLocalTenantDTO""" - def validate_instance(instance): - AllUserGroupsAssignedForLocalTenantDTO.model_validate(inst_req_only) - instance_deserialized = AllUserGroupsAssignedForLocalTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_all_users_get_api_response_dto.py b/src/visier_api_administration/test/test_all_users_get_api_response_dto.py deleted file mode 100644 index 3bdd69686b..0000000000 --- a/src/visier_api_administration/test/test_all_users_get_api_response_dto.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.all_users_get_api_response_dto import AllUsersGetAPIResponseDTO - -class TestAllUsersGetAPIResponseDTO(unittest.TestCase): - """AllUsersGetAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AllUsersGetAPIResponseDTO: - """Test AllUsersGetAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AllUsersGetAPIResponseDTO( - limit = 56, - start = 56, - users = [ - visier_api_administration.models.user_get_api_response_dto.UserGetAPIResponseDTO( - account_enabled = True, - display_name = '', - email = '', - employee_id = '', - last_login = None, - permissions = None, - profiles = None, - user_groups = None, - user_id = '', - username = '', ) - ] - ) - else: - return AllUsersGetAPIResponseDTO( - ) - - def testAllUsersGetAPIResponseDTO(self): - """Test AllUsersGetAPIResponseDTO""" - def validate_instance(instance): - AllUsersGetAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = AllUsersGetAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_analytic_object_dto.py b/src/visier_api_administration/test/test_analytic_object_dto.py deleted file mode 100644 index f5f975f707..0000000000 --- a/src/visier_api_administration/test/test_analytic_object_dto.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.analytic_object_dto import AnalyticObjectDTO - -class TestAnalyticObjectDTO(unittest.TestCase): - """AnalyticObjectDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalyticObjectDTO: - """Test AnalyticObjectDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AnalyticObjectDTO( - analytic_object_id = '', - display_name = '', - object_type = 'Event', - related_objects = [ - visier_api_administration.models.related_analytic_object_dto.RelatedAnalyticObjectDTO( - analytic_object_id = '', - display_name = '', ) - ], - securable_dimensions = [ - visier_api_administration.models.securable_dimension_dto.SecurableDimensionDTO( - analytic_object_ids = [ - '' - ], - dimension_id = '', - display_name = '', - hierarchy_properties = [ - visier_api_administration.models.hierarchy_property_dto.HierarchyPropertyDTO( - display_name = '', - hierarchy_property_id = '', ) - ], ) - ], - securable_properties = [ - visier_api_administration.models.securable_property_dto.SecurablePropertyDTO( - analytic_object_id = '', - display_name = '', - is_primary_key = True, - property_id = '', - reference_symbol_name = '', ) - ] - ) - else: - return AnalyticObjectDTO( - ) - - def testAnalyticObjectDTO(self): - """Test AnalyticObjectDTO""" - def validate_instance(instance): - AnalyticObjectDTO.model_validate(inst_req_only) - instance_deserialized = AnalyticObjectDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_assign_revoke_permission_by_permission_dto.py b/src/visier_api_administration/test/test_assign_revoke_permission_by_permission_dto.py deleted file mode 100644 index b00e6e9c78..0000000000 --- a/src/visier_api_administration/test/test_assign_revoke_permission_by_permission_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.assign_revoke_permission_by_permission_dto import AssignRevokePermissionByPermissionDTO - -class TestAssignRevokePermissionByPermissionDTO(unittest.TestCase): - """AssignRevokePermissionByPermissionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AssignRevokePermissionByPermissionDTO: - """Test AssignRevokePermissionByPermissionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AssignRevokePermissionByPermissionDTO( - permission = visier_api_administration.models.permission_assigned_for_local_tenant_dto.PermissionAssignedForLocalTenantDTO( - description = '', - display_name = '', - permission_id = '', ), - users = [ - visier_api_administration.models.assign_revoke_permission_by_user_dto.AssignRevokePermissionByUserDTO( - message = '', - user_id = '', - username = '', ) - ] - ) - else: - return AssignRevokePermissionByPermissionDTO( - ) - - def testAssignRevokePermissionByPermissionDTO(self): - """Test AssignRevokePermissionByPermissionDTO""" - def validate_instance(instance): - AssignRevokePermissionByPermissionDTO.model_validate(inst_req_only) - instance_deserialized = AssignRevokePermissionByPermissionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_assign_revoke_permission_by_tenant_dto.py b/src/visier_api_administration/test/test_assign_revoke_permission_by_tenant_dto.py deleted file mode 100644 index ad8d86c96e..0000000000 --- a/src/visier_api_administration/test/test_assign_revoke_permission_by_tenant_dto.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.assign_revoke_permission_by_tenant_dto import AssignRevokePermissionByTenantDTO - -class TestAssignRevokePermissionByTenantDTO(unittest.TestCase): - """AssignRevokePermissionByTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AssignRevokePermissionByTenantDTO: - """Test AssignRevokePermissionByTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AssignRevokePermissionByTenantDTO( - message = '', - permissions = [ - visier_api_administration.models.assign_revoke_permission_by_permission_dto.AssignRevokePermissionByPermissionDTO( - permission = visier_api_administration.models.permission_assigned_for_local_tenant_dto.PermissionAssignedForLocalTenantDTO( - description = '', - display_name = '', - permission_id = '', ), - users = [ - visier_api_administration.models.assign_revoke_permission_by_user_dto.AssignRevokePermissionByUserDTO( - message = '', - user_id = '', - username = '', ) - ], ) - ], - project_id = '', - status = 'Unknown', - tenant_code = '' - ) - else: - return AssignRevokePermissionByTenantDTO( - ) - - def testAssignRevokePermissionByTenantDTO(self): - """Test AssignRevokePermissionByTenantDTO""" - def validate_instance(instance): - AssignRevokePermissionByTenantDTO.model_validate(inst_req_only) - instance_deserialized = AssignRevokePermissionByTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_assign_revoke_permission_by_user_dto.py b/src/visier_api_administration/test/test_assign_revoke_permission_by_user_dto.py deleted file mode 100644 index 47c2372eb2..0000000000 --- a/src/visier_api_administration/test/test_assign_revoke_permission_by_user_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.assign_revoke_permission_by_user_dto import AssignRevokePermissionByUserDTO - -class TestAssignRevokePermissionByUserDTO(unittest.TestCase): - """AssignRevokePermissionByUserDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AssignRevokePermissionByUserDTO: - """Test AssignRevokePermissionByUserDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AssignRevokePermissionByUserDTO( - message = '', - user_id = '', - username = '' - ) - else: - return AssignRevokePermissionByUserDTO( - ) - - def testAssignRevokePermissionByUserDTO(self): - """Test AssignRevokePermissionByUserDTO""" - def validate_instance(instance): - AssignRevokePermissionByUserDTO.model_validate(inst_req_only) - instance_deserialized = AssignRevokePermissionByUserDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_assign_revoke_permission_request_dto.py b/src/visier_api_administration/test/test_assign_revoke_permission_request_dto.py deleted file mode 100644 index a8c813a746..0000000000 --- a/src/visier_api_administration/test/test_assign_revoke_permission_request_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.assign_revoke_permission_request_dto import AssignRevokePermissionRequestDTO - -class TestAssignRevokePermissionRequestDTO(unittest.TestCase): - """AssignRevokePermissionRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AssignRevokePermissionRequestDTO: - """Test AssignRevokePermissionRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AssignRevokePermissionRequestDTO( - permission_id = '', - user_ids = [ - '' - ] - ) - else: - return AssignRevokePermissionRequestDTO( - ) - - def testAssignRevokePermissionRequestDTO(self): - """Test AssignRevokePermissionRequestDTO""" - def validate_instance(instance): - AssignRevokePermissionRequestDTO.model_validate(inst_req_only) - instance_deserialized = AssignRevokePermissionRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_assign_revoke_permissions_request_dto.py b/src/visier_api_administration/test/test_assign_revoke_permissions_request_dto.py deleted file mode 100644 index 6f7ccb5077..0000000000 --- a/src/visier_api_administration/test/test_assign_revoke_permissions_request_dto.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.assign_revoke_permissions_request_dto import AssignRevokePermissionsRequestDTO - -class TestAssignRevokePermissionsRequestDTO(unittest.TestCase): - """AssignRevokePermissionsRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AssignRevokePermissionsRequestDTO: - """Test AssignRevokePermissionsRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AssignRevokePermissionsRequestDTO( - permissions = [ - visier_api_administration.models.assign_revoke_permission_request_dto.AssignRevokePermissionRequestDTO( - permission_id = '', - user_ids = [ - '' - ], ) - ], - target_project_for_tenants_list = visier_api_administration.models.target_project_for_tenants_list_dto.TargetProjectForTenantsListDTO( - target_project_for_tenants = [ - visier_api_administration.models.target_project_for_tenant_dto.TargetProjectForTenantDTO( - project_id = '', - tenant_code = '', ) - ], ) - ) - else: - return AssignRevokePermissionsRequestDTO( - ) - - def testAssignRevokePermissionsRequestDTO(self): - """Test AssignRevokePermissionsRequestDTO""" - def validate_instance(instance): - AssignRevokePermissionsRequestDTO.model_validate(inst_req_only) - instance_deserialized = AssignRevokePermissionsRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_assign_revoke_permissions_response_dto.py b/src/visier_api_administration/test/test_assign_revoke_permissions_response_dto.py deleted file mode 100644 index 2ad715e31a..0000000000 --- a/src/visier_api_administration/test/test_assign_revoke_permissions_response_dto.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.assign_revoke_permissions_response_dto import AssignRevokePermissionsResponseDTO - -class TestAssignRevokePermissionsResponseDTO(unittest.TestCase): - """AssignRevokePermissionsResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AssignRevokePermissionsResponseDTO: - """Test AssignRevokePermissionsResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AssignRevokePermissionsResponseDTO( - tenants = [ - visier_api_administration.models.assign_revoke_permission_by_tenant_dto.AssignRevokePermissionByTenantDTO( - message = '', - permissions = [ - visier_api_administration.models.assign_revoke_permission_by_permission_dto.AssignRevokePermissionByPermissionDTO( - permission = visier_api_administration.models.permission_assigned_for_local_tenant_dto.PermissionAssignedForLocalTenantDTO( - description = '', - display_name = '', - permission_id = '', ), - users = [ - visier_api_administration.models.assign_revoke_permission_by_user_dto.AssignRevokePermissionByUserDTO( - message = '', - user_id = '', - username = '', ) - ], ) - ], - project_id = '', - status = 'Unknown', - tenant_code = '', ) - ] - ) - else: - return AssignRevokePermissionsResponseDTO( - ) - - def testAssignRevokePermissionsResponseDTO(self): - """Test AssignRevokePermissionsResponseDTO""" - def validate_instance(instance): - AssignRevokePermissionsResponseDTO.model_validate(inst_req_only) - instance_deserialized = AssignRevokePermissionsResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_batch_tenant_provision_apidto.py b/src/visier_api_administration/test/test_batch_tenant_provision_apidto.py deleted file mode 100644 index 9b688aacd5..0000000000 --- a/src/visier_api_administration/test/test_batch_tenant_provision_apidto.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.batch_tenant_provision_apidto import BatchTenantProvisionAPIDTO - -class TestBatchTenantProvisionAPIDTO(unittest.TestCase): - """BatchTenantProvisionAPIDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BatchTenantProvisionAPIDTO: - """Test BatchTenantProvisionAPIDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return BatchTenantProvisionAPIDTO( - tenants = [ - visier_api_administration.models.tenant_provision_apidto.TenantProvisionAPIDTO( - allowed_o_auth_idp_url_domains = [ - '' - ], - custom_properties = [ - visier_api_administration.models.custom_tenant_property_dto.CustomTenantPropertyDTO( - key = '', - value = '', ) - ], - embeddable_domains = [ - '' - ], - industry_code = 56, - purchased_modules = [ - '' - ], - sso_instance_issuers = [ - '' - ], - tenant_code = '', - tenant_display_name = '', ) - ] - ) - else: - return BatchTenantProvisionAPIDTO( - ) - - def testBatchTenantProvisionAPIDTO(self): - """Test BatchTenantProvisionAPIDTO""" - def validate_instance(instance): - BatchTenantProvisionAPIDTO.model_validate(inst_req_only) - instance_deserialized = BatchTenantProvisionAPIDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_bulk_data_access_set_response_dto.py b/src/visier_api_administration/test/test_bulk_data_access_set_response_dto.py deleted file mode 100644 index 58097dcf45..0000000000 --- a/src/visier_api_administration/test/test_bulk_data_access_set_response_dto.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.bulk_data_access_set_response_dto import BulkDataAccessSetResponseDTO - -class TestBulkDataAccessSetResponseDTO(unittest.TestCase): - """BulkDataAccessSetResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BulkDataAccessSetResponseDTO: - """Test BulkDataAccessSetResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return BulkDataAccessSetResponseDTO( - failures = [ - visier_api_administration.models.data_access_set_failure_dto.DataAccessSetFailureDTO( - data_access_set_id = '', - display_name = '', - error = None, ) - ], - successes = [ - visier_api_administration.models.data_access_set_success_dto.DataAccessSetSuccessDTO( - data_access_set_id = '', - display_name = '', ) - ] - ) - else: - return BulkDataAccessSetResponseDTO( - ) - - def testBulkDataAccessSetResponseDTO(self): - """Test BulkDataAccessSetResponseDTO""" - def validate_instance(instance): - BulkDataAccessSetResponseDTO.model_validate(inst_req_only) - instance_deserialized = BulkDataAccessSetResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_business_location_dto.py b/src/visier_api_administration/test/test_business_location_dto.py deleted file mode 100644 index 4268b27512..0000000000 --- a/src/visier_api_administration/test/test_business_location_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.business_location_dto import BusinessLocationDTO - -class TestBusinessLocationDTO(unittest.TestCase): - """BusinessLocationDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BusinessLocationDTO: - """Test BusinessLocationDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return BusinessLocationDTO( - country_code = '', - postal_code = '' - ) - else: - return BusinessLocationDTO( - ) - - def testBusinessLocationDTO(self): - """Test BusinessLocationDTO""" - def validate_instance(instance): - BusinessLocationDTO.model_validate(inst_req_only) - instance_deserialized = BusinessLocationDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_capabilities_dto.py b/src/visier_api_administration/test/test_capabilities_dto.py deleted file mode 100644 index 53b6973fde..0000000000 --- a/src/visier_api_administration/test/test_capabilities_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.capabilities_dto import CapabilitiesDTO - -class TestCapabilitiesDTO(unittest.TestCase): - """CapabilitiesDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CapabilitiesDTO: - """Test CapabilitiesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CapabilitiesDTO( - access_level = '', - capability = '', - view_level = '' - ) - else: - return CapabilitiesDTO( - ) - - def testCapabilitiesDTO(self): - """Test CapabilitiesDTO""" - def validate_instance(instance): - CapabilitiesDTO.model_validate(inst_req_only) - instance_deserialized = CapabilitiesDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_capability_dto.py b/src/visier_api_administration/test/test_capability_dto.py deleted file mode 100644 index 2de5064281..0000000000 --- a/src/visier_api_administration/test/test_capability_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.capability_dto import CapabilityDTO - -class TestCapabilityDTO(unittest.TestCase): - """CapabilityDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CapabilityDTO: - """Test CapabilityDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CapabilityDTO( - description = '', - display_name = '', - name = '' - ) - else: - return CapabilityDTO( - ) - - def testCapabilityDTO(self): - """Test CapabilityDTO""" - def validate_instance(instance): - CapabilityDTO.model_validate(inst_req_only) - instance_deserialized = CapabilityDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_commit_and_publish_operation_response_dto.py b/src/visier_api_administration/test/test_commit_and_publish_operation_response_dto.py deleted file mode 100644 index 72a42e2043..0000000000 --- a/src/visier_api_administration/test/test_commit_and_publish_operation_response_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.commit_and_publish_operation_response_dto import CommitAndPublishOperationResponseDTO - -class TestCommitAndPublishOperationResponseDTO(unittest.TestCase): - """CommitAndPublishOperationResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CommitAndPublishOperationResponseDTO: - """Test CommitAndPublishOperationResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CommitAndPublishOperationResponseDTO( - published_version = visier_api_administration.models.project_dto.ProjectDTO( - capabilities = [ - 'canRead' - ], - description = '', - id = '', - name = '', - release_version = '', - ticket_number = '', - version_number = 56, ) - ) - else: - return CommitAndPublishOperationResponseDTO( - ) - - def testCommitAndPublishOperationResponseDTO(self): - """Test CommitAndPublishOperationResponseDTO""" - def validate_instance(instance): - CommitAndPublishOperationResponseDTO.model_validate(inst_req_only) - instance_deserialized = CommitAndPublishOperationResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_commit_dto.py b/src/visier_api_administration/test/test_commit_dto.py deleted file mode 100644 index 2d6201f504..0000000000 --- a/src/visier_api_administration/test/test_commit_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.commit_dto import CommitDTO - -class TestCommitDTO(unittest.TestCase): - """CommitDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CommitDTO: - """Test CommitDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CommitDTO( - description = '', - id = '', - name = '' - ) - else: - return CommitDTO( - ) - - def testCommitDTO(self): - """Test CommitDTO""" - def validate_instance(instance): - CommitDTO.model_validate(inst_req_only) - instance_deserialized = CommitDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_consolidated_analytics_api.py b/src/visier_api_administration/test/test_consolidated_analytics_api.py index e79ed55c04..0f0468cf32 100644 --- a/src/visier_api_administration/test/test_consolidated_analytics_api.py +++ b/src/visier_api_administration/test/test_consolidated_analytics_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_consolidated_analytics_api_excluded_source_list_dto.py b/src/visier_api_administration/test/test_consolidated_analytics_api_excluded_source_list_dto.py deleted file mode 100644 index d109b0aeb4..0000000000 --- a/src/visier_api_administration/test/test_consolidated_analytics_api_excluded_source_list_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.consolidated_analytics_api_excluded_source_list_dto import ConsolidatedAnalyticsAPIExcludedSourceListDTO - -class TestConsolidatedAnalyticsAPIExcludedSourceListDTO(unittest.TestCase): - """ConsolidatedAnalyticsAPIExcludedSourceListDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConsolidatedAnalyticsAPIExcludedSourceListDTO: - """Test ConsolidatedAnalyticsAPIExcludedSourceListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ConsolidatedAnalyticsAPIExcludedSourceListDTO( - excluded_sources = [ - '' - ] - ) - else: - return ConsolidatedAnalyticsAPIExcludedSourceListDTO( - ) - - def testConsolidatedAnalyticsAPIExcludedSourceListDTO(self): - """Test ConsolidatedAnalyticsAPIExcludedSourceListDTO""" - def validate_instance(instance): - ConsolidatedAnalyticsAPIExcludedSourceListDTO.model_validate(inst_req_only) - instance_deserialized = ConsolidatedAnalyticsAPIExcludedSourceListDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_consolidated_analytics_api_source_tenant_list_dto.py b/src/visier_api_administration/test/test_consolidated_analytics_api_source_tenant_list_dto.py deleted file mode 100644 index 2d85b85457..0000000000 --- a/src/visier_api_administration/test/test_consolidated_analytics_api_source_tenant_list_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.consolidated_analytics_api_source_tenant_list_dto import ConsolidatedAnalyticsAPISourceTenantListDTO - -class TestConsolidatedAnalyticsAPISourceTenantListDTO(unittest.TestCase): - """ConsolidatedAnalyticsAPISourceTenantListDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConsolidatedAnalyticsAPISourceTenantListDTO: - """Test ConsolidatedAnalyticsAPISourceTenantListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ConsolidatedAnalyticsAPISourceTenantListDTO( - tenant_codes = [ - '' - ] - ) - else: - return ConsolidatedAnalyticsAPISourceTenantListDTO( - ) - - def testConsolidatedAnalyticsAPISourceTenantListDTO(self): - """Test ConsolidatedAnalyticsAPISourceTenantListDTO""" - def validate_instance(instance): - ConsolidatedAnalyticsAPISourceTenantListDTO.model_validate(inst_req_only) - instance_deserialized = ConsolidatedAnalyticsAPISourceTenantListDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_consolidated_analytics_api_tenant_create_request_dto.py b/src/visier_api_administration/test/test_consolidated_analytics_api_tenant_create_request_dto.py deleted file mode 100644 index 2fda73099d..0000000000 --- a/src/visier_api_administration/test/test_consolidated_analytics_api_tenant_create_request_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.consolidated_analytics_api_tenant_create_request_dto import ConsolidatedAnalyticsAPITenantCreateRequestDTO - -class TestConsolidatedAnalyticsAPITenantCreateRequestDTO(unittest.TestCase): - """ConsolidatedAnalyticsAPITenantCreateRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConsolidatedAnalyticsAPITenantCreateRequestDTO: - """Test ConsolidatedAnalyticsAPITenantCreateRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ConsolidatedAnalyticsAPITenantCreateRequestDTO( - tenant_code = '' - ) - else: - return ConsolidatedAnalyticsAPITenantCreateRequestDTO( - ) - - def testConsolidatedAnalyticsAPITenantCreateRequestDTO(self): - """Test ConsolidatedAnalyticsAPITenantCreateRequestDTO""" - def validate_instance(instance): - ConsolidatedAnalyticsAPITenantCreateRequestDTO.model_validate(inst_req_only) - instance_deserialized = ConsolidatedAnalyticsAPITenantCreateRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_consolidated_analytics_api_tenant_list_response_dto.py b/src/visier_api_administration/test/test_consolidated_analytics_api_tenant_list_response_dto.py deleted file mode 100644 index 2844475a6b..0000000000 --- a/src/visier_api_administration/test/test_consolidated_analytics_api_tenant_list_response_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.consolidated_analytics_api_tenant_list_response_dto import ConsolidatedAnalyticsAPITenantListResponseDTO - -class TestConsolidatedAnalyticsAPITenantListResponseDTO(unittest.TestCase): - """ConsolidatedAnalyticsAPITenantListResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConsolidatedAnalyticsAPITenantListResponseDTO: - """Test ConsolidatedAnalyticsAPITenantListResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ConsolidatedAnalyticsAPITenantListResponseDTO( - tenant_codes = [ - '' - ] - ) - else: - return ConsolidatedAnalyticsAPITenantListResponseDTO( - ) - - def testConsolidatedAnalyticsAPITenantListResponseDTO(self): - """Test ConsolidatedAnalyticsAPITenantListResponseDTO""" - def validate_instance(instance): - ConsolidatedAnalyticsAPITenantListResponseDTO.model_validate(inst_req_only) - instance_deserialized = ConsolidatedAnalyticsAPITenantListResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_consolidated_analytics_api_tenant_with_details.py b/src/visier_api_administration/test/test_consolidated_analytics_api_tenant_with_details.py deleted file mode 100644 index 35dd46b5de..0000000000 --- a/src/visier_api_administration/test/test_consolidated_analytics_api_tenant_with_details.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.consolidated_analytics_api_tenant_with_details import ConsolidatedAnalyticsAPITenantWithDetails - -class TestConsolidatedAnalyticsAPITenantWithDetails(unittest.TestCase): - """ConsolidatedAnalyticsAPITenantWithDetails unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConsolidatedAnalyticsAPITenantWithDetails: - """Test ConsolidatedAnalyticsAPITenantWithDetails - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ConsolidatedAnalyticsAPITenantWithDetails( - excluded_sources_list = [ - '' - ], - source_tenants_list = [ - '' - ], - tenant_code = '' - ) - else: - return ConsolidatedAnalyticsAPITenantWithDetails( - ) - - def testConsolidatedAnalyticsAPITenantWithDetails(self): - """Test ConsolidatedAnalyticsAPITenantWithDetails""" - def validate_instance(instance): - ConsolidatedAnalyticsAPITenantWithDetails.model_validate(inst_req_only) - instance_deserialized = ConsolidatedAnalyticsAPITenantWithDetails.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_consolidated_analytics_api_tenant_with_details_list_response_dto.py b/src/visier_api_administration/test/test_consolidated_analytics_api_tenant_with_details_list_response_dto.py deleted file mode 100644 index 59051e1d1a..0000000000 --- a/src/visier_api_administration/test/test_consolidated_analytics_api_tenant_with_details_list_response_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.consolidated_analytics_api_tenant_with_details_list_response_dto import ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO - -class TestConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO(unittest.TestCase): - """ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO: - """Test ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO( - tenants = [ - visier_api_administration.models.consolidated_analytics_api_tenant_with_details.ConsolidatedAnalyticsAPITenantWithDetails( - excluded_sources_list = [ - '' - ], - source_tenants_list = [ - '' - ], - tenant_code = '', ) - ] - ) - else: - return ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO( - ) - - def testConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO(self): - """Test ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO""" - def validate_instance(instance): - ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO.model_validate(inst_req_only) - instance_deserialized = ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_content_package_dto.py b/src/visier_api_administration/test/test_content_package_dto.py deleted file mode 100644 index 0097d3e79a..0000000000 --- a/src/visier_api_administration/test/test_content_package_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.content_package_dto import ContentPackageDTO - -class TestContentPackageDTO(unittest.TestCase): - """ContentPackageDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ContentPackageDTO: - """Test ContentPackageDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ContentPackageDTO( - content_package_id = '', - description = '', - display_name = '' - ) - else: - return ContentPackageDTO( - ) - - def testContentPackageDTO(self): - """Test ContentPackageDTO""" - def validate_instance(instance): - ContentPackageDTO.model_validate(inst_req_only) - instance_deserialized = ContentPackageDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_create_data_access_set_request_dto.py b/src/visier_api_administration/test/test_create_data_access_set_request_dto.py deleted file mode 100644 index 0be8b9415a..0000000000 --- a/src/visier_api_administration/test/test_create_data_access_set_request_dto.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.create_data_access_set_request_dto import CreateDataAccessSetRequestDTO - -class TestCreateDataAccessSetRequestDTO(unittest.TestCase): - """CreateDataAccessSetRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateDataAccessSetRequestDTO: - """Test CreateDataAccessSetRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CreateDataAccessSetRequestDTO( - shareable_property_access_configs = [ - visier_api_administration.models.data_access_set_dto.DataAccessSetDTO( - analytic_object_id = '', - description = '', - display_name = '', - id = '', - property_access_configs = [ - visier_api_administration.models.property_access_config_dto.PropertyAccessConfigDTO( - access_level = 'None', - analytic_object_id = '', - analytic_object_reference_paths = [ - '' - ], - property_id = '', - property_status = 'Unset', ) - ], ) - ] - ) - else: - return CreateDataAccessSetRequestDTO( - ) - - def testCreateDataAccessSetRequestDTO(self): - """Test CreateDataAccessSetRequestDTO""" - def validate_instance(instance): - CreateDataAccessSetRequestDTO.model_validate(inst_req_only) - instance_deserialized = CreateDataAccessSetRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_custom_property_dto.py b/src/visier_api_administration/test/test_custom_property_dto.py deleted file mode 100644 index 489384edab..0000000000 --- a/src/visier_api_administration/test/test_custom_property_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.custom_property_dto import CustomPropertyDTO - -class TestCustomPropertyDTO(unittest.TestCase): - """CustomPropertyDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomPropertyDTO: - """Test CustomPropertyDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CustomPropertyDTO( - key = '', - value = '' - ) - else: - return CustomPropertyDTO( - ) - - def testCustomPropertyDTO(self): - """Test CustomPropertyDTO""" - def validate_instance(instance): - CustomPropertyDTO.model_validate(inst_req_only) - instance_deserialized = CustomPropertyDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_custom_tenant_property_dto.py b/src/visier_api_administration/test/test_custom_tenant_property_dto.py deleted file mode 100644 index 527977e794..0000000000 --- a/src/visier_api_administration/test/test_custom_tenant_property_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.custom_tenant_property_dto import CustomTenantPropertyDTO - -class TestCustomTenantPropertyDTO(unittest.TestCase): - """CustomTenantPropertyDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomTenantPropertyDTO: - """Test CustomTenantPropertyDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CustomTenantPropertyDTO( - key = '', - value = '' - ) - else: - return CustomTenantPropertyDTO( - ) - - def testCustomTenantPropertyDTO(self): - """Test CustomTenantPropertyDTO""" - def validate_instance(instance): - CustomTenantPropertyDTO.model_validate(inst_req_only) - instance_deserialized = CustomTenantPropertyDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_data_access_set_dto.py b/src/visier_api_administration/test/test_data_access_set_dto.py deleted file mode 100644 index 7e4755bb16..0000000000 --- a/src/visier_api_administration/test/test_data_access_set_dto.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.data_access_set_dto import DataAccessSetDTO - -class TestDataAccessSetDTO(unittest.TestCase): - """DataAccessSetDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataAccessSetDTO: - """Test DataAccessSetDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataAccessSetDTO( - analytic_object_id = '', - description = '', - display_name = '', - id = '', - property_access_configs = [ - visier_api_administration.models.property_access_config_dto.PropertyAccessConfigDTO( - access_level = 'None', - analytic_object_id = '', - analytic_object_reference_paths = [ - '' - ], - property_id = '', - property_status = 'Unset', ) - ] - ) - else: - return DataAccessSetDTO( - ) - - def testDataAccessSetDTO(self): - """Test DataAccessSetDTO""" - def validate_instance(instance): - DataAccessSetDTO.model_validate(inst_req_only) - instance_deserialized = DataAccessSetDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_data_access_set_error_dto.py b/src/visier_api_administration/test/test_data_access_set_error_dto.py deleted file mode 100644 index 6b1dc53ffa..0000000000 --- a/src/visier_api_administration/test/test_data_access_set_error_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.data_access_set_error_dto import DataAccessSetErrorDTO - -class TestDataAccessSetErrorDTO(unittest.TestCase): - """DataAccessSetErrorDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataAccessSetErrorDTO: - """Test DataAccessSetErrorDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataAccessSetErrorDTO( - message = '', - rci = '' - ) - else: - return DataAccessSetErrorDTO( - ) - - def testDataAccessSetErrorDTO(self): - """Test DataAccessSetErrorDTO""" - def validate_instance(instance): - DataAccessSetErrorDTO.model_validate(inst_req_only) - instance_deserialized = DataAccessSetErrorDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_data_access_set_failure_dto.py b/src/visier_api_administration/test/test_data_access_set_failure_dto.py deleted file mode 100644 index 2e2827d8fb..0000000000 --- a/src/visier_api_administration/test/test_data_access_set_failure_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.data_access_set_failure_dto import DataAccessSetFailureDTO - -class TestDataAccessSetFailureDTO(unittest.TestCase): - """DataAccessSetFailureDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataAccessSetFailureDTO: - """Test DataAccessSetFailureDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataAccessSetFailureDTO( - data_access_set_id = '', - display_name = '', - error = visier_api_administration.models.data_access_set_error_dto.DataAccessSetErrorDTO( - message = '', - rci = '', ) - ) - else: - return DataAccessSetFailureDTO( - ) - - def testDataAccessSetFailureDTO(self): - """Test DataAccessSetFailureDTO""" - def validate_instance(instance): - DataAccessSetFailureDTO.model_validate(inst_req_only) - instance_deserialized = DataAccessSetFailureDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_data_access_set_success_dto.py b/src/visier_api_administration/test/test_data_access_set_success_dto.py deleted file mode 100644 index 9c53f1d707..0000000000 --- a/src/visier_api_administration/test/test_data_access_set_success_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.data_access_set_success_dto import DataAccessSetSuccessDTO - -class TestDataAccessSetSuccessDTO(unittest.TestCase): - """DataAccessSetSuccessDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataAccessSetSuccessDTO: - """Test DataAccessSetSuccessDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataAccessSetSuccessDTO( - data_access_set_id = '', - display_name = '' - ) - else: - return DataAccessSetSuccessDTO( - ) - - def testDataAccessSetSuccessDTO(self): - """Test DataAccessSetSuccessDTO""" - def validate_instance(instance): - DataAccessSetSuccessDTO.model_validate(inst_req_only) - instance_deserialized = DataAccessSetSuccessDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_data_security_profile_dto.py b/src/visier_api_administration/test/test_data_security_profile_dto.py deleted file mode 100644 index c30e4b72c1..0000000000 --- a/src/visier_api_administration/test/test_data_security_profile_dto.py +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.data_security_profile_dto import DataSecurityProfileDTO - -class TestDataSecurityProfileDTO(unittest.TestCase): - """DataSecurityProfileDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataSecurityProfileDTO: - """Test DataSecurityProfileDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataSecurityProfileDTO( - all_data_point_access = True, - analytic_object_id = '', - analytic_object_status = 'Unset', - inherited_access_configs = [ - visier_api_administration.models.inherited_access_config_dto.InheritedAccessConfigDTO( - analytic_object_id = '', - member_filter_configs = [ - visier_api_administration.models.member_filter_config_dto.MemberFilterConfigDTO( - dimension_filters = [ - visier_api_administration.models.dimension_filter_dto.DimensionFilterDTO( - dynamic_dimension_filter = visier_api_administration.models.dynamic_dimension_filter_dto.DynamicDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - dynamic_property_mappings = [ - visier_api_administration.models.dynamic_property_mapping_dto.DynamicPropertyMappingDTO( - hierarchy_property_id = '', - hierarchy_property_status = 'Unset', - user_property = None, ) - ], - subject_reference_path = [ - '' - ], ), - static_dimension_filter = visier_api_administration.models.static_dimension_filter_dto.StaticDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - member_selections = [ - visier_api_administration.models.member_selection_dto.MemberSelectionDTO( - dimension_member_status = 'Unset', - excluded = True, - name_path = [ - '' - ], ) - ], ), ) - ], ) - ], - remove_access = True, ) - ], - inherited_reference_member_filter_config = visier_api_administration.models.inherited_reference_member_filter_config_dto.InheritedReferenceMemberFilterConfigDTO( - analytic_object_reference = '', - target_analytic_object_id = '', ), - member_filter_configs = [ - visier_api_administration.models.member_filter_config_dto.MemberFilterConfigDTO( - dimension_filters = [ - visier_api_administration.models.dimension_filter_dto.DimensionFilterDTO( - dynamic_dimension_filter = visier_api_administration.models.dynamic_dimension_filter_dto.DynamicDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - dynamic_property_mappings = [ - visier_api_administration.models.dynamic_property_mapping_dto.DynamicPropertyMappingDTO( - hierarchy_property_id = '', - hierarchy_property_status = 'Unset', - user_property = None, ) - ], - subject_reference_path = [ - '' - ], ), - static_dimension_filter = visier_api_administration.models.static_dimension_filter_dto.StaticDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - member_selections = [ - visier_api_administration.models.member_selection_dto.MemberSelectionDTO( - dimension_member_status = 'Unset', - excluded = True, - name_path = [ - '' - ], ) - ], ), ) - ], ) - ], - property_set_config = visier_api_administration.models.property_set_config_dto.PropertySetConfigDTO( - property_access_configs = [ - visier_api_administration.models.property_access_config_dto.PropertyAccessConfigDTO( - access_level = 'None', - analytic_object_id = '', - analytic_object_reference_paths = [ - '' - ], - property_id = '', - property_status = 'Unset', ) - ], - shareable_data_access_set = None, ) - ) - else: - return DataSecurityProfileDTO( - ) - - def testDataSecurityProfileDTO(self): - """Test DataSecurityProfileDTO""" - def validate_instance(instance): - DataSecurityProfileDTO.model_validate(inst_req_only) - instance_deserialized = DataSecurityProfileDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_delete_permissions_request_dto.py b/src/visier_api_administration/test/test_delete_permissions_request_dto.py deleted file mode 100644 index 5afba150ec..0000000000 --- a/src/visier_api_administration/test/test_delete_permissions_request_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.delete_permissions_request_dto import DeletePermissionsRequestDTO - -class TestDeletePermissionsRequestDTO(unittest.TestCase): - """DeletePermissionsRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DeletePermissionsRequestDTO: - """Test DeletePermissionsRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DeletePermissionsRequestDTO( - permission_ids = [ - '' - ] - ) - else: - return DeletePermissionsRequestDTO( - ) - - def testDeletePermissionsRequestDTO(self): - """Test DeletePermissionsRequestDTO""" - def validate_instance(instance): - DeletePermissionsRequestDTO.model_validate(inst_req_only) - instance_deserialized = DeletePermissionsRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_delete_user_group_v2_request.py b/src/visier_api_administration/test/test_delete_user_group_v2_request.py deleted file mode 100644 index e4ece85355..0000000000 --- a/src/visier_api_administration/test/test_delete_user_group_v2_request.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.delete_user_group_v2_request import DeleteUserGroupV2Request - -class TestDeleteUserGroupV2Request(unittest.TestCase): - """DeleteUserGroupV2Request unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DeleteUserGroupV2Request: - """Test DeleteUserGroupV2Request - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DeleteUserGroupV2Request( - user_group_id = '' - ) - else: - return DeleteUserGroupV2Request( - ) - - def testDeleteUserGroupV2Request(self): - """Test DeleteUserGroupV2Request""" - def validate_instance(instance): - DeleteUserGroupV2Request.model_validate(inst_req_only) - instance_deserialized = DeleteUserGroupV2Request.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_designer_crypto_generate_key_request_dto.py b/src/visier_api_administration/test/test_designer_crypto_generate_key_request_dto.py new file mode 100644 index 0000000000..f6c4962c93 --- /dev/null +++ b/src/visier_api_administration/test/test_designer_crypto_generate_key_request_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.designer_crypto_generate_key_request_dto import DesignerCryptoGenerateKeyRequestDTO + +class TestDesignerCryptoGenerateKeyRequestDTO(unittest.TestCase): + """DesignerCryptoGenerateKeyRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerCryptoGenerateKeyRequestDTO: + """Test DesignerCryptoGenerateKeyRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerCryptoGenerateKeyRequestDTO( + algorithm = '', + expiry_date = '', + key_name = '' + ) + else: + return DesignerCryptoGenerateKeyRequestDTO( + ) + + def testDesignerCryptoGenerateKeyRequestDTO(self): + """Test DesignerCryptoGenerateKeyRequestDTO""" + def validate_instance(instance): + DesignerCryptoGenerateKeyRequestDTO.model_validate(inst_req_only) + instance_deserialized = DesignerCryptoGenerateKeyRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_designer_crypto_tenant_encryption_key_details_dto.py b/src/visier_api_administration/test/test_designer_crypto_tenant_encryption_key_details_dto.py new file mode 100644 index 0000000000..63a00274e5 --- /dev/null +++ b/src/visier_api_administration/test/test_designer_crypto_tenant_encryption_key_details_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.designer_crypto_tenant_encryption_key_details_dto import DesignerCryptoTenantEncryptionKeyDetailsDTO + +class TestDesignerCryptoTenantEncryptionKeyDetailsDTO(unittest.TestCase): + """DesignerCryptoTenantEncryptionKeyDetailsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerCryptoTenantEncryptionKeyDetailsDTO: + """Test DesignerCryptoTenantEncryptionKeyDetailsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerCryptoTenantEncryptionKeyDetailsDTO( + algorithm = '', + date_generated = '', + expiry_date = '', + generated_by = '', + key_name = '' + ) + else: + return DesignerCryptoTenantEncryptionKeyDetailsDTO( + ) + + def testDesignerCryptoTenantEncryptionKeyDetailsDTO(self): + """Test DesignerCryptoTenantEncryptionKeyDetailsDTO""" + def validate_instance(instance): + DesignerCryptoTenantEncryptionKeyDetailsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerCryptoTenantEncryptionKeyDetailsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_designer_crypto_tenant_encryption_key_dto.py b/src/visier_api_administration/test/test_designer_crypto_tenant_encryption_key_dto.py new file mode 100644 index 0000000000..c379092607 --- /dev/null +++ b/src/visier_api_administration/test/test_designer_crypto_tenant_encryption_key_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.designer_crypto_tenant_encryption_key_dto import DesignerCryptoTenantEncryptionKeyDTO + +class TestDesignerCryptoTenantEncryptionKeyDTO(unittest.TestCase): + """DesignerCryptoTenantEncryptionKeyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerCryptoTenantEncryptionKeyDTO: + """Test DesignerCryptoTenantEncryptionKeyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerCryptoTenantEncryptionKeyDTO( + detail = visier_api_administration.models.designer/crypto/tenant_encryption_key_details_dto.designer.crypto.TenantEncryptionKeyDetailsDTO( + algorithm = '', + date_generated = '', + expiry_date = '', + generated_by = '', + key_name = '', ), + key = '' + ) + else: + return DesignerCryptoTenantEncryptionKeyDTO( + ) + + def testDesignerCryptoTenantEncryptionKeyDTO(self): + """Test DesignerCryptoTenantEncryptionKeyDTO""" + def validate_instance(instance): + DesignerCryptoTenantEncryptionKeyDTO.model_validate(inst_req_only) + instance_deserialized = DesignerCryptoTenantEncryptionKeyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_designer_transfers_module_settings_dto.py b/src/visier_api_administration/test/test_designer_transfers_module_settings_dto.py new file mode 100644 index 0000000000..b96868d86b --- /dev/null +++ b/src/visier_api_administration/test/test_designer_transfers_module_settings_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.designer_transfers_module_settings_dto import DesignerTransfersModuleSettingsDTO + +class TestDesignerTransfersModuleSettingsDTO(unittest.TestCase): + """DesignerTransfersModuleSettingsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersModuleSettingsDTO: + """Test DesignerTransfersModuleSettingsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersModuleSettingsDTO( + locale = '', + special_handling_instruction = '', + unavailable_for_assignment = True + ) + else: + return DesignerTransfersModuleSettingsDTO( + ) + + def testDesignerTransfersModuleSettingsDTO(self): + """Test DesignerTransfersModuleSettingsDTO""" + def validate_instance(instance): + DesignerTransfersModuleSettingsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersModuleSettingsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_designer_transfers_tenant_module_dto.py b/src/visier_api_administration/test/test_designer_transfers_tenant_module_dto.py new file mode 100644 index 0000000000..437edbf8fa --- /dev/null +++ b/src/visier_api_administration/test/test_designer_transfers_tenant_module_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.designer_transfers_tenant_module_dto import DesignerTransfersTenantModuleDTO + +class TestDesignerTransfersTenantModuleDTO(unittest.TestCase): + """DesignerTransfersTenantModuleDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersTenantModuleDTO: + """Test DesignerTransfersTenantModuleDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersTenantModuleDTO( + display_name = '', + module_settings = visier_api_administration.models.designer/transfers/module_settings_dto.designer.transfers.ModuleSettingsDTO( + locale = '', + special_handling_instruction = '', + unavailable_for_assignment = True, ), + symbol_name = '' + ) + else: + return DesignerTransfersTenantModuleDTO( + ) + + def testDesignerTransfersTenantModuleDTO(self): + """Test DesignerTransfersTenantModuleDTO""" + def validate_instance(instance): + DesignerTransfersTenantModuleDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersTenantModuleDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_dimension_filter_dto.py b/src/visier_api_administration/test/test_dimension_filter_dto.py deleted file mode 100644 index 42b6ece262..0000000000 --- a/src/visier_api_administration/test/test_dimension_filter_dto.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.dimension_filter_dto import DimensionFilterDTO - -class TestDimensionFilterDTO(unittest.TestCase): - """DimensionFilterDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DimensionFilterDTO: - """Test DimensionFilterDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DimensionFilterDTO( - dynamic_dimension_filter = visier_api_administration.models.dynamic_dimension_filter_dto.DynamicDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - dynamic_property_mappings = [ - visier_api_administration.models.dynamic_property_mapping_dto.DynamicPropertyMappingDTO( - hierarchy_property_id = '', - hierarchy_property_status = 'Unset', - user_property = None, ) - ], - subject_reference_path = [ - '' - ], ), - static_dimension_filter = visier_api_administration.models.static_dimension_filter_dto.StaticDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - member_selections = [ - visier_api_administration.models.member_selection_dto.MemberSelectionDTO( - dimension_member_status = 'Unset', - excluded = True, - name_path = [ - '' - ], ) - ], - subject_reference_path = [ - '' - ], ) - ) - else: - return DimensionFilterDTO( - ) - - def testDimensionFilterDTO(self): - """Test DimensionFilterDTO""" - def validate_instance(instance): - DimensionFilterDTO.model_validate(inst_req_only) - instance_deserialized = DimensionFilterDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_dp_automation_transfers_metric_validation_summary_dto.py b/src/visier_api_administration/test/test_dp_automation_transfers_metric_validation_summary_dto.py new file mode 100644 index 0000000000..401c8ce474 --- /dev/null +++ b/src/visier_api_administration/test/test_dp_automation_transfers_metric_validation_summary_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.dp_automation_transfers_metric_validation_summary_dto import DpAutomationTransfersMetricValidationSummaryDTO + +class TestDpAutomationTransfersMetricValidationSummaryDTO(unittest.TestCase): + """DpAutomationTransfersMetricValidationSummaryDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DpAutomationTransfersMetricValidationSummaryDTO: + """Test DpAutomationTransfersMetricValidationSummaryDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DpAutomationTransfersMetricValidationSummaryDTO( + display_name = '', + symbol_name = '', + value = 1.337 + ) + else: + return DpAutomationTransfersMetricValidationSummaryDTO( + ) + + def testDpAutomationTransfersMetricValidationSummaryDTO(self): + """Test DpAutomationTransfersMetricValidationSummaryDTO""" + def validate_instance(instance): + DpAutomationTransfersMetricValidationSummaryDTO.model_validate(inst_req_only) + instance_deserialized = DpAutomationTransfersMetricValidationSummaryDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_dp_automation_transfers_tenant_preview_entries_summary_dto.py b/src/visier_api_administration/test/test_dp_automation_transfers_tenant_preview_entries_summary_dto.py new file mode 100644 index 0000000000..c6696f4b79 --- /dev/null +++ b/src/visier_api_administration/test/test_dp_automation_transfers_tenant_preview_entries_summary_dto.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.dp_automation_transfers_tenant_preview_entries_summary_dto import DpAutomationTransfersTenantPreviewEntriesSummaryDTO + +class TestDpAutomationTransfersTenantPreviewEntriesSummaryDTO(unittest.TestCase): + """DpAutomationTransfersTenantPreviewEntriesSummaryDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DpAutomationTransfersTenantPreviewEntriesSummaryDTO: + """Test DpAutomationTransfersTenantPreviewEntriesSummaryDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DpAutomationTransfersTenantPreviewEntriesSummaryDTO( + data_version = '', + data_version_date = '', + metrics = [ + visier_api_administration.models.dp_automation/transfers/metric_validation_summary_dto.dp_automation.transfers.MetricValidationSummaryDTO( + display_name = '', + symbol_name = '', + value = 1.337, ) + ], + tenant_code = '' + ) + else: + return DpAutomationTransfersTenantPreviewEntriesSummaryDTO( + ) + + def testDpAutomationTransfersTenantPreviewEntriesSummaryDTO(self): + """Test DpAutomationTransfersTenantPreviewEntriesSummaryDTO""" + def validate_instance(instance): + DpAutomationTransfersTenantPreviewEntriesSummaryDTO.model_validate(inst_req_only) + instance_deserialized = DpAutomationTransfersTenantPreviewEntriesSummaryDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_dp_automation_transfers_tenant_preview_entries_summary_list_dto.py b/src/visier_api_administration/test/test_dp_automation_transfers_tenant_preview_entries_summary_list_dto.py new file mode 100644 index 0000000000..db971f66a4 --- /dev/null +++ b/src/visier_api_administration/test/test_dp_automation_transfers_tenant_preview_entries_summary_list_dto.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.dp_automation_transfers_tenant_preview_entries_summary_list_dto import DpAutomationTransfersTenantPreviewEntriesSummaryListDTO + +class TestDpAutomationTransfersTenantPreviewEntriesSummaryListDTO(unittest.TestCase): + """DpAutomationTransfersTenantPreviewEntriesSummaryListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DpAutomationTransfersTenantPreviewEntriesSummaryListDTO: + """Test DpAutomationTransfersTenantPreviewEntriesSummaryListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DpAutomationTransfersTenantPreviewEntriesSummaryListDTO( + limit = 56, + start = 56, + tenants = [ + visier_api_administration.models.dp_automation/transfers/tenant_preview_entries_summary_dto.dp_automation.transfers.TenantPreviewEntriesSummaryDTO( + data_version = '', + data_version_date = '', + metrics = [ + visier_api_administration.models.dp_automation/transfers/metric_validation_summary_dto.dp_automation.transfers.MetricValidationSummaryDTO( + display_name = '', + symbol_name = '', + value = 1.337, ) + ], + tenant_code = '', ) + ] + ) + else: + return DpAutomationTransfersTenantPreviewEntriesSummaryListDTO( + ) + + def testDpAutomationTransfersTenantPreviewEntriesSummaryListDTO(self): + """Test DpAutomationTransfersTenantPreviewEntriesSummaryListDTO""" + def validate_instance(instance): + DpAutomationTransfersTenantPreviewEntriesSummaryListDTO.model_validate(inst_req_only) + instance_deserialized = DpAutomationTransfersTenantPreviewEntriesSummaryListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_dynamic_dimension_filter_dto.py b/src/visier_api_administration/test/test_dynamic_dimension_filter_dto.py deleted file mode 100644 index 3d2bc8fa89..0000000000 --- a/src/visier_api_administration/test/test_dynamic_dimension_filter_dto.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.dynamic_dimension_filter_dto import DynamicDimensionFilterDTO - -class TestDynamicDimensionFilterDTO(unittest.TestCase): - """DynamicDimensionFilterDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DynamicDimensionFilterDTO: - """Test DynamicDimensionFilterDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DynamicDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - dynamic_property_mappings = [ - visier_api_administration.models.dynamic_property_mapping_dto.DynamicPropertyMappingDTO( - hierarchy_property_id = '', - hierarchy_property_status = 'Unset', - user_property = None, ) - ], - subject_reference_path = [ - '' - ] - ) - else: - return DynamicDimensionFilterDTO( - ) - - def testDynamicDimensionFilterDTO(self): - """Test DynamicDimensionFilterDTO""" - def validate_instance(instance): - DynamicDimensionFilterDTO.model_validate(inst_req_only) - instance_deserialized = DynamicDimensionFilterDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_dynamic_property_mapping_dto.py b/src/visier_api_administration/test/test_dynamic_property_mapping_dto.py deleted file mode 100644 index 3b835fec8d..0000000000 --- a/src/visier_api_administration/test/test_dynamic_property_mapping_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.dynamic_property_mapping_dto import DynamicPropertyMappingDTO - -class TestDynamicPropertyMappingDTO(unittest.TestCase): - """DynamicPropertyMappingDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DynamicPropertyMappingDTO: - """Test DynamicPropertyMappingDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DynamicPropertyMappingDTO( - hierarchy_property_id = '', - hierarchy_property_status = 'Unset', - user_property = visier_api_administration.models.user_property_dto.UserPropertyDTO( - name = '', ) - ) - else: - return DynamicPropertyMappingDTO( - ) - - def testDynamicPropertyMappingDTO(self): - """Test DynamicPropertyMappingDTO""" - def validate_instance(instance): - DynamicPropertyMappingDTO.model_validate(inst_req_only) - instance_deserialized = DynamicPropertyMappingDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_element_ids_dto.py b/src/visier_api_administration/test/test_element_ids_dto.py deleted file mode 100644 index 721224dca5..0000000000 --- a/src/visier_api_administration/test/test_element_ids_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.element_ids_dto import ElementIDsDTO - -class TestElementIDsDTO(unittest.TestCase): - """ElementIDsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ElementIDsDTO: - """Test ElementIDsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ElementIDsDTO( - ids = [ - '' - ] - ) - else: - return ElementIDsDTO( - ) - - def testElementIDsDTO(self): - """Test ElementIDsDTO""" - def validate_instance(instance): - ElementIDsDTO.model_validate(inst_req_only) - instance_deserialized = ElementIDsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_email_domains_api.py b/src/visier_api_administration/test/test_email_domains_api.py index 72bd225b5f..2ac2f6ed5b 100644 --- a/src/visier_api_administration/test/test_email_domains_api.py +++ b/src/visier_api_administration/test/test_email_domains_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_email_domains_dto.py b/src/visier_api_administration/test/test_email_domains_dto.py deleted file mode 100644 index 9cec9e251f..0000000000 --- a/src/visier_api_administration/test/test_email_domains_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.email_domains_dto import EmailDomainsDTO - -class TestEmailDomainsDTO(unittest.TestCase): - """EmailDomainsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EmailDomainsDTO: - """Test EmailDomainsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return EmailDomainsDTO( - confirm_not_allowed_domain = True, - domains = [ - '' - ] - ) - else: - return EmailDomainsDTO( - ) - - def testEmailDomainsDTO(self): - """Test EmailDomainsDTO""" - def validate_instance(instance): - EmailDomainsDTO.model_validate(inst_req_only) - instance_deserialized = EmailDomainsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_encryption_keys_api.py b/src/visier_api_administration/test/test_encryption_keys_api.py index 4b2438de2c..e829586aef 100644 --- a/src/visier_api_administration/test/test_encryption_keys_api.py +++ b/src/visier_api_administration/test/test_encryption_keys_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_error_dto.py b/src/visier_api_administration/test/test_error_dto.py deleted file mode 100644 index 87a9233321..0000000000 --- a/src/visier_api_administration/test/test_error_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.error_dto import ErrorDTO - -class TestErrorDTO(unittest.TestCase): - """ErrorDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ErrorDTO: - """Test ErrorDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ErrorDTO( - error_code = '', - error_message = '', - root_cause_id = '' - ) - else: - return ErrorDTO( - ) - - def testErrorDTO(self): - """Test ErrorDTO""" - def validate_instance(instance): - ErrorDTO.model_validate(inst_req_only) - instance_deserialized = ErrorDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_excluded_sources_body.py b/src/visier_api_administration/test/test_excluded_sources_body.py deleted file mode 100644 index 57adf7c5bb..0000000000 --- a/src/visier_api_administration/test/test_excluded_sources_body.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.excluded_sources_body import ExcludedSourcesBody - -class TestExcludedSourcesBody(unittest.TestCase): - """ExcludedSourcesBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExcludedSourcesBody: - """Test ExcludedSourcesBody - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ExcludedSourcesBody( - excluded_sources = [ - '' - ] - ) - else: - return ExcludedSourcesBody( - ) - - def testExcludedSourcesBody(self): - """Test ExcludedSourcesBody""" - def validate_instance(instance): - ExcludedSourcesBody.model_validate(inst_req_only) - instance_deserialized = ExcludedSourcesBody.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_export_production_versions_api_operation_parameters_dto.py b/src/visier_api_administration/test/test_export_production_versions_api_operation_parameters_dto.py deleted file mode 100644 index 7068b9156f..0000000000 --- a/src/visier_api_administration/test/test_export_production_versions_api_operation_parameters_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.export_production_versions_api_operation_parameters_dto import ExportProductionVersionsAPIOperationParametersDTO - -class TestExportProductionVersionsAPIOperationParametersDTO(unittest.TestCase): - """ExportProductionVersionsAPIOperationParametersDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportProductionVersionsAPIOperationParametersDTO: - """Test ExportProductionVersionsAPIOperationParametersDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ExportProductionVersionsAPIOperationParametersDTO( - end_version = '', - excluded_versions = [ - '' - ], - start_version = '' - ) - else: - return ExportProductionVersionsAPIOperationParametersDTO( - ) - - def testExportProductionVersionsAPIOperationParametersDTO(self): - """Test ExportProductionVersionsAPIOperationParametersDTO""" - def validate_instance(instance): - ExportProductionVersionsAPIOperationParametersDTO.model_validate(inst_req_only) - instance_deserialized = ExportProductionVersionsAPIOperationParametersDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_failed_accessible_tenant_profile_assignment_dto.py b/src/visier_api_administration/test/test_failed_accessible_tenant_profile_assignment_dto.py deleted file mode 100644 index 17a4542ad2..0000000000 --- a/src/visier_api_administration/test/test_failed_accessible_tenant_profile_assignment_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.failed_accessible_tenant_profile_assignment_dto import FailedAccessibleTenantProfileAssignmentDTO - -class TestFailedAccessibleTenantProfileAssignmentDTO(unittest.TestCase): - """FailedAccessibleTenantProfileAssignmentDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FailedAccessibleTenantProfileAssignmentDTO: - """Test FailedAccessibleTenantProfileAssignmentDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return FailedAccessibleTenantProfileAssignmentDTO( - error = visier_api_administration.models.error_dto.ErrorDTO( - error_code = '', - error_message = '', - root_cause_id = '', ), - for_all_children = True, - tenant_code = '', - user_id = '' - ) - else: - return FailedAccessibleTenantProfileAssignmentDTO( - ) - - def testFailedAccessibleTenantProfileAssignmentDTO(self): - """Test FailedAccessibleTenantProfileAssignmentDTO""" - def validate_instance(instance): - FailedAccessibleTenantProfileAssignmentDTO.model_validate(inst_req_only) - instance_deserialized = FailedAccessibleTenantProfileAssignmentDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_failed_local_tenant_profile_assignment_dto.py b/src/visier_api_administration/test/test_failed_local_tenant_profile_assignment_dto.py deleted file mode 100644 index e10a72b843..0000000000 --- a/src/visier_api_administration/test/test_failed_local_tenant_profile_assignment_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.failed_local_tenant_profile_assignment_dto import FailedLocalTenantProfileAssignmentDTO - -class TestFailedLocalTenantProfileAssignmentDTO(unittest.TestCase): - """FailedLocalTenantProfileAssignmentDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FailedLocalTenantProfileAssignmentDTO: - """Test FailedLocalTenantProfileAssignmentDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return FailedLocalTenantProfileAssignmentDTO( - error = visier_api_administration.models.error_dto.ErrorDTO( - error_code = '', - error_message = '', - root_cause_id = '', ), - user_id = '' - ) - else: - return FailedLocalTenantProfileAssignmentDTO( - ) - - def testFailedLocalTenantProfileAssignmentDTO(self): - """Test FailedLocalTenantProfileAssignmentDTO""" - def validate_instance(instance): - FailedLocalTenantProfileAssignmentDTO.model_validate(inst_req_only) - instance_deserialized = FailedLocalTenantProfileAssignmentDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_failed_local_tenant_profile_revoke_dto.py b/src/visier_api_administration/test/test_failed_local_tenant_profile_revoke_dto.py deleted file mode 100644 index db57324fe7..0000000000 --- a/src/visier_api_administration/test/test_failed_local_tenant_profile_revoke_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.failed_local_tenant_profile_revoke_dto import FailedLocalTenantProfileRevokeDTO - -class TestFailedLocalTenantProfileRevokeDTO(unittest.TestCase): - """FailedLocalTenantProfileRevokeDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FailedLocalTenantProfileRevokeDTO: - """Test FailedLocalTenantProfileRevokeDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return FailedLocalTenantProfileRevokeDTO( - message = '', - user_id = '' - ) - else: - return FailedLocalTenantProfileRevokeDTO( - ) - - def testFailedLocalTenantProfileRevokeDTO(self): - """Test FailedLocalTenantProfileRevokeDTO""" - def validate_instance(instance): - FailedLocalTenantProfileRevokeDTO.model_validate(inst_req_only) - instance_deserialized = FailedLocalTenantProfileRevokeDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_generate_key_request_dto.py b/src/visier_api_administration/test/test_generate_key_request_dto.py deleted file mode 100644 index f32ac4ffe2..0000000000 --- a/src/visier_api_administration/test/test_generate_key_request_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.generate_key_request_dto import GenerateKeyRequestDTO - -class TestGenerateKeyRequestDTO(unittest.TestCase): - """GenerateKeyRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GenerateKeyRequestDTO: - """Test GenerateKeyRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GenerateKeyRequestDTO( - algorithm = '', - expiry_date = '', - key_name = '' - ) - else: - return GenerateKeyRequestDTO( - ) - - def testGenerateKeyRequestDTO(self): - """Test GenerateKeyRequestDTO""" - def validate_instance(instance): - GenerateKeyRequestDTO.model_validate(inst_req_only) - instance_deserialized = GenerateKeyRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_get_capabilities_api_response_dto.py b/src/visier_api_administration/test/test_get_capabilities_api_response_dto.py deleted file mode 100644 index dfe95bc2f0..0000000000 --- a/src/visier_api_administration/test/test_get_capabilities_api_response_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.get_capabilities_api_response_dto import GetCapabilitiesAPIResponseDTO - -class TestGetCapabilitiesAPIResponseDTO(unittest.TestCase): - """GetCapabilitiesAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCapabilitiesAPIResponseDTO: - """Test GetCapabilitiesAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GetCapabilitiesAPIResponseDTO( - capabilities = [ - visier_api_administration.models.capability_dto.CapabilityDTO( - description = '', - display_name = '', - name = '', ) - ] - ) - else: - return GetCapabilitiesAPIResponseDTO( - ) - - def testGetCapabilitiesAPIResponseDTO(self): - """Test GetCapabilitiesAPIResponseDTO""" - def validate_instance(instance): - GetCapabilitiesAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = GetCapabilitiesAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_get_content_packages_api_response_dto.py b/src/visier_api_administration/test/test_get_content_packages_api_response_dto.py deleted file mode 100644 index dd2d618b0f..0000000000 --- a/src/visier_api_administration/test/test_get_content_packages_api_response_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.get_content_packages_api_response_dto import GetContentPackagesAPIResponseDTO - -class TestGetContentPackagesAPIResponseDTO(unittest.TestCase): - """GetContentPackagesAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetContentPackagesAPIResponseDTO: - """Test GetContentPackagesAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GetContentPackagesAPIResponseDTO( - content_packages = [ - visier_api_administration.models.content_package_dto.ContentPackageDTO( - content_package_id = '', - description = '', - display_name = '', ) - ] - ) - else: - return GetContentPackagesAPIResponseDTO( - ) - - def testGetContentPackagesAPIResponseDTO(self): - """Test GetContentPackagesAPIResponseDTO""" - def validate_instance(instance): - GetContentPackagesAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = GetContentPackagesAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_get_data_access_sets_api_response_dto.py b/src/visier_api_administration/test/test_get_data_access_sets_api_response_dto.py deleted file mode 100644 index 3376cb9ba2..0000000000 --- a/src/visier_api_administration/test/test_get_data_access_sets_api_response_dto.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.get_data_access_sets_api_response_dto import GetDataAccessSetsAPIResponseDTO - -class TestGetDataAccessSetsAPIResponseDTO(unittest.TestCase): - """GetDataAccessSetsAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetDataAccessSetsAPIResponseDTO: - """Test GetDataAccessSetsAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GetDataAccessSetsAPIResponseDTO( - data_access_sets = [ - visier_api_administration.models.data_access_set_dto.DataAccessSetDTO( - analytic_object_id = '', - description = '', - display_name = '', - id = '', - property_access_configs = [ - visier_api_administration.models.property_access_config_dto.PropertyAccessConfigDTO( - access_level = 'None', - analytic_object_id = '', - analytic_object_reference_paths = [ - '' - ], - property_id = '', - property_status = 'Unset', ) - ], ) - ] - ) - else: - return GetDataAccessSetsAPIResponseDTO( - ) - - def testGetDataAccessSetsAPIResponseDTO(self): - """Test GetDataAccessSetsAPIResponseDTO""" - def validate_instance(instance): - GetDataAccessSetsAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = GetDataAccessSetsAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_get_data_security_objects_api_response_dto.py b/src/visier_api_administration/test/test_get_data_security_objects_api_response_dto.py deleted file mode 100644 index fbce2df945..0000000000 --- a/src/visier_api_administration/test/test_get_data_security_objects_api_response_dto.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.get_data_security_objects_api_response_dto import GetDataSecurityObjectsAPIResponseDTO - -class TestGetDataSecurityObjectsAPIResponseDTO(unittest.TestCase): - """GetDataSecurityObjectsAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetDataSecurityObjectsAPIResponseDTO: - """Test GetDataSecurityObjectsAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GetDataSecurityObjectsAPIResponseDTO( - analytic_objects = [ - visier_api_administration.models.analytic_object_dto.AnalyticObjectDTO( - analytic_object_id = '', - display_name = '', - object_type = 'Event', - related_objects = [ - visier_api_administration.models.related_analytic_object_dto.RelatedAnalyticObjectDTO( - analytic_object_id = '', - display_name = '', ) - ], - securable_dimensions = [ - visier_api_administration.models.securable_dimension_dto.SecurableDimensionDTO( - analytic_object_ids = [ - '' - ], - dimension_id = '', - display_name = '', - hierarchy_properties = [ - visier_api_administration.models.hierarchy_property_dto.HierarchyPropertyDTO( - display_name = '', - hierarchy_property_id = '', ) - ], ) - ], - securable_properties = [ - visier_api_administration.models.securable_property_dto.SecurablePropertyDTO( - analytic_object_id = '', - display_name = '', - is_primary_key = True, - property_id = '', - reference_symbol_name = '', ) - ], ) - ] - ) - else: - return GetDataSecurityObjectsAPIResponseDTO( - ) - - def testGetDataSecurityObjectsAPIResponseDTO(self): - """Test GetDataSecurityObjectsAPIResponseDTO""" - def validate_instance(instance): - GetDataSecurityObjectsAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = GetDataSecurityObjectsAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_get_permissions_api_response_dto.py b/src/visier_api_administration/test/test_get_permissions_api_response_dto.py deleted file mode 100644 index dd183e8712..0000000000 --- a/src/visier_api_administration/test/test_get_permissions_api_response_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.get_permissions_api_response_dto import GetPermissionsAPIResponseDTO - -class TestGetPermissionsAPIResponseDTO(unittest.TestCase): - """GetPermissionsAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPermissionsAPIResponseDTO: - """Test GetPermissionsAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GetPermissionsAPIResponseDTO( - permissions = [ - visier_api_administration.models.permission_dto.PermissionDTO( - admin_capability_config = None, - data_security_profiles = [ - visier_api_administration.models.data_security_profile_dto.DataSecurityProfileDTO( - all_data_point_access = True, - analytic_object_id = '', - analytic_object_status = 'Unset', - inherited_access_configs = [ - visier_api_administration.models.inherited_access_config_dto.InheritedAccessConfigDTO( - analytic_object_id = '', - member_filter_configs = [ - visier_api_administration.models.member_filter_config_dto.MemberFilterConfigDTO( - dimension_filters = [ - visier_api_administration.models.dimension_filter_dto.DimensionFilterDTO( - dynamic_dimension_filter = visier_api_administration.models.dynamic_dimension_filter_dto.DynamicDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - dynamic_property_mappings = [ - visier_api_administration.models.dynamic_property_mapping_dto.DynamicPropertyMappingDTO( - hierarchy_property_id = '', - hierarchy_property_status = 'Unset', - user_property = None, ) - ], - subject_reference_path = [ - '' - ], ), - static_dimension_filter = visier_api_administration.models.static_dimension_filter_dto.StaticDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - member_selections = [ - visier_api_administration.models.member_selection_dto.MemberSelectionDTO( - dimension_member_status = 'Unset', - excluded = True, - name_path = [ - '' - ], ) - ], ), ) - ], ) - ], - remove_access = True, ) - ], - inherited_reference_member_filter_config = None, - member_filter_configs = [ - visier_api_administration.models.member_filter_config_dto.MemberFilterConfigDTO() - ], - property_set_config = None, ) - ], - description = '', - display_name = '', - permission_id = '', - role_modules_config = None, ) - ] - ) - else: - return GetPermissionsAPIResponseDTO( - ) - - def testGetPermissionsAPIResponseDTO(self): - """Test GetPermissionsAPIResponseDTO""" - def validate_instance(instance): - GetPermissionsAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = GetPermissionsAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_get_production_versions_api_response_dto.py b/src/visier_api_administration/test/test_get_production_versions_api_response_dto.py deleted file mode 100644 index f4ce814c4f..0000000000 --- a/src/visier_api_administration/test/test_get_production_versions_api_response_dto.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.get_production_versions_api_response_dto import GetProductionVersionsAPIResponseDTO - -class TestGetProductionVersionsAPIResponseDTO(unittest.TestCase): - """GetProductionVersionsAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetProductionVersionsAPIResponseDTO: - """Test GetProductionVersionsAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GetProductionVersionsAPIResponseDTO( - published_versions = [ - visier_api_administration.models.project_dto.ProjectDTO( - capabilities = [ - 'canRead' - ], - description = '', - id = '', - name = '', - release_version = '', - ticket_number = '', - version_number = 56, ) - ] - ) - else: - return GetProductionVersionsAPIResponseDTO( - ) - - def testGetProductionVersionsAPIResponseDTO(self): - """Test GetProductionVersionsAPIResponseDTO""" - def validate_instance(instance): - GetProductionVersionsAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = GetProductionVersionsAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_get_projects_api_response_dto.py b/src/visier_api_administration/test/test_get_projects_api_response_dto.py deleted file mode 100644 index 54e3336e1c..0000000000 --- a/src/visier_api_administration/test/test_get_projects_api_response_dto.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.get_projects_api_response_dto import GetProjectsAPIResponseDTO - -class TestGetProjectsAPIResponseDTO(unittest.TestCase): - """GetProjectsAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetProjectsAPIResponseDTO: - """Test GetProjectsAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GetProjectsAPIResponseDTO( - approval_projects = [ - visier_api_administration.models.project_dto.ProjectDTO( - capabilities = [ - 'canRead' - ], - description = '', - id = '', - name = '', - release_version = '', - ticket_number = '', - version_number = 56, ) - ], - archived_projects = [ - visier_api_administration.models.project_dto.ProjectDTO( - capabilities = [ - 'canRead' - ], - description = '', - id = '', - name = '', - release_version = '', - ticket_number = '', - version_number = 56, ) - ], - open_projects = [ - visier_api_administration.models.project_dto.ProjectDTO( - capabilities = [ - 'canRead' - ], - description = '', - id = '', - name = '', - release_version = '', - ticket_number = '', - version_number = 56, ) - ], - rejected_projects = [ - visier_api_administration.models.project_dto.ProjectDTO( - capabilities = [ - 'canRead' - ], - description = '', - id = '', - name = '', - release_version = '', - ticket_number = '', - version_number = 56, ) - ] - ) - else: - return GetProjectsAPIResponseDTO( - ) - - def testGetProjectsAPIResponseDTO(self): - """Test GetProjectsAPIResponseDTO""" - def validate_instance(instance): - GetProjectsAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = GetProjectsAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_google_protobuf_any.py b/src/visier_api_administration/test/test_google_protobuf_any.py deleted file mode 100644 index 1c84ee625f..0000000000 --- a/src/visier_api_administration/test/test_google_protobuf_any.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.google_protobuf_any import GoogleProtobufAny - -class TestGoogleProtobufAny(unittest.TestCase): - """GoogleProtobufAny unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GoogleProtobufAny: - """Test GoogleProtobufAny - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GoogleProtobufAny( - type = '' - ) - else: - return GoogleProtobufAny( - ) - - def testGoogleProtobufAny(self): - """Test GoogleProtobufAny""" - def validate_instance(instance): - GoogleProtobufAny.model_validate(inst_req_only) - instance_deserialized = GoogleProtobufAny.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_hierarchy_property_dto.py b/src/visier_api_administration/test/test_hierarchy_property_dto.py deleted file mode 100644 index 08a1c83416..0000000000 --- a/src/visier_api_administration/test/test_hierarchy_property_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.hierarchy_property_dto import HierarchyPropertyDTO - -class TestHierarchyPropertyDTO(unittest.TestCase): - """HierarchyPropertyDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HierarchyPropertyDTO: - """Test HierarchyPropertyDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return HierarchyPropertyDTO( - display_name = '', - hierarchy_property_id = '' - ) - else: - return HierarchyPropertyDTO( - ) - - def testHierarchyPropertyDTO(self): - """Test HierarchyPropertyDTO""" - def validate_instance(instance): - HierarchyPropertyDTO.model_validate(inst_req_only) - instance_deserialized = HierarchyPropertyDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_home_analysis_by_user_group_dto.py b/src/visier_api_administration/test/test_home_analysis_by_user_group_dto.py deleted file mode 100644 index 2251389507..0000000000 --- a/src/visier_api_administration/test/test_home_analysis_by_user_group_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.home_analysis_by_user_group_dto import HomeAnalysisByUserGroupDTO - -class TestHomeAnalysisByUserGroupDTO(unittest.TestCase): - """HomeAnalysisByUserGroupDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HomeAnalysisByUserGroupDTO: - """Test HomeAnalysisByUserGroupDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return HomeAnalysisByUserGroupDTO( - home_analysis_id = '', - user_group_id = '' - ) - else: - return HomeAnalysisByUserGroupDTO( - ) - - def testHomeAnalysisByUserGroupDTO(self): - """Test HomeAnalysisByUserGroupDTO""" - def validate_instance(instance): - HomeAnalysisByUserGroupDTO.model_validate(inst_req_only) - instance_deserialized = HomeAnalysisByUserGroupDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_inherited_access_config_dto.py b/src/visier_api_administration/test/test_inherited_access_config_dto.py deleted file mode 100644 index 9156bca823..0000000000 --- a/src/visier_api_administration/test/test_inherited_access_config_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.inherited_access_config_dto import InheritedAccessConfigDTO - -class TestInheritedAccessConfigDTO(unittest.TestCase): - """InheritedAccessConfigDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> InheritedAccessConfigDTO: - """Test InheritedAccessConfigDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return InheritedAccessConfigDTO( - analytic_object_id = '', - member_filter_configs = [ - visier_api_administration.models.member_filter_config_dto.MemberFilterConfigDTO( - dimension_filters = [ - visier_api_administration.models.dimension_filter_dto.DimensionFilterDTO( - dynamic_dimension_filter = visier_api_administration.models.dynamic_dimension_filter_dto.DynamicDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - dynamic_property_mappings = [ - visier_api_administration.models.dynamic_property_mapping_dto.DynamicPropertyMappingDTO( - hierarchy_property_id = '', - hierarchy_property_status = 'Unset', - user_property = None, ) - ], - subject_reference_path = [ - '' - ], ), - static_dimension_filter = visier_api_administration.models.static_dimension_filter_dto.StaticDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - member_selections = [ - visier_api_administration.models.member_selection_dto.MemberSelectionDTO( - dimension_member_status = 'Unset', - excluded = True, - name_path = [ - '' - ], ) - ], ), ) - ], ) - ], - remove_access = True - ) - else: - return InheritedAccessConfigDTO( - ) - - def testInheritedAccessConfigDTO(self): - """Test InheritedAccessConfigDTO""" - def validate_instance(instance): - InheritedAccessConfigDTO.model_validate(inst_req_only) - instance_deserialized = InheritedAccessConfigDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_inherited_reference_member_filter_config_dto.py b/src/visier_api_administration/test/test_inherited_reference_member_filter_config_dto.py deleted file mode 100644 index 7613b4de48..0000000000 --- a/src/visier_api_administration/test/test_inherited_reference_member_filter_config_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.inherited_reference_member_filter_config_dto import InheritedReferenceMemberFilterConfigDTO - -class TestInheritedReferenceMemberFilterConfigDTO(unittest.TestCase): - """InheritedReferenceMemberFilterConfigDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> InheritedReferenceMemberFilterConfigDTO: - """Test InheritedReferenceMemberFilterConfigDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return InheritedReferenceMemberFilterConfigDTO( - analytic_object_reference = '', - target_analytic_object_id = '' - ) - else: - return InheritedReferenceMemberFilterConfigDTO( - ) - - def testInheritedReferenceMemberFilterConfigDTO(self): - """Test InheritedReferenceMemberFilterConfigDTO""" - def validate_instance(instance): - InheritedReferenceMemberFilterConfigDTO.model_validate(inst_req_only) - instance_deserialized = InheritedReferenceMemberFilterConfigDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_key_name.py b/src/visier_api_administration/test/test_key_name.py deleted file mode 100644 index c56e26fccd..0000000000 --- a/src/visier_api_administration/test/test_key_name.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.key_name import KeyName - -class TestKeyName(unittest.TestCase): - """KeyName unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> KeyName: - """Test KeyName - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return KeyName( - key_name = '' - ) - else: - return KeyName( - ) - - def testKeyName(self): - """Test KeyName""" - def validate_instance(instance): - KeyName.model_validate(inst_req_only) - instance_deserialized = KeyName.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_last_login_dto.py b/src/visier_api_administration/test/test_last_login_dto.py deleted file mode 100644 index 20d314cafb..0000000000 --- a/src/visier_api_administration/test/test_last_login_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.last_login_dto import LastLoginDTO - -class TestLastLoginDTO(unittest.TestCase): - """LastLoginDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LastLoginDTO: - """Test LastLoginDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return LastLoginDTO( - timestamp = '' - ) - else: - return LastLoginDTO( - ) - - def testLastLoginDTO(self): - """Test LastLoginDTO""" - def validate_instance(instance): - LastLoginDTO.model_validate(inst_req_only) - instance_deserialized = LastLoginDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_local_tenant_profile_assignment_request_dto.py b/src/visier_api_administration/test/test_local_tenant_profile_assignment_request_dto.py deleted file mode 100644 index e749072b9b..0000000000 --- a/src/visier_api_administration/test/test_local_tenant_profile_assignment_request_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.local_tenant_profile_assignment_request_dto import LocalTenantProfileAssignmentRequestDTO - -class TestLocalTenantProfileAssignmentRequestDTO(unittest.TestCase): - """LocalTenantProfileAssignmentRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LocalTenantProfileAssignmentRequestDTO: - """Test LocalTenantProfileAssignmentRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return LocalTenantProfileAssignmentRequestDTO( - target_user_ids = [ - '' - ], - validity_end_time = '', - validity_start_time = '' - ) - else: - return LocalTenantProfileAssignmentRequestDTO( - ) - - def testLocalTenantProfileAssignmentRequestDTO(self): - """Test LocalTenantProfileAssignmentRequestDTO""" - def validate_instance(instance): - LocalTenantProfileAssignmentRequestDTO.model_validate(inst_req_only) - instance_deserialized = LocalTenantProfileAssignmentRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_local_tenant_profile_assignment_response_dto.py b/src/visier_api_administration/test/test_local_tenant_profile_assignment_response_dto.py deleted file mode 100644 index 3a0fa4915d..0000000000 --- a/src/visier_api_administration/test/test_local_tenant_profile_assignment_response_dto.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.local_tenant_profile_assignment_response_dto import LocalTenantProfileAssignmentResponseDTO - -class TestLocalTenantProfileAssignmentResponseDTO(unittest.TestCase): - """LocalTenantProfileAssignmentResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LocalTenantProfileAssignmentResponseDTO: - """Test LocalTenantProfileAssignmentResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return LocalTenantProfileAssignmentResponseDTO( - bad_user_ids = [ - visier_api_administration.models.user_id_error_dto.UserIdErrorDTO( - error = None, - user_id = '', ) - ], - errors = True, - failed_assignments = [ - visier_api_administration.models.failed_local_tenant_profile_assignment_dto.FailedLocalTenantProfileAssignmentDTO( - error = None, - user_id = '', ) - ], - successful_assignments = [ - visier_api_administration.models.successful_local_tenant_profile_assignment_dto.SuccessfulLocalTenantProfileAssignmentDTO( - user_id = '', ) - ] - ) - else: - return LocalTenantProfileAssignmentResponseDTO( - ) - - def testLocalTenantProfileAssignmentResponseDTO(self): - """Test LocalTenantProfileAssignmentResponseDTO""" - def validate_instance(instance): - LocalTenantProfileAssignmentResponseDTO.model_validate(inst_req_only) - instance_deserialized = LocalTenantProfileAssignmentResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_local_tenant_profile_revoke_request_dto.py b/src/visier_api_administration/test/test_local_tenant_profile_revoke_request_dto.py deleted file mode 100644 index b1c6437598..0000000000 --- a/src/visier_api_administration/test/test_local_tenant_profile_revoke_request_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.local_tenant_profile_revoke_request_dto import LocalTenantProfileRevokeRequestDTO - -class TestLocalTenantProfileRevokeRequestDTO(unittest.TestCase): - """LocalTenantProfileRevokeRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LocalTenantProfileRevokeRequestDTO: - """Test LocalTenantProfileRevokeRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return LocalTenantProfileRevokeRequestDTO( - target_user_ids = [ - '' - ] - ) - else: - return LocalTenantProfileRevokeRequestDTO( - ) - - def testLocalTenantProfileRevokeRequestDTO(self): - """Test LocalTenantProfileRevokeRequestDTO""" - def validate_instance(instance): - LocalTenantProfileRevokeRequestDTO.model_validate(inst_req_only) - instance_deserialized = LocalTenantProfileRevokeRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_local_tenant_profile_revoke_response_dto.py b/src/visier_api_administration/test/test_local_tenant_profile_revoke_response_dto.py deleted file mode 100644 index e4a3a8b15d..0000000000 --- a/src/visier_api_administration/test/test_local_tenant_profile_revoke_response_dto.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.local_tenant_profile_revoke_response_dto import LocalTenantProfileRevokeResponseDTO - -class TestLocalTenantProfileRevokeResponseDTO(unittest.TestCase): - """LocalTenantProfileRevokeResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LocalTenantProfileRevokeResponseDTO: - """Test LocalTenantProfileRevokeResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return LocalTenantProfileRevokeResponseDTO( - failed = [ - visier_api_administration.models.failed_local_tenant_profile_revoke_dto.FailedLocalTenantProfileRevokeDTO( - message = '', - user_id = '', ) - ], - succeeded = [ - visier_api_administration.models.successful_local_tenant_profile_assignment_dto.SuccessfulLocalTenantProfileAssignmentDTO( - user_id = '', ) - ] - ) - else: - return LocalTenantProfileRevokeResponseDTO( - ) - - def testLocalTenantProfileRevokeResponseDTO(self): - """Test LocalTenantProfileRevokeResponseDTO""" - def validate_instance(instance): - LocalTenantProfileRevokeResponseDTO.model_validate(inst_req_only) - instance_deserialized = LocalTenantProfileRevokeResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_mask_message.py b/src/visier_api_administration/test/test_mask_message.py deleted file mode 100644 index 3328f69f5c..0000000000 --- a/src/visier_api_administration/test/test_mask_message.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.mask_message import MaskMessage - -class TestMaskMessage(unittest.TestCase): - """MaskMessage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MaskMessage: - """Test MaskMessage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MaskMessage( - mask = '' - ) - else: - return MaskMessage( - ) - - def testMaskMessage(self): - """Test MaskMessage""" - def validate_instance(instance): - MaskMessage.model_validate(inst_req_only) - instance_deserialized = MaskMessage.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_member_filter_config_dto.py b/src/visier_api_administration/test/test_member_filter_config_dto.py deleted file mode 100644 index 1449567fb3..0000000000 --- a/src/visier_api_administration/test/test_member_filter_config_dto.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.member_filter_config_dto import MemberFilterConfigDTO - -class TestMemberFilterConfigDTO(unittest.TestCase): - """MemberFilterConfigDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MemberFilterConfigDTO: - """Test MemberFilterConfigDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MemberFilterConfigDTO( - dimension_filters = [ - visier_api_administration.models.dimension_filter_dto.DimensionFilterDTO( - dynamic_dimension_filter = visier_api_administration.models.dynamic_dimension_filter_dto.DynamicDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - dynamic_property_mappings = [ - visier_api_administration.models.dynamic_property_mapping_dto.DynamicPropertyMappingDTO( - hierarchy_property_id = '', - hierarchy_property_status = 'Unset', - user_property = None, ) - ], - subject_reference_path = [ - '' - ], ), - static_dimension_filter = visier_api_administration.models.static_dimension_filter_dto.StaticDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - member_selections = [ - visier_api_administration.models.member_selection_dto.MemberSelectionDTO( - dimension_member_status = 'Unset', - excluded = True, - name_path = [ - '' - ], ) - ], ), ) - ] - ) - else: - return MemberFilterConfigDTO( - ) - - def testMemberFilterConfigDTO(self): - """Test MemberFilterConfigDTO""" - def validate_instance(instance): - MemberFilterConfigDTO.model_validate(inst_req_only) - instance_deserialized = MemberFilterConfigDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_member_selection_dto.py b/src/visier_api_administration/test/test_member_selection_dto.py deleted file mode 100644 index 17a0cb060a..0000000000 --- a/src/visier_api_administration/test/test_member_selection_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.member_selection_dto import MemberSelectionDTO - -class TestMemberSelectionDTO(unittest.TestCase): - """MemberSelectionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MemberSelectionDTO: - """Test MemberSelectionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MemberSelectionDTO( - dimension_member_status = 'Unset', - excluded = True, - name_path = [ - '' - ] - ) - else: - return MemberSelectionDTO( - ) - - def testMemberSelectionDTO(self): - """Test MemberSelectionDTO""" - def validate_instance(instance): - MemberSelectionDTO.model_validate(inst_req_only) - instance_deserialized = MemberSelectionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_metric_validation_summary_dto.py b/src/visier_api_administration/test/test_metric_validation_summary_dto.py deleted file mode 100644 index 3929a5b9ac..0000000000 --- a/src/visier_api_administration/test/test_metric_validation_summary_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.metric_validation_summary_dto import MetricValidationSummaryDTO - -class TestMetricValidationSummaryDTO(unittest.TestCase): - """MetricValidationSummaryDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MetricValidationSummaryDTO: - """Test MetricValidationSummaryDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MetricValidationSummaryDTO( - display_name = '', - symbol_name = '', - value = 1.337 - ) - else: - return MetricValidationSummaryDTO( - ) - - def testMetricValidationSummaryDTO(self): - """Test MetricValidationSummaryDTO""" - def validate_instance(instance): - MetricValidationSummaryDTO.model_validate(inst_req_only) - instance_deserialized = MetricValidationSummaryDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_module_settings_dto.py b/src/visier_api_administration/test/test_module_settings_dto.py deleted file mode 100644 index c62951b26e..0000000000 --- a/src/visier_api_administration/test/test_module_settings_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.module_settings_dto import ModuleSettingsDTO - -class TestModuleSettingsDTO(unittest.TestCase): - """ModuleSettingsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ModuleSettingsDTO: - """Test ModuleSettingsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ModuleSettingsDTO( - locale = '', - special_handling_instruction = '', - unavailable_for_assignment = True - ) - else: - return ModuleSettingsDTO( - ) - - def testModuleSettingsDTO(self): - """Test ModuleSettingsDTO""" - def validate_instance(instance): - ModuleSettingsDTO.model_validate(inst_req_only) - instance_deserialized = ModuleSettingsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_permission_assigned_by_tenant_dto.py b/src/visier_api_administration/test/test_permission_assigned_by_tenant_dto.py deleted file mode 100644 index 1382a22aa4..0000000000 --- a/src/visier_api_administration/test/test_permission_assigned_by_tenant_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.permission_assigned_by_tenant_dto import PermissionAssignedByTenantDTO - -class TestPermissionAssignedByTenantDTO(unittest.TestCase): - """PermissionAssignedByTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionAssignedByTenantDTO: - """Test PermissionAssignedByTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PermissionAssignedByTenantDTO( - tenant_code = '', - users = [ - visier_api_administration.models.permission_assigned_user_dto.PermissionAssignedUserDTO( - permission_from = '', - user_id = '', - username = '', ) - ] - ) - else: - return PermissionAssignedByTenantDTO( - ) - - def testPermissionAssignedByTenantDTO(self): - """Test PermissionAssignedByTenantDTO""" - def validate_instance(instance): - PermissionAssignedByTenantDTO.model_validate(inst_req_only) - instance_deserialized = PermissionAssignedByTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_permission_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_permission_assigned_for_local_tenant_dto.py deleted file mode 100644 index 5b471fa271..0000000000 --- a/src/visier_api_administration/test/test_permission_assigned_for_local_tenant_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.permission_assigned_for_local_tenant_dto import PermissionAssignedForLocalTenantDTO - -class TestPermissionAssignedForLocalTenantDTO(unittest.TestCase): - """PermissionAssignedForLocalTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionAssignedForLocalTenantDTO: - """Test PermissionAssignedForLocalTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PermissionAssignedForLocalTenantDTO( - description = '', - display_name = '', - permission_id = '' - ) - else: - return PermissionAssignedForLocalTenantDTO( - ) - - def testPermissionAssignedForLocalTenantDTO(self): - """Test PermissionAssignedForLocalTenantDTO""" - def validate_instance(instance): - PermissionAssignedForLocalTenantDTO.model_validate(inst_req_only) - instance_deserialized = PermissionAssignedForLocalTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_permission_assigned_user_dto.py b/src/visier_api_administration/test/test_permission_assigned_user_dto.py deleted file mode 100644 index a7ff6dfba7..0000000000 --- a/src/visier_api_administration/test/test_permission_assigned_user_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.permission_assigned_user_dto import PermissionAssignedUserDTO - -class TestPermissionAssignedUserDTO(unittest.TestCase): - """PermissionAssignedUserDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionAssignedUserDTO: - """Test PermissionAssignedUserDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PermissionAssignedUserDTO( - permission_from = '', - user_id = '', - username = '' - ) - else: - return PermissionAssignedUserDTO( - ) - - def testPermissionAssignedUserDTO(self): - """Test PermissionAssignedUserDTO""" - def validate_instance(instance): - PermissionAssignedUserDTO.model_validate(inst_req_only) - instance_deserialized = PermissionAssignedUserDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_permission_assigned_users_dto.py b/src/visier_api_administration/test/test_permission_assigned_users_dto.py deleted file mode 100644 index 57a8a6824b..0000000000 --- a/src/visier_api_administration/test/test_permission_assigned_users_dto.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.permission_assigned_users_dto import PermissionAssignedUsersDTO - -class TestPermissionAssignedUsersDTO(unittest.TestCase): - """PermissionAssignedUsersDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionAssignedUsersDTO: - """Test PermissionAssignedUsersDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PermissionAssignedUsersDTO( - limit = 56, - start = 56, - tenants = [ - visier_api_administration.models.permission_assigned_by_tenant_dto.PermissionAssignedByTenantDTO( - tenant_code = '', - users = [ - visier_api_administration.models.permission_assigned_user_dto.PermissionAssignedUserDTO( - permission_from = '', - user_id = '', - username = '', ) - ], ) - ] - ) - else: - return PermissionAssignedUsersDTO( - ) - - def testPermissionAssignedUsersDTO(self): - """Test PermissionAssignedUsersDTO""" - def validate_instance(instance): - PermissionAssignedUsersDTO.model_validate(inst_req_only) - instance_deserialized = PermissionAssignedUsersDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_permission_bulk_operation_response_dto.py b/src/visier_api_administration/test/test_permission_bulk_operation_response_dto.py deleted file mode 100644 index 1314b5b839..0000000000 --- a/src/visier_api_administration/test/test_permission_bulk_operation_response_dto.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.permission_bulk_operation_response_dto import PermissionBulkOperationResponseDTO - -class TestPermissionBulkOperationResponseDTO(unittest.TestCase): - """PermissionBulkOperationResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionBulkOperationResponseDTO: - """Test PermissionBulkOperationResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PermissionBulkOperationResponseDTO( - failures = [ - visier_api_administration.models.permission_failure_dto.PermissionFailureDTO( - display_name = '', - error = None, - permission_id = '', ) - ], - successes = [ - visier_api_administration.models.permission_success_dto.PermissionSuccessDTO( - display_name = '', - permission_id = '', ) - ] - ) - else: - return PermissionBulkOperationResponseDTO( - ) - - def testPermissionBulkOperationResponseDTO(self): - """Test PermissionBulkOperationResponseDTO""" - def validate_instance(instance): - PermissionBulkOperationResponseDTO.model_validate(inst_req_only) - instance_deserialized = PermissionBulkOperationResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_permission_dto.py b/src/visier_api_administration/test/test_permission_dto.py deleted file mode 100644 index 70e2343475..0000000000 --- a/src/visier_api_administration/test/test_permission_dto.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.permission_dto import PermissionDTO - -class TestPermissionDTO(unittest.TestCase): - """PermissionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionDTO: - """Test PermissionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PermissionDTO( - admin_capability_config = visier_api_administration.models.admin_capability_config_dto.AdminCapabilityConfigDTO( - all_capabilities_access = True, - capabilities = [ - '' - ], ), - data_security_profiles = [ - visier_api_administration.models.data_security_profile_dto.DataSecurityProfileDTO( - all_data_point_access = True, - analytic_object_id = '', - analytic_object_status = 'Unset', - inherited_access_configs = [ - visier_api_administration.models.inherited_access_config_dto.InheritedAccessConfigDTO( - analytic_object_id = '', - member_filter_configs = [ - visier_api_administration.models.member_filter_config_dto.MemberFilterConfigDTO( - dimension_filters = [ - visier_api_administration.models.dimension_filter_dto.DimensionFilterDTO( - dynamic_dimension_filter = visier_api_administration.models.dynamic_dimension_filter_dto.DynamicDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - dynamic_property_mappings = [ - visier_api_administration.models.dynamic_property_mapping_dto.DynamicPropertyMappingDTO( - hierarchy_property_id = '', - hierarchy_property_status = 'Unset', - user_property = None, ) - ], - subject_reference_path = [ - '' - ], ), - static_dimension_filter = visier_api_administration.models.static_dimension_filter_dto.StaticDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - member_selections = [ - visier_api_administration.models.member_selection_dto.MemberSelectionDTO( - dimension_member_status = 'Unset', - excluded = True, - name_path = [ - '' - ], ) - ], ), ) - ], ) - ], - remove_access = True, ) - ], - inherited_reference_member_filter_config = None, - member_filter_configs = [ - visier_api_administration.models.member_filter_config_dto.MemberFilterConfigDTO() - ], - property_set_config = None, ) - ], - description = '', - display_name = '', - permission_id = '', - role_modules_config = visier_api_administration.models.role_modules_config_dto.RoleModulesConfigDTO( - content_package_ids = [ - '' - ], ) - ) - else: - return PermissionDTO( - ) - - def testPermissionDTO(self): - """Test PermissionDTO""" - def validate_instance(instance): - PermissionDTO.model_validate(inst_req_only) - instance_deserialized = PermissionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_permission_error_dto.py b/src/visier_api_administration/test/test_permission_error_dto.py deleted file mode 100644 index 9ff0310289..0000000000 --- a/src/visier_api_administration/test/test_permission_error_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.permission_error_dto import PermissionErrorDTO - -class TestPermissionErrorDTO(unittest.TestCase): - """PermissionErrorDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionErrorDTO: - """Test PermissionErrorDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PermissionErrorDTO( - message = '', - rci = '' - ) - else: - return PermissionErrorDTO( - ) - - def testPermissionErrorDTO(self): - """Test PermissionErrorDTO""" - def validate_instance(instance): - PermissionErrorDTO.model_validate(inst_req_only) - instance_deserialized = PermissionErrorDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_permission_failure_dto.py b/src/visier_api_administration/test/test_permission_failure_dto.py deleted file mode 100644 index 6a82b475c9..0000000000 --- a/src/visier_api_administration/test/test_permission_failure_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.permission_failure_dto import PermissionFailureDTO - -class TestPermissionFailureDTO(unittest.TestCase): - """PermissionFailureDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionFailureDTO: - """Test PermissionFailureDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PermissionFailureDTO( - display_name = '', - error = visier_api_administration.models.permission_error_dto.PermissionErrorDTO( - message = '', - rci = '', ), - permission_id = '' - ) - else: - return PermissionFailureDTO( - ) - - def testPermissionFailureDTO(self): - """Test PermissionFailureDTO""" - def validate_instance(instance): - PermissionFailureDTO.model_validate(inst_req_only) - instance_deserialized = PermissionFailureDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_permission_response_dto.py b/src/visier_api_administration/test/test_permission_response_dto.py deleted file mode 100644 index f4c89450cc..0000000000 --- a/src/visier_api_administration/test/test_permission_response_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.permission_response_dto import PermissionResponseDTO - -class TestPermissionResponseDTO(unittest.TestCase): - """PermissionResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionResponseDTO: - """Test PermissionResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PermissionResponseDTO( - display_name = '', - permission_id = '' - ) - else: - return PermissionResponseDTO( - ) - - def testPermissionResponseDTO(self): - """Test PermissionResponseDTO""" - def validate_instance(instance): - PermissionResponseDTO.model_validate(inst_req_only) - instance_deserialized = PermissionResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_permission_success_dto.py b/src/visier_api_administration/test/test_permission_success_dto.py deleted file mode 100644 index fcbc1e59e0..0000000000 --- a/src/visier_api_administration/test/test_permission_success_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.permission_success_dto import PermissionSuccessDTO - -class TestPermissionSuccessDTO(unittest.TestCase): - """PermissionSuccessDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionSuccessDTO: - """Test PermissionSuccessDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PermissionSuccessDTO( - display_name = '', - permission_id = '' - ) - else: - return PermissionSuccessDTO( - ) - - def testPermissionSuccessDTO(self): - """Test PermissionSuccessDTO""" - def validate_instance(instance): - PermissionSuccessDTO.model_validate(inst_req_only) - instance_deserialized = PermissionSuccessDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_permissions_api.py b/src/visier_api_administration/test/test_permissions_api.py index 8aa3a4c08e..a95d257561 100644 --- a/src/visier_api_administration/test/test_permissions_api.py +++ b/src/visier_api_administration/test/test_permissions_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_permissions_list_dto.py b/src/visier_api_administration/test/test_permissions_list_dto.py deleted file mode 100644 index 84730aaa21..0000000000 --- a/src/visier_api_administration/test/test_permissions_list_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.permissions_list_dto import PermissionsListDTO - -class TestPermissionsListDTO(unittest.TestCase): - """PermissionsListDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionsListDTO: - """Test PermissionsListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PermissionsListDTO( - permissions = [ - visier_api_administration.models.permission_dto.PermissionDTO( - admin_capability_config = None, - data_security_profiles = [ - visier_api_administration.models.data_security_profile_dto.DataSecurityProfileDTO( - all_data_point_access = True, - analytic_object_id = '', - analytic_object_status = 'Unset', - inherited_access_configs = [ - visier_api_administration.models.inherited_access_config_dto.InheritedAccessConfigDTO( - analytic_object_id = '', - member_filter_configs = [ - visier_api_administration.models.member_filter_config_dto.MemberFilterConfigDTO( - dimension_filters = [ - visier_api_administration.models.dimension_filter_dto.DimensionFilterDTO( - dynamic_dimension_filter = visier_api_administration.models.dynamic_dimension_filter_dto.DynamicDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - dynamic_property_mappings = [ - visier_api_administration.models.dynamic_property_mapping_dto.DynamicPropertyMappingDTO( - hierarchy_property_id = '', - hierarchy_property_status = 'Unset', - user_property = None, ) - ], - subject_reference_path = [ - '' - ], ), - static_dimension_filter = visier_api_administration.models.static_dimension_filter_dto.StaticDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - member_selections = [ - visier_api_administration.models.member_selection_dto.MemberSelectionDTO( - dimension_member_status = 'Unset', - excluded = True, - name_path = [ - '' - ], ) - ], ), ) - ], ) - ], - remove_access = True, ) - ], - inherited_reference_member_filter_config = None, - member_filter_configs = [ - visier_api_administration.models.member_filter_config_dto.MemberFilterConfigDTO() - ], - property_set_config = None, ) - ], - description = '', - display_name = '', - permission_id = '', - role_modules_config = None, ) - ] - ) - else: - return PermissionsListDTO( - ) - - def testPermissionsListDTO(self): - """Test PermissionsListDTO""" - def validate_instance(instance): - PermissionsListDTO.model_validate(inst_req_only) - instance_deserialized = PermissionsListDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_permissions_to_user_group_for_tenant_dto.py b/src/visier_api_administration/test/test_permissions_to_user_group_for_tenant_dto.py deleted file mode 100644 index 01b40c99a2..0000000000 --- a/src/visier_api_administration/test/test_permissions_to_user_group_for_tenant_dto.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.permissions_to_user_group_for_tenant_dto import PermissionsToUserGroupForTenantDTO - -class TestPermissionsToUserGroupForTenantDTO(unittest.TestCase): - """PermissionsToUserGroupForTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionsToUserGroupForTenantDTO: - """Test PermissionsToUserGroupForTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PermissionsToUserGroupForTenantDTO( - message = '', - status = '', - tenant_code = '', - user_groups = [ - visier_api_administration.models.user_group_get_api_response_dto.UserGroupGetAPIResponseDTO( - display_name = '', - permissions = [ - visier_api_administration.models.permission_response_dto.PermissionResponseDTO( - display_name = '', - permission_id = '', ) - ], - user_group_id = '', ) - ] - ) - else: - return PermissionsToUserGroupForTenantDTO( - ) - - def testPermissionsToUserGroupForTenantDTO(self): - """Test PermissionsToUserGroupForTenantDTO""" - def validate_instance(instance): - PermissionsToUserGroupForTenantDTO.model_validate(inst_req_only) - instance_deserialized = PermissionsToUserGroupForTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_permissions_to_user_group_request_dto.py b/src/visier_api_administration/test/test_permissions_to_user_group_request_dto.py deleted file mode 100644 index 887733b133..0000000000 --- a/src/visier_api_administration/test/test_permissions_to_user_group_request_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.permissions_to_user_group_request_dto import PermissionsToUserGroupRequestDTO - -class TestPermissionsToUserGroupRequestDTO(unittest.TestCase): - """PermissionsToUserGroupRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionsToUserGroupRequestDTO: - """Test PermissionsToUserGroupRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PermissionsToUserGroupRequestDTO( - permissions_ids = [ - '' - ], - user_group_id = '' - ) - else: - return PermissionsToUserGroupRequestDTO( - ) - - def testPermissionsToUserGroupRequestDTO(self): - """Test PermissionsToUserGroupRequestDTO""" - def validate_instance(instance): - PermissionsToUserGroupRequestDTO.model_validate(inst_req_only) - instance_deserialized = PermissionsToUserGroupRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_permissions_to_user_groups_request_dto.py b/src/visier_api_administration/test/test_permissions_to_user_groups_request_dto.py deleted file mode 100644 index 45644e9d93..0000000000 --- a/src/visier_api_administration/test/test_permissions_to_user_groups_request_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.permissions_to_user_groups_request_dto import PermissionsToUserGroupsRequestDTO - -class TestPermissionsToUserGroupsRequestDTO(unittest.TestCase): - """PermissionsToUserGroupsRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionsToUserGroupsRequestDTO: - """Test PermissionsToUserGroupsRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PermissionsToUserGroupsRequestDTO( - user_groups = [ - visier_api_administration.models.permissions_to_user_group_request_dto.PermissionsToUserGroupRequestDTO( - permissions_ids = [ - '' - ], - user_group_id = '', ) - ] - ) - else: - return PermissionsToUserGroupsRequestDTO( - ) - - def testPermissionsToUserGroupsRequestDTO(self): - """Test PermissionsToUserGroupsRequestDTO""" - def validate_instance(instance): - PermissionsToUserGroupsRequestDTO.model_validate(inst_req_only) - instance_deserialized = PermissionsToUserGroupsRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_production_version_api_operation_request_dto.py b/src/visier_api_administration/test/test_production_version_api_operation_request_dto.py deleted file mode 100644 index f7e8cb62df..0000000000 --- a/src/visier_api_administration/test/test_production_version_api_operation_request_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.production_version_api_operation_request_dto import ProductionVersionAPIOperationRequestDTO - -class TestProductionVersionAPIOperationRequestDTO(unittest.TestCase): - """ProductionVersionAPIOperationRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProductionVersionAPIOperationRequestDTO: - """Test ProductionVersionAPIOperationRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProductionVersionAPIOperationRequestDTO( - operation = 'unknownProductionVersionAPIOperation' - ) - else: - return ProductionVersionAPIOperationRequestDTO( - ) - - def testProductionVersionAPIOperationRequestDTO(self): - """Test ProductionVersionAPIOperationRequestDTO""" - def validate_instance(instance): - ProductionVersionAPIOperationRequestDTO.model_validate(inst_req_only) - instance_deserialized = ProductionVersionAPIOperationRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_production_version_api_operation_response_dto.py b/src/visier_api_administration/test/test_production_version_api_operation_response_dto.py deleted file mode 100644 index 6802f684d8..0000000000 --- a/src/visier_api_administration/test/test_production_version_api_operation_response_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.production_version_api_operation_response_dto import ProductionVersionAPIOperationResponseDTO - -class TestProductionVersionAPIOperationResponseDTO(unittest.TestCase): - """ProductionVersionAPIOperationResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProductionVersionAPIOperationResponseDTO: - """Test ProductionVersionAPIOperationResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProductionVersionAPIOperationResponseDTO( - roll_back_to = visier_api_administration.models.project_dto.ProjectDTO( - capabilities = [ - 'canRead' - ], - description = '', - id = '', - name = '', - release_version = '', - ticket_number = '', - version_number = 56, ) - ) - else: - return ProductionVersionAPIOperationResponseDTO( - ) - - def testProductionVersionAPIOperationResponseDTO(self): - """Test ProductionVersionAPIOperationResponseDTO""" - def validate_instance(instance): - ProductionVersionAPIOperationResponseDTO.model_validate(inst_req_only) - instance_deserialized = ProductionVersionAPIOperationResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_production_versions_api.py b/src/visier_api_administration/test/test_production_versions_api.py index 1660ad452d..a6b14b5618 100644 --- a/src/visier_api_administration/test/test_production_versions_api.py +++ b/src/visier_api_administration/test/test_production_versions_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_production_versions_api_operation_request_dto.py b/src/visier_api_administration/test/test_production_versions_api_operation_request_dto.py deleted file mode 100644 index 74a539e90d..0000000000 --- a/src/visier_api_administration/test/test_production_versions_api_operation_request_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.production_versions_api_operation_request_dto import ProductionVersionsAPIOperationRequestDTO - -class TestProductionVersionsAPIOperationRequestDTO(unittest.TestCase): - """ProductionVersionsAPIOperationRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProductionVersionsAPIOperationRequestDTO: - """Test ProductionVersionsAPIOperationRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProductionVersionsAPIOperationRequestDTO( - export_parameters = visier_api_administration.models.export_production_versions_api_operation_parameters_dto.ExportProductionVersionsAPIOperationParametersDTO( - end_version = '', - excluded_versions = [ - '' - ], - start_version = '', ), - operation = 'unknownProductionVersionsAPIOperation' - ) - else: - return ProductionVersionsAPIOperationRequestDTO( - ) - - def testProductionVersionsAPIOperationRequestDTO(self): - """Test ProductionVersionsAPIOperationRequestDTO""" - def validate_instance(instance): - ProductionVersionsAPIOperationRequestDTO.model_validate(inst_req_only) - instance_deserialized = ProductionVersionsAPIOperationRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_production_versions_api_operation_response_dto.py b/src/visier_api_administration/test/test_production_versions_api_operation_response_dto.py deleted file mode 100644 index dfc1dbada4..0000000000 --- a/src/visier_api_administration/test/test_production_versions_api_operation_response_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.production_versions_api_operation_response_dto import ProductionVersionsAPIOperationResponseDTO - -class TestProductionVersionsAPIOperationResponseDTO(unittest.TestCase): - """ProductionVersionsAPIOperationResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProductionVersionsAPIOperationResponseDTO: - """Test ProductionVersionsAPIOperationResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProductionVersionsAPIOperationResponseDTO( - export = None - ) - else: - return ProductionVersionsAPIOperationResponseDTO( - ) - - def testProductionVersionsAPIOperationResponseDTO(self): - """Test ProductionVersionsAPIOperationResponseDTO""" - def validate_instance(instance): - ProductionVersionsAPIOperationResponseDTO.model_validate(inst_req_only) - instance_deserialized = ProductionVersionsAPIOperationResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_profile_assigned_for_accessible_tenant_dto.py b/src/visier_api_administration/test/test_profile_assigned_for_accessible_tenant_dto.py deleted file mode 100644 index 009b68b88b..0000000000 --- a/src/visier_api_administration/test/test_profile_assigned_for_accessible_tenant_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.profile_assigned_for_accessible_tenant_dto import ProfileAssignedForAccessibleTenantDTO - -class TestProfileAssignedForAccessibleTenantDTO(unittest.TestCase): - """ProfileAssignedForAccessibleTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProfileAssignedForAccessibleTenantDTO: - """Test ProfileAssignedForAccessibleTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProfileAssignedForAccessibleTenantDTO( - display_name = '', - for_all_children = True, - profile_id = '', - tenant_code = '', - validity_end_time = '', - validity_start_time = '' - ) - else: - return ProfileAssignedForAccessibleTenantDTO( - ) - - def testProfileAssignedForAccessibleTenantDTO(self): - """Test ProfileAssignedForAccessibleTenantDTO""" - def validate_instance(instance): - ProfileAssignedForAccessibleTenantDTO.model_validate(inst_req_only) - instance_deserialized = ProfileAssignedForAccessibleTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_profile_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_profile_assigned_for_local_tenant_dto.py deleted file mode 100644 index 0a926d9fd3..0000000000 --- a/src/visier_api_administration/test/test_profile_assigned_for_local_tenant_dto.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.profile_assigned_for_local_tenant_dto import ProfileAssignedForLocalTenantDTO - -class TestProfileAssignedForLocalTenantDTO(unittest.TestCase): - """ProfileAssignedForLocalTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProfileAssignedForLocalTenantDTO: - """Test ProfileAssignedForLocalTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProfileAssignedForLocalTenantDTO( - additional_capabilities = visier_api_administration.models.additional_capabilities_dto.AdditionalCapabilitiesDTO( - additional_capabilities = [ - '' - ], ), - capabilities = [ - visier_api_administration.models.capabilities_dto.CapabilitiesDTO( - access_level = '', - capability = '', - view_level = '', ) - ], - display_name = '', - profile_id = '', - validity_end_time = '', - validity_start_time = '' - ) - else: - return ProfileAssignedForLocalTenantDTO( - ) - - def testProfileAssignedForLocalTenantDTO(self): - """Test ProfileAssignedForLocalTenantDTO""" - def validate_instance(instance): - ProfileAssignedForLocalTenantDTO.model_validate(inst_req_only) - instance_deserialized = ProfileAssignedForLocalTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_profile_get_api_response_dto.py b/src/visier_api_administration/test/test_profile_get_api_response_dto.py deleted file mode 100644 index 1ff66de42a..0000000000 --- a/src/visier_api_administration/test/test_profile_get_api_response_dto.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.profile_get_api_response_dto import ProfileGetAPIResponseDTO - -class TestProfileGetAPIResponseDTO(unittest.TestCase): - """ProfileGetAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProfileGetAPIResponseDTO: - """Test ProfileGetAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProfileGetAPIResponseDTO( - additional_capabilities = [ - '' - ], - capabilities = [ - visier_api_administration.models.capabilities_dto.CapabilitiesDTO( - access_level = '', - capability = '', - view_level = '', ) - ], - display_name = '', - profile_id = '' - ) - else: - return ProfileGetAPIResponseDTO( - ) - - def testProfileGetAPIResponseDTO(self): - """Test ProfileGetAPIResponseDTO""" - def validate_instance(instance): - ProfileGetAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = ProfileGetAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_profiles_api.py b/src/visier_api_administration/test/test_profiles_api.py index cc4c7c3b8e..9137a76753 100644 --- a/src/visier_api_administration/test/test_profiles_api.py +++ b/src/visier_api_administration/test/test_profiles_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_profiles_get_api_response_dto.py b/src/visier_api_administration/test/test_profiles_get_api_response_dto.py deleted file mode 100644 index 0fd12052ba..0000000000 --- a/src/visier_api_administration/test/test_profiles_get_api_response_dto.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.profiles_get_api_response_dto import ProfilesGetAPIResponseDTO - -class TestProfilesGetAPIResponseDTO(unittest.TestCase): - """ProfilesGetAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProfilesGetAPIResponseDTO: - """Test ProfilesGetAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProfilesGetAPIResponseDTO( - profiles = [ - visier_api_administration.models.profile_get_api_response_dto.ProfileGetAPIResponseDTO( - additional_capabilities = [ - '' - ], - capabilities = [ - visier_api_administration.models.capabilities_dto.CapabilitiesDTO( - access_level = '', - capability = '', - view_level = '', ) - ], - display_name = '', - profile_id = '', ) - ] - ) - else: - return ProfilesGetAPIResponseDTO( - ) - - def testProfilesGetAPIResponseDTO(self): - """Test ProfilesGetAPIResponseDTO""" - def validate_instance(instance): - ProfilesGetAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = ProfilesGetAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_project_commits_api_response_dto.py b/src/visier_api_administration/test/test_project_commits_api_response_dto.py deleted file mode 100644 index 1bc3c5c970..0000000000 --- a/src/visier_api_administration/test/test_project_commits_api_response_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.project_commits_api_response_dto import ProjectCommitsAPIResponseDTO - -class TestProjectCommitsAPIResponseDTO(unittest.TestCase): - """ProjectCommitsAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProjectCommitsAPIResponseDTO: - """Test ProjectCommitsAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProjectCommitsAPIResponseDTO( - commits = [ - visier_api_administration.models.commit_dto.CommitDTO( - description = '', - id = '', - name = '', ) - ] - ) - else: - return ProjectCommitsAPIResponseDTO( - ) - - def testProjectCommitsAPIResponseDTO(self): - """Test ProjectCommitsAPIResponseDTO""" - def validate_instance(instance): - ProjectCommitsAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = ProjectCommitsAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_project_dto.py b/src/visier_api_administration/test/test_project_dto.py deleted file mode 100644 index 6047beba38..0000000000 --- a/src/visier_api_administration/test/test_project_dto.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.project_dto import ProjectDTO - -class TestProjectDTO(unittest.TestCase): - """ProjectDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProjectDTO: - """Test ProjectDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProjectDTO( - capabilities = [ - 'canRead' - ], - description = '', - id = '', - name = '', - release_version = '', - ticket_number = '', - version_number = 56 - ) - else: - return ProjectDTO( - ) - - def testProjectDTO(self): - """Test ProjectDTO""" - def validate_instance(instance): - ProjectDTO.model_validate(inst_req_only) - instance_deserialized = ProjectDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_project_operation_request_dto.py b/src/visier_api_administration/test/test_project_operation_request_dto.py deleted file mode 100644 index 4dc3dc013a..0000000000 --- a/src/visier_api_administration/test/test_project_operation_request_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.project_operation_request_dto import ProjectOperationRequestDTO - -class TestProjectOperationRequestDTO(unittest.TestCase): - """ProjectOperationRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProjectOperationRequestDTO: - """Test ProjectOperationRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProjectOperationRequestDTO( - operation = 'unknown' - ) - else: - return ProjectOperationRequestDTO( - ) - - def testProjectOperationRequestDTO(self): - """Test ProjectOperationRequestDTO""" - def validate_instance(instance): - ProjectOperationRequestDTO.model_validate(inst_req_only) - instance_deserialized = ProjectOperationRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_project_operation_response_dto.py b/src/visier_api_administration/test/test_project_operation_response_dto.py deleted file mode 100644 index a657eb2929..0000000000 --- a/src/visier_api_administration/test/test_project_operation_response_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.project_operation_response_dto import ProjectOperationResponseDTO - -class TestProjectOperationResponseDTO(unittest.TestCase): - """ProjectOperationResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProjectOperationResponseDTO: - """Test ProjectOperationResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProjectOperationResponseDTO( - commit_and_publish = visier_api_administration.models.commit_and_publish_operation_response_dto.CommitAndPublishOperationResponseDTO( - published_version = None, ) - ) - else: - return ProjectOperationResponseDTO( - ) - - def testProjectOperationResponseDTO(self): - """Test ProjectOperationResponseDTO""" - def validate_instance(instance): - ProjectOperationResponseDTO.model_validate(inst_req_only) - instance_deserialized = ProjectOperationResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_projects_api.py b/src/visier_api_administration/test/test_projects_api.py index 1443f9fb87..0ddba54398 100644 --- a/src/visier_api_administration/test/test_projects_api.py +++ b/src/visier_api_administration/test/test_projects_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_property_access_config_dto.py b/src/visier_api_administration/test/test_property_access_config_dto.py deleted file mode 100644 index 30f4c48914..0000000000 --- a/src/visier_api_administration/test/test_property_access_config_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.property_access_config_dto import PropertyAccessConfigDTO - -class TestPropertyAccessConfigDTO(unittest.TestCase): - """PropertyAccessConfigDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertyAccessConfigDTO: - """Test PropertyAccessConfigDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertyAccessConfigDTO( - access_level = 'None', - analytic_object_id = '', - analytic_object_reference_paths = [ - '' - ], - property_id = '', - property_status = 'Unset' - ) - else: - return PropertyAccessConfigDTO( - ) - - def testPropertyAccessConfigDTO(self): - """Test PropertyAccessConfigDTO""" - def validate_instance(instance): - PropertyAccessConfigDTO.model_validate(inst_req_only) - instance_deserialized = PropertyAccessConfigDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_property_set_config_dto.py b/src/visier_api_administration/test/test_property_set_config_dto.py deleted file mode 100644 index a6a95cd7b1..0000000000 --- a/src/visier_api_administration/test/test_property_set_config_dto.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.property_set_config_dto import PropertySetConfigDTO - -class TestPropertySetConfigDTO(unittest.TestCase): - """PropertySetConfigDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertySetConfigDTO: - """Test PropertySetConfigDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertySetConfigDTO( - property_access_configs = [ - visier_api_administration.models.property_access_config_dto.PropertyAccessConfigDTO( - access_level = 'None', - analytic_object_id = '', - analytic_object_reference_paths = [ - '' - ], - property_id = '', - property_status = 'Unset', ) - ], - shareable_data_access_set = visier_api_administration.models.shareable_data_access_set.ShareableDataAccessSet( - data_access_set_id = '', ) - ) - else: - return PropertySetConfigDTO( - ) - - def testPropertySetConfigDTO(self): - """Test PropertySetConfigDTO""" - def validate_instance(instance): - PropertySetConfigDTO.model_validate(inst_req_only) - instance_deserialized = PropertySetConfigDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_put_project_commits_request.py b/src/visier_api_administration/test/test_put_project_commits_request.py deleted file mode 100644 index 133fe0518a..0000000000 --- a/src/visier_api_administration/test/test_put_project_commits_request.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.put_project_commits_request import PutProjectCommitsRequest - -class TestPutProjectCommitsRequest(unittest.TestCase): - """PutProjectCommitsRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PutProjectCommitsRequest: - """Test PutProjectCommitsRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PutProjectCommitsRequest( - project_id = '' - ) - else: - return PutProjectCommitsRequest( - ) - - def testPutProjectCommitsRequest(self): - """Test PutProjectCommitsRequest""" - def validate_instance(instance): - PutProjectCommitsRequest.model_validate(inst_req_only) - instance_deserialized = PutProjectCommitsRequest.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_reduced_error_dto.py b/src/visier_api_administration/test/test_reduced_error_dto.py deleted file mode 100644 index abf7707c33..0000000000 --- a/src/visier_api_administration/test/test_reduced_error_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.reduced_error_dto import ReducedErrorDTO - -class TestReducedErrorDTO(unittest.TestCase): - """ReducedErrorDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReducedErrorDTO: - """Test ReducedErrorDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ReducedErrorDTO( - error_message = '' - ) - else: - return ReducedErrorDTO( - ) - - def testReducedErrorDTO(self): - """Test ReducedErrorDTO""" - def validate_instance(instance): - ReducedErrorDTO.model_validate(inst_req_only) - instance_deserialized = ReducedErrorDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_reduced_tenant_code_error_dto.py b/src/visier_api_administration/test/test_reduced_tenant_code_error_dto.py deleted file mode 100644 index e64efe32a6..0000000000 --- a/src/visier_api_administration/test/test_reduced_tenant_code_error_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.reduced_tenant_code_error_dto import ReducedTenantCodeErrorDTO - -class TestReducedTenantCodeErrorDTO(unittest.TestCase): - """ReducedTenantCodeErrorDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReducedTenantCodeErrorDTO: - """Test ReducedTenantCodeErrorDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ReducedTenantCodeErrorDTO( - error = visier_api_administration.models.reduced_error_dto.ReducedErrorDTO( - error_message = '', ), - for_all_children = True, - tenant_code = '' - ) - else: - return ReducedTenantCodeErrorDTO( - ) - - def testReducedTenantCodeErrorDTO(self): - """Test ReducedTenantCodeErrorDTO""" - def validate_instance(instance): - ReducedTenantCodeErrorDTO.model_validate(inst_req_only) - instance_deserialized = ReducedTenantCodeErrorDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_reduced_user_id_error_dto.py b/src/visier_api_administration/test/test_reduced_user_id_error_dto.py deleted file mode 100644 index f1d3bedca8..0000000000 --- a/src/visier_api_administration/test/test_reduced_user_id_error_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.reduced_user_id_error_dto import ReducedUserIdErrorDTO - -class TestReducedUserIdErrorDTO(unittest.TestCase): - """ReducedUserIdErrorDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReducedUserIdErrorDTO: - """Test ReducedUserIdErrorDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ReducedUserIdErrorDTO( - error = visier_api_administration.models.reduced_error_dto.ReducedErrorDTO( - error_message = '', ), - user_id = '' - ) - else: - return ReducedUserIdErrorDTO( - ) - - def testReducedUserIdErrorDTO(self): - """Test ReducedUserIdErrorDTO""" - def validate_instance(instance): - ReducedUserIdErrorDTO.model_validate(inst_req_only) - instance_deserialized = ReducedUserIdErrorDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_related_analytic_object_dto.py b/src/visier_api_administration/test/test_related_analytic_object_dto.py deleted file mode 100644 index 20d5eff0c6..0000000000 --- a/src/visier_api_administration/test/test_related_analytic_object_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.related_analytic_object_dto import RelatedAnalyticObjectDTO - -class TestRelatedAnalyticObjectDTO(unittest.TestCase): - """RelatedAnalyticObjectDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RelatedAnalyticObjectDTO: - """Test RelatedAnalyticObjectDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return RelatedAnalyticObjectDTO( - analytic_object_id = '', - display_name = '' - ) - else: - return RelatedAnalyticObjectDTO( - ) - - def testRelatedAnalyticObjectDTO(self): - """Test RelatedAnalyticObjectDTO""" - def validate_instance(instance): - RelatedAnalyticObjectDTO.model_validate(inst_req_only) - instance_deserialized = RelatedAnalyticObjectDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_role_modules_config_dto.py b/src/visier_api_administration/test/test_role_modules_config_dto.py deleted file mode 100644 index 9d8041a5ad..0000000000 --- a/src/visier_api_administration/test/test_role_modules_config_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.role_modules_config_dto import RoleModulesConfigDTO - -class TestRoleModulesConfigDTO(unittest.TestCase): - """RoleModulesConfigDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RoleModulesConfigDTO: - """Test RoleModulesConfigDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return RoleModulesConfigDTO( - content_package_ids = [ - '' - ] - ) - else: - return RoleModulesConfigDTO( - ) - - def testRoleModulesConfigDTO(self): - """Test RoleModulesConfigDTO""" - def validate_instance(instance): - RoleModulesConfigDTO.model_validate(inst_req_only) - instance_deserialized = RoleModulesConfigDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_securable_dimension_dto.py b/src/visier_api_administration/test/test_securable_dimension_dto.py deleted file mode 100644 index 97f559936a..0000000000 --- a/src/visier_api_administration/test/test_securable_dimension_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.securable_dimension_dto import SecurableDimensionDTO - -class TestSecurableDimensionDTO(unittest.TestCase): - """SecurableDimensionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SecurableDimensionDTO: - """Test SecurableDimensionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SecurableDimensionDTO( - analytic_object_ids = [ - '' - ], - dimension_id = '', - display_name = '', - hierarchy_properties = [ - visier_api_administration.models.hierarchy_property_dto.HierarchyPropertyDTO( - display_name = '', - hierarchy_property_id = '', ) - ] - ) - else: - return SecurableDimensionDTO( - ) - - def testSecurableDimensionDTO(self): - """Test SecurableDimensionDTO""" - def validate_instance(instance): - SecurableDimensionDTO.model_validate(inst_req_only) - instance_deserialized = SecurableDimensionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_securable_property_dto.py b/src/visier_api_administration/test/test_securable_property_dto.py deleted file mode 100644 index 69e8808885..0000000000 --- a/src/visier_api_administration/test/test_securable_property_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.securable_property_dto import SecurablePropertyDTO - -class TestSecurablePropertyDTO(unittest.TestCase): - """SecurablePropertyDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SecurablePropertyDTO: - """Test SecurablePropertyDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SecurablePropertyDTO( - analytic_object_id = '', - display_name = '', - is_primary_key = True, - property_id = '', - reference_symbol_name = '' - ) - else: - return SecurablePropertyDTO( - ) - - def testSecurablePropertyDTO(self): - """Test SecurablePropertyDTO""" - def validate_instance(instance): - SecurablePropertyDTO.model_validate(inst_req_only) - instance_deserialized = SecurablePropertyDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_security_assignment_response_dto.py b/src/visier_api_administration/test/test_security_assignment_response_dto.py deleted file mode 100644 index c6ba02b717..0000000000 --- a/src/visier_api_administration/test/test_security_assignment_response_dto.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.security_assignment_response_dto import SecurityAssignmentResponseDTO - -class TestSecurityAssignmentResponseDTO(unittest.TestCase): - """SecurityAssignmentResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SecurityAssignmentResponseDTO: - """Test SecurityAssignmentResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SecurityAssignmentResponseDTO( - tenants = [ - visier_api_administration.models.tenant_assignments_dto.TenantAssignmentsDTO( - assignments = [ - visier_api_administration.models.user_security_assignments_dto.UserSecurityAssignmentsDTO( - id = '', - name = '', - users = [ - visier_api_administration.models.simple_user_dto.SimpleUserDTO( - user_id = '', - username = '', ) - ], ) - ], - message = '', - project_id = '', - status = 'Unknown', - tenant_code = '', ) - ] - ) - else: - return SecurityAssignmentResponseDTO( - ) - - def testSecurityAssignmentResponseDTO(self): - """Test SecurityAssignmentResponseDTO""" - def validate_instance(instance): - SecurityAssignmentResponseDTO.model_validate(inst_req_only) - instance_deserialized = SecurityAssignmentResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto.py new file mode 100644 index 0000000000..3b8457a423 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto import ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO + +class TestServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO: + """Test ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO( + target_tenant_codes = [ + visier_api_administration.models.servicing/publicapi/transfers/target_tenant_code_dto.servicing.publicapi.transfers.TargetTenantCodeDTO( + for_all_children = True, + tenant_code = '', ) + ], + target_user_ids = [ + '' + ], + validity_end_time = '', + validity_start_time = '' + ) + else: + return ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO( + ) + + def testServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO(self): + """Test ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_accessible_tenant_profile_assignment_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_accessible_tenant_profile_assignment_response_dto.py new file mode 100644 index 0000000000..8b9265cdb9 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_accessible_tenant_profile_assignment_response_dto.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_assignment_response_dto import ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO + +class TestServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO: + """Test ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO( + bad_tenant_codes = [ + visier_api_administration.models.servicing/publicapi/transfers/tenant_code_error_dto.servicing.publicapi.transfers.TenantCodeErrorDTO( + error = None, + for_all_children = True, + tenant_code = '', ) + ], + bad_user_ids = [ + visier_api_administration.models.servicing/publicapi/transfers/user_id_error_dto.servicing.publicapi.transfers.UserIdErrorDTO( + error = None, + user_id = '', ) + ], + errors = True, + failed_assignments = [ + visier_api_administration.models.servicing/publicapi/transfers/failed_accessible_tenant_profile_assignment_dto.servicing.publicapi.transfers.FailedAccessibleTenantProfileAssignmentDTO( + error = None, + for_all_children = True, + tenant_code = '', + user_id = '', ) + ], + successful_assignments = [ + visier_api_administration.models.servicing/publicapi/transfers/successful_accessible_tenant_profile_assignment_dto.servicing.publicapi.transfers.SuccessfulAccessibleTenantProfileAssignmentDTO( + for_all_children = True, + tenant_code = '', + user_id = '', ) + ] + ) + else: + return ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO( + ) + + def testServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO(self): + """Test ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto.py new file mode 100644 index 0000000000..2a36696dc0 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto import ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO + +class TestServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO: + """Test ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO( + target_tenant_codes = [ + visier_api_administration.models.servicing/publicapi/transfers/target_tenant_code_dto.servicing.publicapi.transfers.TargetTenantCodeDTO( + for_all_children = True, + tenant_code = '', ) + ], + target_user_ids = [ + '' + ] + ) + else: + return ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO( + ) + + def testServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO(self): + """Test ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_accessible_tenant_profile_revoke_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_accessible_tenant_profile_revoke_response_dto.py new file mode 100644 index 0000000000..62dee5cb4a --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_accessible_tenant_profile_revoke_response_dto.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_revoke_response_dto import ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO + +class TestServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO: + """Test ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO( + bad_tenant_codes = [ + visier_api_administration.models.servicing/publicapi/transfers/reduced_tenant_code_error_dto.servicing.publicapi.transfers.ReducedTenantCodeErrorDTO( + error = None, + for_all_children = True, + tenant_code = '', ) + ], + bad_user_ids = [ + visier_api_administration.models.servicing/publicapi/transfers/reduced_user_id_error_dto.servicing.publicapi.transfers.ReducedUserIdErrorDTO( + error = None, + user_id = '', ) + ], + succeeded = [ + visier_api_administration.models.servicing/publicapi/transfers/successful_local_tenant_profile_assignment_dto.servicing.publicapi.transfers.SuccessfulLocalTenantProfileAssignmentDTO( + user_id = '', ) + ], + unaffected_users = [ + visier_api_administration.models.servicing/publicapi/transfers/successful_local_tenant_profile_assignment_dto.servicing.publicapi.transfers.SuccessfulLocalTenantProfileAssignmentDTO( + user_id = '', ) + ] + ) + else: + return ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO( + ) + + def testServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO(self): + """Test ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_additional_capabilities_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_additional_capabilities_dto.py new file mode 100644 index 0000000000..5997835c1c --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_additional_capabilities_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_additional_capabilities_dto import ServicingPublicapiTransfersAdditionalCapabilitiesDTO + +class TestServicingPublicapiTransfersAdditionalCapabilitiesDTO(unittest.TestCase): + """ServicingPublicapiTransfersAdditionalCapabilitiesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAdditionalCapabilitiesDTO: + """Test ServicingPublicapiTransfersAdditionalCapabilitiesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAdditionalCapabilitiesDTO( + additional_capabilities = [ + '' + ] + ) + else: + return ServicingPublicapiTransfersAdditionalCapabilitiesDTO( + ) + + def testServicingPublicapiTransfersAdditionalCapabilitiesDTO(self): + """Test ServicingPublicapiTransfersAdditionalCapabilitiesDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAdditionalCapabilitiesDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAdditionalCapabilitiesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_admin_capability_config_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_admin_capability_config_dto.py new file mode 100644 index 0000000000..219ab2f283 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_admin_capability_config_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_admin_capability_config_dto import ServicingPublicapiTransfersAdminCapabilityConfigDTO + +class TestServicingPublicapiTransfersAdminCapabilityConfigDTO(unittest.TestCase): + """ServicingPublicapiTransfersAdminCapabilityConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAdminCapabilityConfigDTO: + """Test ServicingPublicapiTransfersAdminCapabilityConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAdminCapabilityConfigDTO( + all_capabilities_access = True, + capabilities = [ + '' + ] + ) + else: + return ServicingPublicapiTransfersAdminCapabilityConfigDTO( + ) + + def testServicingPublicapiTransfersAdminCapabilityConfigDTO(self): + """Test ServicingPublicapiTransfersAdminCapabilityConfigDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAdminCapabilityConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAdminCapabilityConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_all_permissions_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_all_permissions_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..d7124b08a7 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_all_permissions_assigned_for_local_tenant_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_all_permissions_assigned_for_local_tenant_dto import ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO + +class TestServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO(unittest.TestCase): + """ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO: + """Test ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO( + assigned_permissions = [ + visier_api_administration.models.servicing/publicapi/transfers/permission_assigned_for_local_tenant_dto.servicing.publicapi.transfers.PermissionAssignedForLocalTenantDTO( + description = '', + display_name = '', + permission_id = '', ) + ] + ) + else: + return ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO( + ) + + def testServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO(self): + """Test ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_all_profile_assigned_for_accessible_tenant_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_all_profile_assigned_for_accessible_tenant_dto.py new file mode 100644 index 0000000000..bc7bcd9095 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_all_profile_assigned_for_accessible_tenant_dto.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_all_profile_assigned_for_accessible_tenant_dto import ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO + +class TestServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO(unittest.TestCase): + """ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO: + """Test ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO( + assigned_profiles_for_accessible_tenant = [ + visier_api_administration.models.servicing/publicapi/transfers/profile_assigned_for_accessible_tenant_dto.servicing.publicapi.transfers.ProfileAssignedForAccessibleTenantDTO( + display_name = '', + for_all_children = True, + profile_id = '', + tenant_code = '', + validity_end_time = '', + validity_start_time = '', ) + ] + ) + else: + return ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO( + ) + + def testServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO(self): + """Test ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_all_profile_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_all_profile_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..1c6d7454b6 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_all_profile_assigned_for_local_tenant_dto.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_all_profile_assigned_for_local_tenant_dto import ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO + +class TestServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO(unittest.TestCase): + """ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO: + """Test ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO( + assigned_profiles = [ + visier_api_administration.models.servicing/publicapi/transfers/profile_assigned_for_local_tenant_dto.servicing.publicapi.transfers.ProfileAssignedForLocalTenantDTO( + additional_capabilities = None, + capabilities = [ + visier_api_administration.models.servicing/publicapi/transfers/capabilities_dto.servicing.publicapi.transfers.CapabilitiesDTO( + access_level = '', + capability = '', + view_level = '', ) + ], + display_name = '', + profile_id = '', + validity_end_time = '', + validity_start_time = '', ) + ] + ) + else: + return ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO( + ) + + def testServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO(self): + """Test ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_all_user_groups_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_all_user_groups_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..111e677a48 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_all_user_groups_assigned_for_local_tenant_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_all_user_groups_assigned_for_local_tenant_dto import ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO + +class TestServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO(unittest.TestCase): + """ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO: + """Test ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO( + assigned_user_groups = [ + visier_api_administration.models.servicing/publicapi/transfers/user_group_assigned_for_local_tenant_dto.servicing.publicapi.transfers.UserGroupAssignedForLocalTenantDTO( + display_name = '', + user_group_id = '', ) + ] + ) + else: + return ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO( + ) + + def testServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO(self): + """Test ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_all_users_get_api_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_all_users_get_api_response_dto.py new file mode 100644 index 0000000000..a977503f3b --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_all_users_get_api_response_dto.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_all_users_get_api_response_dto import ServicingPublicapiTransfersAllUsersGetAPIResponseDTO + +class TestServicingPublicapiTransfersAllUsersGetAPIResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersAllUsersGetAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAllUsersGetAPIResponseDTO: + """Test ServicingPublicapiTransfersAllUsersGetAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAllUsersGetAPIResponseDTO( + limit = 56, + start = 56, + users = [ + visier_api_administration.models.servicing/publicapi/transfers/user_get_api_response_dto.servicing.publicapi.transfers.UserGetAPIResponseDTO( + account_enabled = True, + display_name = '', + email = '', + employee_id = '', + last_login = None, + permissions = None, + profiles = None, + user_groups = None, + user_id = '', + username = '', ) + ] + ) + else: + return ServicingPublicapiTransfersAllUsersGetAPIResponseDTO( + ) + + def testServicingPublicapiTransfersAllUsersGetAPIResponseDTO(self): + """Test ServicingPublicapiTransfersAllUsersGetAPIResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAllUsersGetAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAllUsersGetAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_analytic_object_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_analytic_object_dto.py new file mode 100644 index 0000000000..a8b8b074cd --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_analytic_object_dto.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_analytic_object_dto import ServicingPublicapiTransfersAnalyticObjectDTO + +class TestServicingPublicapiTransfersAnalyticObjectDTO(unittest.TestCase): + """ServicingPublicapiTransfersAnalyticObjectDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAnalyticObjectDTO: + """Test ServicingPublicapiTransfersAnalyticObjectDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAnalyticObjectDTO( + analytic_object_id = '', + display_name = '', + object_type = 'Event', + related_objects = [ + visier_api_administration.models.servicing/publicapi/transfers/related_analytic_object_dto.servicing.publicapi.transfers.RelatedAnalyticObjectDTO( + analytic_object_id = '', + display_name = '', ) + ], + securable_dimensions = [ + visier_api_administration.models.servicing/publicapi/transfers/securable_dimension_dto.servicing.publicapi.transfers.SecurableDimensionDTO( + analytic_object_ids = [ + '' + ], + dimension_id = '', + display_name = '', + hierarchy_properties = [ + visier_api_administration.models.servicing/publicapi/transfers/hierarchy_property_dto.servicing.publicapi.transfers.HierarchyPropertyDTO( + display_name = '', + hierarchy_property_id = '', ) + ], ) + ], + securable_properties = [ + visier_api_administration.models.servicing/publicapi/transfers/securable_property_dto.servicing.publicapi.transfers.SecurablePropertyDTO( + analytic_object_id = '', + display_name = '', + is_primary_key = True, + property_id = '', + reference_symbol_name = '', ) + ] + ) + else: + return ServicingPublicapiTransfersAnalyticObjectDTO( + ) + + def testServicingPublicapiTransfersAnalyticObjectDTO(self): + """Test ServicingPublicapiTransfersAnalyticObjectDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAnalyticObjectDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAnalyticObjectDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permission_by_permission_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permission_by_permission_dto.py new file mode 100644 index 0000000000..cda3ea03f8 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permission_by_permission_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_by_permission_dto import ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO + +class TestServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO(unittest.TestCase): + """ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO: + """Test ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO( + permission = visier_api_administration.models.servicing/publicapi/transfers/permission_assigned_for_local_tenant_dto.servicing.publicapi.transfers.PermissionAssignedForLocalTenantDTO( + description = '', + display_name = '', + permission_id = '', ), + users = [ + visier_api_administration.models.servicing/publicapi/transfers/assign_revoke_permission_by_user_dto.servicing.publicapi.transfers.AssignRevokePermissionByUserDTO( + message = '', + user_id = '', + username = '', ) + ] + ) + else: + return ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO( + ) + + def testServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO(self): + """Test ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permission_by_tenant_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permission_by_tenant_dto.py new file mode 100644 index 0000000000..03d98191c1 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permission_by_tenant_dto.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_by_tenant_dto import ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO + +class TestServicingPublicapiTransfersAssignRevokePermissionByTenantDTO(unittest.TestCase): + """ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO: + """Test ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO( + message = '', + permissions = [ + visier_api_administration.models.servicing/publicapi/transfers/assign_revoke_permission_by_permission_dto.servicing.publicapi.transfers.AssignRevokePermissionByPermissionDTO( + permission = visier_api_administration.models.servicing/publicapi/transfers/permission_assigned_for_local_tenant_dto.servicing.publicapi.transfers.PermissionAssignedForLocalTenantDTO( + description = '', + display_name = '', + permission_id = '', ), + users = [ + visier_api_administration.models.servicing/publicapi/transfers/assign_revoke_permission_by_user_dto.servicing.publicapi.transfers.AssignRevokePermissionByUserDTO( + message = '', + user_id = '', + username = '', ) + ], ) + ], + project_id = '', + status = 'Unknown', + tenant_code = '' + ) + else: + return ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO( + ) + + def testServicingPublicapiTransfersAssignRevokePermissionByTenantDTO(self): + """Test ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permission_by_user_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permission_by_user_dto.py new file mode 100644 index 0000000000..d01270e971 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permission_by_user_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_by_user_dto import ServicingPublicapiTransfersAssignRevokePermissionByUserDTO + +class TestServicingPublicapiTransfersAssignRevokePermissionByUserDTO(unittest.TestCase): + """ServicingPublicapiTransfersAssignRevokePermissionByUserDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAssignRevokePermissionByUserDTO: + """Test ServicingPublicapiTransfersAssignRevokePermissionByUserDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAssignRevokePermissionByUserDTO( + message = '', + user_id = '', + username = '' + ) + else: + return ServicingPublicapiTransfersAssignRevokePermissionByUserDTO( + ) + + def testServicingPublicapiTransfersAssignRevokePermissionByUserDTO(self): + """Test ServicingPublicapiTransfersAssignRevokePermissionByUserDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAssignRevokePermissionByUserDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAssignRevokePermissionByUserDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permission_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permission_request_dto.py new file mode 100644 index 0000000000..5f1a3311a1 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permission_request_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_request_dto import ServicingPublicapiTransfersAssignRevokePermissionRequestDTO + +class TestServicingPublicapiTransfersAssignRevokePermissionRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersAssignRevokePermissionRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAssignRevokePermissionRequestDTO: + """Test ServicingPublicapiTransfersAssignRevokePermissionRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAssignRevokePermissionRequestDTO( + permission_id = '', + user_ids = [ + '' + ] + ) + else: + return ServicingPublicapiTransfersAssignRevokePermissionRequestDTO( + ) + + def testServicingPublicapiTransfersAssignRevokePermissionRequestDTO(self): + """Test ServicingPublicapiTransfersAssignRevokePermissionRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAssignRevokePermissionRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAssignRevokePermissionRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permissions_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permissions_request_dto.py new file mode 100644 index 0000000000..7a5aa1f66c --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permissions_request_dto.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permissions_request_dto import ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO + +class TestServicingPublicapiTransfersAssignRevokePermissionsRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO: + """Test ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO( + permissions = [ + visier_api_administration.models.servicing/publicapi/transfers/assign_revoke_permission_request_dto.servicing.publicapi.transfers.AssignRevokePermissionRequestDTO( + permission_id = '', + user_ids = [ + '' + ], ) + ], + target_project_for_tenants_list = visier_api_administration.models.admin/transfers/target_project_for_tenants_list_dto.admin.transfers.TargetProjectForTenantsListDTO( + target_project_for_tenants = [ + visier_api_administration.models.admin/transfers/target_project_for_tenant_dto.admin.transfers.TargetProjectForTenantDTO( + project_id = '', + tenant_code = '', ) + ], ) + ) + else: + return ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO( + ) + + def testServicingPublicapiTransfersAssignRevokePermissionsRequestDTO(self): + """Test ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permissions_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permissions_response_dto.py new file mode 100644 index 0000000000..69d608ee84 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_assign_revoke_permissions_response_dto.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permissions_response_dto import ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO + +class TestServicingPublicapiTransfersAssignRevokePermissionsResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO: + """Test ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO( + tenants = [ + visier_api_administration.models.servicing/publicapi/transfers/assign_revoke_permission_by_tenant_dto.servicing.publicapi.transfers.AssignRevokePermissionByTenantDTO( + message = '', + permissions = [ + visier_api_administration.models.servicing/publicapi/transfers/assign_revoke_permission_by_permission_dto.servicing.publicapi.transfers.AssignRevokePermissionByPermissionDTO( + permission = visier_api_administration.models.servicing/publicapi/transfers/permission_assigned_for_local_tenant_dto.servicing.publicapi.transfers.PermissionAssignedForLocalTenantDTO( + description = '', + display_name = '', + permission_id = '', ), + users = [ + visier_api_administration.models.servicing/publicapi/transfers/assign_revoke_permission_by_user_dto.servicing.publicapi.transfers.AssignRevokePermissionByUserDTO( + message = '', + user_id = '', + username = '', ) + ], ) + ], + project_id = '', + status = 'Unknown', + tenant_code = '', ) + ] + ) + else: + return ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO( + ) + + def testServicingPublicapiTransfersAssignRevokePermissionsResponseDTO(self): + """Test ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_bulk_data_access_set_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_bulk_data_access_set_response_dto.py new file mode 100644 index 0000000000..d689eb236f --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_bulk_data_access_set_response_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_bulk_data_access_set_response_dto import ServicingPublicapiTransfersBulkDataAccessSetResponseDTO + +class TestServicingPublicapiTransfersBulkDataAccessSetResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersBulkDataAccessSetResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersBulkDataAccessSetResponseDTO: + """Test ServicingPublicapiTransfersBulkDataAccessSetResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersBulkDataAccessSetResponseDTO( + failures = [ + visier_api_administration.models.servicing/publicapi/transfers/data_access_set_failure_dto.servicing.publicapi.transfers.DataAccessSetFailureDTO( + data_access_set_id = '', + display_name = '', + error = None, ) + ], + successes = [ + visier_api_administration.models.servicing/publicapi/transfers/data_access_set_success_dto.servicing.publicapi.transfers.DataAccessSetSuccessDTO( + data_access_set_id = '', + display_name = '', ) + ] + ) + else: + return ServicingPublicapiTransfersBulkDataAccessSetResponseDTO( + ) + + def testServicingPublicapiTransfersBulkDataAccessSetResponseDTO(self): + """Test ServicingPublicapiTransfersBulkDataAccessSetResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersBulkDataAccessSetResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersBulkDataAccessSetResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_capabilities_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_capabilities_dto.py new file mode 100644 index 0000000000..418a94d50a --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_capabilities_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_capabilities_dto import ServicingPublicapiTransfersCapabilitiesDTO + +class TestServicingPublicapiTransfersCapabilitiesDTO(unittest.TestCase): + """ServicingPublicapiTransfersCapabilitiesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersCapabilitiesDTO: + """Test ServicingPublicapiTransfersCapabilitiesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersCapabilitiesDTO( + access_level = '', + capability = '', + view_level = '' + ) + else: + return ServicingPublicapiTransfersCapabilitiesDTO( + ) + + def testServicingPublicapiTransfersCapabilitiesDTO(self): + """Test ServicingPublicapiTransfersCapabilitiesDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersCapabilitiesDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersCapabilitiesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_capability_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_capability_dto.py new file mode 100644 index 0000000000..0e06b5b6ad --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_capability_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_capability_dto import ServicingPublicapiTransfersCapabilityDTO + +class TestServicingPublicapiTransfersCapabilityDTO(unittest.TestCase): + """ServicingPublicapiTransfersCapabilityDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersCapabilityDTO: + """Test ServicingPublicapiTransfersCapabilityDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersCapabilityDTO( + description = '', + display_name = '', + name = '' + ) + else: + return ServicingPublicapiTransfersCapabilityDTO( + ) + + def testServicingPublicapiTransfersCapabilityDTO(self): + """Test ServicingPublicapiTransfersCapabilityDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersCapabilityDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersCapabilityDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_commit_and_publish_operation_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_commit_and_publish_operation_response_dto.py new file mode 100644 index 0000000000..df4301c47b --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_commit_and_publish_operation_response_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_commit_and_publish_operation_response_dto import ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO + +class TestServicingPublicapiTransfersCommitAndPublishOperationResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO: + """Test ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO( + published_version = visier_api_administration.models.servicing/publicapi/transfers/project_dto.servicing.publicapi.transfers.ProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56, ) + ) + else: + return ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO( + ) + + def testServicingPublicapiTransfersCommitAndPublishOperationResponseDTO(self): + """Test ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_commit_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_commit_dto.py new file mode 100644 index 0000000000..c23d8213dd --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_commit_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_commit_dto import ServicingPublicapiTransfersCommitDTO + +class TestServicingPublicapiTransfersCommitDTO(unittest.TestCase): + """ServicingPublicapiTransfersCommitDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersCommitDTO: + """Test ServicingPublicapiTransfersCommitDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersCommitDTO( + description = '', + id = '', + name = '' + ) + else: + return ServicingPublicapiTransfersCommitDTO( + ) + + def testServicingPublicapiTransfersCommitDTO(self): + """Test ServicingPublicapiTransfersCommitDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersCommitDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersCommitDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_content_package_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_content_package_dto.py new file mode 100644 index 0000000000..c8aa430b7a --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_content_package_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_content_package_dto import ServicingPublicapiTransfersContentPackageDTO + +class TestServicingPublicapiTransfersContentPackageDTO(unittest.TestCase): + """ServicingPublicapiTransfersContentPackageDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersContentPackageDTO: + """Test ServicingPublicapiTransfersContentPackageDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersContentPackageDTO( + content_package_id = '', + description = '', + display_name = '' + ) + else: + return ServicingPublicapiTransfersContentPackageDTO( + ) + + def testServicingPublicapiTransfersContentPackageDTO(self): + """Test ServicingPublicapiTransfersContentPackageDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersContentPackageDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersContentPackageDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_create_data_access_set_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_create_data_access_set_request_dto.py new file mode 100644 index 0000000000..5d088b603e --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_create_data_access_set_request_dto.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_create_data_access_set_request_dto import ServicingPublicapiTransfersCreateDataAccessSetRequestDTO + +class TestServicingPublicapiTransfersCreateDataAccessSetRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersCreateDataAccessSetRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersCreateDataAccessSetRequestDTO: + """Test ServicingPublicapiTransfersCreateDataAccessSetRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersCreateDataAccessSetRequestDTO( + shareable_property_access_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/data_access_set_dto.servicing.publicapi.transfers.DataAccessSetDTO( + analytic_object_id = '', + description = '', + display_name = '', + id = '', + property_access_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/property_access_config_dto.servicing.publicapi.transfers.PropertyAccessConfigDTO( + access_level = 'None', + analytic_object_id = '', + analytic_object_reference_paths = [ + '' + ], + property_id = '', + property_status = 'Unset', ) + ], ) + ] + ) + else: + return ServicingPublicapiTransfersCreateDataAccessSetRequestDTO( + ) + + def testServicingPublicapiTransfersCreateDataAccessSetRequestDTO(self): + """Test ServicingPublicapiTransfersCreateDataAccessSetRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersCreateDataAccessSetRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersCreateDataAccessSetRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_data_access_set_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_data_access_set_dto.py new file mode 100644 index 0000000000..369c478c2f --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_data_access_set_dto.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_dto import ServicingPublicapiTransfersDataAccessSetDTO + +class TestServicingPublicapiTransfersDataAccessSetDTO(unittest.TestCase): + """ServicingPublicapiTransfersDataAccessSetDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDataAccessSetDTO: + """Test ServicingPublicapiTransfersDataAccessSetDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDataAccessSetDTO( + analytic_object_id = '', + description = '', + display_name = '', + id = '', + property_access_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/property_access_config_dto.servicing.publicapi.transfers.PropertyAccessConfigDTO( + access_level = 'None', + analytic_object_id = '', + analytic_object_reference_paths = [ + '' + ], + property_id = '', + property_status = 'Unset', ) + ] + ) + else: + return ServicingPublicapiTransfersDataAccessSetDTO( + ) + + def testServicingPublicapiTransfersDataAccessSetDTO(self): + """Test ServicingPublicapiTransfersDataAccessSetDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDataAccessSetDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDataAccessSetDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_data_access_set_error_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_data_access_set_error_dto.py new file mode 100644 index 0000000000..e4eed93a03 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_data_access_set_error_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_error_dto import ServicingPublicapiTransfersDataAccessSetErrorDTO + +class TestServicingPublicapiTransfersDataAccessSetErrorDTO(unittest.TestCase): + """ServicingPublicapiTransfersDataAccessSetErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDataAccessSetErrorDTO: + """Test ServicingPublicapiTransfersDataAccessSetErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDataAccessSetErrorDTO( + message = '', + rci = '' + ) + else: + return ServicingPublicapiTransfersDataAccessSetErrorDTO( + ) + + def testServicingPublicapiTransfersDataAccessSetErrorDTO(self): + """Test ServicingPublicapiTransfersDataAccessSetErrorDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDataAccessSetErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDataAccessSetErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_data_access_set_failure_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_data_access_set_failure_dto.py new file mode 100644 index 0000000000..488c872d03 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_data_access_set_failure_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_failure_dto import ServicingPublicapiTransfersDataAccessSetFailureDTO + +class TestServicingPublicapiTransfersDataAccessSetFailureDTO(unittest.TestCase): + """ServicingPublicapiTransfersDataAccessSetFailureDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDataAccessSetFailureDTO: + """Test ServicingPublicapiTransfersDataAccessSetFailureDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDataAccessSetFailureDTO( + data_access_set_id = '', + display_name = '', + error = visier_api_administration.models.servicing/publicapi/transfers/data_access_set_error_dto.servicing.publicapi.transfers.DataAccessSetErrorDTO( + message = '', + rci = '', ) + ) + else: + return ServicingPublicapiTransfersDataAccessSetFailureDTO( + ) + + def testServicingPublicapiTransfersDataAccessSetFailureDTO(self): + """Test ServicingPublicapiTransfersDataAccessSetFailureDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDataAccessSetFailureDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDataAccessSetFailureDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_data_access_set_success_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_data_access_set_success_dto.py new file mode 100644 index 0000000000..5b8f2dfdeb --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_data_access_set_success_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_success_dto import ServicingPublicapiTransfersDataAccessSetSuccessDTO + +class TestServicingPublicapiTransfersDataAccessSetSuccessDTO(unittest.TestCase): + """ServicingPublicapiTransfersDataAccessSetSuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDataAccessSetSuccessDTO: + """Test ServicingPublicapiTransfersDataAccessSetSuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDataAccessSetSuccessDTO( + data_access_set_id = '', + display_name = '' + ) + else: + return ServicingPublicapiTransfersDataAccessSetSuccessDTO( + ) + + def testServicingPublicapiTransfersDataAccessSetSuccessDTO(self): + """Test ServicingPublicapiTransfersDataAccessSetSuccessDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDataAccessSetSuccessDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDataAccessSetSuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_data_security_profile_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_data_security_profile_dto.py new file mode 100644 index 0000000000..d9f16f082b --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_data_security_profile_dto.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_data_security_profile_dto import ServicingPublicapiTransfersDataSecurityProfileDTO + +class TestServicingPublicapiTransfersDataSecurityProfileDTO(unittest.TestCase): + """ServicingPublicapiTransfersDataSecurityProfileDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDataSecurityProfileDTO: + """Test ServicingPublicapiTransfersDataSecurityProfileDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDataSecurityProfileDTO( + all_data_point_access = True, + analytic_object_id = '', + analytic_object_status = 'Unset', + inherited_access_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/inherited_access_config_dto.servicing.publicapi.transfers.InheritedAccessConfigDTO( + analytic_object_id = '', + member_filter_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/member_filter_config_dto.servicing.publicapi.transfers.MemberFilterConfigDTO( + dimension_filters = [ + visier_api_administration.models.servicing/publicapi/transfers/dimension_filter_dto.servicing.publicapi.transfers.DimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/dynamic_dimension_filter_dto.servicing.publicapi.transfers.DynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/publicapi/transfers/dynamic_property_mapping_dto.servicing.publicapi.transfers.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ], ), + static_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/static_dimension_filter_dto.servicing.publicapi.transfers.StaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/publicapi/transfers/member_selection_dto.servicing.publicapi.transfers.MemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ], ) + ], ), ) + ], ) + ], + remove_access = True, ) + ], + inherited_reference_member_filter_config = visier_api_administration.models.servicing/publicapi/transfers/inherited_reference_member_filter_config_dto.servicing.publicapi.transfers.InheritedReferenceMemberFilterConfigDTO( + analytic_object_reference = '', + target_analytic_object_id = '', ), + member_filter_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/member_filter_config_dto.servicing.publicapi.transfers.MemberFilterConfigDTO( + dimension_filters = [ + visier_api_administration.models.servicing/publicapi/transfers/dimension_filter_dto.servicing.publicapi.transfers.DimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/dynamic_dimension_filter_dto.servicing.publicapi.transfers.DynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/publicapi/transfers/dynamic_property_mapping_dto.servicing.publicapi.transfers.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ], ), + static_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/static_dimension_filter_dto.servicing.publicapi.transfers.StaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/publicapi/transfers/member_selection_dto.servicing.publicapi.transfers.MemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ], ) + ], ), ) + ], ) + ], + property_set_config = visier_api_administration.models.servicing/publicapi/transfers/property_set_config_dto.servicing.publicapi.transfers.PropertySetConfigDTO( + property_access_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/property_access_config_dto.servicing.publicapi.transfers.PropertyAccessConfigDTO( + access_level = 'None', + analytic_object_id = '', + analytic_object_reference_paths = [ + '' + ], + property_id = '', + property_status = 'Unset', ) + ], + shareable_data_access_set = None, ) + ) + else: + return ServicingPublicapiTransfersDataSecurityProfileDTO( + ) + + def testServicingPublicapiTransfersDataSecurityProfileDTO(self): + """Test ServicingPublicapiTransfersDataSecurityProfileDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDataSecurityProfileDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDataSecurityProfileDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_delete_permissions_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_delete_permissions_request_dto.py new file mode 100644 index 0000000000..2425735ebd --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_delete_permissions_request_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_delete_permissions_request_dto import ServicingPublicapiTransfersDeletePermissionsRequestDTO + +class TestServicingPublicapiTransfersDeletePermissionsRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersDeletePermissionsRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDeletePermissionsRequestDTO: + """Test ServicingPublicapiTransfersDeletePermissionsRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDeletePermissionsRequestDTO( + permission_ids = [ + '' + ] + ) + else: + return ServicingPublicapiTransfersDeletePermissionsRequestDTO( + ) + + def testServicingPublicapiTransfersDeletePermissionsRequestDTO(self): + """Test ServicingPublicapiTransfersDeletePermissionsRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDeletePermissionsRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDeletePermissionsRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_dimension_filter_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_dimension_filter_dto.py new file mode 100644 index 0000000000..d3469954fc --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_dimension_filter_dto.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_dimension_filter_dto import ServicingPublicapiTransfersDimensionFilterDTO + +class TestServicingPublicapiTransfersDimensionFilterDTO(unittest.TestCase): + """ServicingPublicapiTransfersDimensionFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDimensionFilterDTO: + """Test ServicingPublicapiTransfersDimensionFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/dynamic_dimension_filter_dto.servicing.publicapi.transfers.DynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/publicapi/transfers/dynamic_property_mapping_dto.servicing.publicapi.transfers.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ], ), + static_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/static_dimension_filter_dto.servicing.publicapi.transfers.StaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/publicapi/transfers/member_selection_dto.servicing.publicapi.transfers.MemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ], ) + ], + subject_reference_path = [ + '' + ], ) + ) + else: + return ServicingPublicapiTransfersDimensionFilterDTO( + ) + + def testServicingPublicapiTransfersDimensionFilterDTO(self): + """Test ServicingPublicapiTransfersDimensionFilterDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDimensionFilterDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDimensionFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_dynamic_dimension_filter_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_dynamic_dimension_filter_dto.py new file mode 100644 index 0000000000..953b11e2b6 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_dynamic_dimension_filter_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_dynamic_dimension_filter_dto import ServicingPublicapiTransfersDynamicDimensionFilterDTO + +class TestServicingPublicapiTransfersDynamicDimensionFilterDTO(unittest.TestCase): + """ServicingPublicapiTransfersDynamicDimensionFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDynamicDimensionFilterDTO: + """Test ServicingPublicapiTransfersDynamicDimensionFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/publicapi/transfers/dynamic_property_mapping_dto.servicing.publicapi.transfers.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ] + ) + else: + return ServicingPublicapiTransfersDynamicDimensionFilterDTO( + ) + + def testServicingPublicapiTransfersDynamicDimensionFilterDTO(self): + """Test ServicingPublicapiTransfersDynamicDimensionFilterDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDynamicDimensionFilterDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDynamicDimensionFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_dynamic_property_mapping_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_dynamic_property_mapping_dto.py new file mode 100644 index 0000000000..8533a725ca --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_dynamic_property_mapping_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_dynamic_property_mapping_dto import ServicingPublicapiTransfersDynamicPropertyMappingDTO + +class TestServicingPublicapiTransfersDynamicPropertyMappingDTO(unittest.TestCase): + """ServicingPublicapiTransfersDynamicPropertyMappingDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDynamicPropertyMappingDTO: + """Test ServicingPublicapiTransfersDynamicPropertyMappingDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = visier_api_administration.models.servicing/publicapi/transfers/user_property_dto.servicing.publicapi.transfers.UserPropertyDTO( + name = '', ) + ) + else: + return ServicingPublicapiTransfersDynamicPropertyMappingDTO( + ) + + def testServicingPublicapiTransfersDynamicPropertyMappingDTO(self): + """Test ServicingPublicapiTransfersDynamicPropertyMappingDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDynamicPropertyMappingDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDynamicPropertyMappingDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_error_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_error_dto.py new file mode 100644 index 0000000000..16ee3ebc45 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_error_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_error_dto import ServicingPublicapiTransfersErrorDTO + +class TestServicingPublicapiTransfersErrorDTO(unittest.TestCase): + """ServicingPublicapiTransfersErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersErrorDTO: + """Test ServicingPublicapiTransfersErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersErrorDTO( + error_code = '', + error_message = '', + root_cause_id = '' + ) + else: + return ServicingPublicapiTransfersErrorDTO( + ) + + def testServicingPublicapiTransfersErrorDTO(self): + """Test ServicingPublicapiTransfersErrorDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_export_production_versions_api_operation_parameters_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_export_production_versions_api_operation_parameters_dto.py new file mode 100644 index 0000000000..3f062b2a19 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_export_production_versions_api_operation_parameters_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_export_production_versions_api_operation_parameters_dto import ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO + +class TestServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO(unittest.TestCase): + """ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO: + """Test ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO( + end_version = '', + excluded_versions = [ + '' + ], + start_version = '' + ) + else: + return ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO( + ) + + def testServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO(self): + """Test ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_failed_accessible_tenant_profile_assignment_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_failed_accessible_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..097c5a586c --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_failed_accessible_tenant_profile_assignment_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_failed_accessible_tenant_profile_assignment_dto import ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO + +class TestServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO(unittest.TestCase): + """ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO: + """Test ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO( + error = visier_api_administration.models.servicing/publicapi/transfers/error_dto.servicing.publicapi.transfers.ErrorDTO( + error_code = '', + error_message = '', + root_cause_id = '', ), + for_all_children = True, + tenant_code = '', + user_id = '' + ) + else: + return ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO( + ) + + def testServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO(self): + """Test ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_failed_local_tenant_profile_assignment_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_failed_local_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..13b120d587 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_failed_local_tenant_profile_assignment_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_failed_local_tenant_profile_assignment_dto import ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO + +class TestServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO(unittest.TestCase): + """ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO: + """Test ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO( + error = visier_api_administration.models.servicing/publicapi/transfers/error_dto.servicing.publicapi.transfers.ErrorDTO( + error_code = '', + error_message = '', + root_cause_id = '', ), + user_id = '' + ) + else: + return ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO( + ) + + def testServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO(self): + """Test ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_failed_local_tenant_profile_revoke_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_failed_local_tenant_profile_revoke_dto.py new file mode 100644 index 0000000000..c4a1d9a8f9 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_failed_local_tenant_profile_revoke_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_failed_local_tenant_profile_revoke_dto import ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO + +class TestServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO(unittest.TestCase): + """ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO: + """Test ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO( + message = '', + user_id = '' + ) + else: + return ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO( + ) + + def testServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO(self): + """Test ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_capabilities_api_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_capabilities_api_response_dto.py new file mode 100644 index 0000000000..92a39004f5 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_capabilities_api_response_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_get_capabilities_api_response_dto import ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO + +class TestServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO: + """Test ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO( + capabilities = [ + visier_api_administration.models.servicing/publicapi/transfers/capability_dto.servicing.publicapi.transfers.CapabilityDTO( + description = '', + display_name = '', + name = '', ) + ] + ) + else: + return ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO( + ) + + def testServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO(self): + """Test ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_content_packages_api_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_content_packages_api_response_dto.py new file mode 100644 index 0000000000..b81ebff749 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_content_packages_api_response_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_get_content_packages_api_response_dto import ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO + +class TestServicingPublicapiTransfersGetContentPackagesAPIResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO: + """Test ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO( + content_packages = [ + visier_api_administration.models.servicing/publicapi/transfers/content_package_dto.servicing.publicapi.transfers.ContentPackageDTO( + content_package_id = '', + description = '', + display_name = '', ) + ] + ) + else: + return ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO( + ) + + def testServicingPublicapiTransfersGetContentPackagesAPIResponseDTO(self): + """Test ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_data_access_sets_api_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_data_access_sets_api_response_dto.py new file mode 100644 index 0000000000..30eb391678 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_data_access_sets_api_response_dto.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_get_data_access_sets_api_response_dto import ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO + +class TestServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO: + """Test ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO( + data_access_sets = [ + visier_api_administration.models.servicing/publicapi/transfers/data_access_set_dto.servicing.publicapi.transfers.DataAccessSetDTO( + analytic_object_id = '', + description = '', + display_name = '', + id = '', + property_access_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/property_access_config_dto.servicing.publicapi.transfers.PropertyAccessConfigDTO( + access_level = 'None', + analytic_object_id = '', + analytic_object_reference_paths = [ + '' + ], + property_id = '', + property_status = 'Unset', ) + ], ) + ] + ) + else: + return ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO( + ) + + def testServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO(self): + """Test ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_data_security_objects_api_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_data_security_objects_api_response_dto.py new file mode 100644 index 0000000000..39ab9bd9aa --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_data_security_objects_api_response_dto.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_get_data_security_objects_api_response_dto import ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO + +class TestServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO: + """Test ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO( + analytic_objects = [ + visier_api_administration.models.servicing/publicapi/transfers/analytic_object_dto.servicing.publicapi.transfers.AnalyticObjectDTO( + analytic_object_id = '', + display_name = '', + object_type = 'Event', + related_objects = [ + visier_api_administration.models.servicing/publicapi/transfers/related_analytic_object_dto.servicing.publicapi.transfers.RelatedAnalyticObjectDTO( + analytic_object_id = '', + display_name = '', ) + ], + securable_dimensions = [ + visier_api_administration.models.servicing/publicapi/transfers/securable_dimension_dto.servicing.publicapi.transfers.SecurableDimensionDTO( + analytic_object_ids = [ + '' + ], + dimension_id = '', + display_name = '', + hierarchy_properties = [ + visier_api_administration.models.servicing/publicapi/transfers/hierarchy_property_dto.servicing.publicapi.transfers.HierarchyPropertyDTO( + display_name = '', + hierarchy_property_id = '', ) + ], ) + ], + securable_properties = [ + visier_api_administration.models.servicing/publicapi/transfers/securable_property_dto.servicing.publicapi.transfers.SecurablePropertyDTO( + analytic_object_id = '', + display_name = '', + is_primary_key = True, + property_id = '', + reference_symbol_name = '', ) + ], ) + ] + ) + else: + return ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO( + ) + + def testServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO(self): + """Test ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_permissions_api_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_permissions_api_response_dto.py new file mode 100644 index 0000000000..bc1eeceed4 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_permissions_api_response_dto.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_get_permissions_api_response_dto import ServicingPublicapiTransfersGetPermissionsAPIResponseDTO + +class TestServicingPublicapiTransfersGetPermissionsAPIResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersGetPermissionsAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersGetPermissionsAPIResponseDTO: + """Test ServicingPublicapiTransfersGetPermissionsAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersGetPermissionsAPIResponseDTO( + permissions = [ + visier_api_administration.models.servicing/publicapi/transfers/permission_dto.servicing.publicapi.transfers.PermissionDTO( + admin_capability_config = None, + data_security_profiles = [ + visier_api_administration.models.servicing/publicapi/transfers/data_security_profile_dto.servicing.publicapi.transfers.DataSecurityProfileDTO( + all_data_point_access = True, + analytic_object_id = '', + analytic_object_status = 'Unset', + inherited_access_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/inherited_access_config_dto.servicing.publicapi.transfers.InheritedAccessConfigDTO( + analytic_object_id = '', + member_filter_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/member_filter_config_dto.servicing.publicapi.transfers.MemberFilterConfigDTO( + dimension_filters = [ + visier_api_administration.models.servicing/publicapi/transfers/dimension_filter_dto.servicing.publicapi.transfers.DimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/dynamic_dimension_filter_dto.servicing.publicapi.transfers.DynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/publicapi/transfers/dynamic_property_mapping_dto.servicing.publicapi.transfers.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ], ), + static_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/static_dimension_filter_dto.servicing.publicapi.transfers.StaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/publicapi/transfers/member_selection_dto.servicing.publicapi.transfers.MemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ], ) + ], ), ) + ], ) + ], + remove_access = True, ) + ], + inherited_reference_member_filter_config = None, + member_filter_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/member_filter_config_dto.servicing.publicapi.transfers.MemberFilterConfigDTO() + ], + property_set_config = None, ) + ], + description = '', + display_name = '', + permission_id = '', + role_modules_config = None, ) + ] + ) + else: + return ServicingPublicapiTransfersGetPermissionsAPIResponseDTO( + ) + + def testServicingPublicapiTransfersGetPermissionsAPIResponseDTO(self): + """Test ServicingPublicapiTransfersGetPermissionsAPIResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersGetPermissionsAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersGetPermissionsAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_production_versions_api_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_production_versions_api_response_dto.py new file mode 100644 index 0000000000..3ec2c8482c --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_production_versions_api_response_dto.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_get_production_versions_api_response_dto import ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO + +class TestServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO: + """Test ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO( + published_versions = [ + visier_api_administration.models.servicing/publicapi/transfers/project_dto.servicing.publicapi.transfers.ProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56, ) + ] + ) + else: + return ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO( + ) + + def testServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO(self): + """Test ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_projects_api_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_projects_api_response_dto.py new file mode 100644 index 0000000000..23ae5ba4fc --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_get_projects_api_response_dto.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_get_projects_api_response_dto import ServicingPublicapiTransfersGetProjectsAPIResponseDTO + +class TestServicingPublicapiTransfersGetProjectsAPIResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersGetProjectsAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersGetProjectsAPIResponseDTO: + """Test ServicingPublicapiTransfersGetProjectsAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersGetProjectsAPIResponseDTO( + approval_projects = [ + visier_api_administration.models.servicing/publicapi/transfers/project_dto.servicing.publicapi.transfers.ProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56, ) + ], + archived_projects = [ + visier_api_administration.models.servicing/publicapi/transfers/project_dto.servicing.publicapi.transfers.ProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56, ) + ], + open_projects = [ + visier_api_administration.models.servicing/publicapi/transfers/project_dto.servicing.publicapi.transfers.ProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56, ) + ], + rejected_projects = [ + visier_api_administration.models.servicing/publicapi/transfers/project_dto.servicing.publicapi.transfers.ProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56, ) + ] + ) + else: + return ServicingPublicapiTransfersGetProjectsAPIResponseDTO( + ) + + def testServicingPublicapiTransfersGetProjectsAPIResponseDTO(self): + """Test ServicingPublicapiTransfersGetProjectsAPIResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersGetProjectsAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersGetProjectsAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_hierarchy_property_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_hierarchy_property_dto.py new file mode 100644 index 0000000000..6df0e31314 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_hierarchy_property_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_hierarchy_property_dto import ServicingPublicapiTransfersHierarchyPropertyDTO + +class TestServicingPublicapiTransfersHierarchyPropertyDTO(unittest.TestCase): + """ServicingPublicapiTransfersHierarchyPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersHierarchyPropertyDTO: + """Test ServicingPublicapiTransfersHierarchyPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersHierarchyPropertyDTO( + display_name = '', + hierarchy_property_id = '' + ) + else: + return ServicingPublicapiTransfersHierarchyPropertyDTO( + ) + + def testServicingPublicapiTransfersHierarchyPropertyDTO(self): + """Test ServicingPublicapiTransfersHierarchyPropertyDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersHierarchyPropertyDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersHierarchyPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_inherited_access_config_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_inherited_access_config_dto.py new file mode 100644 index 0000000000..3d0bc7f7aa --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_inherited_access_config_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_inherited_access_config_dto import ServicingPublicapiTransfersInheritedAccessConfigDTO + +class TestServicingPublicapiTransfersInheritedAccessConfigDTO(unittest.TestCase): + """ServicingPublicapiTransfersInheritedAccessConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersInheritedAccessConfigDTO: + """Test ServicingPublicapiTransfersInheritedAccessConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersInheritedAccessConfigDTO( + analytic_object_id = '', + member_filter_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/member_filter_config_dto.servicing.publicapi.transfers.MemberFilterConfigDTO( + dimension_filters = [ + visier_api_administration.models.servicing/publicapi/transfers/dimension_filter_dto.servicing.publicapi.transfers.DimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/dynamic_dimension_filter_dto.servicing.publicapi.transfers.DynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/publicapi/transfers/dynamic_property_mapping_dto.servicing.publicapi.transfers.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ], ), + static_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/static_dimension_filter_dto.servicing.publicapi.transfers.StaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/publicapi/transfers/member_selection_dto.servicing.publicapi.transfers.MemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ], ) + ], ), ) + ], ) + ], + remove_access = True + ) + else: + return ServicingPublicapiTransfersInheritedAccessConfigDTO( + ) + + def testServicingPublicapiTransfersInheritedAccessConfigDTO(self): + """Test ServicingPublicapiTransfersInheritedAccessConfigDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersInheritedAccessConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersInheritedAccessConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_inherited_reference_member_filter_config_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_inherited_reference_member_filter_config_dto.py new file mode 100644 index 0000000000..539e9f8adc --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_inherited_reference_member_filter_config_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_inherited_reference_member_filter_config_dto import ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO + +class TestServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO(unittest.TestCase): + """ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO: + """Test ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO( + analytic_object_reference = '', + target_analytic_object_id = '' + ) + else: + return ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO( + ) + + def testServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO(self): + """Test ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_last_login_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_last_login_dto.py new file mode 100644 index 0000000000..f0ec9651d8 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_last_login_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_last_login_dto import ServicingPublicapiTransfersLastLoginDTO + +class TestServicingPublicapiTransfersLastLoginDTO(unittest.TestCase): + """ServicingPublicapiTransfersLastLoginDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersLastLoginDTO: + """Test ServicingPublicapiTransfersLastLoginDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersLastLoginDTO( + timestamp = '' + ) + else: + return ServicingPublicapiTransfersLastLoginDTO( + ) + + def testServicingPublicapiTransfersLastLoginDTO(self): + """Test ServicingPublicapiTransfersLastLoginDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersLastLoginDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersLastLoginDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto.py new file mode 100644 index 0000000000..0dfd2f6c2d --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto import ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO + +class TestServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO: + """Test ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO( + target_user_ids = [ + '' + ], + validity_end_time = '', + validity_start_time = '' + ) + else: + return ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO( + ) + + def testServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO(self): + """Test ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_local_tenant_profile_assignment_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_local_tenant_profile_assignment_response_dto.py new file mode 100644 index 0000000000..7352fd6a0c --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_local_tenant_profile_assignment_response_dto.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_assignment_response_dto import ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO + +class TestServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO: + """Test ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO( + bad_user_ids = [ + visier_api_administration.models.servicing/publicapi/transfers/user_id_error_dto.servicing.publicapi.transfers.UserIdErrorDTO( + error = None, + user_id = '', ) + ], + errors = True, + failed_assignments = [ + visier_api_administration.models.servicing/publicapi/transfers/failed_local_tenant_profile_assignment_dto.servicing.publicapi.transfers.FailedLocalTenantProfileAssignmentDTO( + error = None, + user_id = '', ) + ], + successful_assignments = [ + visier_api_administration.models.servicing/publicapi/transfers/successful_local_tenant_profile_assignment_dto.servicing.publicapi.transfers.SuccessfulLocalTenantProfileAssignmentDTO( + user_id = '', ) + ] + ) + else: + return ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO( + ) + + def testServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO(self): + """Test ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto.py new file mode 100644 index 0000000000..70dd1a5478 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto import ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO + +class TestServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO: + """Test ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO( + target_user_ids = [ + '' + ] + ) + else: + return ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO( + ) + + def testServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO(self): + """Test ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_local_tenant_profile_revoke_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_local_tenant_profile_revoke_response_dto.py new file mode 100644 index 0000000000..db8f0d3fe2 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_local_tenant_profile_revoke_response_dto.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_revoke_response_dto import ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO + +class TestServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO: + """Test ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO( + failed = [ + visier_api_administration.models.servicing/publicapi/transfers/failed_local_tenant_profile_revoke_dto.servicing.publicapi.transfers.FailedLocalTenantProfileRevokeDTO( + message = '', + user_id = '', ) + ], + succeeded = [ + visier_api_administration.models.servicing/publicapi/transfers/successful_local_tenant_profile_assignment_dto.servicing.publicapi.transfers.SuccessfulLocalTenantProfileAssignmentDTO( + user_id = '', ) + ] + ) + else: + return ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO( + ) + + def testServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO(self): + """Test ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_member_filter_config_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_member_filter_config_dto.py new file mode 100644 index 0000000000..edddaf7599 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_member_filter_config_dto.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_member_filter_config_dto import ServicingPublicapiTransfersMemberFilterConfigDTO + +class TestServicingPublicapiTransfersMemberFilterConfigDTO(unittest.TestCase): + """ServicingPublicapiTransfersMemberFilterConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersMemberFilterConfigDTO: + """Test ServicingPublicapiTransfersMemberFilterConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersMemberFilterConfigDTO( + dimension_filters = [ + visier_api_administration.models.servicing/publicapi/transfers/dimension_filter_dto.servicing.publicapi.transfers.DimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/dynamic_dimension_filter_dto.servicing.publicapi.transfers.DynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/publicapi/transfers/dynamic_property_mapping_dto.servicing.publicapi.transfers.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ], ), + static_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/static_dimension_filter_dto.servicing.publicapi.transfers.StaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/publicapi/transfers/member_selection_dto.servicing.publicapi.transfers.MemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ], ) + ], ), ) + ] + ) + else: + return ServicingPublicapiTransfersMemberFilterConfigDTO( + ) + + def testServicingPublicapiTransfersMemberFilterConfigDTO(self): + """Test ServicingPublicapiTransfersMemberFilterConfigDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersMemberFilterConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersMemberFilterConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_member_selection_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_member_selection_dto.py new file mode 100644 index 0000000000..b8c3e65687 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_member_selection_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_member_selection_dto import ServicingPublicapiTransfersMemberSelectionDTO + +class TestServicingPublicapiTransfersMemberSelectionDTO(unittest.TestCase): + """ServicingPublicapiTransfersMemberSelectionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersMemberSelectionDTO: + """Test ServicingPublicapiTransfersMemberSelectionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersMemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ] + ) + else: + return ServicingPublicapiTransfersMemberSelectionDTO( + ) + + def testServicingPublicapiTransfersMemberSelectionDTO(self): + """Test ServicingPublicapiTransfersMemberSelectionDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersMemberSelectionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersMemberSelectionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_assigned_by_tenant_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_assigned_by_tenant_dto.py new file mode 100644 index 0000000000..59c1caaf29 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_assigned_by_tenant_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_by_tenant_dto import ServicingPublicapiTransfersPermissionAssignedByTenantDTO + +class TestServicingPublicapiTransfersPermissionAssignedByTenantDTO(unittest.TestCase): + """ServicingPublicapiTransfersPermissionAssignedByTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersPermissionAssignedByTenantDTO: + """Test ServicingPublicapiTransfersPermissionAssignedByTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersPermissionAssignedByTenantDTO( + tenant_code = '', + users = [ + visier_api_administration.models.servicing/publicapi/transfers/permission_assigned_user_dto.servicing.publicapi.transfers.PermissionAssignedUserDTO( + permission_from = '', + user_id = '', + username = '', ) + ] + ) + else: + return ServicingPublicapiTransfersPermissionAssignedByTenantDTO( + ) + + def testServicingPublicapiTransfersPermissionAssignedByTenantDTO(self): + """Test ServicingPublicapiTransfersPermissionAssignedByTenantDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersPermissionAssignedByTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersPermissionAssignedByTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..39036a22c2 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_assigned_for_local_tenant_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_for_local_tenant_dto import ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO + +class TestServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO(unittest.TestCase): + """ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO: + """Test ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO( + description = '', + display_name = '', + permission_id = '' + ) + else: + return ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO( + ) + + def testServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO(self): + """Test ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_assigned_user_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_assigned_user_dto.py new file mode 100644 index 0000000000..bfdcfc9eed --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_assigned_user_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_user_dto import ServicingPublicapiTransfersPermissionAssignedUserDTO + +class TestServicingPublicapiTransfersPermissionAssignedUserDTO(unittest.TestCase): + """ServicingPublicapiTransfersPermissionAssignedUserDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersPermissionAssignedUserDTO: + """Test ServicingPublicapiTransfersPermissionAssignedUserDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersPermissionAssignedUserDTO( + permission_from = '', + user_id = '', + username = '' + ) + else: + return ServicingPublicapiTransfersPermissionAssignedUserDTO( + ) + + def testServicingPublicapiTransfersPermissionAssignedUserDTO(self): + """Test ServicingPublicapiTransfersPermissionAssignedUserDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersPermissionAssignedUserDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersPermissionAssignedUserDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_assigned_users_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_assigned_users_dto.py new file mode 100644 index 0000000000..bf342181d7 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_assigned_users_dto.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_users_dto import ServicingPublicapiTransfersPermissionAssignedUsersDTO + +class TestServicingPublicapiTransfersPermissionAssignedUsersDTO(unittest.TestCase): + """ServicingPublicapiTransfersPermissionAssignedUsersDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersPermissionAssignedUsersDTO: + """Test ServicingPublicapiTransfersPermissionAssignedUsersDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersPermissionAssignedUsersDTO( + limit = 56, + start = 56, + tenants = [ + visier_api_administration.models.servicing/publicapi/transfers/permission_assigned_by_tenant_dto.servicing.publicapi.transfers.PermissionAssignedByTenantDTO( + tenant_code = '', + users = [ + visier_api_administration.models.servicing/publicapi/transfers/permission_assigned_user_dto.servicing.publicapi.transfers.PermissionAssignedUserDTO( + permission_from = '', + user_id = '', + username = '', ) + ], ) + ] + ) + else: + return ServicingPublicapiTransfersPermissionAssignedUsersDTO( + ) + + def testServicingPublicapiTransfersPermissionAssignedUsersDTO(self): + """Test ServicingPublicapiTransfersPermissionAssignedUsersDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersPermissionAssignedUsersDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersPermissionAssignedUsersDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_bulk_operation_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_bulk_operation_response_dto.py new file mode 100644 index 0000000000..56879919fa --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_bulk_operation_response_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_permission_bulk_operation_response_dto import ServicingPublicapiTransfersPermissionBulkOperationResponseDTO + +class TestServicingPublicapiTransfersPermissionBulkOperationResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersPermissionBulkOperationResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersPermissionBulkOperationResponseDTO: + """Test ServicingPublicapiTransfersPermissionBulkOperationResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersPermissionBulkOperationResponseDTO( + failures = [ + visier_api_administration.models.servicing/publicapi/transfers/permission_failure_dto.servicing.publicapi.transfers.PermissionFailureDTO( + display_name = '', + error = None, + permission_id = '', ) + ], + successes = [ + visier_api_administration.models.servicing/publicapi/transfers/permission_success_dto.servicing.publicapi.transfers.PermissionSuccessDTO( + display_name = '', + permission_id = '', ) + ] + ) + else: + return ServicingPublicapiTransfersPermissionBulkOperationResponseDTO( + ) + + def testServicingPublicapiTransfersPermissionBulkOperationResponseDTO(self): + """Test ServicingPublicapiTransfersPermissionBulkOperationResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersPermissionBulkOperationResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersPermissionBulkOperationResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_dto.py new file mode 100644 index 0000000000..ba85600895 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_dto.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_permission_dto import ServicingPublicapiTransfersPermissionDTO + +class TestServicingPublicapiTransfersPermissionDTO(unittest.TestCase): + """ServicingPublicapiTransfersPermissionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersPermissionDTO: + """Test ServicingPublicapiTransfersPermissionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersPermissionDTO( + admin_capability_config = visier_api_administration.models.servicing/publicapi/transfers/admin_capability_config_dto.servicing.publicapi.transfers.AdminCapabilityConfigDTO( + all_capabilities_access = True, + capabilities = [ + '' + ], ), + data_security_profiles = [ + visier_api_administration.models.servicing/publicapi/transfers/data_security_profile_dto.servicing.publicapi.transfers.DataSecurityProfileDTO( + all_data_point_access = True, + analytic_object_id = '', + analytic_object_status = 'Unset', + inherited_access_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/inherited_access_config_dto.servicing.publicapi.transfers.InheritedAccessConfigDTO( + analytic_object_id = '', + member_filter_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/member_filter_config_dto.servicing.publicapi.transfers.MemberFilterConfigDTO( + dimension_filters = [ + visier_api_administration.models.servicing/publicapi/transfers/dimension_filter_dto.servicing.publicapi.transfers.DimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/dynamic_dimension_filter_dto.servicing.publicapi.transfers.DynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/publicapi/transfers/dynamic_property_mapping_dto.servicing.publicapi.transfers.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ], ), + static_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/static_dimension_filter_dto.servicing.publicapi.transfers.StaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/publicapi/transfers/member_selection_dto.servicing.publicapi.transfers.MemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ], ) + ], ), ) + ], ) + ], + remove_access = True, ) + ], + inherited_reference_member_filter_config = None, + member_filter_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/member_filter_config_dto.servicing.publicapi.transfers.MemberFilterConfigDTO() + ], + property_set_config = None, ) + ], + description = '', + display_name = '', + permission_id = '', + role_modules_config = visier_api_administration.models.servicing/publicapi/transfers/role_modules_config_dto.servicing.publicapi.transfers.RoleModulesConfigDTO( + content_package_ids = [ + '' + ], ) + ) + else: + return ServicingPublicapiTransfersPermissionDTO( + ) + + def testServicingPublicapiTransfersPermissionDTO(self): + """Test ServicingPublicapiTransfersPermissionDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersPermissionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersPermissionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_error_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_error_dto.py new file mode 100644 index 0000000000..378c982b32 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_error_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_permission_error_dto import ServicingPublicapiTransfersPermissionErrorDTO + +class TestServicingPublicapiTransfersPermissionErrorDTO(unittest.TestCase): + """ServicingPublicapiTransfersPermissionErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersPermissionErrorDTO: + """Test ServicingPublicapiTransfersPermissionErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersPermissionErrorDTO( + message = '', + rci = '' + ) + else: + return ServicingPublicapiTransfersPermissionErrorDTO( + ) + + def testServicingPublicapiTransfersPermissionErrorDTO(self): + """Test ServicingPublicapiTransfersPermissionErrorDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersPermissionErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersPermissionErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_failure_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_failure_dto.py new file mode 100644 index 0000000000..0adb2bed68 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_failure_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_permission_failure_dto import ServicingPublicapiTransfersPermissionFailureDTO + +class TestServicingPublicapiTransfersPermissionFailureDTO(unittest.TestCase): + """ServicingPublicapiTransfersPermissionFailureDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersPermissionFailureDTO: + """Test ServicingPublicapiTransfersPermissionFailureDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersPermissionFailureDTO( + display_name = '', + error = visier_api_administration.models.servicing/publicapi/transfers/permission_error_dto.servicing.publicapi.transfers.PermissionErrorDTO( + message = '', + rci = '', ), + permission_id = '' + ) + else: + return ServicingPublicapiTransfersPermissionFailureDTO( + ) + + def testServicingPublicapiTransfersPermissionFailureDTO(self): + """Test ServicingPublicapiTransfersPermissionFailureDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersPermissionFailureDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersPermissionFailureDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_success_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_success_dto.py new file mode 100644 index 0000000000..0cabded1b1 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_permission_success_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_permission_success_dto import ServicingPublicapiTransfersPermissionSuccessDTO + +class TestServicingPublicapiTransfersPermissionSuccessDTO(unittest.TestCase): + """ServicingPublicapiTransfersPermissionSuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersPermissionSuccessDTO: + """Test ServicingPublicapiTransfersPermissionSuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersPermissionSuccessDTO( + display_name = '', + permission_id = '' + ) + else: + return ServicingPublicapiTransfersPermissionSuccessDTO( + ) + + def testServicingPublicapiTransfersPermissionSuccessDTO(self): + """Test ServicingPublicapiTransfersPermissionSuccessDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersPermissionSuccessDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersPermissionSuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_production_version_api_operation_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_production_version_api_operation_request_dto.py new file mode 100644 index 0000000000..e155ca7869 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_production_version_api_operation_request_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_production_version_api_operation_request_dto import ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO + +class TestServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO: + """Test ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO( + operation = 'unknownProductionVersionAPIOperation' + ) + else: + return ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO( + ) + + def testServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO(self): + """Test ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_production_version_api_operation_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_production_version_api_operation_response_dto.py new file mode 100644 index 0000000000..90175bd91c --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_production_version_api_operation_response_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_production_version_api_operation_response_dto import ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO + +class TestServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO: + """Test ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO( + roll_back_to = visier_api_administration.models.servicing/publicapi/transfers/project_dto.servicing.publicapi.transfers.ProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56, ) + ) + else: + return ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO( + ) + + def testServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO(self): + """Test ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_production_versions_api_operation_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_production_versions_api_operation_request_dto.py new file mode 100644 index 0000000000..33446bbffa --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_production_versions_api_operation_request_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_production_versions_api_operation_request_dto import ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO + +class TestServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO: + """Test ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO( + export_parameters = visier_api_administration.models.servicing/publicapi/transfers/export_production_versions_api_operation_parameters_dto.servicing.publicapi.transfers.ExportProductionVersionsAPIOperationParametersDTO( + end_version = '', + excluded_versions = [ + '' + ], + start_version = '', ), + operation = 'unknownProductionVersionsAPIOperation' + ) + else: + return ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO( + ) + + def testServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO(self): + """Test ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_production_versions_api_operation_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_production_versions_api_operation_response_dto.py new file mode 100644 index 0000000000..4f60140734 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_production_versions_api_operation_response_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_production_versions_api_operation_response_dto import ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO + +class TestServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO: + """Test ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO( + export = None + ) + else: + return ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO( + ) + + def testServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO(self): + """Test ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_profile_assigned_for_accessible_tenant_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_profile_assigned_for_accessible_tenant_dto.py new file mode 100644 index 0000000000..90b8afdc3d --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_profile_assigned_for_accessible_tenant_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_profile_assigned_for_accessible_tenant_dto import ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO + +class TestServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO(unittest.TestCase): + """ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO: + """Test ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO( + display_name = '', + for_all_children = True, + profile_id = '', + tenant_code = '', + validity_end_time = '', + validity_start_time = '' + ) + else: + return ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO( + ) + + def testServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO(self): + """Test ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_profile_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_profile_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..b00e3ef6e6 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_profile_assigned_for_local_tenant_dto.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_profile_assigned_for_local_tenant_dto import ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO + +class TestServicingPublicapiTransfersProfileAssignedForLocalTenantDTO(unittest.TestCase): + """ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO: + """Test ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO( + additional_capabilities = visier_api_administration.models.servicing/publicapi/transfers/additional_capabilities_dto.servicing.publicapi.transfers.AdditionalCapabilitiesDTO( + additional_capabilities = [ + '' + ], ), + capabilities = [ + visier_api_administration.models.servicing/publicapi/transfers/capabilities_dto.servicing.publicapi.transfers.CapabilitiesDTO( + access_level = '', + capability = '', + view_level = '', ) + ], + display_name = '', + profile_id = '', + validity_end_time = '', + validity_start_time = '' + ) + else: + return ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO( + ) + + def testServicingPublicapiTransfersProfileAssignedForLocalTenantDTO(self): + """Test ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_profile_get_api_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_profile_get_api_response_dto.py new file mode 100644 index 0000000000..2288045d95 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_profile_get_api_response_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_profile_get_api_response_dto import ServicingPublicapiTransfersProfileGetAPIResponseDTO + +class TestServicingPublicapiTransfersProfileGetAPIResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersProfileGetAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersProfileGetAPIResponseDTO: + """Test ServicingPublicapiTransfersProfileGetAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersProfileGetAPIResponseDTO( + additional_capabilities = [ + '' + ], + capabilities = [ + visier_api_administration.models.servicing/publicapi/transfers/capabilities_dto.servicing.publicapi.transfers.CapabilitiesDTO( + access_level = '', + capability = '', + view_level = '', ) + ], + display_name = '', + profile_id = '' + ) + else: + return ServicingPublicapiTransfersProfileGetAPIResponseDTO( + ) + + def testServicingPublicapiTransfersProfileGetAPIResponseDTO(self): + """Test ServicingPublicapiTransfersProfileGetAPIResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersProfileGetAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersProfileGetAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_profiles_get_api_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_profiles_get_api_response_dto.py new file mode 100644 index 0000000000..0df0755524 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_profiles_get_api_response_dto.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_profiles_get_api_response_dto import ServicingPublicapiTransfersProfilesGetAPIResponseDTO + +class TestServicingPublicapiTransfersProfilesGetAPIResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersProfilesGetAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersProfilesGetAPIResponseDTO: + """Test ServicingPublicapiTransfersProfilesGetAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersProfilesGetAPIResponseDTO( + profiles = [ + visier_api_administration.models.servicing/publicapi/transfers/profile_get_api_response_dto.servicing.publicapi.transfers.ProfileGetAPIResponseDTO( + additional_capabilities = [ + '' + ], + capabilities = [ + visier_api_administration.models.servicing/publicapi/transfers/capabilities_dto.servicing.publicapi.transfers.CapabilitiesDTO( + access_level = '', + capability = '', + view_level = '', ) + ], + display_name = '', + profile_id = '', ) + ] + ) + else: + return ServicingPublicapiTransfersProfilesGetAPIResponseDTO( + ) + + def testServicingPublicapiTransfersProfilesGetAPIResponseDTO(self): + """Test ServicingPublicapiTransfersProfilesGetAPIResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersProfilesGetAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersProfilesGetAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_project_commits_api_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_project_commits_api_response_dto.py new file mode 100644 index 0000000000..618785fdc1 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_project_commits_api_response_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_project_commits_api_response_dto import ServicingPublicapiTransfersProjectCommitsAPIResponseDTO + +class TestServicingPublicapiTransfersProjectCommitsAPIResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersProjectCommitsAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersProjectCommitsAPIResponseDTO: + """Test ServicingPublicapiTransfersProjectCommitsAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersProjectCommitsAPIResponseDTO( + commits = [ + visier_api_administration.models.servicing/publicapi/transfers/commit_dto.servicing.publicapi.transfers.CommitDTO( + description = '', + id = '', + name = '', ) + ] + ) + else: + return ServicingPublicapiTransfersProjectCommitsAPIResponseDTO( + ) + + def testServicingPublicapiTransfersProjectCommitsAPIResponseDTO(self): + """Test ServicingPublicapiTransfersProjectCommitsAPIResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersProjectCommitsAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersProjectCommitsAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_project_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_project_dto.py new file mode 100644 index 0000000000..f37ae967f9 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_project_dto.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_project_dto import ServicingPublicapiTransfersProjectDTO + +class TestServicingPublicapiTransfersProjectDTO(unittest.TestCase): + """ServicingPublicapiTransfersProjectDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersProjectDTO: + """Test ServicingPublicapiTransfersProjectDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56 + ) + else: + return ServicingPublicapiTransfersProjectDTO( + ) + + def testServicingPublicapiTransfersProjectDTO(self): + """Test ServicingPublicapiTransfersProjectDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersProjectDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersProjectDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_project_operation_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_project_operation_request_dto.py new file mode 100644 index 0000000000..546550acfe --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_project_operation_request_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_project_operation_request_dto import ServicingPublicapiTransfersProjectOperationRequestDTO + +class TestServicingPublicapiTransfersProjectOperationRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersProjectOperationRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersProjectOperationRequestDTO: + """Test ServicingPublicapiTransfersProjectOperationRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersProjectOperationRequestDTO( + operation = 'unknown' + ) + else: + return ServicingPublicapiTransfersProjectOperationRequestDTO( + ) + + def testServicingPublicapiTransfersProjectOperationRequestDTO(self): + """Test ServicingPublicapiTransfersProjectOperationRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersProjectOperationRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersProjectOperationRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_project_operation_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_project_operation_response_dto.py new file mode 100644 index 0000000000..3af6f2d6d7 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_project_operation_response_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_project_operation_response_dto import ServicingPublicapiTransfersProjectOperationResponseDTO + +class TestServicingPublicapiTransfersProjectOperationResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersProjectOperationResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersProjectOperationResponseDTO: + """Test ServicingPublicapiTransfersProjectOperationResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersProjectOperationResponseDTO( + commit_and_publish = visier_api_administration.models.servicing/publicapi/transfers/commit_and_publish_operation_response_dto.servicing.publicapi.transfers.CommitAndPublishOperationResponseDTO( + published_version = None, ) + ) + else: + return ServicingPublicapiTransfersProjectOperationResponseDTO( + ) + + def testServicingPublicapiTransfersProjectOperationResponseDTO(self): + """Test ServicingPublicapiTransfersProjectOperationResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersProjectOperationResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersProjectOperationResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_property_access_config_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_property_access_config_dto.py new file mode 100644 index 0000000000..3765575d03 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_property_access_config_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_property_access_config_dto import ServicingPublicapiTransfersPropertyAccessConfigDTO + +class TestServicingPublicapiTransfersPropertyAccessConfigDTO(unittest.TestCase): + """ServicingPublicapiTransfersPropertyAccessConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersPropertyAccessConfigDTO: + """Test ServicingPublicapiTransfersPropertyAccessConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersPropertyAccessConfigDTO( + access_level = 'None', + analytic_object_id = '', + analytic_object_reference_paths = [ + '' + ], + property_id = '', + property_status = 'Unset' + ) + else: + return ServicingPublicapiTransfersPropertyAccessConfigDTO( + ) + + def testServicingPublicapiTransfersPropertyAccessConfigDTO(self): + """Test ServicingPublicapiTransfersPropertyAccessConfigDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersPropertyAccessConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersPropertyAccessConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_property_set_config_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_property_set_config_dto.py new file mode 100644 index 0000000000..3301ac6726 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_property_set_config_dto.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_property_set_config_dto import ServicingPublicapiTransfersPropertySetConfigDTO + +class TestServicingPublicapiTransfersPropertySetConfigDTO(unittest.TestCase): + """ServicingPublicapiTransfersPropertySetConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersPropertySetConfigDTO: + """Test ServicingPublicapiTransfersPropertySetConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersPropertySetConfigDTO( + property_access_configs = [ + visier_api_administration.models.servicing/publicapi/transfers/property_access_config_dto.servicing.publicapi.transfers.PropertyAccessConfigDTO( + access_level = 'None', + analytic_object_id = '', + analytic_object_reference_paths = [ + '' + ], + property_id = '', + property_status = 'Unset', ) + ], + shareable_data_access_set = visier_api_administration.models.servicing/publicapi/transfers/shareable_data_access_set.servicing.publicapi.transfers.ShareableDataAccessSet( + data_access_set_id = '', ) + ) + else: + return ServicingPublicapiTransfersPropertySetConfigDTO( + ) + + def testServicingPublicapiTransfersPropertySetConfigDTO(self): + """Test ServicingPublicapiTransfersPropertySetConfigDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersPropertySetConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersPropertySetConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_reduced_error_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_reduced_error_dto.py new file mode 100644 index 0000000000..38412ae7ee --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_reduced_error_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_reduced_error_dto import ServicingPublicapiTransfersReducedErrorDTO + +class TestServicingPublicapiTransfersReducedErrorDTO(unittest.TestCase): + """ServicingPublicapiTransfersReducedErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersReducedErrorDTO: + """Test ServicingPublicapiTransfersReducedErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersReducedErrorDTO( + error_message = '' + ) + else: + return ServicingPublicapiTransfersReducedErrorDTO( + ) + + def testServicingPublicapiTransfersReducedErrorDTO(self): + """Test ServicingPublicapiTransfersReducedErrorDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersReducedErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersReducedErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_reduced_tenant_code_error_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_reduced_tenant_code_error_dto.py new file mode 100644 index 0000000000..801dc2ad9a --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_reduced_tenant_code_error_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_reduced_tenant_code_error_dto import ServicingPublicapiTransfersReducedTenantCodeErrorDTO + +class TestServicingPublicapiTransfersReducedTenantCodeErrorDTO(unittest.TestCase): + """ServicingPublicapiTransfersReducedTenantCodeErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersReducedTenantCodeErrorDTO: + """Test ServicingPublicapiTransfersReducedTenantCodeErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersReducedTenantCodeErrorDTO( + error = visier_api_administration.models.servicing/publicapi/transfers/reduced_error_dto.servicing.publicapi.transfers.ReducedErrorDTO( + error_message = '', ), + for_all_children = True, + tenant_code = '' + ) + else: + return ServicingPublicapiTransfersReducedTenantCodeErrorDTO( + ) + + def testServicingPublicapiTransfersReducedTenantCodeErrorDTO(self): + """Test ServicingPublicapiTransfersReducedTenantCodeErrorDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersReducedTenantCodeErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersReducedTenantCodeErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_reduced_user_id_error_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_reduced_user_id_error_dto.py new file mode 100644 index 0000000000..34c4996bf7 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_reduced_user_id_error_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_reduced_user_id_error_dto import ServicingPublicapiTransfersReducedUserIdErrorDTO + +class TestServicingPublicapiTransfersReducedUserIdErrorDTO(unittest.TestCase): + """ServicingPublicapiTransfersReducedUserIdErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersReducedUserIdErrorDTO: + """Test ServicingPublicapiTransfersReducedUserIdErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersReducedUserIdErrorDTO( + error = visier_api_administration.models.servicing/publicapi/transfers/reduced_error_dto.servicing.publicapi.transfers.ReducedErrorDTO( + error_message = '', ), + user_id = '' + ) + else: + return ServicingPublicapiTransfersReducedUserIdErrorDTO( + ) + + def testServicingPublicapiTransfersReducedUserIdErrorDTO(self): + """Test ServicingPublicapiTransfersReducedUserIdErrorDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersReducedUserIdErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersReducedUserIdErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_related_analytic_object_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_related_analytic_object_dto.py new file mode 100644 index 0000000000..740a11d0d8 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_related_analytic_object_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_related_analytic_object_dto import ServicingPublicapiTransfersRelatedAnalyticObjectDTO + +class TestServicingPublicapiTransfersRelatedAnalyticObjectDTO(unittest.TestCase): + """ServicingPublicapiTransfersRelatedAnalyticObjectDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersRelatedAnalyticObjectDTO: + """Test ServicingPublicapiTransfersRelatedAnalyticObjectDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersRelatedAnalyticObjectDTO( + analytic_object_id = '', + display_name = '' + ) + else: + return ServicingPublicapiTransfersRelatedAnalyticObjectDTO( + ) + + def testServicingPublicapiTransfersRelatedAnalyticObjectDTO(self): + """Test ServicingPublicapiTransfersRelatedAnalyticObjectDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersRelatedAnalyticObjectDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersRelatedAnalyticObjectDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_role_modules_config_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_role_modules_config_dto.py new file mode 100644 index 0000000000..b39a4eb258 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_role_modules_config_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_role_modules_config_dto import ServicingPublicapiTransfersRoleModulesConfigDTO + +class TestServicingPublicapiTransfersRoleModulesConfigDTO(unittest.TestCase): + """ServicingPublicapiTransfersRoleModulesConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersRoleModulesConfigDTO: + """Test ServicingPublicapiTransfersRoleModulesConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersRoleModulesConfigDTO( + content_package_ids = [ + '' + ] + ) + else: + return ServicingPublicapiTransfersRoleModulesConfigDTO( + ) + + def testServicingPublicapiTransfersRoleModulesConfigDTO(self): + """Test ServicingPublicapiTransfersRoleModulesConfigDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersRoleModulesConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersRoleModulesConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_securable_dimension_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_securable_dimension_dto.py new file mode 100644 index 0000000000..6e8fe634a6 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_securable_dimension_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_securable_dimension_dto import ServicingPublicapiTransfersSecurableDimensionDTO + +class TestServicingPublicapiTransfersSecurableDimensionDTO(unittest.TestCase): + """ServicingPublicapiTransfersSecurableDimensionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersSecurableDimensionDTO: + """Test ServicingPublicapiTransfersSecurableDimensionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersSecurableDimensionDTO( + analytic_object_ids = [ + '' + ], + dimension_id = '', + display_name = '', + hierarchy_properties = [ + visier_api_administration.models.servicing/publicapi/transfers/hierarchy_property_dto.servicing.publicapi.transfers.HierarchyPropertyDTO( + display_name = '', + hierarchy_property_id = '', ) + ] + ) + else: + return ServicingPublicapiTransfersSecurableDimensionDTO( + ) + + def testServicingPublicapiTransfersSecurableDimensionDTO(self): + """Test ServicingPublicapiTransfersSecurableDimensionDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersSecurableDimensionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersSecurableDimensionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_securable_property_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_securable_property_dto.py new file mode 100644 index 0000000000..ba93f5b17f --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_securable_property_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_securable_property_dto import ServicingPublicapiTransfersSecurablePropertyDTO + +class TestServicingPublicapiTransfersSecurablePropertyDTO(unittest.TestCase): + """ServicingPublicapiTransfersSecurablePropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersSecurablePropertyDTO: + """Test ServicingPublicapiTransfersSecurablePropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersSecurablePropertyDTO( + analytic_object_id = '', + display_name = '', + is_primary_key = True, + property_id = '', + reference_symbol_name = '' + ) + else: + return ServicingPublicapiTransfersSecurablePropertyDTO( + ) + + def testServicingPublicapiTransfersSecurablePropertyDTO(self): + """Test ServicingPublicapiTransfersSecurablePropertyDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersSecurablePropertyDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersSecurablePropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_shareable_data_access_set.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_shareable_data_access_set.py new file mode 100644 index 0000000000..a33a253ca8 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_shareable_data_access_set.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_shareable_data_access_set import ServicingPublicapiTransfersShareableDataAccessSet + +class TestServicingPublicapiTransfersShareableDataAccessSet(unittest.TestCase): + """ServicingPublicapiTransfersShareableDataAccessSet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersShareableDataAccessSet: + """Test ServicingPublicapiTransfersShareableDataAccessSet + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersShareableDataAccessSet( + data_access_set_id = '' + ) + else: + return ServicingPublicapiTransfersShareableDataAccessSet( + ) + + def testServicingPublicapiTransfersShareableDataAccessSet(self): + """Test ServicingPublicapiTransfersShareableDataAccessSet""" + def validate_instance(instance): + ServicingPublicapiTransfersShareableDataAccessSet.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersShareableDataAccessSet.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_sources_api_operation_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_sources_api_operation_request_dto.py new file mode 100644 index 0000000000..39765e0b60 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_sources_api_operation_request_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_sources_api_operation_request_dto import ServicingPublicapiTransfersSourcesAPIOperationRequestDTO + +class TestServicingPublicapiTransfersSourcesAPIOperationRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersSourcesAPIOperationRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersSourcesAPIOperationRequestDTO: + """Test ServicingPublicapiTransfersSourcesAPIOperationRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersSourcesAPIOperationRequestDTO( + operation = 'unknownSourcesAPIOperation' + ) + else: + return ServicingPublicapiTransfersSourcesAPIOperationRequestDTO( + ) + + def testServicingPublicapiTransfersSourcesAPIOperationRequestDTO(self): + """Test ServicingPublicapiTransfersSourcesAPIOperationRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersSourcesAPIOperationRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersSourcesAPIOperationRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_static_dimension_filter_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_static_dimension_filter_dto.py new file mode 100644 index 0000000000..2d3ea291af --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_static_dimension_filter_dto.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_static_dimension_filter_dto import ServicingPublicapiTransfersStaticDimensionFilterDTO + +class TestServicingPublicapiTransfersStaticDimensionFilterDTO(unittest.TestCase): + """ServicingPublicapiTransfersStaticDimensionFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersStaticDimensionFilterDTO: + """Test ServicingPublicapiTransfersStaticDimensionFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersStaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/publicapi/transfers/member_selection_dto.servicing.publicapi.transfers.MemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ], ) + ], + subject_reference_path = [ + '' + ] + ) + else: + return ServicingPublicapiTransfersStaticDimensionFilterDTO( + ) + + def testServicingPublicapiTransfersStaticDimensionFilterDTO(self): + """Test ServicingPublicapiTransfersStaticDimensionFilterDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersStaticDimensionFilterDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersStaticDimensionFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_successful_accessible_tenant_profile_assignment_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_successful_accessible_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..524f3c442d --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_successful_accessible_tenant_profile_assignment_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_successful_accessible_tenant_profile_assignment_dto import ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO + +class TestServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO(unittest.TestCase): + """ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO: + """Test ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO( + for_all_children = True, + tenant_code = '', + user_id = '' + ) + else: + return ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO( + ) + + def testServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO(self): + """Test ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_successful_local_tenant_profile_assignment_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_successful_local_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..3d5ab9e550 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_successful_local_tenant_profile_assignment_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_successful_local_tenant_profile_assignment_dto import ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO + +class TestServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO(unittest.TestCase): + """ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO: + """Test ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO( + user_id = '' + ) + else: + return ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO( + ) + + def testServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO(self): + """Test ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_target_tenant_code_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_target_tenant_code_dto.py new file mode 100644 index 0000000000..7ada161ada --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_target_tenant_code_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_target_tenant_code_dto import ServicingPublicapiTransfersTargetTenantCodeDTO + +class TestServicingPublicapiTransfersTargetTenantCodeDTO(unittest.TestCase): + """ServicingPublicapiTransfersTargetTenantCodeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersTargetTenantCodeDTO: + """Test ServicingPublicapiTransfersTargetTenantCodeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersTargetTenantCodeDTO( + for_all_children = True, + tenant_code = '' + ) + else: + return ServicingPublicapiTransfersTargetTenantCodeDTO( + ) + + def testServicingPublicapiTransfersTargetTenantCodeDTO(self): + """Test ServicingPublicapiTransfersTargetTenantCodeDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersTargetTenantCodeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersTargetTenantCodeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_tenant_code_error_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_tenant_code_error_dto.py new file mode 100644 index 0000000000..ea51a20ec7 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_tenant_code_error_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_tenant_code_error_dto import ServicingPublicapiTransfersTenantCodeErrorDTO + +class TestServicingPublicapiTransfersTenantCodeErrorDTO(unittest.TestCase): + """ServicingPublicapiTransfersTenantCodeErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersTenantCodeErrorDTO: + """Test ServicingPublicapiTransfersTenantCodeErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersTenantCodeErrorDTO( + error = visier_api_administration.models.servicing/publicapi/transfers/error_dto.servicing.publicapi.transfers.ErrorDTO( + error_code = '', + error_message = '', + root_cause_id = '', ), + for_all_children = True, + tenant_code = '' + ) + else: + return ServicingPublicapiTransfersTenantCodeErrorDTO( + ) + + def testServicingPublicapiTransfersTenantCodeErrorDTO(self): + """Test ServicingPublicapiTransfersTenantCodeErrorDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersTenantCodeErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersTenantCodeErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_creation_api_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_creation_api_request_dto.py new file mode 100644 index 0000000000..89a490902c --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_creation_api_request_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_user_creation_api_request_dto import ServicingPublicapiTransfersUserCreationAPIRequestDTO + +class TestServicingPublicapiTransfersUserCreationAPIRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersUserCreationAPIRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersUserCreationAPIRequestDTO: + """Test ServicingPublicapiTransfersUserCreationAPIRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersUserCreationAPIRequestDTO( + account_enabled = '', + display_name = '', + email = '', + employee_id = '', + username = '' + ) + else: + return ServicingPublicapiTransfersUserCreationAPIRequestDTO( + ) + + def testServicingPublicapiTransfersUserCreationAPIRequestDTO(self): + """Test ServicingPublicapiTransfersUserCreationAPIRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersUserCreationAPIRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersUserCreationAPIRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_get_api_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_get_api_response_dto.py new file mode 100644 index 0000000000..bb4a722a5e --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_get_api_response_dto.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_user_get_api_response_dto import ServicingPublicapiTransfersUserGetAPIResponseDTO + +class TestServicingPublicapiTransfersUserGetAPIResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersUserGetAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersUserGetAPIResponseDTO: + """Test ServicingPublicapiTransfersUserGetAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersUserGetAPIResponseDTO( + account_enabled = True, + display_name = '', + email = '', + employee_id = '', + last_login = visier_api_administration.models.servicing/publicapi/transfers/last_login_dto.servicing.publicapi.transfers.LastLoginDTO( + timestamp = '', ), + permissions = visier_api_administration.models.servicing/publicapi/transfers/all_permissions_assigned_for_local_tenant_dto.servicing.publicapi.transfers.AllPermissionsAssignedForLocalTenantDTO( + assigned_permissions = [ + visier_api_administration.models.servicing/publicapi/transfers/permission_assigned_for_local_tenant_dto.servicing.publicapi.transfers.PermissionAssignedForLocalTenantDTO( + description = '', + display_name = '', + permission_id = '', ) + ], ), + profiles = visier_api_administration.models.servicing/publicapi/transfers/all_profile_assigned_for_local_tenant_dto.servicing.publicapi.transfers.AllProfileAssignedForLocalTenantDTO( + assigned_profiles = [ + visier_api_administration.models.servicing/publicapi/transfers/profile_assigned_for_local_tenant_dto.servicing.publicapi.transfers.ProfileAssignedForLocalTenantDTO( + additional_capabilities = None, + capabilities = [ + visier_api_administration.models.servicing/publicapi/transfers/capabilities_dto.servicing.publicapi.transfers.CapabilitiesDTO( + access_level = '', + capability = '', + view_level = '', ) + ], + display_name = '', + profile_id = '', + validity_end_time = '', + validity_start_time = '', ) + ], ), + user_groups = visier_api_administration.models.servicing/publicapi/transfers/all_user_groups_assigned_for_local_tenant_dto.servicing.publicapi.transfers.AllUserGroupsAssignedForLocalTenantDTO( + assigned_user_groups = [ + visier_api_administration.models.servicing/publicapi/transfers/user_group_assigned_for_local_tenant_dto.servicing.publicapi.transfers.UserGroupAssignedForLocalTenantDTO( + display_name = '', + user_group_id = '', ) + ], ), + user_id = '', + username = '' + ) + else: + return ServicingPublicapiTransfersUserGetAPIResponseDTO( + ) + + def testServicingPublicapiTransfersUserGetAPIResponseDTO(self): + """Test ServicingPublicapiTransfersUserGetAPIResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersUserGetAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersUserGetAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_group_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_group_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..1478f68ca6 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_group_assigned_for_local_tenant_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_user_group_assigned_for_local_tenant_dto import ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO + +class TestServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO(unittest.TestCase): + """ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO: + """Test ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO( + display_name = '', + user_group_id = '' + ) + else: + return ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO( + ) + + def testServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO(self): + """Test ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_id_error_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_id_error_dto.py new file mode 100644 index 0000000000..3b1fbf959c --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_id_error_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_user_id_error_dto import ServicingPublicapiTransfersUserIdErrorDTO + +class TestServicingPublicapiTransfersUserIdErrorDTO(unittest.TestCase): + """ServicingPublicapiTransfersUserIdErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersUserIdErrorDTO: + """Test ServicingPublicapiTransfersUserIdErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersUserIdErrorDTO( + error = visier_api_administration.models.servicing/publicapi/transfers/error_dto.servicing.publicapi.transfers.ErrorDTO( + error_code = '', + error_message = '', + root_cause_id = '', ), + user_id = '' + ) + else: + return ServicingPublicapiTransfersUserIdErrorDTO( + ) + + def testServicingPublicapiTransfersUserIdErrorDTO(self): + """Test ServicingPublicapiTransfersUserIdErrorDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersUserIdErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersUserIdErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_property_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_property_dto.py new file mode 100644 index 0000000000..a8c88920f6 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_property_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_user_property_dto import ServicingPublicapiTransfersUserPropertyDTO + +class TestServicingPublicapiTransfersUserPropertyDTO(unittest.TestCase): + """ServicingPublicapiTransfersUserPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersUserPropertyDTO: + """Test ServicingPublicapiTransfersUserPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersUserPropertyDTO( + name = '' + ) + else: + return ServicingPublicapiTransfersUserPropertyDTO( + ) + + def testServicingPublicapiTransfersUserPropertyDTO(self): + """Test ServicingPublicapiTransfersUserPropertyDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersUserPropertyDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersUserPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_update_api_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_update_api_request_dto.py new file mode 100644 index 0000000000..9b8bebbfad --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_user_update_api_request_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_user_update_api_request_dto import ServicingPublicapiTransfersUserUpdateAPIRequestDTO + +class TestServicingPublicapiTransfersUserUpdateAPIRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersUserUpdateAPIRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersUserUpdateAPIRequestDTO: + """Test ServicingPublicapiTransfersUserUpdateAPIRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersUserUpdateAPIRequestDTO( + account_enabled = '', + display_name = '', + email = '', + employee_id = '' + ) + else: + return ServicingPublicapiTransfersUserUpdateAPIRequestDTO( + ) + + def testServicingPublicapiTransfersUserUpdateAPIRequestDTO(self): + """Test ServicingPublicapiTransfersUserUpdateAPIRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersUserUpdateAPIRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersUserUpdateAPIRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_api_error_message_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_api_error_message_dto.py new file mode 100644 index 0000000000..958c001a8c --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_api_error_message_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_users_api_error_message_dto import ServicingPublicapiTransfersUsersAPIErrorMessageDTO + +class TestServicingPublicapiTransfersUsersAPIErrorMessageDTO(unittest.TestCase): + """ServicingPublicapiTransfersUsersAPIErrorMessageDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersUsersAPIErrorMessageDTO: + """Test ServicingPublicapiTransfersUsersAPIErrorMessageDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersUsersAPIErrorMessageDTO( + message = '', + rci = '' + ) + else: + return ServicingPublicapiTransfersUsersAPIErrorMessageDTO( + ) + + def testServicingPublicapiTransfersUsersAPIErrorMessageDTO(self): + """Test ServicingPublicapiTransfersUsersAPIErrorMessageDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersUsersAPIErrorMessageDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersUsersAPIErrorMessageDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_api_failure_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_api_failure_dto.py new file mode 100644 index 0000000000..bfebe85635 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_api_failure_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_users_api_failure_dto import ServicingPublicapiTransfersUsersAPIFailureDTO + +class TestServicingPublicapiTransfersUsersAPIFailureDTO(unittest.TestCase): + """ServicingPublicapiTransfersUsersAPIFailureDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersUsersAPIFailureDTO: + """Test ServicingPublicapiTransfersUsersAPIFailureDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersUsersAPIFailureDTO( + display_name = '', + error = visier_api_administration.models.servicing/publicapi/transfers/users_api_error_message_dto.servicing.publicapi.transfers.UsersAPIErrorMessageDTO( + message = '', + rci = '', ), + user_id = '', + user_name = '' + ) + else: + return ServicingPublicapiTransfersUsersAPIFailureDTO( + ) + + def testServicingPublicapiTransfersUsersAPIFailureDTO(self): + """Test ServicingPublicapiTransfersUsersAPIFailureDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersUsersAPIFailureDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersUsersAPIFailureDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_api_response_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_api_response_dto.py new file mode 100644 index 0000000000..df210c7ecb --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_api_response_dto.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_users_api_response_dto import ServicingPublicapiTransfersUsersAPIResponseDTO + +class TestServicingPublicapiTransfersUsersAPIResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersUsersAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersUsersAPIResponseDTO: + """Test ServicingPublicapiTransfersUsersAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersUsersAPIResponseDTO( + failures = [ + visier_api_administration.models.servicing/publicapi/transfers/users_api_failure_dto.servicing.publicapi.transfers.UsersAPIFailureDTO( + display_name = '', + error = None, + user_id = '', + user_name = '', ) + ], + successes = [ + visier_api_administration.models.servicing/publicapi/transfers/users_api_success_dto.servicing.publicapi.transfers.UsersAPISuccessDTO( + account_enabled = '', + display_name = '', + email = '', + employee_id = '', + user_id = '', + username = '', ) + ] + ) + else: + return ServicingPublicapiTransfersUsersAPIResponseDTO( + ) + + def testServicingPublicapiTransfersUsersAPIResponseDTO(self): + """Test ServicingPublicapiTransfersUsersAPIResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersUsersAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersUsersAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_api_success_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_api_success_dto.py new file mode 100644 index 0000000000..eab1511f41 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_api_success_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_users_api_success_dto import ServicingPublicapiTransfersUsersAPISuccessDTO + +class TestServicingPublicapiTransfersUsersAPISuccessDTO(unittest.TestCase): + """ServicingPublicapiTransfersUsersAPISuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersUsersAPISuccessDTO: + """Test ServicingPublicapiTransfersUsersAPISuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersUsersAPISuccessDTO( + account_enabled = '', + display_name = '', + email = '', + employee_id = '', + user_id = '', + username = '' + ) + else: + return ServicingPublicapiTransfersUsersAPISuccessDTO( + ) + + def testServicingPublicapiTransfersUsersAPISuccessDTO(self): + """Test ServicingPublicapiTransfersUsersAPISuccessDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersUsersAPISuccessDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersUsersAPISuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_creation_api_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_creation_api_request_dto.py new file mode 100644 index 0000000000..26a11f50bf --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_creation_api_request_dto.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_users_creation_api_request_dto import ServicingPublicapiTransfersUsersCreationAPIRequestDTO + +class TestServicingPublicapiTransfersUsersCreationAPIRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersUsersCreationAPIRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersUsersCreationAPIRequestDTO: + """Test ServicingPublicapiTransfersUsersCreationAPIRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersUsersCreationAPIRequestDTO( + users = [ + visier_api_administration.models.servicing/publicapi/transfers/user_creation_api_request_dto.servicing.publicapi.transfers.UserCreationAPIRequestDTO( + account_enabled = '', + display_name = '', + email = '', + employee_id = '', + username = '', ) + ] + ) + else: + return ServicingPublicapiTransfersUsersCreationAPIRequestDTO( + ) + + def testServicingPublicapiTransfersUsersCreationAPIRequestDTO(self): + """Test ServicingPublicapiTransfersUsersCreationAPIRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersUsersCreationAPIRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersUsersCreationAPIRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_delete_api_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_delete_api_request_dto.py new file mode 100644 index 0000000000..894a26a7be --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_delete_api_request_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_users_delete_api_request_dto import ServicingPublicapiTransfersUsersDeleteAPIRequestDTO + +class TestServicingPublicapiTransfersUsersDeleteAPIRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersUsersDeleteAPIRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersUsersDeleteAPIRequestDTO: + """Test ServicingPublicapiTransfersUsersDeleteAPIRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersUsersDeleteAPIRequestDTO( + user_ids = [ + '' + ] + ) + else: + return ServicingPublicapiTransfersUsersDeleteAPIRequestDTO( + ) + + def testServicingPublicapiTransfersUsersDeleteAPIRequestDTO(self): + """Test ServicingPublicapiTransfersUsersDeleteAPIRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersUsersDeleteAPIRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersUsersDeleteAPIRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_update_api_request_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_update_api_request_dto.py new file mode 100644 index 0000000000..a11c9b3b78 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_update_api_request_dto.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_users_update_api_request_dto import ServicingPublicapiTransfersUsersUpdateAPIRequestDTO + +class TestServicingPublicapiTransfersUsersUpdateAPIRequestDTO(unittest.TestCase): + """ServicingPublicapiTransfersUsersUpdateAPIRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersUsersUpdateAPIRequestDTO: + """Test ServicingPublicapiTransfersUsersUpdateAPIRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersUsersUpdateAPIRequestDTO( + users = [ + visier_api_administration.models.servicing/publicapi/transfers/users_update_api_user_dto.servicing.publicapi.transfers.UsersUpdateAPIUserDTO( + account_enabled = '', + display_name = '', + email = '', + employee_id = '', + user_id = '', ) + ] + ) + else: + return ServicingPublicapiTransfersUsersUpdateAPIRequestDTO( + ) + + def testServicingPublicapiTransfersUsersUpdateAPIRequestDTO(self): + """Test ServicingPublicapiTransfersUsersUpdateAPIRequestDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersUsersUpdateAPIRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersUsersUpdateAPIRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_update_api_user_dto.py b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_update_api_user_dto.py new file mode 100644 index 0000000000..92b08080e0 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_publicapi_transfers_users_update_api_user_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.servicing_publicapi_transfers_users_update_api_user_dto import ServicingPublicapiTransfersUsersUpdateAPIUserDTO + +class TestServicingPublicapiTransfersUsersUpdateAPIUserDTO(unittest.TestCase): + """ServicingPublicapiTransfersUsersUpdateAPIUserDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersUsersUpdateAPIUserDTO: + """Test ServicingPublicapiTransfersUsersUpdateAPIUserDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersUsersUpdateAPIUserDTO( + account_enabled = '', + display_name = '', + email = '', + employee_id = '', + user_id = '' + ) + else: + return ServicingPublicapiTransfersUsersUpdateAPIUserDTO( + ) + + def testServicingPublicapiTransfersUsersUpdateAPIUserDTO(self): + """Test ServicingPublicapiTransfersUsersUpdateAPIUserDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersUsersUpdateAPIUserDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersUsersUpdateAPIUserDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_shareable_data_access_set.py b/src/visier_api_administration/test/test_shareable_data_access_set.py deleted file mode 100644 index 8e369fd8c9..0000000000 --- a/src/visier_api_administration/test/test_shareable_data_access_set.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.shareable_data_access_set import ShareableDataAccessSet - -class TestShareableDataAccessSet(unittest.TestCase): - """ShareableDataAccessSet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ShareableDataAccessSet: - """Test ShareableDataAccessSet - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ShareableDataAccessSet( - data_access_set_id = '' - ) - else: - return ShareableDataAccessSet( - ) - - def testShareableDataAccessSet(self): - """Test ShareableDataAccessSet""" - def validate_instance(instance): - ShareableDataAccessSet.model_validate(inst_req_only) - instance_deserialized = ShareableDataAccessSet.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_simple_user_dto.py b/src/visier_api_administration/test/test_simple_user_dto.py deleted file mode 100644 index c6dce7690b..0000000000 --- a/src/visier_api_administration/test/test_simple_user_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.simple_user_dto import SimpleUserDTO - -class TestSimpleUserDTO(unittest.TestCase): - """SimpleUserDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SimpleUserDTO: - """Test SimpleUserDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SimpleUserDTO( - user_id = '', - username = '' - ) - else: - return SimpleUserDTO( - ) - - def testSimpleUserDTO(self): - """Test SimpleUserDTO""" - def validate_instance(instance): - SimpleUserDTO.model_validate(inst_req_only) - instance_deserialized = SimpleUserDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_source_import_result_summary_dto.py b/src/visier_api_administration/test/test_source_import_result_summary_dto.py index 0d055e8813..cb74cf7e69 100644 --- a/src/visier_api_administration/test/test_source_import_result_summary_dto.py +++ b/src/visier_api_administration/test/test_source_import_result_summary_dto.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_sources_api.py b/src/visier_api_administration/test/test_sources_api.py index c91d826d6c..093da6adf7 100644 --- a/src/visier_api_administration/test/test_sources_api.py +++ b/src/visier_api_administration/test/test_sources_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_sources_api_operation_request_dto.py b/src/visier_api_administration/test/test_sources_api_operation_request_dto.py deleted file mode 100644 index b3991ca85d..0000000000 --- a/src/visier_api_administration/test/test_sources_api_operation_request_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.sources_api_operation_request_dto import SourcesAPIOperationRequestDTO - -class TestSourcesAPIOperationRequestDTO(unittest.TestCase): - """SourcesAPIOperationRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SourcesAPIOperationRequestDTO: - """Test SourcesAPIOperationRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SourcesAPIOperationRequestDTO( - operation = 'unknownSourcesAPIOperation' - ) - else: - return SourcesAPIOperationRequestDTO( - ) - - def testSourcesAPIOperationRequestDTO(self): - """Test SourcesAPIOperationRequestDTO""" - def validate_instance(instance): - SourcesAPIOperationRequestDTO.model_validate(inst_req_only) - instance_deserialized = SourcesAPIOperationRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_sources_api_put_response_dto.py b/src/visier_api_administration/test/test_sources_api_put_response_dto.py index a4f638ce8c..8a2592fc30 100644 --- a/src/visier_api_administration/test/test_sources_api_put_response_dto.py +++ b/src/visier_api_administration/test/test_sources_api_put_response_dto.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_static_dimension_filter_dto.py b/src/visier_api_administration/test/test_static_dimension_filter_dto.py deleted file mode 100644 index 692404b306..0000000000 --- a/src/visier_api_administration/test/test_static_dimension_filter_dto.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.static_dimension_filter_dto import StaticDimensionFilterDTO - -class TestStaticDimensionFilterDTO(unittest.TestCase): - """StaticDimensionFilterDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StaticDimensionFilterDTO: - """Test StaticDimensionFilterDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return StaticDimensionFilterDTO( - dimension_id = '', - dimension_status = 'Unset', - member_selections = [ - visier_api_administration.models.member_selection_dto.MemberSelectionDTO( - dimension_member_status = 'Unset', - excluded = True, - name_path = [ - '' - ], ) - ], - subject_reference_path = [ - '' - ] - ) - else: - return StaticDimensionFilterDTO( - ) - - def testStaticDimensionFilterDTO(self): - """Test StaticDimensionFilterDTO""" - def validate_instance(instance): - StaticDimensionFilterDTO.model_validate(inst_req_only) - instance_deserialized = StaticDimensionFilterDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_status.py b/src/visier_api_administration/test/test_status.py index 374204df24..e9136d8aad 100644 --- a/src/visier_api_administration/test/test_status.py +++ b/src/visier_api_administration/test/test_status.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -36,9 +36,11 @@ def make_instance(self, include_optional) -> Status: if include_optional: return Status( - error_code = '', + code = '', + localized_message = '', message = '', - rci = '' + rci = '', + user_error = True ) else: return Status( diff --git a/src/visier_api_administration/test/test_successful_accessible_tenant_profile_assignment_dto.py b/src/visier_api_administration/test/test_successful_accessible_tenant_profile_assignment_dto.py deleted file mode 100644 index 6977a53264..0000000000 --- a/src/visier_api_administration/test/test_successful_accessible_tenant_profile_assignment_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.successful_accessible_tenant_profile_assignment_dto import SuccessfulAccessibleTenantProfileAssignmentDTO - -class TestSuccessfulAccessibleTenantProfileAssignmentDTO(unittest.TestCase): - """SuccessfulAccessibleTenantProfileAssignmentDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessfulAccessibleTenantProfileAssignmentDTO: - """Test SuccessfulAccessibleTenantProfileAssignmentDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SuccessfulAccessibleTenantProfileAssignmentDTO( - for_all_children = True, - tenant_code = '', - user_id = '' - ) - else: - return SuccessfulAccessibleTenantProfileAssignmentDTO( - ) - - def testSuccessfulAccessibleTenantProfileAssignmentDTO(self): - """Test SuccessfulAccessibleTenantProfileAssignmentDTO""" - def validate_instance(instance): - SuccessfulAccessibleTenantProfileAssignmentDTO.model_validate(inst_req_only) - instance_deserialized = SuccessfulAccessibleTenantProfileAssignmentDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_successful_local_tenant_profile_assignment_dto.py b/src/visier_api_administration/test/test_successful_local_tenant_profile_assignment_dto.py deleted file mode 100644 index 27a79c4aa6..0000000000 --- a/src/visier_api_administration/test/test_successful_local_tenant_profile_assignment_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.successful_local_tenant_profile_assignment_dto import SuccessfulLocalTenantProfileAssignmentDTO - -class TestSuccessfulLocalTenantProfileAssignmentDTO(unittest.TestCase): - """SuccessfulLocalTenantProfileAssignmentDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessfulLocalTenantProfileAssignmentDTO: - """Test SuccessfulLocalTenantProfileAssignmentDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SuccessfulLocalTenantProfileAssignmentDTO( - user_id = '' - ) - else: - return SuccessfulLocalTenantProfileAssignmentDTO( - ) - - def testSuccessfulLocalTenantProfileAssignmentDTO(self): - """Test SuccessfulLocalTenantProfileAssignmentDTO""" - def validate_instance(instance): - SuccessfulLocalTenantProfileAssignmentDTO.model_validate(inst_req_only) - instance_deserialized = SuccessfulLocalTenantProfileAssignmentDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_system_status_api.py b/src/visier_api_administration/test/test_system_status_api.py index cdd1f92228..d9009b929e 100644 --- a/src/visier_api_administration/test/test_system_status_api.py +++ b/src/visier_api_administration/test/test_system_status_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_system_status_dto.py b/src/visier_api_administration/test/test_system_status_dto.py deleted file mode 100644 index d91c12df0b..0000000000 --- a/src/visier_api_administration/test/test_system_status_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.system_status_dto import SystemStatusDTO - -class TestSystemStatusDTO(unittest.TestCase): - """SystemStatusDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SystemStatusDTO: - """Test SystemStatusDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SystemStatusDTO( - overall = '' - ) - else: - return SystemStatusDTO( - ) - - def testSystemStatusDTO(self): - """Test SystemStatusDTO""" - def validate_instance(instance): - SystemStatusDTO.model_validate(inst_req_only) - instance_deserialized = SystemStatusDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_systemstatus_publicapi_transfers_system_status_dto.py b/src/visier_api_administration/test/test_systemstatus_publicapi_transfers_system_status_dto.py new file mode 100644 index 0000000000..24f2dbd550 --- /dev/null +++ b/src/visier_api_administration/test/test_systemstatus_publicapi_transfers_system_status_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_administration.models +from visier_api_administration.models.systemstatus_publicapi_transfers_system_status_dto import SystemstatusPublicapiTransfersSystemStatusDTO + +class TestSystemstatusPublicapiTransfersSystemStatusDTO(unittest.TestCase): + """SystemstatusPublicapiTransfersSystemStatusDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SystemstatusPublicapiTransfersSystemStatusDTO: + """Test SystemstatusPublicapiTransfersSystemStatusDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return SystemstatusPublicapiTransfersSystemStatusDTO( + overall = '' + ) + else: + return SystemstatusPublicapiTransfersSystemStatusDTO( + ) + + def testSystemstatusPublicapiTransfersSystemStatusDTO(self): + """Test SystemstatusPublicapiTransfersSystemStatusDTO""" + def validate_instance(instance): + SystemstatusPublicapiTransfersSystemStatusDTO.model_validate(inst_req_only) + instance_deserialized = SystemstatusPublicapiTransfersSystemStatusDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_administration/test/test_target_project_for_tenant_dto.py b/src/visier_api_administration/test/test_target_project_for_tenant_dto.py deleted file mode 100644 index 5b4990bbbb..0000000000 --- a/src/visier_api_administration/test/test_target_project_for_tenant_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.target_project_for_tenant_dto import TargetProjectForTenantDTO - -class TestTargetProjectForTenantDTO(unittest.TestCase): - """TargetProjectForTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TargetProjectForTenantDTO: - """Test TargetProjectForTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TargetProjectForTenantDTO( - project_id = '', - tenant_code = '' - ) - else: - return TargetProjectForTenantDTO( - ) - - def testTargetProjectForTenantDTO(self): - """Test TargetProjectForTenantDTO""" - def validate_instance(instance): - TargetProjectForTenantDTO.model_validate(inst_req_only) - instance_deserialized = TargetProjectForTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_target_project_for_tenants_list_dto.py b/src/visier_api_administration/test/test_target_project_for_tenants_list_dto.py deleted file mode 100644 index 964b7e3d40..0000000000 --- a/src/visier_api_administration/test/test_target_project_for_tenants_list_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.target_project_for_tenants_list_dto import TargetProjectForTenantsListDTO - -class TestTargetProjectForTenantsListDTO(unittest.TestCase): - """TargetProjectForTenantsListDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TargetProjectForTenantsListDTO: - """Test TargetProjectForTenantsListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TargetProjectForTenantsListDTO( - target_project_for_tenants = [ - visier_api_administration.models.target_project_for_tenant_dto.TargetProjectForTenantDTO( - project_id = '', - tenant_code = '', ) - ] - ) - else: - return TargetProjectForTenantsListDTO( - ) - - def testTargetProjectForTenantsListDTO(self): - """Test TargetProjectForTenantsListDTO""" - def validate_instance(instance): - TargetProjectForTenantsListDTO.model_validate(inst_req_only) - instance_deserialized = TargetProjectForTenantsListDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_target_tenant_code_dto.py b/src/visier_api_administration/test/test_target_tenant_code_dto.py deleted file mode 100644 index f4d42400f4..0000000000 --- a/src/visier_api_administration/test/test_target_tenant_code_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.target_tenant_code_dto import TargetTenantCodeDTO - -class TestTargetTenantCodeDTO(unittest.TestCase): - """TargetTenantCodeDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TargetTenantCodeDTO: - """Test TargetTenantCodeDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TargetTenantCodeDTO( - for_all_children = True, - tenant_code = '' - ) - else: - return TargetTenantCodeDTO( - ) - - def testTargetTenantCodeDTO(self): - """Test TargetTenantCodeDTO""" - def validate_instance(instance): - TargetTenantCodeDTO.model_validate(inst_req_only) - instance_deserialized = TargetTenantCodeDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenant_assignments_dto.py b/src/visier_api_administration/test/test_tenant_assignments_dto.py deleted file mode 100644 index 81e5bc4281..0000000000 --- a/src/visier_api_administration/test/test_tenant_assignments_dto.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.tenant_assignments_dto import TenantAssignmentsDTO - -class TestTenantAssignmentsDTO(unittest.TestCase): - """TenantAssignmentsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantAssignmentsDTO: - """Test TenantAssignmentsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantAssignmentsDTO( - assignments = [ - visier_api_administration.models.user_security_assignments_dto.UserSecurityAssignmentsDTO( - id = '', - name = '', - users = [ - visier_api_administration.models.simple_user_dto.SimpleUserDTO( - user_id = '', - username = '', ) - ], ) - ], - message = '', - project_id = '', - status = 'Unknown', - tenant_code = '' - ) - else: - return TenantAssignmentsDTO( - ) - - def testTenantAssignmentsDTO(self): - """Test TenantAssignmentsDTO""" - def validate_instance(instance): - TenantAssignmentsDTO.model_validate(inst_req_only) - instance_deserialized = TenantAssignmentsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenant_code_body.py b/src/visier_api_administration/test/test_tenant_code_body.py deleted file mode 100644 index 086312da97..0000000000 --- a/src/visier_api_administration/test/test_tenant_code_body.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.tenant_code_body import TenantCodeBody - -class TestTenantCodeBody(unittest.TestCase): - """TenantCodeBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantCodeBody: - """Test TenantCodeBody - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantCodeBody( - tenant_codes = [ - '' - ] - ) - else: - return TenantCodeBody( - ) - - def testTenantCodeBody(self): - """Test TenantCodeBody""" - def validate_instance(instance): - TenantCodeBody.model_validate(inst_req_only) - instance_deserialized = TenantCodeBody.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenant_code_error_dto.py b/src/visier_api_administration/test/test_tenant_code_error_dto.py deleted file mode 100644 index ca6ca57f23..0000000000 --- a/src/visier_api_administration/test/test_tenant_code_error_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.tenant_code_error_dto import TenantCodeErrorDTO - -class TestTenantCodeErrorDTO(unittest.TestCase): - """TenantCodeErrorDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantCodeErrorDTO: - """Test TenantCodeErrorDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantCodeErrorDTO( - error = visier_api_administration.models.error_dto.ErrorDTO( - error_code = '', - error_message = '', - root_cause_id = '', ), - for_all_children = True, - tenant_code = '' - ) - else: - return TenantCodeErrorDTO( - ) - - def testTenantCodeErrorDTO(self): - """Test TenantCodeErrorDTO""" - def validate_instance(instance): - TenantCodeErrorDTO.model_validate(inst_req_only) - instance_deserialized = TenantCodeErrorDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenant_detail_apidto.py b/src/visier_api_administration/test/test_tenant_detail_apidto.py deleted file mode 100644 index 2da53553bf..0000000000 --- a/src/visier_api_administration/test/test_tenant_detail_apidto.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.tenant_detail_apidto import TenantDetailAPIDTO - -class TestTenantDetailAPIDTO(unittest.TestCase): - """TenantDetailAPIDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantDetailAPIDTO: - """Test TenantDetailAPIDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantDetailAPIDTO( - allowed_o_auth_idp_url_domains = [ - '' - ], - can_administer_other_tenants = True, - current_data_version = '', - custom_properties = [ - visier_api_administration.models.custom_tenant_property_dto.CustomTenantPropertyDTO( - key = '', - value = '', ) - ], - data_version_date = '', - embeddable_domains = [ - '' - ], - industry_code = 56, - modules = [ - visier_api_administration.models.tenant_module_dto.TenantModuleDTO( - display_name = '', - module_settings = None, - symbol_name = '', ) - ], - provision_date = '', - sso_instance_issuers = [ - '' - ], - status = '', - tenant_code = '', - tenant_display_name = '', - vanity_url_name = '' - ) - else: - return TenantDetailAPIDTO( - ) - - def testTenantDetailAPIDTO(self): - """Test TenantDetailAPIDTO""" - def validate_instance(instance): - TenantDetailAPIDTO.model_validate(inst_req_only) - instance_deserialized = TenantDetailAPIDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenant_encryption_key_details_dto.py b/src/visier_api_administration/test/test_tenant_encryption_key_details_dto.py deleted file mode 100644 index 3fdc9da348..0000000000 --- a/src/visier_api_administration/test/test_tenant_encryption_key_details_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.tenant_encryption_key_details_dto import TenantEncryptionKeyDetailsDTO - -class TestTenantEncryptionKeyDetailsDTO(unittest.TestCase): - """TenantEncryptionKeyDetailsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantEncryptionKeyDetailsDTO: - """Test TenantEncryptionKeyDetailsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantEncryptionKeyDetailsDTO( - algorithm = '', - date_generated = '', - expiry_date = '', - generated_by = '', - key_name = '' - ) - else: - return TenantEncryptionKeyDetailsDTO( - ) - - def testTenantEncryptionKeyDetailsDTO(self): - """Test TenantEncryptionKeyDetailsDTO""" - def validate_instance(instance): - TenantEncryptionKeyDetailsDTO.model_validate(inst_req_only) - instance_deserialized = TenantEncryptionKeyDetailsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenant_encryption_key_dto.py b/src/visier_api_administration/test/test_tenant_encryption_key_dto.py deleted file mode 100644 index 7a5ede87cc..0000000000 --- a/src/visier_api_administration/test/test_tenant_encryption_key_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.tenant_encryption_key_dto import TenantEncryptionKeyDTO - -class TestTenantEncryptionKeyDTO(unittest.TestCase): - """TenantEncryptionKeyDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantEncryptionKeyDTO: - """Test TenantEncryptionKeyDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantEncryptionKeyDTO( - detail = visier_api_administration.models.tenant_encryption_key_details_dto.TenantEncryptionKeyDetailsDTO( - algorithm = '', - date_generated = '', - expiry_date = '', - generated_by = '', - key_name = '', ), - key = '' - ) - else: - return TenantEncryptionKeyDTO( - ) - - def testTenantEncryptionKeyDTO(self): - """Test TenantEncryptionKeyDTO""" - def validate_instance(instance): - TenantEncryptionKeyDTO.model_validate(inst_req_only) - instance_deserialized = TenantEncryptionKeyDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenant_management_api_get_response_dto.py b/src/visier_api_administration/test/test_tenant_management_api_get_response_dto.py deleted file mode 100644 index dec4e752ac..0000000000 --- a/src/visier_api_administration/test/test_tenant_management_api_get_response_dto.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.tenant_management_api_get_response_dto import TenantManagementAPIGetResponseDTO - -class TestTenantManagementAPIGetResponseDTO(unittest.TestCase): - """TenantManagementAPIGetResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantManagementAPIGetResponseDTO: - """Test TenantManagementAPIGetResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantManagementAPIGetResponseDTO( - allowed_o_auth_idp_url_domains = [ - '' - ], - can_administer_other_tenants = True, - click_through_link = '', - click_through_link_enabled = '', - current_data_version = '', - custom_properties = [ - visier_api_administration.models.custom_property_dto.CustomPropertyDTO( - key = '', - value = '', ) - ], - data_version_date = '', - default_currency = '', - embeddable_domains = [ - '' - ], - home_analysis_by_user_group = [ - visier_api_administration.models.home_analysis_by_user_group_dto.HomeAnalysisByUserGroupDTO( - home_analysis_id = '', - user_group_id = '', ) - ], - home_analysis_id = '', - industry_code = 56, - primary_business_location = visier_api_administration.models.business_location_dto.BusinessLocationDTO( - country_code = '', - postal_code = '', ), - provision_date = '', - purchased_modules = [ - '' - ], - sso_instance_issuers = [ - '' - ], - status = '', - tenant_code = '', - tenant_display_name = '', - vanity_url_name = '' - ) - else: - return TenantManagementAPIGetResponseDTO( - ) - - def testTenantManagementAPIGetResponseDTO(self): - """Test TenantManagementAPIGetResponseDTO""" - def validate_instance(instance): - TenantManagementAPIGetResponseDTO.model_validate(inst_req_only) - instance_deserialized = TenantManagementAPIGetResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenant_management_api_list_response_dto.py b/src/visier_api_administration/test/test_tenant_management_api_list_response_dto.py deleted file mode 100644 index 8fb52b0300..0000000000 --- a/src/visier_api_administration/test/test_tenant_management_api_list_response_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.tenant_management_api_list_response_dto import TenantManagementAPIListResponseDTO - -class TestTenantManagementAPIListResponseDTO(unittest.TestCase): - """TenantManagementAPIListResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantManagementAPIListResponseDTO: - """Test TenantManagementAPIListResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantManagementAPIListResponseDTO( - limit = 56, - start = 56, - tenants = [ - visier_api_administration.models.tenant_management_api_get_response_dto.TenantManagementAPIGetResponseDTO( - allowed_o_auth_idp_url_domains = [ - '' - ], - can_administer_other_tenants = True, - click_through_link = '', - click_through_link_enabled = '', - current_data_version = '', - custom_properties = [ - visier_api_administration.models.custom_property_dto.CustomPropertyDTO( - key = '', - value = '', ) - ], - data_version_date = '', - default_currency = '', - embeddable_domains = [ - '' - ], - home_analysis_by_user_group = [ - visier_api_administration.models.home_analysis_by_user_group_dto.HomeAnalysisByUserGroupDTO( - home_analysis_id = '', - user_group_id = '', ) - ], - home_analysis_id = '', - industry_code = 56, - primary_business_location = None, - provision_date = '', - purchased_modules = [ - '' - ], - sso_instance_issuers = [ - '' - ], - status = '', - tenant_code = '', - tenant_display_name = '', - vanity_url_name = '', ) - ] - ) - else: - return TenantManagementAPIListResponseDTO( - ) - - def testTenantManagementAPIListResponseDTO(self): - """Test TenantManagementAPIListResponseDTO""" - def validate_instance(instance): - TenantManagementAPIListResponseDTO.model_validate(inst_req_only) - instance_deserialized = TenantManagementAPIListResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenant_management_api_update_request_dto.py b/src/visier_api_administration/test/test_tenant_management_api_update_request_dto.py deleted file mode 100644 index a94c5e8da0..0000000000 --- a/src/visier_api_administration/test/test_tenant_management_api_update_request_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.tenant_management_api_update_request_dto import TenantManagementAPIUpdateRequestDTO - -class TestTenantManagementAPIUpdateRequestDTO(unittest.TestCase): - """TenantManagementAPIUpdateRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantManagementAPIUpdateRequestDTO: - """Test TenantManagementAPIUpdateRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantManagementAPIUpdateRequestDTO( - allowed_o_auth_idp_url_domains = [ - '' - ], - click_through_link = '', - custom_properties = [ - visier_api_administration.models.custom_property_dto.CustomPropertyDTO( - key = '', - value = '', ) - ], - default_currency = '', - embeddable_domains = [ - '' - ], - enabled = True, - home_analysis_by_user_group = [ - visier_api_administration.models.home_analysis_by_user_group_dto.HomeAnalysisByUserGroupDTO( - home_analysis_id = '', - user_group_id = '', ) - ], - home_analysis_id = '', - industry_code = 56, - primary_business_location = visier_api_administration.models.business_location_dto.BusinessLocationDTO( - country_code = '', - postal_code = '', ), - purchased_modules = [ - '' - ], - sso_instance_issuers = [ - '' - ], - tenant_code = '', - tenant_display_name = '', - tenant_short_name = '', - update_action = 'MERGE', - vanity_url_name = '' - ) - else: - return TenantManagementAPIUpdateRequestDTO( - ) - - def testTenantManagementAPIUpdateRequestDTO(self): - """Test TenantManagementAPIUpdateRequestDTO""" - def validate_instance(instance): - TenantManagementAPIUpdateRequestDTO.model_validate(inst_req_only) - instance_deserialized = TenantManagementAPIUpdateRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenant_management_api_update_response_dto.py b/src/visier_api_administration/test/test_tenant_management_api_update_response_dto.py deleted file mode 100644 index 52bfc9f9c0..0000000000 --- a/src/visier_api_administration/test/test_tenant_management_api_update_response_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.tenant_management_api_update_response_dto import TenantManagementAPIUpdateResponseDTO - -class TestTenantManagementAPIUpdateResponseDTO(unittest.TestCase): - """TenantManagementAPIUpdateResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantManagementAPIUpdateResponseDTO: - """Test TenantManagementAPIUpdateResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantManagementAPIUpdateResponseDTO( - allowed_o_auth_idp_url_domains = [ - '' - ], - click_through_link = '', - custom_properties = [ - visier_api_administration.models.custom_property_dto.CustomPropertyDTO( - key = '', - value = '', ) - ], - default_currency = '', - embeddable_domains = [ - '' - ], - home_analysis_by_user_group = [ - visier_api_administration.models.home_analysis_by_user_group_dto.HomeAnalysisByUserGroupDTO( - home_analysis_id = '', - user_group_id = '', ) - ], - home_analysis_id = '', - industry_code = 56, - primary_business_location = visier_api_administration.models.business_location_dto.BusinessLocationDTO( - country_code = '', - postal_code = '', ), - purchased_modules = [ - '' - ], - sso_instance_issuers = [ - '' - ], - status = '', - tenant_code = '', - tenant_display_name = '', - vanity_url_name = '' - ) - else: - return TenantManagementAPIUpdateResponseDTO( - ) - - def testTenantManagementAPIUpdateResponseDTO(self): - """Test TenantManagementAPIUpdateResponseDTO""" - def validate_instance(instance): - TenantManagementAPIUpdateResponseDTO.model_validate(inst_req_only) - instance_deserialized = TenantManagementAPIUpdateResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenant_module_dto.py b/src/visier_api_administration/test/test_tenant_module_dto.py deleted file mode 100644 index 72b1fd44cc..0000000000 --- a/src/visier_api_administration/test/test_tenant_module_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.tenant_module_dto import TenantModuleDTO - -class TestTenantModuleDTO(unittest.TestCase): - """TenantModuleDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantModuleDTO: - """Test TenantModuleDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantModuleDTO( - display_name = '', - module_settings = visier_api_administration.models.module_settings_dto.ModuleSettingsDTO( - locale = '', - special_handling_instruction = '', - unavailable_for_assignment = True, ), - symbol_name = '' - ) - else: - return TenantModuleDTO( - ) - - def testTenantModuleDTO(self): - """Test TenantModuleDTO""" - def validate_instance(instance): - TenantModuleDTO.model_validate(inst_req_only) - instance_deserialized = TenantModuleDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenant_preview_entries_summary_dto.py b/src/visier_api_administration/test/test_tenant_preview_entries_summary_dto.py deleted file mode 100644 index 01b7032a7e..0000000000 --- a/src/visier_api_administration/test/test_tenant_preview_entries_summary_dto.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.tenant_preview_entries_summary_dto import TenantPreviewEntriesSummaryDTO - -class TestTenantPreviewEntriesSummaryDTO(unittest.TestCase): - """TenantPreviewEntriesSummaryDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantPreviewEntriesSummaryDTO: - """Test TenantPreviewEntriesSummaryDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantPreviewEntriesSummaryDTO( - data_version = '', - data_version_date = '', - metrics = [ - visier_api_administration.models.metric_validation_summary_dto.MetricValidationSummaryDTO( - display_name = '', - symbol_name = '', - value = 1.337, ) - ], - tenant_code = '' - ) - else: - return TenantPreviewEntriesSummaryDTO( - ) - - def testTenantPreviewEntriesSummaryDTO(self): - """Test TenantPreviewEntriesSummaryDTO""" - def validate_instance(instance): - TenantPreviewEntriesSummaryDTO.model_validate(inst_req_only) - instance_deserialized = TenantPreviewEntriesSummaryDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenant_preview_entries_summary_list_dto.py b/src/visier_api_administration/test/test_tenant_preview_entries_summary_list_dto.py deleted file mode 100644 index 7bacac55b8..0000000000 --- a/src/visier_api_administration/test/test_tenant_preview_entries_summary_list_dto.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.tenant_preview_entries_summary_list_dto import TenantPreviewEntriesSummaryListDTO - -class TestTenantPreviewEntriesSummaryListDTO(unittest.TestCase): - """TenantPreviewEntriesSummaryListDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantPreviewEntriesSummaryListDTO: - """Test TenantPreviewEntriesSummaryListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantPreviewEntriesSummaryListDTO( - limit = 56, - start = 56, - tenants = [ - visier_api_administration.models.tenant_preview_entries_summary_dto.TenantPreviewEntriesSummaryDTO( - data_version = '', - data_version_date = '', - metrics = [ - visier_api_administration.models.metric_validation_summary_dto.MetricValidationSummaryDTO( - display_name = '', - symbol_name = '', - value = 1.337, ) - ], - tenant_code = '', ) - ] - ) - else: - return TenantPreviewEntriesSummaryListDTO( - ) - - def testTenantPreviewEntriesSummaryListDTO(self): - """Test TenantPreviewEntriesSummaryListDTO""" - def validate_instance(instance): - TenantPreviewEntriesSummaryListDTO.model_validate(inst_req_only) - instance_deserialized = TenantPreviewEntriesSummaryListDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenant_provision_apidto.py b/src/visier_api_administration/test/test_tenant_provision_apidto.py deleted file mode 100644 index a23cd4055e..0000000000 --- a/src/visier_api_administration/test/test_tenant_provision_apidto.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.tenant_provision_apidto import TenantProvisionAPIDTO - -class TestTenantProvisionAPIDTO(unittest.TestCase): - """TenantProvisionAPIDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantProvisionAPIDTO: - """Test TenantProvisionAPIDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantProvisionAPIDTO( - allowed_o_auth_idp_url_domains = [ - '' - ], - custom_properties = [ - visier_api_administration.models.custom_tenant_property_dto.CustomTenantPropertyDTO( - key = '', - value = '', ) - ], - embeddable_domains = [ - '' - ], - industry_code = 56, - purchased_modules = [ - '' - ], - sso_instance_issuers = [ - '' - ], - tenant_code = '', - tenant_display_name = '' - ) - else: - return TenantProvisionAPIDTO( - ) - - def testTenantProvisionAPIDTO(self): - """Test TenantProvisionAPIDTO""" - def validate_instance(instance): - TenantProvisionAPIDTO.model_validate(inst_req_only) - instance_deserialized = TenantProvisionAPIDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenant_status_apidto.py b/src/visier_api_administration/test/test_tenant_status_apidto.py deleted file mode 100644 index fe8b4ac127..0000000000 --- a/src/visier_api_administration/test/test_tenant_status_apidto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.tenant_status_apidto import TenantStatusAPIDTO - -class TestTenantStatusAPIDTO(unittest.TestCase): - """TenantStatusAPIDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantStatusAPIDTO: - """Test TenantStatusAPIDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantStatusAPIDTO( - can_administer_other_tenants = True, - status = '', - tenant_code = '', - tenant_display_name = '' - ) - else: - return TenantStatusAPIDTO( - ) - - def testTenantStatusAPIDTO(self): - """Test TenantStatusAPIDTO""" - def validate_instance(instance): - TenantStatusAPIDTO.model_validate(inst_req_only) - instance_deserialized = TenantStatusAPIDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_tenants_v1_api.py b/src/visier_api_administration/test/test_tenants_v1_api.py index e7205d8105..617a9661f6 100644 --- a/src/visier_api_administration/test/test_tenants_v1_api.py +++ b/src/visier_api_administration/test/test_tenants_v1_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_tenants_v2_api.py b/src/visier_api_administration/test/test_tenants_v2_api.py index 940e3769b0..1aade55523 100644 --- a/src/visier_api_administration/test/test_tenants_v2_api.py +++ b/src/visier_api_administration/test/test_tenants_v2_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_update_tenant_model.py b/src/visier_api_administration/test/test_update_tenant_model.py deleted file mode 100644 index ce9cb7ea95..0000000000 --- a/src/visier_api_administration/test/test_update_tenant_model.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.update_tenant_model import UpdateTenantModel - -class TestUpdateTenantModel(unittest.TestCase): - """UpdateTenantModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UpdateTenantModel: - """Test UpdateTenantModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UpdateTenantModel( - custom_properties = { - 'key' : '' - }, - embeddable_domains = [ - '' - ], - industry_code = 56, - purchased_modules = [ - '' - ], - sso_instance_issuers = [ - '' - ], - tenant_display_name = '' - ) - else: - return UpdateTenantModel( - ) - - def testUpdateTenantModel(self): - """Test UpdateTenantModel""" - def validate_instance(instance): - UpdateTenantModel.model_validate(inst_req_only) - instance_deserialized = UpdateTenantModel.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_creation_api_request_dto.py b/src/visier_api_administration/test/test_user_creation_api_request_dto.py deleted file mode 100644 index c3de3eafb8..0000000000 --- a/src/visier_api_administration/test/test_user_creation_api_request_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_creation_api_request_dto import UserCreationAPIRequestDTO - -class TestUserCreationAPIRequestDTO(unittest.TestCase): - """UserCreationAPIRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserCreationAPIRequestDTO: - """Test UserCreationAPIRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserCreationAPIRequestDTO( - account_enabled = '', - display_name = '', - email = '', - employee_id = '', - username = '' - ) - else: - return UserCreationAPIRequestDTO( - ) - - def testUserCreationAPIRequestDTO(self): - """Test UserCreationAPIRequestDTO""" - def validate_instance(instance): - UserCreationAPIRequestDTO.model_validate(inst_req_only) - instance_deserialized = UserCreationAPIRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_creation_api_response_dto.py b/src/visier_api_administration/test/test_user_creation_api_response_dto.py index d6a463e0fa..52147de298 100644 --- a/src/visier_api_administration/test/test_user_creation_api_response_dto.py +++ b/src/visier_api_administration/test/test_user_creation_api_response_dto.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_user_get_api_response_dto.py b/src/visier_api_administration/test/test_user_get_api_response_dto.py deleted file mode 100644 index 3672acf444..0000000000 --- a/src/visier_api_administration/test/test_user_get_api_response_dto.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_get_api_response_dto import UserGetAPIResponseDTO - -class TestUserGetAPIResponseDTO(unittest.TestCase): - """UserGetAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGetAPIResponseDTO: - """Test UserGetAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGetAPIResponseDTO( - account_enabled = True, - display_name = '', - email = '', - employee_id = '', - last_login = visier_api_administration.models.last_login_dto.LastLoginDTO( - timestamp = '', ), - permissions = visier_api_administration.models.all_permissions_assigned_for_local_tenant_dto.AllPermissionsAssignedForLocalTenantDTO( - assigned_permissions = [ - visier_api_administration.models.permission_assigned_for_local_tenant_dto.PermissionAssignedForLocalTenantDTO( - description = '', - display_name = '', - permission_id = '', ) - ], ), - profiles = visier_api_administration.models.all_profile_assigned_for_local_tenant_dto.AllProfileAssignedForLocalTenantDTO( - assigned_profiles = [ - visier_api_administration.models.profile_assigned_for_local_tenant_dto.ProfileAssignedForLocalTenantDTO( - additional_capabilities = None, - capabilities = [ - visier_api_administration.models.capabilities_dto.CapabilitiesDTO( - access_level = '', - capability = '', - view_level = '', ) - ], - display_name = '', - profile_id = '', - validity_end_time = '', - validity_start_time = '', ) - ], ), - user_groups = visier_api_administration.models.all_user_groups_assigned_for_local_tenant_dto.AllUserGroupsAssignedForLocalTenantDTO( - assigned_user_groups = [ - visier_api_administration.models.user_group_assigned_for_local_tenant_dto.UserGroupAssignedForLocalTenantDTO( - display_name = '', - user_group_id = '', ) - ], ), - user_id = '', - username = '' - ) - else: - return UserGetAPIResponseDTO( - ) - - def testUserGetAPIResponseDTO(self): - """Test UserGetAPIResponseDTO""" - def validate_instance(instance): - UserGetAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = UserGetAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_user_group_assigned_for_local_tenant_dto.py deleted file mode 100644 index 88e57722d7..0000000000 --- a/src/visier_api_administration/test/test_user_group_assigned_for_local_tenant_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_assigned_for_local_tenant_dto import UserGroupAssignedForLocalTenantDTO - -class TestUserGroupAssignedForLocalTenantDTO(unittest.TestCase): - """UserGroupAssignedForLocalTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupAssignedForLocalTenantDTO: - """Test UserGroupAssignedForLocalTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupAssignedForLocalTenantDTO( - display_name = '', - user_group_id = '' - ) - else: - return UserGroupAssignedForLocalTenantDTO( - ) - - def testUserGroupAssignedForLocalTenantDTO(self): - """Test UserGroupAssignedForLocalTenantDTO""" - def validate_instance(instance): - UserGroupAssignedForLocalTenantDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupAssignedForLocalTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_change_definition_dto.py b/src/visier_api_administration/test/test_user_group_change_definition_dto.py deleted file mode 100644 index c79fdddf2f..0000000000 --- a/src/visier_api_administration/test/test_user_group_change_definition_dto.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_change_definition_dto import UserGroupChangeDefinitionDTO - -class TestUserGroupChangeDefinitionDTO(unittest.TestCase): - """UserGroupChangeDefinitionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupChangeDefinitionDTO: - """Test UserGroupChangeDefinitionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupChangeDefinitionDTO( - description = '', - display_name = '', - permission_ids = visier_api_administration.models.element_ids_dto.ElementIDsDTO( - ids = [ - '' - ], ), - project_id = '', - tenant_code = '', - user_group_id = '', - users = visier_api_administration.models.user_group_change_users_dto.UserGroupChangeUsersDTO( - dynamic_filter_definition = None, - include_all_users = True, - manually_excluded_ids = None, - manually_included_ids = None, ) - ) - else: - return UserGroupChangeDefinitionDTO( - ) - - def testUserGroupChangeDefinitionDTO(self): - """Test UserGroupChangeDefinitionDTO""" - def validate_instance(instance): - UserGroupChangeDefinitionDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupChangeDefinitionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_change_dimension_filter_dto.py b/src/visier_api_administration/test/test_user_group_change_dimension_filter_dto.py deleted file mode 100644 index f8d8fb57f3..0000000000 --- a/src/visier_api_administration/test/test_user_group_change_dimension_filter_dto.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_change_dimension_filter_dto import UserGroupChangeDimensionFilterDTO - -class TestUserGroupChangeDimensionFilterDTO(unittest.TestCase): - """UserGroupChangeDimensionFilterDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupChangeDimensionFilterDTO: - """Test UserGroupChangeDimensionFilterDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupChangeDimensionFilterDTO( - dimension_id = '', - member_selections = [ - visier_api_administration.models.user_group_change_member_selection_dto.UserGroupChangeMemberSelectionDTO( - is_excluded = True, - name_path = [ - '' - ], ) - ], - subject_reference_path = visier_api_administration.models.element_ids_dto.ElementIDsDTO( - ids = [ - '' - ], ) - ) - else: - return UserGroupChangeDimensionFilterDTO( - ) - - def testUserGroupChangeDimensionFilterDTO(self): - """Test UserGroupChangeDimensionFilterDTO""" - def validate_instance(instance): - UserGroupChangeDimensionFilterDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupChangeDimensionFilterDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_change_failure_dto.py b/src/visier_api_administration/test/test_user_group_change_failure_dto.py deleted file mode 100644 index a792a65a33..0000000000 --- a/src/visier_api_administration/test/test_user_group_change_failure_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_change_failure_dto import UserGroupChangeFailureDTO - -class TestUserGroupChangeFailureDTO(unittest.TestCase): - """UserGroupChangeFailureDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupChangeFailureDTO: - """Test UserGroupChangeFailureDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupChangeFailureDTO( - display_name = '', - message = '', - project_id = '', - rci = '', - tenant_code = '' - ) - else: - return UserGroupChangeFailureDTO( - ) - - def testUserGroupChangeFailureDTO(self): - """Test UserGroupChangeFailureDTO""" - def validate_instance(instance): - UserGroupChangeFailureDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupChangeFailureDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_change_filter_dto.py b/src/visier_api_administration/test/test_user_group_change_filter_dto.py deleted file mode 100644 index 32369a827a..0000000000 --- a/src/visier_api_administration/test/test_user_group_change_filter_dto.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_change_filter_dto import UserGroupChangeFilterDTO - -class TestUserGroupChangeFilterDTO(unittest.TestCase): - """UserGroupChangeFilterDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupChangeFilterDTO: - """Test UserGroupChangeFilterDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupChangeFilterDTO( - analytic_object_id = '', - dimension_filters = [ - visier_api_administration.models.user_group_change_dimension_filter_dto.UserGroupChangeDimensionFilterDTO( - dimension_id = '', - member_selections = [ - visier_api_administration.models.user_group_change_member_selection_dto.UserGroupChangeMemberSelectionDTO( - is_excluded = True, - name_path = [ - '' - ], ) - ], - subject_reference_path = None, ) - ], - filter_id = '' - ) - else: - return UserGroupChangeFilterDTO( - ) - - def testUserGroupChangeFilterDTO(self): - """Test UserGroupChangeFilterDTO""" - def validate_instance(instance): - UserGroupChangeFilterDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupChangeFilterDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_change_member_selection_dto.py b/src/visier_api_administration/test/test_user_group_change_member_selection_dto.py deleted file mode 100644 index 3dd25d7d26..0000000000 --- a/src/visier_api_administration/test/test_user_group_change_member_selection_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_change_member_selection_dto import UserGroupChangeMemberSelectionDTO - -class TestUserGroupChangeMemberSelectionDTO(unittest.TestCase): - """UserGroupChangeMemberSelectionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupChangeMemberSelectionDTO: - """Test UserGroupChangeMemberSelectionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupChangeMemberSelectionDTO( - is_excluded = True, - name_path = [ - '' - ] - ) - else: - return UserGroupChangeMemberSelectionDTO( - ) - - def testUserGroupChangeMemberSelectionDTO(self): - """Test UserGroupChangeMemberSelectionDTO""" - def validate_instance(instance): - UserGroupChangeMemberSelectionDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupChangeMemberSelectionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_change_response_dto.py b/src/visier_api_administration/test/test_user_group_change_response_dto.py deleted file mode 100644 index 0c2d13c227..0000000000 --- a/src/visier_api_administration/test/test_user_group_change_response_dto.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_change_response_dto import UserGroupChangeResponseDTO - -class TestUserGroupChangeResponseDTO(unittest.TestCase): - """UserGroupChangeResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupChangeResponseDTO: - """Test UserGroupChangeResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupChangeResponseDTO( - failures = [ - visier_api_administration.models.user_group_change_failure_dto.UserGroupChangeFailureDTO( - display_name = '', - message = '', - project_id = '', - rci = '', - tenant_code = '', ) - ], - successes = [ - visier_api_administration.models.user_group_change_success_dto.UserGroupChangeSuccessDTO( - display_name = '', - project_id = '', - tenant_code = '', - user_group_id = '', ) - ] - ) - else: - return UserGroupChangeResponseDTO( - ) - - def testUserGroupChangeResponseDTO(self): - """Test UserGroupChangeResponseDTO""" - def validate_instance(instance): - UserGroupChangeResponseDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupChangeResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_change_success_dto.py b/src/visier_api_administration/test/test_user_group_change_success_dto.py deleted file mode 100644 index e74995b1ac..0000000000 --- a/src/visier_api_administration/test/test_user_group_change_success_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_change_success_dto import UserGroupChangeSuccessDTO - -class TestUserGroupChangeSuccessDTO(unittest.TestCase): - """UserGroupChangeSuccessDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupChangeSuccessDTO: - """Test UserGroupChangeSuccessDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupChangeSuccessDTO( - display_name = '', - project_id = '', - tenant_code = '', - user_group_id = '' - ) - else: - return UserGroupChangeSuccessDTO( - ) - - def testUserGroupChangeSuccessDTO(self): - """Test UserGroupChangeSuccessDTO""" - def validate_instance(instance): - UserGroupChangeSuccessDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupChangeSuccessDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_change_users_dto.py b/src/visier_api_administration/test/test_user_group_change_users_dto.py deleted file mode 100644 index 4787fb2580..0000000000 --- a/src/visier_api_administration/test/test_user_group_change_users_dto.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_change_users_dto import UserGroupChangeUsersDTO - -class TestUserGroupChangeUsersDTO(unittest.TestCase): - """UserGroupChangeUsersDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupChangeUsersDTO: - """Test UserGroupChangeUsersDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupChangeUsersDTO( - dynamic_filter_definition = visier_api_administration.models.user_group_filters_dto.UserGroupFiltersDTO( - filters = [ - visier_api_administration.models.user_group_change_filter_dto.UserGroupChangeFilterDTO( - analytic_object_id = '', - dimension_filters = [ - visier_api_administration.models.user_group_change_dimension_filter_dto.UserGroupChangeDimensionFilterDTO( - dimension_id = '', - member_selections = [ - visier_api_administration.models.user_group_change_member_selection_dto.UserGroupChangeMemberSelectionDTO( - is_excluded = True, - name_path = [ - '' - ], ) - ], - subject_reference_path = None, ) - ], - filter_id = '', ) - ], ), - include_all_users = True, - manually_excluded_ids = visier_api_administration.models.element_ids_dto.ElementIDsDTO( - ids = [ - '' - ], ), - manually_included_ids = visier_api_administration.models.element_ids_dto.ElementIDsDTO( - ids = [ - '' - ], ) - ) - else: - return UserGroupChangeUsersDTO( - ) - - def testUserGroupChangeUsersDTO(self): - """Test UserGroupChangeUsersDTO""" - def validate_instance(instance): - UserGroupChangeUsersDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupChangeUsersDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_delete_dto.py b/src/visier_api_administration/test/test_user_group_delete_dto.py deleted file mode 100644 index 87e82c09df..0000000000 --- a/src/visier_api_administration/test/test_user_group_delete_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_delete_dto import UserGroupDeleteDTO - -class TestUserGroupDeleteDTO(unittest.TestCase): - """UserGroupDeleteDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupDeleteDTO: - """Test UserGroupDeleteDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupDeleteDTO( - project_id = '', - tenant_code = '', - user_group_id = '' - ) - else: - return UserGroupDeleteDTO( - ) - - def testUserGroupDeleteDTO(self): - """Test UserGroupDeleteDTO""" - def validate_instance(instance): - UserGroupDeleteDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupDeleteDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_delete_failure_dto.py b/src/visier_api_administration/test/test_user_group_delete_failure_dto.py deleted file mode 100644 index 7c6eb94259..0000000000 --- a/src/visier_api_administration/test/test_user_group_delete_failure_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_delete_failure_dto import UserGroupDeleteFailureDTO - -class TestUserGroupDeleteFailureDTO(unittest.TestCase): - """UserGroupDeleteFailureDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupDeleteFailureDTO: - """Test UserGroupDeleteFailureDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupDeleteFailureDTO( - message = '', - project_id = '', - rci = '', - tenant_code = '', - user_group_id = '' - ) - else: - return UserGroupDeleteFailureDTO( - ) - - def testUserGroupDeleteFailureDTO(self): - """Test UserGroupDeleteFailureDTO""" - def validate_instance(instance): - UserGroupDeleteFailureDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupDeleteFailureDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_delete_response_dto.py b/src/visier_api_administration/test/test_user_group_delete_response_dto.py deleted file mode 100644 index 2e26f87d8c..0000000000 --- a/src/visier_api_administration/test/test_user_group_delete_response_dto.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_delete_response_dto import UserGroupDeleteResponseDTO - -class TestUserGroupDeleteResponseDTO(unittest.TestCase): - """UserGroupDeleteResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupDeleteResponseDTO: - """Test UserGroupDeleteResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupDeleteResponseDTO( - failures = [ - visier_api_administration.models.user_group_delete_failure_dto.UserGroupDeleteFailureDTO( - message = '', - project_id = '', - rci = '', - tenant_code = '', - user_group_id = '', ) - ], - successes = [ - visier_api_administration.models.user_group_delete_success_dto.UserGroupDeleteSuccessDTO( - project_id = '', - tenant_code = '', - user_group_id = '', ) - ] - ) - else: - return UserGroupDeleteResponseDTO( - ) - - def testUserGroupDeleteResponseDTO(self): - """Test UserGroupDeleteResponseDTO""" - def validate_instance(instance): - UserGroupDeleteResponseDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupDeleteResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_delete_success_dto.py b/src/visier_api_administration/test/test_user_group_delete_success_dto.py deleted file mode 100644 index 116180c597..0000000000 --- a/src/visier_api_administration/test/test_user_group_delete_success_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_delete_success_dto import UserGroupDeleteSuccessDTO - -class TestUserGroupDeleteSuccessDTO(unittest.TestCase): - """UserGroupDeleteSuccessDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupDeleteSuccessDTO: - """Test UserGroupDeleteSuccessDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupDeleteSuccessDTO( - project_id = '', - tenant_code = '', - user_group_id = '' - ) - else: - return UserGroupDeleteSuccessDTO( - ) - - def testUserGroupDeleteSuccessDTO(self): - """Test UserGroupDeleteSuccessDTO""" - def validate_instance(instance): - UserGroupDeleteSuccessDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupDeleteSuccessDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_filters_dto.py b/src/visier_api_administration/test/test_user_group_filters_dto.py deleted file mode 100644 index e1faf9da3d..0000000000 --- a/src/visier_api_administration/test/test_user_group_filters_dto.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_filters_dto import UserGroupFiltersDTO - -class TestUserGroupFiltersDTO(unittest.TestCase): - """UserGroupFiltersDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupFiltersDTO: - """Test UserGroupFiltersDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupFiltersDTO( - filters = [ - visier_api_administration.models.user_group_change_filter_dto.UserGroupChangeFilterDTO( - analytic_object_id = '', - dimension_filters = [ - visier_api_administration.models.user_group_change_dimension_filter_dto.UserGroupChangeDimensionFilterDTO( - dimension_id = '', - member_selections = [ - visier_api_administration.models.user_group_change_member_selection_dto.UserGroupChangeMemberSelectionDTO( - is_excluded = True, - name_path = [ - '' - ], ) - ], - subject_reference_path = None, ) - ], - filter_id = '', ) - ] - ) - else: - return UserGroupFiltersDTO( - ) - - def testUserGroupFiltersDTO(self): - """Test UserGroupFiltersDTO""" - def validate_instance(instance): - UserGroupFiltersDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupFiltersDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_get_api_response_dto.py b/src/visier_api_administration/test/test_user_group_get_api_response_dto.py deleted file mode 100644 index 7d45492d5f..0000000000 --- a/src/visier_api_administration/test/test_user_group_get_api_response_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_get_api_response_dto import UserGroupGetAPIResponseDTO - -class TestUserGroupGetAPIResponseDTO(unittest.TestCase): - """UserGroupGetAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupGetAPIResponseDTO: - """Test UserGroupGetAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupGetAPIResponseDTO( - display_name = '', - permissions = [ - visier_api_administration.models.permission_response_dto.PermissionResponseDTO( - display_name = '', - permission_id = '', ) - ], - user_group_id = '' - ) - else: - return UserGroupGetAPIResponseDTO( - ) - - def testUserGroupGetAPIResponseDTO(self): - """Test UserGroupGetAPIResponseDTO""" - def validate_instance(instance): - UserGroupGetAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupGetAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_group_single_delete_response_dto.py b/src/visier_api_administration/test/test_user_group_single_delete_response_dto.py deleted file mode 100644 index c9d2a3c4a6..0000000000 --- a/src/visier_api_administration/test/test_user_group_single_delete_response_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_group_single_delete_response_dto import UserGroupSingleDeleteResponseDTO - -class TestUserGroupSingleDeleteResponseDTO(unittest.TestCase): - """UserGroupSingleDeleteResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupSingleDeleteResponseDTO: - """Test UserGroupSingleDeleteResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupSingleDeleteResponseDTO( - failure = visier_api_administration.models.user_group_delete_failure_dto.UserGroupDeleteFailureDTO( - message = '', - project_id = '', - rci = '', - tenant_code = '', - user_group_id = '', ), - success = visier_api_administration.models.user_group_delete_success_dto.UserGroupDeleteSuccessDTO( - project_id = '', - tenant_code = '', - user_group_id = '', ) - ) - else: - return UserGroupSingleDeleteResponseDTO( - ) - - def testUserGroupSingleDeleteResponseDTO(self): - """Test UserGroupSingleDeleteResponseDTO""" - def validate_instance(instance): - UserGroupSingleDeleteResponseDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupSingleDeleteResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_groups_change_dto.py b/src/visier_api_administration/test/test_user_groups_change_dto.py deleted file mode 100644 index 88b369d8f6..0000000000 --- a/src/visier_api_administration/test/test_user_groups_change_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_groups_change_dto import UserGroupsChangeDTO - -class TestUserGroupsChangeDTO(unittest.TestCase): - """UserGroupsChangeDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupsChangeDTO: - """Test UserGroupsChangeDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupsChangeDTO( - user_groups = [ - visier_api_administration.models.user_group_change_definition_dto.UserGroupChangeDefinitionDTO( - description = '', - display_name = '', - permission_ids = None, - project_id = '', - tenant_code = '', - user_group_id = '', - users = None, ) - ] - ) - else: - return UserGroupsChangeDTO( - ) - - def testUserGroupsChangeDTO(self): - """Test UserGroupsChangeDTO""" - def validate_instance(instance): - UserGroupsChangeDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupsChangeDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_groups_delete_request_dto.py b/src/visier_api_administration/test/test_user_groups_delete_request_dto.py deleted file mode 100644 index 6ff3769fc1..0000000000 --- a/src/visier_api_administration/test/test_user_groups_delete_request_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_groups_delete_request_dto import UserGroupsDeleteRequestDTO - -class TestUserGroupsDeleteRequestDTO(unittest.TestCase): - """UserGroupsDeleteRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupsDeleteRequestDTO: - """Test UserGroupsDeleteRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupsDeleteRequestDTO( - user_groups = [ - visier_api_administration.models.user_group_delete_dto.UserGroupDeleteDTO( - project_id = '', - tenant_code = '', - user_group_id = '', ) - ] - ) - else: - return UserGroupsDeleteRequestDTO( - ) - - def testUserGroupsDeleteRequestDTO(self): - """Test UserGroupsDeleteRequestDTO""" - def validate_instance(instance): - UserGroupsDeleteRequestDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupsDeleteRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_groups_get_api_response_dto.py b/src/visier_api_administration/test/test_user_groups_get_api_response_dto.py deleted file mode 100644 index 71ae7c1553..0000000000 --- a/src/visier_api_administration/test/test_user_groups_get_api_response_dto.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_groups_get_api_response_dto import UserGroupsGetAPIResponseDTO - -class TestUserGroupsGetAPIResponseDTO(unittest.TestCase): - """UserGroupsGetAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupsGetAPIResponseDTO: - """Test UserGroupsGetAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupsGetAPIResponseDTO( - limit = 56, - start = 56, - user_groups = [ - visier_api_administration.models.user_group_get_api_response_dto.UserGroupGetAPIResponseDTO( - display_name = '', - permissions = [ - visier_api_administration.models.permission_response_dto.PermissionResponseDTO( - display_name = '', - permission_id = '', ) - ], - user_group_id = '', ) - ] - ) - else: - return UserGroupsGetAPIResponseDTO( - ) - - def testUserGroupsGetAPIResponseDTO(self): - """Test UserGroupsGetAPIResponseDTO""" - def validate_instance(instance): - UserGroupsGetAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupsGetAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_groups_users_dto.py b/src/visier_api_administration/test/test_user_groups_users_dto.py deleted file mode 100644 index a60257ac3d..0000000000 --- a/src/visier_api_administration/test/test_user_groups_users_dto.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_groups_users_dto import UserGroupsUsersDTO - -class TestUserGroupsUsersDTO(unittest.TestCase): - """UserGroupsUsersDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupsUsersDTO: - """Test UserGroupsUsersDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupsUsersDTO( - limit = 56, - start = 56, - tenants = [ - visier_api_administration.models.user_groups_users_for_tenant_dto.UserGroupsUsersForTenantDTO( - tenant_code = '', - users = [ - visier_api_administration.models.simple_user_dto.SimpleUserDTO( - user_id = '', - username = '', ) - ], ) - ] - ) - else: - return UserGroupsUsersDTO( - ) - - def testUserGroupsUsersDTO(self): - """Test UserGroupsUsersDTO""" - def validate_instance(instance): - UserGroupsUsersDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupsUsersDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_groups_users_for_tenant_dto.py b/src/visier_api_administration/test/test_user_groups_users_for_tenant_dto.py deleted file mode 100644 index 0563d70cae..0000000000 --- a/src/visier_api_administration/test/test_user_groups_users_for_tenant_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_groups_users_for_tenant_dto import UserGroupsUsersForTenantDTO - -class TestUserGroupsUsersForTenantDTO(unittest.TestCase): - """UserGroupsUsersForTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserGroupsUsersForTenantDTO: - """Test UserGroupsUsersForTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserGroupsUsersForTenantDTO( - tenant_code = '', - users = [ - visier_api_administration.models.simple_user_dto.SimpleUserDTO( - user_id = '', - username = '', ) - ] - ) - else: - return UserGroupsUsersForTenantDTO( - ) - - def testUserGroupsUsersForTenantDTO(self): - """Test UserGroupsUsersForTenantDTO""" - def validate_instance(instance): - UserGroupsUsersForTenantDTO.model_validate(inst_req_only) - instance_deserialized = UserGroupsUsersForTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_groups_v2_api.py b/src/visier_api_administration/test/test_user_groups_v2_api.py index 8939bfd20d..3e598d7413 100644 --- a/src/visier_api_administration/test/test_user_groups_v2_api.py +++ b/src/visier_api_administration/test/test_user_groups_v2_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_user_id_error_dto.py b/src/visier_api_administration/test/test_user_id_error_dto.py deleted file mode 100644 index c6eadbf16c..0000000000 --- a/src/visier_api_administration/test/test_user_id_error_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_id_error_dto import UserIdErrorDTO - -class TestUserIdErrorDTO(unittest.TestCase): - """UserIdErrorDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserIdErrorDTO: - """Test UserIdErrorDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserIdErrorDTO( - error = visier_api_administration.models.error_dto.ErrorDTO( - error_code = '', - error_message = '', - root_cause_id = '', ), - user_id = '' - ) - else: - return UserIdErrorDTO( - ) - - def testUserIdErrorDTO(self): - """Test UserIdErrorDTO""" - def validate_instance(instance): - UserIdErrorDTO.model_validate(inst_req_only) - instance_deserialized = UserIdErrorDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_property_dto.py b/src/visier_api_administration/test/test_user_property_dto.py deleted file mode 100644 index 18893ef734..0000000000 --- a/src/visier_api_administration/test/test_user_property_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_property_dto import UserPropertyDTO - -class TestUserPropertyDTO(unittest.TestCase): - """UserPropertyDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserPropertyDTO: - """Test UserPropertyDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserPropertyDTO( - name = '' - ) - else: - return UserPropertyDTO( - ) - - def testUserPropertyDTO(self): - """Test UserPropertyDTO""" - def validate_instance(instance): - UserPropertyDTO.model_validate(inst_req_only) - instance_deserialized = UserPropertyDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_security_assignments_dto.py b/src/visier_api_administration/test/test_user_security_assignments_dto.py deleted file mode 100644 index d56936dd20..0000000000 --- a/src/visier_api_administration/test/test_user_security_assignments_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_security_assignments_dto import UserSecurityAssignmentsDTO - -class TestUserSecurityAssignmentsDTO(unittest.TestCase): - """UserSecurityAssignmentsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserSecurityAssignmentsDTO: - """Test UserSecurityAssignmentsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserSecurityAssignmentsDTO( - id = '', - name = '', - users = [ - visier_api_administration.models.simple_user_dto.SimpleUserDTO( - user_id = '', - username = '', ) - ] - ) - else: - return UserSecurityAssignmentsDTO( - ) - - def testUserSecurityAssignmentsDTO(self): - """Test UserSecurityAssignmentsDTO""" - def validate_instance(instance): - UserSecurityAssignmentsDTO.model_validate(inst_req_only) - instance_deserialized = UserSecurityAssignmentsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_user_update_api_request_dto.py b/src/visier_api_administration/test/test_user_update_api_request_dto.py deleted file mode 100644 index 3034ea7d39..0000000000 --- a/src/visier_api_administration/test/test_user_update_api_request_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.user_update_api_request_dto import UserUpdateAPIRequestDTO - -class TestUserUpdateAPIRequestDTO(unittest.TestCase): - """UserUpdateAPIRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserUpdateAPIRequestDTO: - """Test UserUpdateAPIRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UserUpdateAPIRequestDTO( - account_enabled = '', - display_name = '', - email = '', - employee_id = '' - ) - else: - return UserUpdateAPIRequestDTO( - ) - - def testUserUpdateAPIRequestDTO(self): - """Test UserUpdateAPIRequestDTO""" - def validate_instance(instance): - UserUpdateAPIRequestDTO.model_validate(inst_req_only) - instance_deserialized = UserUpdateAPIRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_users_api_error_message_dto.py b/src/visier_api_administration/test/test_users_api_error_message_dto.py deleted file mode 100644 index b3fa8f6e4b..0000000000 --- a/src/visier_api_administration/test/test_users_api_error_message_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.users_api_error_message_dto import UsersAPIErrorMessageDTO - -class TestUsersAPIErrorMessageDTO(unittest.TestCase): - """UsersAPIErrorMessageDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UsersAPIErrorMessageDTO: - """Test UsersAPIErrorMessageDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UsersAPIErrorMessageDTO( - message = '', - rci = '' - ) - else: - return UsersAPIErrorMessageDTO( - ) - - def testUsersAPIErrorMessageDTO(self): - """Test UsersAPIErrorMessageDTO""" - def validate_instance(instance): - UsersAPIErrorMessageDTO.model_validate(inst_req_only) - instance_deserialized = UsersAPIErrorMessageDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_users_api_failure_dto.py b/src/visier_api_administration/test/test_users_api_failure_dto.py deleted file mode 100644 index c0ca3cbac5..0000000000 --- a/src/visier_api_administration/test/test_users_api_failure_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.users_api_failure_dto import UsersAPIFailureDTO - -class TestUsersAPIFailureDTO(unittest.TestCase): - """UsersAPIFailureDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UsersAPIFailureDTO: - """Test UsersAPIFailureDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UsersAPIFailureDTO( - display_name = '', - error = visier_api_administration.models.users_api_error_message_dto.UsersAPIErrorMessageDTO( - message = '', - rci = '', ), - user_id = '', - user_name = '' - ) - else: - return UsersAPIFailureDTO( - ) - - def testUsersAPIFailureDTO(self): - """Test UsersAPIFailureDTO""" - def validate_instance(instance): - UsersAPIFailureDTO.model_validate(inst_req_only) - instance_deserialized = UsersAPIFailureDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_users_api_response_dto.py b/src/visier_api_administration/test/test_users_api_response_dto.py deleted file mode 100644 index 1cea55fb6d..0000000000 --- a/src/visier_api_administration/test/test_users_api_response_dto.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.users_api_response_dto import UsersAPIResponseDTO - -class TestUsersAPIResponseDTO(unittest.TestCase): - """UsersAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UsersAPIResponseDTO: - """Test UsersAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UsersAPIResponseDTO( - failures = [ - visier_api_administration.models.users_api_failure_dto.UsersAPIFailureDTO( - display_name = '', - error = None, - user_id = '', - user_name = '', ) - ], - successes = [ - visier_api_administration.models.users_api_success_dto.UsersAPISuccessDTO( - account_enabled = '', - display_name = '', - email = '', - employee_id = '', - user_id = '', - username = '', ) - ] - ) - else: - return UsersAPIResponseDTO( - ) - - def testUsersAPIResponseDTO(self): - """Test UsersAPIResponseDTO""" - def validate_instance(instance): - UsersAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = UsersAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_users_api_success_dto.py b/src/visier_api_administration/test/test_users_api_success_dto.py deleted file mode 100644 index 42ea70ac42..0000000000 --- a/src/visier_api_administration/test/test_users_api_success_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.users_api_success_dto import UsersAPISuccessDTO - -class TestUsersAPISuccessDTO(unittest.TestCase): - """UsersAPISuccessDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UsersAPISuccessDTO: - """Test UsersAPISuccessDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UsersAPISuccessDTO( - account_enabled = '', - display_name = '', - email = '', - employee_id = '', - user_id = '', - username = '' - ) - else: - return UsersAPISuccessDTO( - ) - - def testUsersAPISuccessDTO(self): - """Test UsersAPISuccessDTO""" - def validate_instance(instance): - UsersAPISuccessDTO.model_validate(inst_req_only) - instance_deserialized = UsersAPISuccessDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_users_creation_api_request_dto.py b/src/visier_api_administration/test/test_users_creation_api_request_dto.py deleted file mode 100644 index 6125344b46..0000000000 --- a/src/visier_api_administration/test/test_users_creation_api_request_dto.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.users_creation_api_request_dto import UsersCreationAPIRequestDTO - -class TestUsersCreationAPIRequestDTO(unittest.TestCase): - """UsersCreationAPIRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UsersCreationAPIRequestDTO: - """Test UsersCreationAPIRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UsersCreationAPIRequestDTO( - users = [ - visier_api_administration.models.user_creation_api_request_dto.UserCreationAPIRequestDTO( - account_enabled = '', - display_name = '', - email = '', - employee_id = '', - username = '', ) - ] - ) - else: - return UsersCreationAPIRequestDTO( - ) - - def testUsersCreationAPIRequestDTO(self): - """Test UsersCreationAPIRequestDTO""" - def validate_instance(instance): - UsersCreationAPIRequestDTO.model_validate(inst_req_only) - instance_deserialized = UsersCreationAPIRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_users_delete_api_request_dto.py b/src/visier_api_administration/test/test_users_delete_api_request_dto.py deleted file mode 100644 index 2bb4fda5e4..0000000000 --- a/src/visier_api_administration/test/test_users_delete_api_request_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.users_delete_api_request_dto import UsersDeleteAPIRequestDTO - -class TestUsersDeleteAPIRequestDTO(unittest.TestCase): - """UsersDeleteAPIRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UsersDeleteAPIRequestDTO: - """Test UsersDeleteAPIRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UsersDeleteAPIRequestDTO( - user_ids = [ - '' - ] - ) - else: - return UsersDeleteAPIRequestDTO( - ) - - def testUsersDeleteAPIRequestDTO(self): - """Test UsersDeleteAPIRequestDTO""" - def validate_instance(instance): - UsersDeleteAPIRequestDTO.model_validate(inst_req_only) - instance_deserialized = UsersDeleteAPIRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_users_to_user_group_request_dto.py b/src/visier_api_administration/test/test_users_to_user_group_request_dto.py deleted file mode 100644 index d66ab8baef..0000000000 --- a/src/visier_api_administration/test/test_users_to_user_group_request_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.users_to_user_group_request_dto import UsersToUserGroupRequestDTO - -class TestUsersToUserGroupRequestDTO(unittest.TestCase): - """UsersToUserGroupRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UsersToUserGroupRequestDTO: - """Test UsersToUserGroupRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UsersToUserGroupRequestDTO( - user_group_id = '', - user_ids = [ - '' - ] - ) - else: - return UsersToUserGroupRequestDTO( - ) - - def testUsersToUserGroupRequestDTO(self): - """Test UsersToUserGroupRequestDTO""" - def validate_instance(instance): - UsersToUserGroupRequestDTO.model_validate(inst_req_only) - instance_deserialized = UsersToUserGroupRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_users_to_user_groups_request_dto.py b/src/visier_api_administration/test/test_users_to_user_groups_request_dto.py deleted file mode 100644 index 91879ae1bd..0000000000 --- a/src/visier_api_administration/test/test_users_to_user_groups_request_dto.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.users_to_user_groups_request_dto import UsersToUserGroupsRequestDTO - -class TestUsersToUserGroupsRequestDTO(unittest.TestCase): - """UsersToUserGroupsRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UsersToUserGroupsRequestDTO: - """Test UsersToUserGroupsRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UsersToUserGroupsRequestDTO( - target_project_for_tenants_list = visier_api_administration.models.target_project_for_tenants_list_dto.TargetProjectForTenantsListDTO( - target_project_for_tenants = [ - visier_api_administration.models.target_project_for_tenant_dto.TargetProjectForTenantDTO( - project_id = '', - tenant_code = '', ) - ], ), - user_groups = [ - visier_api_administration.models.users_to_user_group_request_dto.UsersToUserGroupRequestDTO( - user_group_id = '', - user_ids = [ - '' - ], ) - ] - ) - else: - return UsersToUserGroupsRequestDTO( - ) - - def testUsersToUserGroupsRequestDTO(self): - """Test UsersToUserGroupsRequestDTO""" - def validate_instance(instance): - UsersToUserGroupsRequestDTO.model_validate(inst_req_only) - instance_deserialized = UsersToUserGroupsRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_users_update_api_request_dto.py b/src/visier_api_administration/test/test_users_update_api_request_dto.py deleted file mode 100644 index ac189a718e..0000000000 --- a/src/visier_api_administration/test/test_users_update_api_request_dto.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.users_update_api_request_dto import UsersUpdateAPIRequestDTO - -class TestUsersUpdateAPIRequestDTO(unittest.TestCase): - """UsersUpdateAPIRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UsersUpdateAPIRequestDTO: - """Test UsersUpdateAPIRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UsersUpdateAPIRequestDTO( - users = [ - visier_api_administration.models.users_update_api_user_dto.UsersUpdateAPIUserDTO( - account_enabled = '', - display_name = '', - email = '', - employee_id = '', - user_id = '', ) - ] - ) - else: - return UsersUpdateAPIRequestDTO( - ) - - def testUsersUpdateAPIRequestDTO(self): - """Test UsersUpdateAPIRequestDTO""" - def validate_instance(instance): - UsersUpdateAPIRequestDTO.model_validate(inst_req_only) - instance_deserialized = UsersUpdateAPIRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_users_update_api_user_dto.py b/src/visier_api_administration/test/test_users_update_api_user_dto.py deleted file mode 100644 index 96ff99d219..0000000000 --- a/src/visier_api_administration/test/test_users_update_api_user_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_administration.models -from visier_api_administration.models.users_update_api_user_dto import UsersUpdateAPIUserDTO - -class TestUsersUpdateAPIUserDTO(unittest.TestCase): - """UsersUpdateAPIUserDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UsersUpdateAPIUserDTO: - """Test UsersUpdateAPIUserDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UsersUpdateAPIUserDTO( - account_enabled = '', - display_name = '', - email = '', - employee_id = '', - user_id = '' - ) - else: - return UsersUpdateAPIUserDTO( - ) - - def testUsersUpdateAPIUserDTO(self): - """Test UsersUpdateAPIUserDTO""" - def validate_instance(instance): - UsersUpdateAPIUserDTO.model_validate(inst_req_only) - instance_deserialized = UsersUpdateAPIUserDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_administration/test/test_users_v1_api.py b/src/visier_api_administration/test/test_users_v1_api.py index 8d75aac868..da07c6f60a 100644 --- a/src/visier_api_administration/test/test_users_v1_api.py +++ b/src/visier_api_administration/test/test_users_v1_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_users_v2_api.py b/src/visier_api_administration/test/test_users_v2_api.py index 71d396d6d5..d3b4dc0ea3 100644 --- a/src/visier_api_administration/test/test_users_v2_api.py +++ b/src/visier_api_administration/test/test_users_v2_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/visier_api_administration/__init__.py b/src/visier_api_administration/visier_api_administration/__init__.py index fcf69514b6..140097079c 100644 --- a/src/visier_api_administration/visier_api_administration/__init__.py +++ b/src/visier_api_administration/visier_api_administration/__init__.py @@ -7,7 +7,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,7 +16,7 @@ """ # noqa: E501 -__version__ = "0.99201.1772" +__version__ = "0.99201.1793" # import apis into sdk package from visier_api_administration.api.consolidated_analytics_api import ConsolidatedAnalyticsApi @@ -36,185 +36,184 @@ # import models into sdk package -from visier_api_administration.models.accessible_tenant_profile_assignment_request_dto import AccessibleTenantProfileAssignmentRequestDTO -from visier_api_administration.models.accessible_tenant_profile_assignment_response_dto import AccessibleTenantProfileAssignmentResponseDTO -from visier_api_administration.models.accessible_tenant_profile_revoke_request_dto import AccessibleTenantProfileRevokeRequestDTO -from visier_api_administration.models.accessible_tenant_profile_revoke_response_dto import AccessibleTenantProfileRevokeResponseDTO -from visier_api_administration.models.additional_capabilities_dto import AdditionalCapabilitiesDTO -from visier_api_administration.models.admin_capability_config_dto import AdminCapabilityConfigDTO -from visier_api_administration.models.all_permissions_assigned_for_local_tenant_dto import AllPermissionsAssignedForLocalTenantDTO -from visier_api_administration.models.all_profile_assigned_for_accessible_tenant_dto import AllProfileAssignedForAccessibleTenantDTO -from visier_api_administration.models.all_profile_assigned_for_local_tenant_dto import AllProfileAssignedForLocalTenantDTO -from visier_api_administration.models.all_tenants_status_apidto import AllTenantsStatusAPIDTO -from visier_api_administration.models.all_user_groups_assigned_for_local_tenant_dto import AllUserGroupsAssignedForLocalTenantDTO -from visier_api_administration.models.all_users_get_api_response_dto import AllUsersGetAPIResponseDTO -from visier_api_administration.models.analytic_object_dto import AnalyticObjectDTO -from visier_api_administration.models.assign_revoke_permission_by_permission_dto import AssignRevokePermissionByPermissionDTO -from visier_api_administration.models.assign_revoke_permission_by_tenant_dto import AssignRevokePermissionByTenantDTO -from visier_api_administration.models.assign_revoke_permission_by_user_dto import AssignRevokePermissionByUserDTO -from visier_api_administration.models.assign_revoke_permission_request_dto import AssignRevokePermissionRequestDTO -from visier_api_administration.models.assign_revoke_permissions_request_dto import AssignRevokePermissionsRequestDTO -from visier_api_administration.models.assign_revoke_permissions_response_dto import AssignRevokePermissionsResponseDTO -from visier_api_administration.models.batch_tenant_provision_apidto import BatchTenantProvisionAPIDTO -from visier_api_administration.models.bulk_data_access_set_response_dto import BulkDataAccessSetResponseDTO -from visier_api_administration.models.business_location_dto import BusinessLocationDTO -from visier_api_administration.models.capabilities_dto import CapabilitiesDTO -from visier_api_administration.models.capability_dto import CapabilityDTO -from visier_api_administration.models.commit_and_publish_operation_response_dto import CommitAndPublishOperationResponseDTO -from visier_api_administration.models.commit_dto import CommitDTO -from visier_api_administration.models.consolidated_analytics_api_excluded_source_list_dto import ConsolidatedAnalyticsAPIExcludedSourceListDTO -from visier_api_administration.models.consolidated_analytics_api_source_tenant_list_dto import ConsolidatedAnalyticsAPISourceTenantListDTO -from visier_api_administration.models.consolidated_analytics_api_tenant_create_request_dto import ConsolidatedAnalyticsAPITenantCreateRequestDTO -from visier_api_administration.models.consolidated_analytics_api_tenant_list_response_dto import ConsolidatedAnalyticsAPITenantListResponseDTO -from visier_api_administration.models.consolidated_analytics_api_tenant_with_details import ConsolidatedAnalyticsAPITenantWithDetails -from visier_api_administration.models.consolidated_analytics_api_tenant_with_details_list_response_dto import ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO -from visier_api_administration.models.content_package_dto import ContentPackageDTO -from visier_api_administration.models.create_data_access_set_request_dto import CreateDataAccessSetRequestDTO -from visier_api_administration.models.custom_property_dto import CustomPropertyDTO -from visier_api_administration.models.custom_tenant_property_dto import CustomTenantPropertyDTO -from visier_api_administration.models.data_access_set_dto import DataAccessSetDTO -from visier_api_administration.models.data_access_set_error_dto import DataAccessSetErrorDTO -from visier_api_administration.models.data_access_set_failure_dto import DataAccessSetFailureDTO -from visier_api_administration.models.data_access_set_success_dto import DataAccessSetSuccessDTO -from visier_api_administration.models.data_security_profile_dto import DataSecurityProfileDTO -from visier_api_administration.models.delete_permissions_request_dto import DeletePermissionsRequestDTO -from visier_api_administration.models.delete_user_group_v2_request import DeleteUserGroupV2Request -from visier_api_administration.models.dimension_filter_dto import DimensionFilterDTO -from visier_api_administration.models.dynamic_dimension_filter_dto import DynamicDimensionFilterDTO -from visier_api_administration.models.dynamic_property_mapping_dto import DynamicPropertyMappingDTO -from visier_api_administration.models.element_ids_dto import ElementIDsDTO -from visier_api_administration.models.email_domains_dto import EmailDomainsDTO -from visier_api_administration.models.error_dto import ErrorDTO -from visier_api_administration.models.excluded_sources_body import ExcludedSourcesBody -from visier_api_administration.models.export_production_versions_api_operation_parameters_dto import ExportProductionVersionsAPIOperationParametersDTO -from visier_api_administration.models.failed_accessible_tenant_profile_assignment_dto import FailedAccessibleTenantProfileAssignmentDTO -from visier_api_administration.models.failed_local_tenant_profile_assignment_dto import FailedLocalTenantProfileAssignmentDTO -from visier_api_administration.models.failed_local_tenant_profile_revoke_dto import FailedLocalTenantProfileRevokeDTO -from visier_api_administration.models.generate_key_request_dto import GenerateKeyRequestDTO -from visier_api_administration.models.get_capabilities_api_response_dto import GetCapabilitiesAPIResponseDTO -from visier_api_administration.models.get_content_packages_api_response_dto import GetContentPackagesAPIResponseDTO -from visier_api_administration.models.get_data_access_sets_api_response_dto import GetDataAccessSetsAPIResponseDTO -from visier_api_administration.models.get_data_security_objects_api_response_dto import GetDataSecurityObjectsAPIResponseDTO -from visier_api_administration.models.get_permissions_api_response_dto import GetPermissionsAPIResponseDTO -from visier_api_administration.models.get_production_versions_api_response_dto import GetProductionVersionsAPIResponseDTO -from visier_api_administration.models.get_projects_api_response_dto import GetProjectsAPIResponseDTO -from visier_api_administration.models.google_protobuf_any import GoogleProtobufAny -from visier_api_administration.models.hierarchy_property_dto import HierarchyPropertyDTO -from visier_api_administration.models.home_analysis_by_user_group_dto import HomeAnalysisByUserGroupDTO -from visier_api_administration.models.inherited_access_config_dto import InheritedAccessConfigDTO -from visier_api_administration.models.inherited_reference_member_filter_config_dto import InheritedReferenceMemberFilterConfigDTO -from visier_api_administration.models.key_name import KeyName -from visier_api_administration.models.last_login_dto import LastLoginDTO -from visier_api_administration.models.local_tenant_profile_assignment_request_dto import LocalTenantProfileAssignmentRequestDTO -from visier_api_administration.models.local_tenant_profile_assignment_response_dto import LocalTenantProfileAssignmentResponseDTO -from visier_api_administration.models.local_tenant_profile_revoke_request_dto import LocalTenantProfileRevokeRequestDTO -from visier_api_administration.models.local_tenant_profile_revoke_response_dto import LocalTenantProfileRevokeResponseDTO -from visier_api_administration.models.mask_message import MaskMessage -from visier_api_administration.models.member_filter_config_dto import MemberFilterConfigDTO -from visier_api_administration.models.member_selection_dto import MemberSelectionDTO -from visier_api_administration.models.metric_validation_summary_dto import MetricValidationSummaryDTO -from visier_api_administration.models.module_settings_dto import ModuleSettingsDTO -from visier_api_administration.models.permission_assigned_by_tenant_dto import PermissionAssignedByTenantDTO -from visier_api_administration.models.permission_assigned_for_local_tenant_dto import PermissionAssignedForLocalTenantDTO -from visier_api_administration.models.permission_assigned_user_dto import PermissionAssignedUserDTO -from visier_api_administration.models.permission_assigned_users_dto import PermissionAssignedUsersDTO -from visier_api_administration.models.permission_bulk_operation_response_dto import PermissionBulkOperationResponseDTO -from visier_api_administration.models.permission_dto import PermissionDTO -from visier_api_administration.models.permission_error_dto import PermissionErrorDTO -from visier_api_administration.models.permission_failure_dto import PermissionFailureDTO -from visier_api_administration.models.permission_response_dto import PermissionResponseDTO -from visier_api_administration.models.permission_success_dto import PermissionSuccessDTO -from visier_api_administration.models.permissions_list_dto import PermissionsListDTO -from visier_api_administration.models.permissions_to_user_group_for_tenant_dto import PermissionsToUserGroupForTenantDTO -from visier_api_administration.models.permissions_to_user_group_request_dto import PermissionsToUserGroupRequestDTO -from visier_api_administration.models.permissions_to_user_groups_request_dto import PermissionsToUserGroupsRequestDTO -from visier_api_administration.models.production_version_api_operation_request_dto import ProductionVersionAPIOperationRequestDTO -from visier_api_administration.models.production_version_api_operation_response_dto import ProductionVersionAPIOperationResponseDTO -from visier_api_administration.models.production_versions_api_operation_request_dto import ProductionVersionsAPIOperationRequestDTO -from visier_api_administration.models.production_versions_api_operation_response_dto import ProductionVersionsAPIOperationResponseDTO -from visier_api_administration.models.profile_assigned_for_accessible_tenant_dto import ProfileAssignedForAccessibleTenantDTO -from visier_api_administration.models.profile_assigned_for_local_tenant_dto import ProfileAssignedForLocalTenantDTO -from visier_api_administration.models.profile_get_api_response_dto import ProfileGetAPIResponseDTO -from visier_api_administration.models.profiles_get_api_response_dto import ProfilesGetAPIResponseDTO -from visier_api_administration.models.project_commits_api_response_dto import ProjectCommitsAPIResponseDTO -from visier_api_administration.models.project_dto import ProjectDTO -from visier_api_administration.models.project_operation_request_dto import ProjectOperationRequestDTO -from visier_api_administration.models.project_operation_response_dto import ProjectOperationResponseDTO -from visier_api_administration.models.property_access_config_dto import PropertyAccessConfigDTO -from visier_api_administration.models.property_set_config_dto import PropertySetConfigDTO -from visier_api_administration.models.put_project_commits_request import PutProjectCommitsRequest -from visier_api_administration.models.reduced_error_dto import ReducedErrorDTO -from visier_api_administration.models.reduced_tenant_code_error_dto import ReducedTenantCodeErrorDTO -from visier_api_administration.models.reduced_user_id_error_dto import ReducedUserIdErrorDTO -from visier_api_administration.models.related_analytic_object_dto import RelatedAnalyticObjectDTO -from visier_api_administration.models.role_modules_config_dto import RoleModulesConfigDTO -from visier_api_administration.models.securable_dimension_dto import SecurableDimensionDTO -from visier_api_administration.models.securable_property_dto import SecurablePropertyDTO -from visier_api_administration.models.security_assignment_response_dto import SecurityAssignmentResponseDTO -from visier_api_administration.models.shareable_data_access_set import ShareableDataAccessSet -from visier_api_administration.models.simple_user_dto import SimpleUserDTO +from visier_api_administration.models.admin_delete_user_group_v2_request import AdminDeleteUserGroupV2Request +from visier_api_administration.models.admin_excluded_sources_body import AdminExcludedSourcesBody +from visier_api_administration.models.admin_key_name import AdminKeyName +from visier_api_administration.models.admin_mask_message import AdminMaskMessage +from visier_api_administration.models.admin_permissions_list_dto import AdminPermissionsListDTO +from visier_api_administration.models.admin_publicapi_transfers_all_tenants_status_apidto import AdminPublicapiTransfersAllTenantsStatusAPIDTO +from visier_api_administration.models.admin_publicapi_transfers_batch_tenant_provision_apidto import AdminPublicapiTransfersBatchTenantProvisionAPIDTO +from visier_api_administration.models.admin_publicapi_transfers_business_location_dto import AdminPublicapiTransfersBusinessLocationDTO +from visier_api_administration.models.admin_publicapi_transfers_custom_property_dto import AdminPublicapiTransfersCustomPropertyDTO +from visier_api_administration.models.admin_publicapi_transfers_custom_tenant_property_dto import AdminPublicapiTransfersCustomTenantPropertyDTO +from visier_api_administration.models.admin_publicapi_transfers_element_ids_dto import AdminPublicapiTransfersElementIDsDTO +from visier_api_administration.models.admin_publicapi_transfers_home_analysis_by_user_group_dto import AdminPublicapiTransfersHomeAnalysisByUserGroupDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_detail_apidto import AdminPublicapiTransfersTenantDetailAPIDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_get_response_dto import AdminPublicapiTransfersTenantManagementAPIGetResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_list_response_dto import AdminPublicapiTransfersTenantManagementAPIListResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_update_request_dto import AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_update_response_dto import AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_provision_apidto import AdminPublicapiTransfersTenantProvisionAPIDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_status_apidto import AdminPublicapiTransfersTenantStatusAPIDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_definition_dto import AdminPublicapiTransfersUserGroupChangeDefinitionDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_dimension_filter_dto import AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_failure_dto import AdminPublicapiTransfersUserGroupChangeFailureDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_filter_dto import AdminPublicapiTransfersUserGroupChangeFilterDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_member_selection_dto import AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_response_dto import AdminPublicapiTransfersUserGroupChangeResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_success_dto import AdminPublicapiTransfersUserGroupChangeSuccessDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_users_dto import AdminPublicapiTransfersUserGroupChangeUsersDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_dto import AdminPublicapiTransfersUserGroupDeleteDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_failure_dto import AdminPublicapiTransfersUserGroupDeleteFailureDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_response_dto import AdminPublicapiTransfersUserGroupDeleteResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_success_dto import AdminPublicapiTransfersUserGroupDeleteSuccessDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_filters_dto import AdminPublicapiTransfersUserGroupFiltersDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_single_delete_response_dto import AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_user_groups_change_dto import AdminPublicapiTransfersUserGroupsChangeDTO +from visier_api_administration.models.admin_publicapi_transfers_user_groups_delete_request_dto import AdminPublicapiTransfersUserGroupsDeleteRequestDTO +from visier_api_administration.models.admin_put_project_commits_request import AdminPutProjectCommitsRequest +from visier_api_administration.models.admin_tenant_code_body import AdminTenantCodeBody +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_excluded_source_list_dto import AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_source_tenant_list_dto import AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_create_request_dto import AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_list_response_dto import AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_with_details import AdminTransfersConsolidatedAnalyticsAPITenantWithDetails +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_with_details_list_response_dto import AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO +from visier_api_administration.models.admin_transfers_email_domains_dto import AdminTransfersEmailDomainsDTO +from visier_api_administration.models.admin_transfers_permission_response_dto import AdminTransfersPermissionResponseDTO +from visier_api_administration.models.admin_transfers_permissions_to_user_group_for_tenant_dto import AdminTransfersPermissionsToUserGroupForTenantDTO +from visier_api_administration.models.admin_transfers_permissions_to_user_group_request_dto import AdminTransfersPermissionsToUserGroupRequestDTO +from visier_api_administration.models.admin_transfers_permissions_to_user_groups_request_dto import AdminTransfersPermissionsToUserGroupsRequestDTO +from visier_api_administration.models.admin_transfers_security_assignment_response_dto import AdminTransfersSecurityAssignmentResponseDTO +from visier_api_administration.models.admin_transfers_simple_user_dto import AdminTransfersSimpleUserDTO +from visier_api_administration.models.admin_transfers_target_project_for_tenant_dto import AdminTransfersTargetProjectForTenantDTO +from visier_api_administration.models.admin_transfers_target_project_for_tenants_list_dto import AdminTransfersTargetProjectForTenantsListDTO +from visier_api_administration.models.admin_transfers_tenant_assignments_dto import AdminTransfersTenantAssignmentsDTO +from visier_api_administration.models.admin_transfers_user_group_get_api_response_dto import AdminTransfersUserGroupGetAPIResponseDTO +from visier_api_administration.models.admin_transfers_user_groups_get_api_response_dto import AdminTransfersUserGroupsGetAPIResponseDTO +from visier_api_administration.models.admin_transfers_user_groups_users_dto import AdminTransfersUserGroupsUsersDTO +from visier_api_administration.models.admin_transfers_user_groups_users_for_tenant_dto import AdminTransfersUserGroupsUsersForTenantDTO +from visier_api_administration.models.admin_transfers_user_security_assignments_dto import AdminTransfersUserSecurityAssignmentsDTO +from visier_api_administration.models.admin_transfers_users_to_user_group_request_dto import AdminTransfersUsersToUserGroupRequestDTO +from visier_api_administration.models.admin_transfers_users_to_user_groups_request_dto import AdminTransfersUsersToUserGroupsRequestDTO +from visier_api_administration.models.admin_update_tenant_model import AdminUpdateTenantModel +from visier_api_administration.models.designer_crypto_generate_key_request_dto import DesignerCryptoGenerateKeyRequestDTO +from visier_api_administration.models.designer_crypto_tenant_encryption_key_dto import DesignerCryptoTenantEncryptionKeyDTO +from visier_api_administration.models.designer_crypto_tenant_encryption_key_details_dto import DesignerCryptoTenantEncryptionKeyDetailsDTO +from visier_api_administration.models.designer_transfers_module_settings_dto import DesignerTransfersModuleSettingsDTO +from visier_api_administration.models.designer_transfers_tenant_module_dto import DesignerTransfersTenantModuleDTO +from visier_api_administration.models.dp_automation_transfers_metric_validation_summary_dto import DpAutomationTransfersMetricValidationSummaryDTO +from visier_api_administration.models.dp_automation_transfers_tenant_preview_entries_summary_dto import DpAutomationTransfersTenantPreviewEntriesSummaryDTO +from visier_api_administration.models.dp_automation_transfers_tenant_preview_entries_summary_list_dto import DpAutomationTransfersTenantPreviewEntriesSummaryListDTO +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto import ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_assignment_response_dto import ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto import ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_revoke_response_dto import ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_additional_capabilities_dto import ServicingPublicapiTransfersAdditionalCapabilitiesDTO +from visier_api_administration.models.servicing_publicapi_transfers_admin_capability_config_dto import ServicingPublicapiTransfersAdminCapabilityConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_all_permissions_assigned_for_local_tenant_dto import ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_all_profile_assigned_for_accessible_tenant_dto import ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_all_profile_assigned_for_local_tenant_dto import ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_all_user_groups_assigned_for_local_tenant_dto import ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_all_users_get_api_response_dto import ServicingPublicapiTransfersAllUsersGetAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_analytic_object_dto import ServicingPublicapiTransfersAnalyticObjectDTO +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_by_permission_dto import ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_by_tenant_dto import ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_by_user_dto import ServicingPublicapiTransfersAssignRevokePermissionByUserDTO +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_request_dto import ServicingPublicapiTransfersAssignRevokePermissionRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permissions_request_dto import ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permissions_response_dto import ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_bulk_data_access_set_response_dto import ServicingPublicapiTransfersBulkDataAccessSetResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_capabilities_dto import ServicingPublicapiTransfersCapabilitiesDTO +from visier_api_administration.models.servicing_publicapi_transfers_capability_dto import ServicingPublicapiTransfersCapabilityDTO +from visier_api_administration.models.servicing_publicapi_transfers_commit_and_publish_operation_response_dto import ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_commit_dto import ServicingPublicapiTransfersCommitDTO +from visier_api_administration.models.servicing_publicapi_transfers_content_package_dto import ServicingPublicapiTransfersContentPackageDTO +from visier_api_administration.models.servicing_publicapi_transfers_create_data_access_set_request_dto import ServicingPublicapiTransfersCreateDataAccessSetRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_dto import ServicingPublicapiTransfersDataAccessSetDTO +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_error_dto import ServicingPublicapiTransfersDataAccessSetErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_failure_dto import ServicingPublicapiTransfersDataAccessSetFailureDTO +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_success_dto import ServicingPublicapiTransfersDataAccessSetSuccessDTO +from visier_api_administration.models.servicing_publicapi_transfers_data_security_profile_dto import ServicingPublicapiTransfersDataSecurityProfileDTO +from visier_api_administration.models.servicing_publicapi_transfers_delete_permissions_request_dto import ServicingPublicapiTransfersDeletePermissionsRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_dimension_filter_dto import ServicingPublicapiTransfersDimensionFilterDTO +from visier_api_administration.models.servicing_publicapi_transfers_dynamic_dimension_filter_dto import ServicingPublicapiTransfersDynamicDimensionFilterDTO +from visier_api_administration.models.servicing_publicapi_transfers_dynamic_property_mapping_dto import ServicingPublicapiTransfersDynamicPropertyMappingDTO +from visier_api_administration.models.servicing_publicapi_transfers_error_dto import ServicingPublicapiTransfersErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_export_production_versions_api_operation_parameters_dto import ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO +from visier_api_administration.models.servicing_publicapi_transfers_failed_accessible_tenant_profile_assignment_dto import ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_publicapi_transfers_failed_local_tenant_profile_assignment_dto import ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_publicapi_transfers_failed_local_tenant_profile_revoke_dto import ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_capabilities_api_response_dto import ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_content_packages_api_response_dto import ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_data_access_sets_api_response_dto import ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_data_security_objects_api_response_dto import ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_permissions_api_response_dto import ServicingPublicapiTransfersGetPermissionsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_production_versions_api_response_dto import ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_projects_api_response_dto import ServicingPublicapiTransfersGetProjectsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_hierarchy_property_dto import ServicingPublicapiTransfersHierarchyPropertyDTO +from visier_api_administration.models.servicing_publicapi_transfers_inherited_access_config_dto import ServicingPublicapiTransfersInheritedAccessConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_inherited_reference_member_filter_config_dto import ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_last_login_dto import ServicingPublicapiTransfersLastLoginDTO +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto import ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_assignment_response_dto import ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto import ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_revoke_response_dto import ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_member_filter_config_dto import ServicingPublicapiTransfersMemberFilterConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_member_selection_dto import ServicingPublicapiTransfersMemberSelectionDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_by_tenant_dto import ServicingPublicapiTransfersPermissionAssignedByTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_for_local_tenant_dto import ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_user_dto import ServicingPublicapiTransfersPermissionAssignedUserDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_users_dto import ServicingPublicapiTransfersPermissionAssignedUsersDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_bulk_operation_response_dto import ServicingPublicapiTransfersPermissionBulkOperationResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_dto import ServicingPublicapiTransfersPermissionDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_error_dto import ServicingPublicapiTransfersPermissionErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_failure_dto import ServicingPublicapiTransfersPermissionFailureDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_success_dto import ServicingPublicapiTransfersPermissionSuccessDTO +from visier_api_administration.models.servicing_publicapi_transfers_production_version_api_operation_request_dto import ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_production_version_api_operation_response_dto import ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_production_versions_api_operation_request_dto import ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_production_versions_api_operation_response_dto import ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_profile_assigned_for_accessible_tenant_dto import ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_profile_assigned_for_local_tenant_dto import ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_profile_get_api_response_dto import ServicingPublicapiTransfersProfileGetAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_profiles_get_api_response_dto import ServicingPublicapiTransfersProfilesGetAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_project_commits_api_response_dto import ServicingPublicapiTransfersProjectCommitsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_project_dto import ServicingPublicapiTransfersProjectDTO +from visier_api_administration.models.servicing_publicapi_transfers_project_operation_request_dto import ServicingPublicapiTransfersProjectOperationRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_project_operation_response_dto import ServicingPublicapiTransfersProjectOperationResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_property_access_config_dto import ServicingPublicapiTransfersPropertyAccessConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_property_set_config_dto import ServicingPublicapiTransfersPropertySetConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_reduced_error_dto import ServicingPublicapiTransfersReducedErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_reduced_tenant_code_error_dto import ServicingPublicapiTransfersReducedTenantCodeErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_reduced_user_id_error_dto import ServicingPublicapiTransfersReducedUserIdErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_related_analytic_object_dto import ServicingPublicapiTransfersRelatedAnalyticObjectDTO +from visier_api_administration.models.servicing_publicapi_transfers_role_modules_config_dto import ServicingPublicapiTransfersRoleModulesConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_securable_dimension_dto import ServicingPublicapiTransfersSecurableDimensionDTO +from visier_api_administration.models.servicing_publicapi_transfers_securable_property_dto import ServicingPublicapiTransfersSecurablePropertyDTO +from visier_api_administration.models.servicing_publicapi_transfers_shareable_data_access_set import ServicingPublicapiTransfersShareableDataAccessSet +from visier_api_administration.models.servicing_publicapi_transfers_sources_api_operation_request_dto import ServicingPublicapiTransfersSourcesAPIOperationRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_static_dimension_filter_dto import ServicingPublicapiTransfersStaticDimensionFilterDTO +from visier_api_administration.models.servicing_publicapi_transfers_successful_accessible_tenant_profile_assignment_dto import ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_publicapi_transfers_successful_local_tenant_profile_assignment_dto import ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_publicapi_transfers_target_tenant_code_dto import ServicingPublicapiTransfersTargetTenantCodeDTO +from visier_api_administration.models.servicing_publicapi_transfers_tenant_code_error_dto import ServicingPublicapiTransfersTenantCodeErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_creation_api_request_dto import ServicingPublicapiTransfersUserCreationAPIRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_get_api_response_dto import ServicingPublicapiTransfersUserGetAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_group_assigned_for_local_tenant_dto import ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_id_error_dto import ServicingPublicapiTransfersUserIdErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_property_dto import ServicingPublicapiTransfersUserPropertyDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_update_api_request_dto import ServicingPublicapiTransfersUserUpdateAPIRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_api_error_message_dto import ServicingPublicapiTransfersUsersAPIErrorMessageDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_api_failure_dto import ServicingPublicapiTransfersUsersAPIFailureDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_api_response_dto import ServicingPublicapiTransfersUsersAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_api_success_dto import ServicingPublicapiTransfersUsersAPISuccessDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_creation_api_request_dto import ServicingPublicapiTransfersUsersCreationAPIRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_delete_api_request_dto import ServicingPublicapiTransfersUsersDeleteAPIRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_update_api_request_dto import ServicingPublicapiTransfersUsersUpdateAPIRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_update_api_user_dto import ServicingPublicapiTransfersUsersUpdateAPIUserDTO from visier_api_administration.models.source_import_result_summary_dto import SourceImportResultSummaryDTO -from visier_api_administration.models.sources_api_operation_request_dto import SourcesAPIOperationRequestDTO from visier_api_administration.models.sources_api_put_response_dto import SourcesAPIPutResponseDTO -from visier_api_administration.models.static_dimension_filter_dto import StaticDimensionFilterDTO from visier_api_administration.models.status import Status -from visier_api_administration.models.successful_accessible_tenant_profile_assignment_dto import SuccessfulAccessibleTenantProfileAssignmentDTO -from visier_api_administration.models.successful_local_tenant_profile_assignment_dto import SuccessfulLocalTenantProfileAssignmentDTO -from visier_api_administration.models.system_status_dto import SystemStatusDTO -from visier_api_administration.models.target_project_for_tenant_dto import TargetProjectForTenantDTO -from visier_api_administration.models.target_project_for_tenants_list_dto import TargetProjectForTenantsListDTO -from visier_api_administration.models.target_tenant_code_dto import TargetTenantCodeDTO -from visier_api_administration.models.tenant_assignments_dto import TenantAssignmentsDTO -from visier_api_administration.models.tenant_code_body import TenantCodeBody -from visier_api_administration.models.tenant_code_error_dto import TenantCodeErrorDTO -from visier_api_administration.models.tenant_detail_apidto import TenantDetailAPIDTO -from visier_api_administration.models.tenant_encryption_key_dto import TenantEncryptionKeyDTO -from visier_api_administration.models.tenant_encryption_key_details_dto import TenantEncryptionKeyDetailsDTO -from visier_api_administration.models.tenant_management_api_get_response_dto import TenantManagementAPIGetResponseDTO -from visier_api_administration.models.tenant_management_api_list_response_dto import TenantManagementAPIListResponseDTO -from visier_api_administration.models.tenant_management_api_update_request_dto import TenantManagementAPIUpdateRequestDTO -from visier_api_administration.models.tenant_management_api_update_response_dto import TenantManagementAPIUpdateResponseDTO -from visier_api_administration.models.tenant_module_dto import TenantModuleDTO -from visier_api_administration.models.tenant_preview_entries_summary_dto import TenantPreviewEntriesSummaryDTO -from visier_api_administration.models.tenant_preview_entries_summary_list_dto import TenantPreviewEntriesSummaryListDTO -from visier_api_administration.models.tenant_provision_apidto import TenantProvisionAPIDTO -from visier_api_administration.models.tenant_status_apidto import TenantStatusAPIDTO -from visier_api_administration.models.update_tenant_model import UpdateTenantModel -from visier_api_administration.models.user_creation_api_request_dto import UserCreationAPIRequestDTO +from visier_api_administration.models.systemstatus_publicapi_transfers_system_status_dto import SystemstatusPublicapiTransfersSystemStatusDTO from visier_api_administration.models.user_creation_api_response_dto import UserCreationAPIResponseDTO -from visier_api_administration.models.user_get_api_response_dto import UserGetAPIResponseDTO -from visier_api_administration.models.user_group_assigned_for_local_tenant_dto import UserGroupAssignedForLocalTenantDTO -from visier_api_administration.models.user_group_change_definition_dto import UserGroupChangeDefinitionDTO -from visier_api_administration.models.user_group_change_dimension_filter_dto import UserGroupChangeDimensionFilterDTO -from visier_api_administration.models.user_group_change_failure_dto import UserGroupChangeFailureDTO -from visier_api_administration.models.user_group_change_filter_dto import UserGroupChangeFilterDTO -from visier_api_administration.models.user_group_change_member_selection_dto import UserGroupChangeMemberSelectionDTO -from visier_api_administration.models.user_group_change_response_dto import UserGroupChangeResponseDTO -from visier_api_administration.models.user_group_change_success_dto import UserGroupChangeSuccessDTO -from visier_api_administration.models.user_group_change_users_dto import UserGroupChangeUsersDTO -from visier_api_administration.models.user_group_delete_dto import UserGroupDeleteDTO -from visier_api_administration.models.user_group_delete_failure_dto import UserGroupDeleteFailureDTO -from visier_api_administration.models.user_group_delete_response_dto import UserGroupDeleteResponseDTO -from visier_api_administration.models.user_group_delete_success_dto import UserGroupDeleteSuccessDTO -from visier_api_administration.models.user_group_filters_dto import UserGroupFiltersDTO -from visier_api_administration.models.user_group_get_api_response_dto import UserGroupGetAPIResponseDTO -from visier_api_administration.models.user_group_single_delete_response_dto import UserGroupSingleDeleteResponseDTO -from visier_api_administration.models.user_groups_change_dto import UserGroupsChangeDTO -from visier_api_administration.models.user_groups_delete_request_dto import UserGroupsDeleteRequestDTO -from visier_api_administration.models.user_groups_get_api_response_dto import UserGroupsGetAPIResponseDTO -from visier_api_administration.models.user_groups_users_dto import UserGroupsUsersDTO -from visier_api_administration.models.user_groups_users_for_tenant_dto import UserGroupsUsersForTenantDTO -from visier_api_administration.models.user_id_error_dto import UserIdErrorDTO -from visier_api_administration.models.user_property_dto import UserPropertyDTO -from visier_api_administration.models.user_security_assignments_dto import UserSecurityAssignmentsDTO -from visier_api_administration.models.user_update_api_request_dto import UserUpdateAPIRequestDTO -from visier_api_administration.models.users_api_error_message_dto import UsersAPIErrorMessageDTO -from visier_api_administration.models.users_api_failure_dto import UsersAPIFailureDTO -from visier_api_administration.models.users_api_response_dto import UsersAPIResponseDTO -from visier_api_administration.models.users_api_success_dto import UsersAPISuccessDTO -from visier_api_administration.models.users_creation_api_request_dto import UsersCreationAPIRequestDTO -from visier_api_administration.models.users_delete_api_request_dto import UsersDeleteAPIRequestDTO -from visier_api_administration.models.users_to_user_group_request_dto import UsersToUserGroupRequestDTO -from visier_api_administration.models.users_to_user_groups_request_dto import UsersToUserGroupsRequestDTO -from visier_api_administration.models.users_update_api_request_dto import UsersUpdateAPIRequestDTO -from visier_api_administration.models.users_update_api_user_dto import UsersUpdateAPIUserDTO diff --git a/src/visier_api_administration/visier_api_administration/api/consolidated_analytics_api.py b/src/visier_api_administration/visier_api_administration/api/consolidated_analytics_api.py index fedcabb5f1..179137c43e 100644 --- a/src/visier_api_administration/visier_api_administration/api/consolidated_analytics_api.py +++ b/src/visier_api_administration/visier_api_administration/api/consolidated_analytics_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,13 +23,13 @@ from pydantic import Field, StrictInt, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_administration.models.consolidated_analytics_api_excluded_source_list_dto import ConsolidatedAnalyticsAPIExcludedSourceListDTO -from visier_api_administration.models.consolidated_analytics_api_source_tenant_list_dto import ConsolidatedAnalyticsAPISourceTenantListDTO -from visier_api_administration.models.consolidated_analytics_api_tenant_create_request_dto import ConsolidatedAnalyticsAPITenantCreateRequestDTO -from visier_api_administration.models.consolidated_analytics_api_tenant_list_response_dto import ConsolidatedAnalyticsAPITenantListResponseDTO -from visier_api_administration.models.consolidated_analytics_api_tenant_with_details_list_response_dto import ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO -from visier_api_administration.models.excluded_sources_body import ExcludedSourcesBody -from visier_api_administration.models.tenant_code_body import TenantCodeBody +from visier_api_administration.models.admin_excluded_sources_body import AdminExcludedSourcesBody +from visier_api_administration.models.admin_tenant_code_body import AdminTenantCodeBody +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_excluded_source_list_dto import AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_source_tenant_list_dto import AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_create_request_dto import AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_list_response_dto import AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_with_details_list_response_dto import AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO import visier_api_administration.models @@ -49,7 +49,7 @@ def __init__(self, api_client=None) -> None: def add_excluded_sources( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - excluded_sources_body: ExcludedSourcesBody, + admin_excluded_sources_body: AdminExcludedSourcesBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -62,15 +62,15 @@ def add_excluded_sources( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ConsolidatedAnalyticsAPIExcludedSourceListDTO: + ) -> AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO: """Add excluded sources to a consolidated analytics tenant Add excluded sources to the list of excluded sources for a consolidated analytics tenant.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param excluded_sources_body: (required) - :type excluded_sources_body: ExcludedSourcesBody + :param admin_excluded_sources_body: (required) + :type admin_excluded_sources_body: AdminExcludedSourcesBody :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -95,7 +95,7 @@ def add_excluded_sources( _param = self._add_excluded_sources_serialize( tenant_id=tenant_id, - excluded_sources_body=excluded_sources_body, + admin_excluded_sources_body=admin_excluded_sources_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -103,7 +103,7 @@ def add_excluded_sources( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -121,7 +121,7 @@ def add_excluded_sources( def add_excluded_sources_with_http_info( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - excluded_sources_body: ExcludedSourcesBody, + admin_excluded_sources_body: AdminExcludedSourcesBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -134,15 +134,15 @@ def add_excluded_sources_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ConsolidatedAnalyticsAPIExcludedSourceListDTO]: + ) -> ApiResponse[AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO]: """Add excluded sources to a consolidated analytics tenant Add excluded sources to the list of excluded sources for a consolidated analytics tenant.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param excluded_sources_body: (required) - :type excluded_sources_body: ExcludedSourcesBody + :param admin_excluded_sources_body: (required) + :type admin_excluded_sources_body: AdminExcludedSourcesBody :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -167,7 +167,7 @@ def add_excluded_sources_with_http_info( _param = self._add_excluded_sources_serialize( tenant_id=tenant_id, - excluded_sources_body=excluded_sources_body, + admin_excluded_sources_body=admin_excluded_sources_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -175,7 +175,7 @@ def add_excluded_sources_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -193,7 +193,7 @@ def add_excluded_sources_with_http_info( def add_excluded_sources_without_preload_content( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - excluded_sources_body: ExcludedSourcesBody, + admin_excluded_sources_body: AdminExcludedSourcesBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -213,8 +213,8 @@ def add_excluded_sources_without_preload_content( :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param excluded_sources_body: (required) - :type excluded_sources_body: ExcludedSourcesBody + :param admin_excluded_sources_body: (required) + :type admin_excluded_sources_body: AdminExcludedSourcesBody :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -239,7 +239,7 @@ def add_excluded_sources_without_preload_content( _param = self._add_excluded_sources_serialize( tenant_id=tenant_id, - excluded_sources_body=excluded_sources_body, + admin_excluded_sources_body=admin_excluded_sources_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -247,7 +247,7 @@ def add_excluded_sources_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -259,7 +259,7 @@ def add_excluded_sources_without_preload_content( def _add_excluded_sources_serialize( self, tenant_id, - excluded_sources_body, + admin_excluded_sources_body, _request_auth, _content_type, _headers, @@ -285,8 +285,8 @@ def _add_excluded_sources_serialize( # process the header parameters # process the form parameters # process the body parameter - if excluded_sources_body is not None: - _body_params = excluded_sources_body + if admin_excluded_sources_body is not None: + _body_params = admin_excluded_sources_body # set the HTTP header `Accept` @@ -313,6 +313,11 @@ def _add_excluded_sources_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -337,7 +342,7 @@ def _add_excluded_sources_serialize( def add_source_tenants( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - tenant_code_body: TenantCodeBody, + admin_tenant_code_body: AdminTenantCodeBody, limit: Annotated[Optional[StrictInt], Field(description="The maximum number of source tenants to return. The maximum value is 1000. Default is 400.")] = None, _request_timeout: Union[ None, @@ -351,15 +356,15 @@ def add_source_tenants( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ConsolidatedAnalyticsAPISourceTenantListDTO: + ) -> AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO: """Add source tenants to a consolidated analytics tenant Add source tenants to the list of source tenants for a consolidated analytics tenant. If successful, the response returns an updated list of source tenants.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param tenant_code_body: (required) - :type tenant_code_body: TenantCodeBody + :param admin_tenant_code_body: (required) + :type admin_tenant_code_body: AdminTenantCodeBody :param limit: The maximum number of source tenants to return. The maximum value is 1000. Default is 400. :type limit: int :param _request_timeout: timeout setting for this request. If one @@ -386,7 +391,7 @@ def add_source_tenants( _param = self._add_source_tenants_serialize( tenant_id=tenant_id, - tenant_code_body=tenant_code_body, + admin_tenant_code_body=admin_tenant_code_body, limit=limit, _request_auth=_request_auth, _content_type=_content_type, @@ -395,7 +400,7 @@ def add_source_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -413,7 +418,7 @@ def add_source_tenants( def add_source_tenants_with_http_info( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - tenant_code_body: TenantCodeBody, + admin_tenant_code_body: AdminTenantCodeBody, limit: Annotated[Optional[StrictInt], Field(description="The maximum number of source tenants to return. The maximum value is 1000. Default is 400.")] = None, _request_timeout: Union[ None, @@ -427,15 +432,15 @@ def add_source_tenants_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ConsolidatedAnalyticsAPISourceTenantListDTO]: + ) -> ApiResponse[AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO]: """Add source tenants to a consolidated analytics tenant Add source tenants to the list of source tenants for a consolidated analytics tenant. If successful, the response returns an updated list of source tenants.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param tenant_code_body: (required) - :type tenant_code_body: TenantCodeBody + :param admin_tenant_code_body: (required) + :type admin_tenant_code_body: AdminTenantCodeBody :param limit: The maximum number of source tenants to return. The maximum value is 1000. Default is 400. :type limit: int :param _request_timeout: timeout setting for this request. If one @@ -462,7 +467,7 @@ def add_source_tenants_with_http_info( _param = self._add_source_tenants_serialize( tenant_id=tenant_id, - tenant_code_body=tenant_code_body, + admin_tenant_code_body=admin_tenant_code_body, limit=limit, _request_auth=_request_auth, _content_type=_content_type, @@ -471,7 +476,7 @@ def add_source_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -489,7 +494,7 @@ def add_source_tenants_with_http_info( def add_source_tenants_without_preload_content( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - tenant_code_body: TenantCodeBody, + admin_tenant_code_body: AdminTenantCodeBody, limit: Annotated[Optional[StrictInt], Field(description="The maximum number of source tenants to return. The maximum value is 1000. Default is 400.")] = None, _request_timeout: Union[ None, @@ -510,8 +515,8 @@ def add_source_tenants_without_preload_content( :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param tenant_code_body: (required) - :type tenant_code_body: TenantCodeBody + :param admin_tenant_code_body: (required) + :type admin_tenant_code_body: AdminTenantCodeBody :param limit: The maximum number of source tenants to return. The maximum value is 1000. Default is 400. :type limit: int :param _request_timeout: timeout setting for this request. If one @@ -538,7 +543,7 @@ def add_source_tenants_without_preload_content( _param = self._add_source_tenants_serialize( tenant_id=tenant_id, - tenant_code_body=tenant_code_body, + admin_tenant_code_body=admin_tenant_code_body, limit=limit, _request_auth=_request_auth, _content_type=_content_type, @@ -547,7 +552,7 @@ def add_source_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -559,7 +564,7 @@ def add_source_tenants_without_preload_content( def _add_source_tenants_serialize( self, tenant_id, - tenant_code_body, + admin_tenant_code_body, limit, _request_auth, _content_type, @@ -590,8 +595,8 @@ def _add_source_tenants_serialize( # process the header parameters # process the form parameters # process the body parameter - if tenant_code_body is not None: - _body_params = tenant_code_body + if admin_tenant_code_body is not None: + _body_params = admin_tenant_code_body # set the HTTP header `Accept` @@ -618,6 +623,11 @@ def _add_source_tenants_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -641,7 +651,7 @@ def _add_source_tenants_serialize( @validate_call def create_tenant( self, - consolidated_analytics_api_tenant_create_request_dto: ConsolidatedAnalyticsAPITenantCreateRequestDTO, + admin_transfers_consolidated_analytics_api_tenant_create_request_dto: AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -654,13 +664,13 @@ def create_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ConsolidatedAnalyticsAPITenantCreateRequestDTO: + ) -> AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO: """Create a consolidated analytics tenant Create a consolidated analytics tenant. A new CA tenant has no source tenants and no excluded sources. **Note:** CA tenant codes must have a prefix of CA. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param consolidated_analytics_api_tenant_create_request_dto: (required) - :type consolidated_analytics_api_tenant_create_request_dto: ConsolidatedAnalyticsAPITenantCreateRequestDTO + :param admin_transfers_consolidated_analytics_api_tenant_create_request_dto: (required) + :type admin_transfers_consolidated_analytics_api_tenant_create_request_dto: AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -684,7 +694,7 @@ def create_tenant( """ # noqa: E501 _param = self._create_tenant_serialize( - consolidated_analytics_api_tenant_create_request_dto=consolidated_analytics_api_tenant_create_request_dto, + admin_transfers_consolidated_analytics_api_tenant_create_request_dto=admin_transfers_consolidated_analytics_api_tenant_create_request_dto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -692,7 +702,7 @@ def create_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPITenantCreateRequestDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -709,7 +719,7 @@ def create_tenant( @validate_call def create_tenant_with_http_info( self, - consolidated_analytics_api_tenant_create_request_dto: ConsolidatedAnalyticsAPITenantCreateRequestDTO, + admin_transfers_consolidated_analytics_api_tenant_create_request_dto: AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -722,13 +732,13 @@ def create_tenant_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ConsolidatedAnalyticsAPITenantCreateRequestDTO]: + ) -> ApiResponse[AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO]: """Create a consolidated analytics tenant Create a consolidated analytics tenant. A new CA tenant has no source tenants and no excluded sources. **Note:** CA tenant codes must have a prefix of CA. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param consolidated_analytics_api_tenant_create_request_dto: (required) - :type consolidated_analytics_api_tenant_create_request_dto: ConsolidatedAnalyticsAPITenantCreateRequestDTO + :param admin_transfers_consolidated_analytics_api_tenant_create_request_dto: (required) + :type admin_transfers_consolidated_analytics_api_tenant_create_request_dto: AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -752,7 +762,7 @@ def create_tenant_with_http_info( """ # noqa: E501 _param = self._create_tenant_serialize( - consolidated_analytics_api_tenant_create_request_dto=consolidated_analytics_api_tenant_create_request_dto, + admin_transfers_consolidated_analytics_api_tenant_create_request_dto=admin_transfers_consolidated_analytics_api_tenant_create_request_dto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -760,7 +770,7 @@ def create_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPITenantCreateRequestDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -777,7 +787,7 @@ def create_tenant_with_http_info( @validate_call def create_tenant_without_preload_content( self, - consolidated_analytics_api_tenant_create_request_dto: ConsolidatedAnalyticsAPITenantCreateRequestDTO, + admin_transfers_consolidated_analytics_api_tenant_create_request_dto: AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -795,8 +805,8 @@ def create_tenant_without_preload_content( Create a consolidated analytics tenant. A new CA tenant has no source tenants and no excluded sources. **Note:** CA tenant codes must have a prefix of CA. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param consolidated_analytics_api_tenant_create_request_dto: (required) - :type consolidated_analytics_api_tenant_create_request_dto: ConsolidatedAnalyticsAPITenantCreateRequestDTO + :param admin_transfers_consolidated_analytics_api_tenant_create_request_dto: (required) + :type admin_transfers_consolidated_analytics_api_tenant_create_request_dto: AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -820,7 +830,7 @@ def create_tenant_without_preload_content( """ # noqa: E501 _param = self._create_tenant_serialize( - consolidated_analytics_api_tenant_create_request_dto=consolidated_analytics_api_tenant_create_request_dto, + admin_transfers_consolidated_analytics_api_tenant_create_request_dto=admin_transfers_consolidated_analytics_api_tenant_create_request_dto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -828,7 +838,7 @@ def create_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPITenantCreateRequestDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -839,7 +849,7 @@ def create_tenant_without_preload_content( def _create_tenant_serialize( self, - consolidated_analytics_api_tenant_create_request_dto, + admin_transfers_consolidated_analytics_api_tenant_create_request_dto, _request_auth, _content_type, _headers, @@ -863,8 +873,8 @@ def _create_tenant_serialize( # process the header parameters # process the form parameters # process the body parameter - if consolidated_analytics_api_tenant_create_request_dto is not None: - _body_params = consolidated_analytics_api_tenant_create_request_dto + if admin_transfers_consolidated_analytics_api_tenant_create_request_dto is not None: + _body_params = admin_transfers_consolidated_analytics_api_tenant_create_request_dto # set the HTTP header `Accept` @@ -891,6 +901,11 @@ def _create_tenant_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -927,7 +942,7 @@ def list_excluded_sources( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ConsolidatedAnalyticsAPIExcludedSourceListDTO: + ) -> AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO: """Retrieve a consolidated analytics tenant's excluded sources Retrieve a CA tenant's excluded sources.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -965,7 +980,7 @@ def list_excluded_sources( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -995,7 +1010,7 @@ def list_excluded_sources_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ConsolidatedAnalyticsAPIExcludedSourceListDTO]: + ) -> ApiResponse[AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO]: """Retrieve a consolidated analytics tenant's excluded sources Retrieve a CA tenant's excluded sources.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1033,7 +1048,7 @@ def list_excluded_sources_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -1101,7 +1116,7 @@ def list_excluded_sources_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -1151,6 +1166,11 @@ def _list_excluded_sources_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1189,7 +1209,7 @@ def list_source_tenants( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ConsolidatedAnalyticsAPISourceTenantListDTO: + ) -> AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO: """Retrieve a consolidated analytics tenant's source tenants Retrieve a CA tenant's source tenants.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1233,7 +1253,7 @@ def list_source_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -1265,7 +1285,7 @@ def list_source_tenants_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ConsolidatedAnalyticsAPISourceTenantListDTO]: + ) -> ApiResponse[AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO]: """Retrieve a consolidated analytics tenant's source tenants Retrieve a CA tenant's source tenants.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1309,7 +1329,7 @@ def list_source_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -1385,7 +1405,7 @@ def list_source_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -1445,6 +1465,11 @@ def _list_source_tenants_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1482,7 +1507,7 @@ def list_tenants( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ConsolidatedAnalyticsAPITenantListResponseDTO: + ) -> AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO: """Retrieve a list of all consolidated analytics tenants Retrieve the full list of consolidated analytics tenants in your administrating tenant.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1523,7 +1548,7 @@ def list_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPITenantListResponseDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1554,7 +1579,7 @@ def list_tenants_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ConsolidatedAnalyticsAPITenantListResponseDTO]: + ) -> ApiResponse[AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO]: """Retrieve a list of all consolidated analytics tenants Retrieve the full list of consolidated analytics tenants in your administrating tenant.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1595,7 +1620,7 @@ def list_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPITenantListResponseDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1667,7 +1692,7 @@ def list_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPITenantListResponseDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1724,6 +1749,11 @@ def _list_tenants_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1761,7 +1791,7 @@ def list_tenants_with_details( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO: + ) -> AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO: """Retrieve the details of all consolidated analytics tenants Retrieve the full list of consolidated analytics tenants and their details in your administrating tenant. **Note:** If your consolidated analytics tenants have thousands of source tenants, we recommend that you use the `GET /admin/consolidated-analytics/tenants` endpoint to get all CA tenants and then use the `GET /admin/consolidated-analytics/tenants/{tenantId}/source-tenants` and `GET /admin/consolidated-analytics/tenants/{tenantId}/excluded-sources` endpoints to retrieve information about specific CA tenants.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1802,7 +1832,7 @@ def list_tenants_with_details( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1833,7 +1863,7 @@ def list_tenants_with_details_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO]: + ) -> ApiResponse[AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO]: """Retrieve the details of all consolidated analytics tenants Retrieve the full list of consolidated analytics tenants and their details in your administrating tenant. **Note:** If your consolidated analytics tenants have thousands of source tenants, we recommend that you use the `GET /admin/consolidated-analytics/tenants` endpoint to get all CA tenants and then use the `GET /admin/consolidated-analytics/tenants/{tenantId}/source-tenants` and `GET /admin/consolidated-analytics/tenants/{tenantId}/excluded-sources` endpoints to retrieve information about specific CA tenants.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1874,7 +1904,7 @@ def list_tenants_with_details_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1946,7 +1976,7 @@ def list_tenants_with_details_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2003,6 +2033,11 @@ def _list_tenants_with_details_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -2027,7 +2062,7 @@ def _list_tenants_with_details_serialize( def remove_excluded_sources( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - excluded_sources_body: ExcludedSourcesBody, + admin_excluded_sources_body: AdminExcludedSourcesBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2040,15 +2075,15 @@ def remove_excluded_sources( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ConsolidatedAnalyticsAPIExcludedSourceListDTO: + ) -> AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO: """Remove excluded sources from a consolidated analytics tenants Remove excluded sources from the list of excluded sources for a consolidated analytics tenant.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param excluded_sources_body: (required) - :type excluded_sources_body: ExcludedSourcesBody + :param admin_excluded_sources_body: (required) + :type admin_excluded_sources_body: AdminExcludedSourcesBody :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2073,7 +2108,7 @@ def remove_excluded_sources( _param = self._remove_excluded_sources_serialize( tenant_id=tenant_id, - excluded_sources_body=excluded_sources_body, + admin_excluded_sources_body=admin_excluded_sources_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2081,7 +2116,7 @@ def remove_excluded_sources( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -2099,7 +2134,7 @@ def remove_excluded_sources( def remove_excluded_sources_with_http_info( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - excluded_sources_body: ExcludedSourcesBody, + admin_excluded_sources_body: AdminExcludedSourcesBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2112,15 +2147,15 @@ def remove_excluded_sources_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ConsolidatedAnalyticsAPIExcludedSourceListDTO]: + ) -> ApiResponse[AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO]: """Remove excluded sources from a consolidated analytics tenants Remove excluded sources from the list of excluded sources for a consolidated analytics tenant.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param excluded_sources_body: (required) - :type excluded_sources_body: ExcludedSourcesBody + :param admin_excluded_sources_body: (required) + :type admin_excluded_sources_body: AdminExcludedSourcesBody :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2145,7 +2180,7 @@ def remove_excluded_sources_with_http_info( _param = self._remove_excluded_sources_serialize( tenant_id=tenant_id, - excluded_sources_body=excluded_sources_body, + admin_excluded_sources_body=admin_excluded_sources_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2153,7 +2188,7 @@ def remove_excluded_sources_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -2171,7 +2206,7 @@ def remove_excluded_sources_with_http_info( def remove_excluded_sources_without_preload_content( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - excluded_sources_body: ExcludedSourcesBody, + admin_excluded_sources_body: AdminExcludedSourcesBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2191,8 +2226,8 @@ def remove_excluded_sources_without_preload_content( :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param excluded_sources_body: (required) - :type excluded_sources_body: ExcludedSourcesBody + :param admin_excluded_sources_body: (required) + :type admin_excluded_sources_body: AdminExcludedSourcesBody :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2217,7 +2252,7 @@ def remove_excluded_sources_without_preload_content( _param = self._remove_excluded_sources_serialize( tenant_id=tenant_id, - excluded_sources_body=excluded_sources_body, + admin_excluded_sources_body=admin_excluded_sources_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2225,7 +2260,7 @@ def remove_excluded_sources_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -2237,7 +2272,7 @@ def remove_excluded_sources_without_preload_content( def _remove_excluded_sources_serialize( self, tenant_id, - excluded_sources_body, + admin_excluded_sources_body, _request_auth, _content_type, _headers, @@ -2263,8 +2298,8 @@ def _remove_excluded_sources_serialize( # process the header parameters # process the form parameters # process the body parameter - if excluded_sources_body is not None: - _body_params = excluded_sources_body + if admin_excluded_sources_body is not None: + _body_params = admin_excluded_sources_body # set the HTTP header `Accept` @@ -2291,6 +2326,11 @@ def _remove_excluded_sources_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -2315,7 +2355,7 @@ def _remove_excluded_sources_serialize( def remove_source_tenants( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - tenant_code_body: TenantCodeBody, + admin_tenant_code_body: AdminTenantCodeBody, limit: Annotated[Optional[StrictInt], Field(description="The maximum number of source tenants to return. The maximum value is 1000. Default is 400.")] = None, _request_timeout: Union[ None, @@ -2329,15 +2369,15 @@ def remove_source_tenants( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ConsolidatedAnalyticsAPISourceTenantListDTO: + ) -> AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO: """Remove source tenants from a consolidated analytics tenants Remove source tenants from the list of source tenants for a consolidated analytics tenant. If successful, the response returns an updated list of source tenants.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param tenant_code_body: (required) - :type tenant_code_body: TenantCodeBody + :param admin_tenant_code_body: (required) + :type admin_tenant_code_body: AdminTenantCodeBody :param limit: The maximum number of source tenants to return. The maximum value is 1000. Default is 400. :type limit: int :param _request_timeout: timeout setting for this request. If one @@ -2364,7 +2404,7 @@ def remove_source_tenants( _param = self._remove_source_tenants_serialize( tenant_id=tenant_id, - tenant_code_body=tenant_code_body, + admin_tenant_code_body=admin_tenant_code_body, limit=limit, _request_auth=_request_auth, _content_type=_content_type, @@ -2373,7 +2413,7 @@ def remove_source_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -2391,7 +2431,7 @@ def remove_source_tenants( def remove_source_tenants_with_http_info( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - tenant_code_body: TenantCodeBody, + admin_tenant_code_body: AdminTenantCodeBody, limit: Annotated[Optional[StrictInt], Field(description="The maximum number of source tenants to return. The maximum value is 1000. Default is 400.")] = None, _request_timeout: Union[ None, @@ -2405,15 +2445,15 @@ def remove_source_tenants_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ConsolidatedAnalyticsAPISourceTenantListDTO]: + ) -> ApiResponse[AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO]: """Remove source tenants from a consolidated analytics tenants Remove source tenants from the list of source tenants for a consolidated analytics tenant. If successful, the response returns an updated list of source tenants.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param tenant_code_body: (required) - :type tenant_code_body: TenantCodeBody + :param admin_tenant_code_body: (required) + :type admin_tenant_code_body: AdminTenantCodeBody :param limit: The maximum number of source tenants to return. The maximum value is 1000. Default is 400. :type limit: int :param _request_timeout: timeout setting for this request. If one @@ -2440,7 +2480,7 @@ def remove_source_tenants_with_http_info( _param = self._remove_source_tenants_serialize( tenant_id=tenant_id, - tenant_code_body=tenant_code_body, + admin_tenant_code_body=admin_tenant_code_body, limit=limit, _request_auth=_request_auth, _content_type=_content_type, @@ -2449,7 +2489,7 @@ def remove_source_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -2467,7 +2507,7 @@ def remove_source_tenants_with_http_info( def remove_source_tenants_without_preload_content( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - tenant_code_body: TenantCodeBody, + admin_tenant_code_body: AdminTenantCodeBody, limit: Annotated[Optional[StrictInt], Field(description="The maximum number of source tenants to return. The maximum value is 1000. Default is 400.")] = None, _request_timeout: Union[ None, @@ -2488,8 +2528,8 @@ def remove_source_tenants_without_preload_content( :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param tenant_code_body: (required) - :type tenant_code_body: TenantCodeBody + :param admin_tenant_code_body: (required) + :type admin_tenant_code_body: AdminTenantCodeBody :param limit: The maximum number of source tenants to return. The maximum value is 1000. Default is 400. :type limit: int :param _request_timeout: timeout setting for this request. If one @@ -2516,7 +2556,7 @@ def remove_source_tenants_without_preload_content( _param = self._remove_source_tenants_serialize( tenant_id=tenant_id, - tenant_code_body=tenant_code_body, + admin_tenant_code_body=admin_tenant_code_body, limit=limit, _request_auth=_request_auth, _content_type=_content_type, @@ -2525,7 +2565,7 @@ def remove_source_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -2537,7 +2577,7 @@ def remove_source_tenants_without_preload_content( def _remove_source_tenants_serialize( self, tenant_id, - tenant_code_body, + admin_tenant_code_body, limit, _request_auth, _content_type, @@ -2568,8 +2608,8 @@ def _remove_source_tenants_serialize( # process the header parameters # process the form parameters # process the body parameter - if tenant_code_body is not None: - _body_params = tenant_code_body + if admin_tenant_code_body is not None: + _body_params = admin_tenant_code_body # set the HTTP header `Accept` @@ -2596,6 +2636,11 @@ def _remove_source_tenants_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -2620,7 +2665,7 @@ def _remove_source_tenants_serialize( def set_excluded_sources( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - excluded_sources_body: ExcludedSourcesBody, + admin_excluded_sources_body: AdminExcludedSourcesBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2633,15 +2678,15 @@ def set_excluded_sources( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ConsolidatedAnalyticsAPIExcludedSourceListDTO: + ) -> AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO: """Set a consolidated analytics tenant's excluded sources Define the excluded sources for a consolidated analytics tenant. After you create a CA tenant, you may optionally define a list of excluded sources. The excluded sources are the sources whose data is excluded from the CA tenant. You can also use this API to replace the list of excluded sources for an existing CA tenant.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param excluded_sources_body: (required) - :type excluded_sources_body: ExcludedSourcesBody + :param admin_excluded_sources_body: (required) + :type admin_excluded_sources_body: AdminExcludedSourcesBody :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2666,7 +2711,7 @@ def set_excluded_sources( _param = self._set_excluded_sources_serialize( tenant_id=tenant_id, - excluded_sources_body=excluded_sources_body, + admin_excluded_sources_body=admin_excluded_sources_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2674,7 +2719,7 @@ def set_excluded_sources( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -2692,7 +2737,7 @@ def set_excluded_sources( def set_excluded_sources_with_http_info( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - excluded_sources_body: ExcludedSourcesBody, + admin_excluded_sources_body: AdminExcludedSourcesBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2705,15 +2750,15 @@ def set_excluded_sources_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ConsolidatedAnalyticsAPIExcludedSourceListDTO]: + ) -> ApiResponse[AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO]: """Set a consolidated analytics tenant's excluded sources Define the excluded sources for a consolidated analytics tenant. After you create a CA tenant, you may optionally define a list of excluded sources. The excluded sources are the sources whose data is excluded from the CA tenant. You can also use this API to replace the list of excluded sources for an existing CA tenant.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param excluded_sources_body: (required) - :type excluded_sources_body: ExcludedSourcesBody + :param admin_excluded_sources_body: (required) + :type admin_excluded_sources_body: AdminExcludedSourcesBody :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2738,7 +2783,7 @@ def set_excluded_sources_with_http_info( _param = self._set_excluded_sources_serialize( tenant_id=tenant_id, - excluded_sources_body=excluded_sources_body, + admin_excluded_sources_body=admin_excluded_sources_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2746,7 +2791,7 @@ def set_excluded_sources_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -2764,7 +2809,7 @@ def set_excluded_sources_with_http_info( def set_excluded_sources_without_preload_content( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - excluded_sources_body: ExcludedSourcesBody, + admin_excluded_sources_body: AdminExcludedSourcesBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2784,8 +2829,8 @@ def set_excluded_sources_without_preload_content( :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param excluded_sources_body: (required) - :type excluded_sources_body: ExcludedSourcesBody + :param admin_excluded_sources_body: (required) + :type admin_excluded_sources_body: AdminExcludedSourcesBody :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2810,7 +2855,7 @@ def set_excluded_sources_without_preload_content( _param = self._set_excluded_sources_serialize( tenant_id=tenant_id, - excluded_sources_body=excluded_sources_body, + admin_excluded_sources_body=admin_excluded_sources_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2818,7 +2863,7 @@ def set_excluded_sources_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -2830,7 +2875,7 @@ def set_excluded_sources_without_preload_content( def _set_excluded_sources_serialize( self, tenant_id, - excluded_sources_body, + admin_excluded_sources_body, _request_auth, _content_type, _headers, @@ -2856,8 +2901,8 @@ def _set_excluded_sources_serialize( # process the header parameters # process the form parameters # process the body parameter - if excluded_sources_body is not None: - _body_params = excluded_sources_body + if admin_excluded_sources_body is not None: + _body_params = admin_excluded_sources_body # set the HTTP header `Accept` @@ -2884,6 +2929,11 @@ def _set_excluded_sources_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -2908,7 +2958,7 @@ def _set_excluded_sources_serialize( def set_source_tenants( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - tenant_code_body: TenantCodeBody, + admin_tenant_code_body: AdminTenantCodeBody, limit: Annotated[Optional[StrictInt], Field(description="The maximum number of source tenants to return. The maximum value is 1000. Default is 400.")] = None, _request_timeout: Union[ None, @@ -2922,15 +2972,15 @@ def set_source_tenants( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ConsolidatedAnalyticsAPISourceTenantListDTO: + ) -> AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO: """Set a consolidated analytics tenant's source tenants Define the source tenants for a consolidated analytics tenant. After you create a CA tenant, you must define a list of its source tenants. The source tenants are the tenants whose data is aggregated in the CA tenant. You can also use this API to replace the list of source tenants for an existing CA tenant. If successful, the response returns an updated list of source tenants.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param tenant_code_body: (required) - :type tenant_code_body: TenantCodeBody + :param admin_tenant_code_body: (required) + :type admin_tenant_code_body: AdminTenantCodeBody :param limit: The maximum number of source tenants to return. The maximum value is 1000. Default is 400. :type limit: int :param _request_timeout: timeout setting for this request. If one @@ -2957,7 +3007,7 @@ def set_source_tenants( _param = self._set_source_tenants_serialize( tenant_id=tenant_id, - tenant_code_body=tenant_code_body, + admin_tenant_code_body=admin_tenant_code_body, limit=limit, _request_auth=_request_auth, _content_type=_content_type, @@ -2966,7 +3016,7 @@ def set_source_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -2984,7 +3034,7 @@ def set_source_tenants( def set_source_tenants_with_http_info( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - tenant_code_body: TenantCodeBody, + admin_tenant_code_body: AdminTenantCodeBody, limit: Annotated[Optional[StrictInt], Field(description="The maximum number of source tenants to return. The maximum value is 1000. Default is 400.")] = None, _request_timeout: Union[ None, @@ -2998,15 +3048,15 @@ def set_source_tenants_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ConsolidatedAnalyticsAPISourceTenantListDTO]: + ) -> ApiResponse[AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO]: """Set a consolidated analytics tenant's source tenants Define the source tenants for a consolidated analytics tenant. After you create a CA tenant, you must define a list of its source tenants. The source tenants are the tenants whose data is aggregated in the CA tenant. You can also use this API to replace the list of source tenants for an existing CA tenant. If successful, the response returns an updated list of source tenants.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param tenant_code_body: (required) - :type tenant_code_body: TenantCodeBody + :param admin_tenant_code_body: (required) + :type admin_tenant_code_body: AdminTenantCodeBody :param limit: The maximum number of source tenants to return. The maximum value is 1000. Default is 400. :type limit: int :param _request_timeout: timeout setting for this request. If one @@ -3033,7 +3083,7 @@ def set_source_tenants_with_http_info( _param = self._set_source_tenants_serialize( tenant_id=tenant_id, - tenant_code_body=tenant_code_body, + admin_tenant_code_body=admin_tenant_code_body, limit=limit, _request_auth=_request_auth, _content_type=_content_type, @@ -3042,7 +3092,7 @@ def set_source_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -3060,7 +3110,7 @@ def set_source_tenants_with_http_info( def set_source_tenants_without_preload_content( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.")], - tenant_code_body: TenantCodeBody, + admin_tenant_code_body: AdminTenantCodeBody, limit: Annotated[Optional[StrictInt], Field(description="The maximum number of source tenants to return. The maximum value is 1000. Default is 400.")] = None, _request_timeout: Union[ None, @@ -3081,8 +3131,8 @@ def set_source_tenants_without_preload_content( :param tenant_id: The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code. (required) :type tenant_id: str - :param tenant_code_body: (required) - :type tenant_code_body: TenantCodeBody + :param admin_tenant_code_body: (required) + :type admin_tenant_code_body: AdminTenantCodeBody :param limit: The maximum number of source tenants to return. The maximum value is 1000. Default is 400. :type limit: int :param _request_timeout: timeout setting for this request. If one @@ -3109,7 +3159,7 @@ def set_source_tenants_without_preload_content( _param = self._set_source_tenants_serialize( tenant_id=tenant_id, - tenant_code_body=tenant_code_body, + admin_tenant_code_body=admin_tenant_code_body, limit=limit, _request_auth=_request_auth, _content_type=_content_type, @@ -3118,7 +3168,7 @@ def set_source_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -3130,7 +3180,7 @@ def set_source_tenants_without_preload_content( def _set_source_tenants_serialize( self, tenant_id, - tenant_code_body, + admin_tenant_code_body, limit, _request_auth, _content_type, @@ -3161,8 +3211,8 @@ def _set_source_tenants_serialize( # process the header parameters # process the form parameters # process the body parameter - if tenant_code_body is not None: - _body_params = tenant_code_body + if admin_tenant_code_body is not None: + _body_params = admin_tenant_code_body # set the HTTP header `Accept` @@ -3189,6 +3239,11 @@ def _set_source_tenants_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( diff --git a/src/visier_api_administration/visier_api_administration/api/email_domains_api.py b/src/visier_api_administration/visier_api_administration/api/email_domains_api.py index 9e29cd1980..b1f84b7128 100644 --- a/src/visier_api_administration/visier_api_administration/api/email_domains_api.py +++ b/src/visier_api_administration/visier_api_administration/api/email_domains_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,7 +23,7 @@ from pydantic import Field, StrictBool, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_administration.models.email_domains_dto import EmailDomainsDTO +from visier_api_administration.models.admin_transfers_email_domains_dto import AdminTransfersEmailDomainsDTO import visier_api_administration.models @@ -56,7 +56,7 @@ def add_allowed_email_domains( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> EmailDomainsDTO: + ) -> AdminTransfersEmailDomainsDTO: """Add domains to the list of allowed domains Add email address domains to the allowed domains list.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -97,7 +97,7 @@ def add_allowed_email_domains( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EmailDomainsDTO", + '200': "AdminTransfersEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, @@ -128,7 +128,7 @@ def add_allowed_email_domains_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[EmailDomainsDTO]: + ) -> ApiResponse[AdminTransfersEmailDomainsDTO]: """Add domains to the list of allowed domains Add email address domains to the allowed domains list.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -169,7 +169,7 @@ def add_allowed_email_domains_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EmailDomainsDTO", + '200': "AdminTransfersEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, @@ -241,7 +241,7 @@ def add_allowed_email_domains_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EmailDomainsDTO", + '200': "AdminTransfersEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, @@ -309,6 +309,11 @@ def _add_allowed_email_domains_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -346,7 +351,7 @@ def delete_allowed_email_domains( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> EmailDomainsDTO: + ) -> AdminTransfersEmailDomainsDTO: """Remove domains from the list of allowed domains Delete email address domains from the allowed domains list.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -387,7 +392,7 @@ def delete_allowed_email_domains( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EmailDomainsDTO", + '200': "AdminTransfersEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, @@ -418,7 +423,7 @@ def delete_allowed_email_domains_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[EmailDomainsDTO]: + ) -> ApiResponse[AdminTransfersEmailDomainsDTO]: """Remove domains from the list of allowed domains Delete email address domains from the allowed domains list.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -459,7 +464,7 @@ def delete_allowed_email_domains_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EmailDomainsDTO", + '200': "AdminTransfersEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, @@ -531,7 +536,7 @@ def delete_allowed_email_domains_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EmailDomainsDTO", + '200': "AdminTransfersEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, @@ -599,6 +604,11 @@ def _delete_allowed_email_domains_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -634,7 +644,7 @@ def list_allowed_email_domains( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> EmailDomainsDTO: + ) -> AdminTransfersEmailDomainsDTO: """Retrieve a list of allowed email domains Retrieve the full list of allowed email domains.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -669,7 +679,7 @@ def list_allowed_email_domains( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EmailDomainsDTO", + '200': "AdminTransfersEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, @@ -698,7 +708,7 @@ def list_allowed_email_domains_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[EmailDomainsDTO]: + ) -> ApiResponse[AdminTransfersEmailDomainsDTO]: """Retrieve a list of allowed email domains Retrieve the full list of allowed email domains.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -733,7 +743,7 @@ def list_allowed_email_domains_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EmailDomainsDTO", + '200': "AdminTransfersEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, @@ -797,7 +807,7 @@ def list_allowed_email_domains_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EmailDomainsDTO", + '200': "AdminTransfersEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, @@ -844,6 +854,11 @@ def _list_allowed_email_domains_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( diff --git a/src/visier_api_administration/visier_api_administration/api/encryption_keys_api.py b/src/visier_api_administration/visier_api_administration/api/encryption_keys_api.py index 24c59f2b1e..0c37d0224c 100644 --- a/src/visier_api_administration/visier_api_administration/api/encryption_keys_api.py +++ b/src/visier_api_administration/visier_api_administration/api/encryption_keys_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -22,10 +22,10 @@ from pydantic import Field, StrictStr from typing_extensions import Annotated -from visier_api_administration.models.generate_key_request_dto import GenerateKeyRequestDTO -from visier_api_administration.models.key_name import KeyName -from visier_api_administration.models.tenant_encryption_key_dto import TenantEncryptionKeyDTO -from visier_api_administration.models.tenant_encryption_key_details_dto import TenantEncryptionKeyDetailsDTO +from visier_api_administration.models.admin_key_name import AdminKeyName +from visier_api_administration.models.designer_crypto_generate_key_request_dto import DesignerCryptoGenerateKeyRequestDTO +from visier_api_administration.models.designer_crypto_tenant_encryption_key_dto import DesignerCryptoTenantEncryptionKeyDTO +from visier_api_administration.models.designer_crypto_tenant_encryption_key_details_dto import DesignerCryptoTenantEncryptionKeyDetailsDTO import visier_api_administration.models @@ -57,7 +57,7 @@ def delete_encryption_keys( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> KeyName: + ) -> AdminKeyName: """Delete an encryption key Delete a specific encryption key.
**Note:** These APIs are in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -95,7 +95,7 @@ def delete_encryption_keys( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "KeyName", + '200': "AdminKeyName", } response_data = self.api_client.call_api( *_param, @@ -125,7 +125,7 @@ def delete_encryption_keys_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[KeyName]: + ) -> ApiResponse[AdminKeyName]: """Delete an encryption key Delete a specific encryption key.
**Note:** These APIs are in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -163,7 +163,7 @@ def delete_encryption_keys_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "KeyName", + '200': "AdminKeyName", } response_data = self.api_client.call_api( *_param, @@ -231,7 +231,7 @@ def delete_encryption_keys_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "KeyName", + '200': "AdminKeyName", } response_data = self.api_client.call_api( *_param, @@ -281,6 +281,11 @@ def _delete_encryption_keys_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -304,7 +309,7 @@ def _delete_encryption_keys_serialize( @validate_call def generate_encryption_keys( self, - generate_key_request_dto: GenerateKeyRequestDTO, + designer_crypto_generate_key_request_dto: DesignerCryptoGenerateKeyRequestDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -317,13 +322,13 @@ def generate_encryption_keys( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantEncryptionKeyDTO: + ) -> DesignerCryptoTenantEncryptionKeyDTO: """Generate an encryption key Create an encryption key using a specific algorithm. The algorithm must be one of `HmacSHA224`, `HmacSHA256`, `HmacSHA384`, or `HmacSHA512`. In the request body, set the algorithm, give the key a display name and, optionally, set the UTC expiration date for the key pair in ISO-8601 format. Must be between 2 and 10 years. Default is 2 years. The maximum number of encryption keys per tenant is 5.
**Note:** These APIs are in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param generate_key_request_dto: (required) - :type generate_key_request_dto: GenerateKeyRequestDTO + :param designer_crypto_generate_key_request_dto: (required) + :type designer_crypto_generate_key_request_dto: DesignerCryptoGenerateKeyRequestDTO :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -347,7 +352,7 @@ def generate_encryption_keys( """ # noqa: E501 _param = self._generate_encryption_keys_serialize( - generate_key_request_dto=generate_key_request_dto, + designer_crypto_generate_key_request_dto=designer_crypto_generate_key_request_dto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -355,7 +360,7 @@ def generate_encryption_keys( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantEncryptionKeyDTO", + '200': "DesignerCryptoTenantEncryptionKeyDTO", } response_data = self.api_client.call_api( *_param, @@ -372,7 +377,7 @@ def generate_encryption_keys( @validate_call def generate_encryption_keys_with_http_info( self, - generate_key_request_dto: GenerateKeyRequestDTO, + designer_crypto_generate_key_request_dto: DesignerCryptoGenerateKeyRequestDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -385,13 +390,13 @@ def generate_encryption_keys_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantEncryptionKeyDTO]: + ) -> ApiResponse[DesignerCryptoTenantEncryptionKeyDTO]: """Generate an encryption key Create an encryption key using a specific algorithm. The algorithm must be one of `HmacSHA224`, `HmacSHA256`, `HmacSHA384`, or `HmacSHA512`. In the request body, set the algorithm, give the key a display name and, optionally, set the UTC expiration date for the key pair in ISO-8601 format. Must be between 2 and 10 years. Default is 2 years. The maximum number of encryption keys per tenant is 5.
**Note:** These APIs are in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param generate_key_request_dto: (required) - :type generate_key_request_dto: GenerateKeyRequestDTO + :param designer_crypto_generate_key_request_dto: (required) + :type designer_crypto_generate_key_request_dto: DesignerCryptoGenerateKeyRequestDTO :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -415,7 +420,7 @@ def generate_encryption_keys_with_http_info( """ # noqa: E501 _param = self._generate_encryption_keys_serialize( - generate_key_request_dto=generate_key_request_dto, + designer_crypto_generate_key_request_dto=designer_crypto_generate_key_request_dto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -423,7 +428,7 @@ def generate_encryption_keys_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantEncryptionKeyDTO", + '200': "DesignerCryptoTenantEncryptionKeyDTO", } response_data = self.api_client.call_api( *_param, @@ -440,7 +445,7 @@ def generate_encryption_keys_with_http_info( @validate_call def generate_encryption_keys_without_preload_content( self, - generate_key_request_dto: GenerateKeyRequestDTO, + designer_crypto_generate_key_request_dto: DesignerCryptoGenerateKeyRequestDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -458,8 +463,8 @@ def generate_encryption_keys_without_preload_content( Create an encryption key using a specific algorithm. The algorithm must be one of `HmacSHA224`, `HmacSHA256`, `HmacSHA384`, or `HmacSHA512`. In the request body, set the algorithm, give the key a display name and, optionally, set the UTC expiration date for the key pair in ISO-8601 format. Must be between 2 and 10 years. Default is 2 years. The maximum number of encryption keys per tenant is 5.
**Note:** These APIs are in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param generate_key_request_dto: (required) - :type generate_key_request_dto: GenerateKeyRequestDTO + :param designer_crypto_generate_key_request_dto: (required) + :type designer_crypto_generate_key_request_dto: DesignerCryptoGenerateKeyRequestDTO :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -483,7 +488,7 @@ def generate_encryption_keys_without_preload_content( """ # noqa: E501 _param = self._generate_encryption_keys_serialize( - generate_key_request_dto=generate_key_request_dto, + designer_crypto_generate_key_request_dto=designer_crypto_generate_key_request_dto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -491,7 +496,7 @@ def generate_encryption_keys_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantEncryptionKeyDTO", + '200': "DesignerCryptoTenantEncryptionKeyDTO", } response_data = self.api_client.call_api( *_param, @@ -502,7 +507,7 @@ def generate_encryption_keys_without_preload_content( def _generate_encryption_keys_serialize( self, - generate_key_request_dto, + designer_crypto_generate_key_request_dto, _request_auth, _content_type, _headers, @@ -526,8 +531,8 @@ def _generate_encryption_keys_serialize( # process the header parameters # process the form parameters # process the body parameter - if generate_key_request_dto is not None: - _body_params = generate_key_request_dto + if designer_crypto_generate_key_request_dto is not None: + _body_params = designer_crypto_generate_key_request_dto # set the HTTP header `Accept` @@ -554,6 +559,11 @@ def _generate_encryption_keys_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -589,7 +599,7 @@ def list_all_encryption_keys_metadata( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantEncryptionKeyDetailsDTO: + ) -> DesignerCryptoTenantEncryptionKeyDetailsDTO: """Retrieve a list of all encryption keys Retrieve a list of all encryption keys. The response returns information about each key, including the key name, algorithm, user who generated the key, the generation date, and expiration date.
**Note:** These APIs are in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -624,7 +634,7 @@ def list_all_encryption_keys_metadata( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantEncryptionKeyDetailsDTO", + '200': "DesignerCryptoTenantEncryptionKeyDetailsDTO", } response_data = self.api_client.call_api( *_param, @@ -653,7 +663,7 @@ def list_all_encryption_keys_metadata_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantEncryptionKeyDetailsDTO]: + ) -> ApiResponse[DesignerCryptoTenantEncryptionKeyDetailsDTO]: """Retrieve a list of all encryption keys Retrieve a list of all encryption keys. The response returns information about each key, including the key name, algorithm, user who generated the key, the generation date, and expiration date.
**Note:** These APIs are in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -688,7 +698,7 @@ def list_all_encryption_keys_metadata_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantEncryptionKeyDetailsDTO", + '200': "DesignerCryptoTenantEncryptionKeyDetailsDTO", } response_data = self.api_client.call_api( *_param, @@ -752,7 +762,7 @@ def list_all_encryption_keys_metadata_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantEncryptionKeyDetailsDTO", + '200': "DesignerCryptoTenantEncryptionKeyDetailsDTO", } response_data = self.api_client.call_api( *_param, @@ -799,6 +809,11 @@ def _list_all_encryption_keys_metadata_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( diff --git a/src/visier_api_administration/visier_api_administration/api/permissions_api.py b/src/visier_api_administration/visier_api_administration/api/permissions_api.py index 209795fb5f..7720fecc91 100644 --- a/src/visier_api_administration/visier_api_administration/api/permissions_api.py +++ b/src/visier_api_administration/visier_api_administration/api/permissions_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,20 +23,20 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr from typing import List, Optional from typing_extensions import Annotated -from visier_api_administration.models.bulk_data_access_set_response_dto import BulkDataAccessSetResponseDTO -from visier_api_administration.models.capability_dto import CapabilityDTO -from visier_api_administration.models.content_package_dto import ContentPackageDTO -from visier_api_administration.models.create_data_access_set_request_dto import CreateDataAccessSetRequestDTO -from visier_api_administration.models.data_access_set_dto import DataAccessSetDTO -from visier_api_administration.models.delete_permissions_request_dto import DeletePermissionsRequestDTO -from visier_api_administration.models.get_capabilities_api_response_dto import GetCapabilitiesAPIResponseDTO -from visier_api_administration.models.get_content_packages_api_response_dto import GetContentPackagesAPIResponseDTO -from visier_api_administration.models.get_data_access_sets_api_response_dto import GetDataAccessSetsAPIResponseDTO -from visier_api_administration.models.get_data_security_objects_api_response_dto import GetDataSecurityObjectsAPIResponseDTO -from visier_api_administration.models.get_permissions_api_response_dto import GetPermissionsAPIResponseDTO -from visier_api_administration.models.permission_bulk_operation_response_dto import PermissionBulkOperationResponseDTO -from visier_api_administration.models.permission_dto import PermissionDTO -from visier_api_administration.models.permissions_list_dto import PermissionsListDTO +from visier_api_administration.models.admin_permissions_list_dto import AdminPermissionsListDTO +from visier_api_administration.models.servicing_publicapi_transfers_bulk_data_access_set_response_dto import ServicingPublicapiTransfersBulkDataAccessSetResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_capability_dto import ServicingPublicapiTransfersCapabilityDTO +from visier_api_administration.models.servicing_publicapi_transfers_content_package_dto import ServicingPublicapiTransfersContentPackageDTO +from visier_api_administration.models.servicing_publicapi_transfers_create_data_access_set_request_dto import ServicingPublicapiTransfersCreateDataAccessSetRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_dto import ServicingPublicapiTransfersDataAccessSetDTO +from visier_api_administration.models.servicing_publicapi_transfers_delete_permissions_request_dto import ServicingPublicapiTransfersDeletePermissionsRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_capabilities_api_response_dto import ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_content_packages_api_response_dto import ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_data_access_sets_api_response_dto import ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_data_security_objects_api_response_dto import ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_permissions_api_response_dto import ServicingPublicapiTransfersGetPermissionsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_bulk_operation_response_dto import ServicingPublicapiTransfersPermissionBulkOperationResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_dto import ServicingPublicapiTransfersPermissionDTO import visier_api_administration.models @@ -55,7 +55,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_data_access_sets( self, - create_data_access_set_request_dto: CreateDataAccessSetRequestDTO, + servicing_publicapi_transfers_create_data_access_set_request_dto: ServicingPublicapiTransfersCreateDataAccessSetRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -71,13 +71,13 @@ def create_data_access_sets( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BulkDataAccessSetResponseDTO: + ) -> ServicingPublicapiTransfersBulkDataAccessSetResponseDTO: """Create shareable data access sets Create shareable data access sets. Shareable data access sets let you reuse common data access configurations in multiple permissions. To specify the project in which to create shareable data access sets, provide a project UUID in the `ProjectID` request header. - :param create_data_access_set_request_dto: (required) - :type create_data_access_set_request_dto: CreateDataAccessSetRequestDTO + :param servicing_publicapi_transfers_create_data_access_set_request_dto: (required) + :type servicing_publicapi_transfers_create_data_access_set_request_dto: ServicingPublicapiTransfersCreateDataAccessSetRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -107,7 +107,7 @@ def create_data_access_sets( """ # noqa: E501 _param = self._create_data_access_sets_serialize( - create_data_access_set_request_dto=create_data_access_set_request_dto, + servicing_publicapi_transfers_create_data_access_set_request_dto=servicing_publicapi_transfers_create_data_access_set_request_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -118,7 +118,7 @@ def create_data_access_sets( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BulkDataAccessSetResponseDTO", + '200': "ServicingPublicapiTransfersBulkDataAccessSetResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -135,7 +135,7 @@ def create_data_access_sets( @validate_call def create_data_access_sets_with_http_info( self, - create_data_access_set_request_dto: CreateDataAccessSetRequestDTO, + servicing_publicapi_transfers_create_data_access_set_request_dto: ServicingPublicapiTransfersCreateDataAccessSetRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -151,13 +151,13 @@ def create_data_access_sets_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BulkDataAccessSetResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersBulkDataAccessSetResponseDTO]: """Create shareable data access sets Create shareable data access sets. Shareable data access sets let you reuse common data access configurations in multiple permissions. To specify the project in which to create shareable data access sets, provide a project UUID in the `ProjectID` request header. - :param create_data_access_set_request_dto: (required) - :type create_data_access_set_request_dto: CreateDataAccessSetRequestDTO + :param servicing_publicapi_transfers_create_data_access_set_request_dto: (required) + :type servicing_publicapi_transfers_create_data_access_set_request_dto: ServicingPublicapiTransfersCreateDataAccessSetRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -187,7 +187,7 @@ def create_data_access_sets_with_http_info( """ # noqa: E501 _param = self._create_data_access_sets_serialize( - create_data_access_set_request_dto=create_data_access_set_request_dto, + servicing_publicapi_transfers_create_data_access_set_request_dto=servicing_publicapi_transfers_create_data_access_set_request_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -198,7 +198,7 @@ def create_data_access_sets_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BulkDataAccessSetResponseDTO", + '200': "ServicingPublicapiTransfersBulkDataAccessSetResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -215,7 +215,7 @@ def create_data_access_sets_with_http_info( @validate_call def create_data_access_sets_without_preload_content( self, - create_data_access_set_request_dto: CreateDataAccessSetRequestDTO, + servicing_publicapi_transfers_create_data_access_set_request_dto: ServicingPublicapiTransfersCreateDataAccessSetRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -236,8 +236,8 @@ def create_data_access_sets_without_preload_content( Create shareable data access sets. Shareable data access sets let you reuse common data access configurations in multiple permissions. To specify the project in which to create shareable data access sets, provide a project UUID in the `ProjectID` request header. - :param create_data_access_set_request_dto: (required) - :type create_data_access_set_request_dto: CreateDataAccessSetRequestDTO + :param servicing_publicapi_transfers_create_data_access_set_request_dto: (required) + :type servicing_publicapi_transfers_create_data_access_set_request_dto: ServicingPublicapiTransfersCreateDataAccessSetRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -267,7 +267,7 @@ def create_data_access_sets_without_preload_content( """ # noqa: E501 _param = self._create_data_access_sets_serialize( - create_data_access_set_request_dto=create_data_access_set_request_dto, + servicing_publicapi_transfers_create_data_access_set_request_dto=servicing_publicapi_transfers_create_data_access_set_request_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -278,7 +278,7 @@ def create_data_access_sets_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BulkDataAccessSetResponseDTO", + '200': "ServicingPublicapiTransfersBulkDataAccessSetResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -289,7 +289,7 @@ def create_data_access_sets_without_preload_content( def _create_data_access_sets_serialize( self, - create_data_access_set_request_dto, + servicing_publicapi_transfers_create_data_access_set_request_dto, target_tenant_id, project_id, non_versioned, @@ -322,8 +322,8 @@ def _create_data_access_sets_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if create_data_access_set_request_dto is not None: - _body_params = create_data_access_set_request_dto + if servicing_publicapi_transfers_create_data_access_set_request_dto is not None: + _body_params = servicing_publicapi_transfers_create_data_access_set_request_dto # set the HTTP header `Accept` @@ -350,6 +350,11 @@ def _create_data_access_sets_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -373,7 +378,7 @@ def _create_data_access_sets_serialize( @validate_call def create_permissions( self, - permissions_list_dto: PermissionsListDTO, + admin_permissions_list_dto: AdminPermissionsListDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to create permissions in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, @@ -390,13 +395,13 @@ def create_permissions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PermissionBulkOperationResponseDTO: + ) -> ServicingPublicapiTransfersPermissionBulkOperationResponseDTO: """Create permissions Create new permissions. Administrating tenant users can specify the tenant in which to add these permissions. To specify the project in which to create permissions, provide a project UUID in the `ProjectID` request header. - :param permissions_list_dto: (required) - :type permissions_list_dto: PermissionsListDTO + :param admin_permissions_list_dto: (required) + :type admin_permissions_list_dto: AdminPermissionsListDTO :param tenant_code: Specify the tenant to create permissions in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -428,7 +433,7 @@ def create_permissions( """ # noqa: E501 _param = self._create_permissions_serialize( - permissions_list_dto=permissions_list_dto, + admin_permissions_list_dto=admin_permissions_list_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, project_id=project_id, @@ -440,7 +445,7 @@ def create_permissions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionBulkOperationResponseDTO", + '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -457,7 +462,7 @@ def create_permissions( @validate_call def create_permissions_with_http_info( self, - permissions_list_dto: PermissionsListDTO, + admin_permissions_list_dto: AdminPermissionsListDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to create permissions in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, @@ -474,13 +479,13 @@ def create_permissions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PermissionBulkOperationResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersPermissionBulkOperationResponseDTO]: """Create permissions Create new permissions. Administrating tenant users can specify the tenant in which to add these permissions. To specify the project in which to create permissions, provide a project UUID in the `ProjectID` request header. - :param permissions_list_dto: (required) - :type permissions_list_dto: PermissionsListDTO + :param admin_permissions_list_dto: (required) + :type admin_permissions_list_dto: AdminPermissionsListDTO :param tenant_code: Specify the tenant to create permissions in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -512,7 +517,7 @@ def create_permissions_with_http_info( """ # noqa: E501 _param = self._create_permissions_serialize( - permissions_list_dto=permissions_list_dto, + admin_permissions_list_dto=admin_permissions_list_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, project_id=project_id, @@ -524,7 +529,7 @@ def create_permissions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionBulkOperationResponseDTO", + '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -541,7 +546,7 @@ def create_permissions_with_http_info( @validate_call def create_permissions_without_preload_content( self, - permissions_list_dto: PermissionsListDTO, + admin_permissions_list_dto: AdminPermissionsListDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to create permissions in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, @@ -563,8 +568,8 @@ def create_permissions_without_preload_content( Create new permissions. Administrating tenant users can specify the tenant in which to add these permissions. To specify the project in which to create permissions, provide a project UUID in the `ProjectID` request header. - :param permissions_list_dto: (required) - :type permissions_list_dto: PermissionsListDTO + :param admin_permissions_list_dto: (required) + :type admin_permissions_list_dto: AdminPermissionsListDTO :param tenant_code: Specify the tenant to create permissions in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -596,7 +601,7 @@ def create_permissions_without_preload_content( """ # noqa: E501 _param = self._create_permissions_serialize( - permissions_list_dto=permissions_list_dto, + admin_permissions_list_dto=admin_permissions_list_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, project_id=project_id, @@ -608,7 +613,7 @@ def create_permissions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionBulkOperationResponseDTO", + '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -619,7 +624,7 @@ def create_permissions_without_preload_content( def _create_permissions_serialize( self, - permissions_list_dto, + admin_permissions_list_dto, tenant_code, target_tenant_id, project_id, @@ -657,8 +662,8 @@ def _create_permissions_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if permissions_list_dto is not None: - _body_params = permissions_list_dto + if admin_permissions_list_dto is not None: + _body_params = admin_permissions_list_dto # set the HTTP header `Accept` @@ -685,6 +690,11 @@ def _create_permissions_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -708,7 +718,7 @@ def _create_permissions_serialize( @validate_call def delete_permissions( self, - delete_permissions_request_dto: DeletePermissionsRequestDTO, + servicing_publicapi_transfers_delete_permissions_request_dto: ServicingPublicapiTransfersDeletePermissionsRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to delete permissions from.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, @@ -724,13 +734,13 @@ def delete_permissions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PermissionBulkOperationResponseDTO: + ) -> ServicingPublicapiTransfersPermissionBulkOperationResponseDTO: """Delete permissions Delete existing permissions. To specify the project in which to delete permissions, provide a project UUID in the `ProjectID` request header. - :param delete_permissions_request_dto: (required) - :type delete_permissions_request_dto: DeletePermissionsRequestDTO + :param servicing_publicapi_transfers_delete_permissions_request_dto: (required) + :type servicing_publicapi_transfers_delete_permissions_request_dto: ServicingPublicapiTransfersDeletePermissionsRequestDTO :param tenant_code: Specify the tenant to delete permissions from. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -760,7 +770,7 @@ def delete_permissions( """ # noqa: E501 _param = self._delete_permissions_serialize( - delete_permissions_request_dto=delete_permissions_request_dto, + servicing_publicapi_transfers_delete_permissions_request_dto=servicing_publicapi_transfers_delete_permissions_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, project_id=project_id, @@ -771,7 +781,7 @@ def delete_permissions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionBulkOperationResponseDTO", + '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -788,7 +798,7 @@ def delete_permissions( @validate_call def delete_permissions_with_http_info( self, - delete_permissions_request_dto: DeletePermissionsRequestDTO, + servicing_publicapi_transfers_delete_permissions_request_dto: ServicingPublicapiTransfersDeletePermissionsRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to delete permissions from.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, @@ -804,13 +814,13 @@ def delete_permissions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PermissionBulkOperationResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersPermissionBulkOperationResponseDTO]: """Delete permissions Delete existing permissions. To specify the project in which to delete permissions, provide a project UUID in the `ProjectID` request header. - :param delete_permissions_request_dto: (required) - :type delete_permissions_request_dto: DeletePermissionsRequestDTO + :param servicing_publicapi_transfers_delete_permissions_request_dto: (required) + :type servicing_publicapi_transfers_delete_permissions_request_dto: ServicingPublicapiTransfersDeletePermissionsRequestDTO :param tenant_code: Specify the tenant to delete permissions from. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -840,7 +850,7 @@ def delete_permissions_with_http_info( """ # noqa: E501 _param = self._delete_permissions_serialize( - delete_permissions_request_dto=delete_permissions_request_dto, + servicing_publicapi_transfers_delete_permissions_request_dto=servicing_publicapi_transfers_delete_permissions_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, project_id=project_id, @@ -851,7 +861,7 @@ def delete_permissions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionBulkOperationResponseDTO", + '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -868,7 +878,7 @@ def delete_permissions_with_http_info( @validate_call def delete_permissions_without_preload_content( self, - delete_permissions_request_dto: DeletePermissionsRequestDTO, + servicing_publicapi_transfers_delete_permissions_request_dto: ServicingPublicapiTransfersDeletePermissionsRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to delete permissions from.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, @@ -889,8 +899,8 @@ def delete_permissions_without_preload_content( Delete existing permissions. To specify the project in which to delete permissions, provide a project UUID in the `ProjectID` request header. - :param delete_permissions_request_dto: (required) - :type delete_permissions_request_dto: DeletePermissionsRequestDTO + :param servicing_publicapi_transfers_delete_permissions_request_dto: (required) + :type servicing_publicapi_transfers_delete_permissions_request_dto: ServicingPublicapiTransfersDeletePermissionsRequestDTO :param tenant_code: Specify the tenant to delete permissions from. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -920,7 +930,7 @@ def delete_permissions_without_preload_content( """ # noqa: E501 _param = self._delete_permissions_serialize( - delete_permissions_request_dto=delete_permissions_request_dto, + servicing_publicapi_transfers_delete_permissions_request_dto=servicing_publicapi_transfers_delete_permissions_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, project_id=project_id, @@ -931,7 +941,7 @@ def delete_permissions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionBulkOperationResponseDTO", + '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -942,7 +952,7 @@ def delete_permissions_without_preload_content( def _delete_permissions_serialize( self, - delete_permissions_request_dto, + servicing_publicapi_transfers_delete_permissions_request_dto, tenant_code, target_tenant_id, project_id, @@ -977,8 +987,8 @@ def _delete_permissions_serialize( _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter - if delete_permissions_request_dto is not None: - _body_params = delete_permissions_request_dto + if servicing_publicapi_transfers_delete_permissions_request_dto is not None: + _body_params = servicing_publicapi_transfers_delete_permissions_request_dto # set the HTTP header `Accept` @@ -1005,6 +1015,11 @@ def _delete_permissions_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1043,7 +1058,7 @@ def get_capabilities( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetCapabilitiesAPIResponseDTO: + ) -> ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO: """Retrieve a list of all permission capabilities Retrieve all the permission capabilities in your tenant. You can use the returned capabilities in other API calls when creating or updating permissions to assign the capability to the permission. To specify the project in which to retrieve the permission capabilities, provide a project UUID in the `ProjectID` request header. @@ -1087,7 +1102,7 @@ def get_capabilities( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCapabilitiesAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1119,7 +1134,7 @@ def get_capabilities_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetCapabilitiesAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO]: """Retrieve a list of all permission capabilities Retrieve all the permission capabilities in your tenant. You can use the returned capabilities in other API calls when creating or updating permissions to assign the capability to the permission. To specify the project in which to retrieve the permission capabilities, provide a project UUID in the `ProjectID` request header. @@ -1163,7 +1178,7 @@ def get_capabilities_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCapabilitiesAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1239,7 +1254,7 @@ def get_capabilities_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCapabilitiesAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1297,6 +1312,11 @@ def _get_capabilities_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1336,7 +1356,7 @@ def get_capability( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CapabilityDTO: + ) -> ServicingPublicapiTransfersCapabilityDTO: """Retrieve a permission capability's details Retrieve the details of a specific capability. To specify the project in which to retrieve the permission capability, provide a project UUID in the `ProjectID` request header. @@ -1383,7 +1403,7 @@ def get_capability( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CapabilityDTO", + '200': "ServicingPublicapiTransfersCapabilityDTO", } response_data = self.api_client.call_api( *_param, @@ -1416,7 +1436,7 @@ def get_capability_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CapabilityDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersCapabilityDTO]: """Retrieve a permission capability's details Retrieve the details of a specific capability. To specify the project in which to retrieve the permission capability, provide a project UUID in the `ProjectID` request header. @@ -1463,7 +1483,7 @@ def get_capability_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CapabilityDTO", + '200': "ServicingPublicapiTransfersCapabilityDTO", } response_data = self.api_client.call_api( *_param, @@ -1543,7 +1563,7 @@ def get_capability_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CapabilityDTO", + '200': "ServicingPublicapiTransfersCapabilityDTO", } response_data = self.api_client.call_api( *_param, @@ -1604,6 +1624,11 @@ def _get_capability_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1643,7 +1668,7 @@ def get_content_package( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ContentPackageDTO: + ) -> ServicingPublicapiTransfersContentPackageDTO: """Retrieve a content package's details Retrieve the details of a specific content package. To specify the project in which to retrieve a content package, provide a project UUID in the `ProjectID` request header. @@ -1690,7 +1715,7 @@ def get_content_package( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContentPackageDTO", + '200': "ServicingPublicapiTransfersContentPackageDTO", } response_data = self.api_client.call_api( *_param, @@ -1723,7 +1748,7 @@ def get_content_package_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ContentPackageDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersContentPackageDTO]: """Retrieve a content package's details Retrieve the details of a specific content package. To specify the project in which to retrieve a content package, provide a project UUID in the `ProjectID` request header. @@ -1770,7 +1795,7 @@ def get_content_package_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContentPackageDTO", + '200': "ServicingPublicapiTransfersContentPackageDTO", } response_data = self.api_client.call_api( *_param, @@ -1850,7 +1875,7 @@ def get_content_package_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContentPackageDTO", + '200': "ServicingPublicapiTransfersContentPackageDTO", } response_data = self.api_client.call_api( *_param, @@ -1911,6 +1936,11 @@ def _get_content_package_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1950,7 +1980,7 @@ def get_content_packages( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetContentPackagesAPIResponseDTO: + ) -> ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO: """Retrieve a list of all content packages Retrieve the list of available content packages. You can use the returned content packages in other API calls when creating or updating permissions to add the content package to the permission. To specify the project in which to retrieve the available content packages, provide a project UUID in the `ProjectID` request header. @@ -1997,7 +2027,7 @@ def get_content_packages( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetContentPackagesAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2030,7 +2060,7 @@ def get_content_packages_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetContentPackagesAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO]: """Retrieve a list of all content packages Retrieve the list of available content packages. You can use the returned content packages in other API calls when creating or updating permissions to add the content package to the permission. To specify the project in which to retrieve the available content packages, provide a project UUID in the `ProjectID` request header. @@ -2077,7 +2107,7 @@ def get_content_packages_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetContentPackagesAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2157,7 +2187,7 @@ def get_content_packages_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetContentPackagesAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2220,6 +2250,11 @@ def _get_content_packages_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -2259,7 +2294,7 @@ def get_data_access_set( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataAccessSetDTO: + ) -> ServicingPublicapiTransfersDataAccessSetDTO: """Retrieve a data access set's details Retrieve the details of a specific shareable data access set. You must know the ID of the data access set to retrieve its details. To retrieve data access set IDs, see `GET v1/admin/data-access-sets`. To specify the project in which to retrieve the shareable data access set, provide a project UUID in the `ProjectID` request header. @@ -2306,7 +2341,7 @@ def get_data_access_set( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataAccessSetDTO", + '200': "ServicingPublicapiTransfersDataAccessSetDTO", } response_data = self.api_client.call_api( *_param, @@ -2339,7 +2374,7 @@ def get_data_access_set_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DataAccessSetDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersDataAccessSetDTO]: """Retrieve a data access set's details Retrieve the details of a specific shareable data access set. You must know the ID of the data access set to retrieve its details. To retrieve data access set IDs, see `GET v1/admin/data-access-sets`. To specify the project in which to retrieve the shareable data access set, provide a project UUID in the `ProjectID` request header. @@ -2386,7 +2421,7 @@ def get_data_access_set_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataAccessSetDTO", + '200': "ServicingPublicapiTransfersDataAccessSetDTO", } response_data = self.api_client.call_api( *_param, @@ -2466,7 +2501,7 @@ def get_data_access_set_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataAccessSetDTO", + '200': "ServicingPublicapiTransfersDataAccessSetDTO", } response_data = self.api_client.call_api( *_param, @@ -2525,6 +2560,11 @@ def _get_data_access_set_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -2566,7 +2606,7 @@ def get_data_access_sets( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetDataAccessSetsAPIResponseDTO: + ) -> ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO: """Retrieve a list of all data access sets Retrieve a list of all shareable data access sets. Data access sets define the level of access that users have to properties and property values for the analytic object in a permission. Data access sets also grant access to properties of subjects that are referenced by the analytic object in the permission. You can assign data access sets to a permission when creating or updating permissions. To specify the project in which to retrieve the shareable data access sets, provide a project UUID in the `ProjectID` request header. **Note:** If the number of valid data access sets exceeds the default limit of 100, the response status code is 206. To retrieve more than 100 data access sets, set `limit` to a higher number. @@ -2619,7 +2659,7 @@ def get_data_access_sets( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDataAccessSetsAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2654,7 +2694,7 @@ def get_data_access_sets_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetDataAccessSetsAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO]: """Retrieve a list of all data access sets Retrieve a list of all shareable data access sets. Data access sets define the level of access that users have to properties and property values for the analytic object in a permission. Data access sets also grant access to properties of subjects that are referenced by the analytic object in the permission. You can assign data access sets to a permission when creating or updating permissions. To specify the project in which to retrieve the shareable data access sets, provide a project UUID in the `ProjectID` request header. **Note:** If the number of valid data access sets exceeds the default limit of 100, the response status code is 206. To retrieve more than 100 data access sets, set `limit` to a higher number. @@ -2707,7 +2747,7 @@ def get_data_access_sets_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDataAccessSetsAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2795,7 +2835,7 @@ def get_data_access_sets_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDataAccessSetsAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2867,6 +2907,11 @@ def _get_data_access_sets_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -2907,7 +2952,7 @@ def get_data_security_objects( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetDataSecurityObjectsAPIResponseDTO: + ) -> ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO: """Retrieve a list of data security objects Retrieve the list of available data security objects. Data security objects are analytic objects and their related objects that are available to define permissions' data security profiles. To specify the project in which to retrieve the available data security objects, provide a project UUID in the `ProjectID` request header. @@ -2957,7 +3002,7 @@ def get_data_security_objects( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDataSecurityObjectsAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2991,7 +3036,7 @@ def get_data_security_objects_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetDataSecurityObjectsAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO]: """Retrieve a list of data security objects Retrieve the list of available data security objects. Data security objects are analytic objects and their related objects that are available to define permissions' data security profiles. To specify the project in which to retrieve the available data security objects, provide a project UUID in the `ProjectID` request header. @@ -3041,7 +3086,7 @@ def get_data_security_objects_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDataSecurityObjectsAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3125,7 +3170,7 @@ def get_data_security_objects_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDataSecurityObjectsAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3194,6 +3239,11 @@ def _get_data_security_objects_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -3235,7 +3285,7 @@ def get_permission( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PermissionDTO: + ) -> ServicingPublicapiTransfersPermissionDTO: """Retrieve a permission's details Retrieve the details for a specified permission. To specify the project in which to retrieve the permission, provide a project UUID in the `ProjectID` request header. @@ -3288,7 +3338,7 @@ def get_permission( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionDTO", + '200': "ServicingPublicapiTransfersPermissionDTO", } response_data = self.api_client.call_api( *_param, @@ -3323,7 +3373,7 @@ def get_permission_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PermissionDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersPermissionDTO]: """Retrieve a permission's details Retrieve the details for a specified permission. To specify the project in which to retrieve the permission, provide a project UUID in the `ProjectID` request header. @@ -3376,7 +3426,7 @@ def get_permission_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionDTO", + '200': "ServicingPublicapiTransfersPermissionDTO", } response_data = self.api_client.call_api( *_param, @@ -3464,7 +3514,7 @@ def get_permission_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionDTO", + '200': "ServicingPublicapiTransfersPermissionDTO", } response_data = self.api_client.call_api( *_param, @@ -3533,6 +3583,11 @@ def _get_permission_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -3574,7 +3629,7 @@ def get_permissions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetPermissionsAPIResponseDTO: + ) -> ServicingPublicapiTransfersGetPermissionsAPIResponseDTO: """Retrieve a list of all permissions Retrieve the full list of user permissions in your tenant. To specify the project in which to retrieve permissions, provide a project UUID in the `ProjectID` request header. @@ -3627,7 +3682,7 @@ def get_permissions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPermissionsAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetPermissionsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3662,7 +3717,7 @@ def get_permissions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetPermissionsAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersGetPermissionsAPIResponseDTO]: """Retrieve a list of all permissions Retrieve the full list of user permissions in your tenant. To specify the project in which to retrieve permissions, provide a project UUID in the `ProjectID` request header. @@ -3715,7 +3770,7 @@ def get_permissions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPermissionsAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetPermissionsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3803,7 +3858,7 @@ def get_permissions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPermissionsAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetPermissionsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3874,6 +3929,11 @@ def _get_permissions_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -3897,7 +3957,7 @@ def _get_permissions_serialize( @validate_call def update_permissions( self, - permissions_list_dto: PermissionsListDTO, + admin_permissions_list_dto: AdminPermissionsListDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to update permissions in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, @@ -3914,13 +3974,13 @@ def update_permissions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PermissionBulkOperationResponseDTO: + ) -> ServicingPublicapiTransfersPermissionBulkOperationResponseDTO: """Update permissions Update existing permissions. To specify the project in which to update permissions, provide a project UUID in the `ProjectID` request header. - :param permissions_list_dto: (required) - :type permissions_list_dto: PermissionsListDTO + :param admin_permissions_list_dto: (required) + :type admin_permissions_list_dto: AdminPermissionsListDTO :param tenant_code: Specify the tenant to update permissions in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -3952,7 +4012,7 @@ def update_permissions( """ # noqa: E501 _param = self._update_permissions_serialize( - permissions_list_dto=permissions_list_dto, + admin_permissions_list_dto=admin_permissions_list_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, project_id=project_id, @@ -3964,7 +4024,7 @@ def update_permissions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionBulkOperationResponseDTO", + '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3981,7 +4041,7 @@ def update_permissions( @validate_call def update_permissions_with_http_info( self, - permissions_list_dto: PermissionsListDTO, + admin_permissions_list_dto: AdminPermissionsListDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to update permissions in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, @@ -3998,13 +4058,13 @@ def update_permissions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PermissionBulkOperationResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersPermissionBulkOperationResponseDTO]: """Update permissions Update existing permissions. To specify the project in which to update permissions, provide a project UUID in the `ProjectID` request header. - :param permissions_list_dto: (required) - :type permissions_list_dto: PermissionsListDTO + :param admin_permissions_list_dto: (required) + :type admin_permissions_list_dto: AdminPermissionsListDTO :param tenant_code: Specify the tenant to update permissions in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -4036,7 +4096,7 @@ def update_permissions_with_http_info( """ # noqa: E501 _param = self._update_permissions_serialize( - permissions_list_dto=permissions_list_dto, + admin_permissions_list_dto=admin_permissions_list_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, project_id=project_id, @@ -4048,7 +4108,7 @@ def update_permissions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionBulkOperationResponseDTO", + '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4065,7 +4125,7 @@ def update_permissions_with_http_info( @validate_call def update_permissions_without_preload_content( self, - permissions_list_dto: PermissionsListDTO, + admin_permissions_list_dto: AdminPermissionsListDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to update permissions in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, @@ -4087,8 +4147,8 @@ def update_permissions_without_preload_content( Update existing permissions. To specify the project in which to update permissions, provide a project UUID in the `ProjectID` request header. - :param permissions_list_dto: (required) - :type permissions_list_dto: PermissionsListDTO + :param admin_permissions_list_dto: (required) + :type admin_permissions_list_dto: AdminPermissionsListDTO :param tenant_code: Specify the tenant to update permissions in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -4120,7 +4180,7 @@ def update_permissions_without_preload_content( """ # noqa: E501 _param = self._update_permissions_serialize( - permissions_list_dto=permissions_list_dto, + admin_permissions_list_dto=admin_permissions_list_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, project_id=project_id, @@ -4132,7 +4192,7 @@ def update_permissions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionBulkOperationResponseDTO", + '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4143,7 +4203,7 @@ def update_permissions_without_preload_content( def _update_permissions_serialize( self, - permissions_list_dto, + admin_permissions_list_dto, tenant_code, target_tenant_id, project_id, @@ -4181,8 +4241,8 @@ def _update_permissions_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if permissions_list_dto is not None: - _body_params = permissions_list_dto + if admin_permissions_list_dto is not None: + _body_params = admin_permissions_list_dto # set the HTTP header `Accept` @@ -4209,6 +4269,11 @@ def _update_permissions_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( diff --git a/src/visier_api_administration/visier_api_administration/api/production_versions_api.py b/src/visier_api_administration/visier_api_administration/api/production_versions_api.py index 5364e04258..0265ac4d79 100644 --- a/src/visier_api_administration/visier_api_administration/api/production_versions_api.py +++ b/src/visier_api_administration/visier_api_administration/api/production_versions_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,11 +23,11 @@ from pydantic import Field, StrictInt, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_administration.models.get_production_versions_api_response_dto import GetProductionVersionsAPIResponseDTO -from visier_api_administration.models.production_version_api_operation_request_dto import ProductionVersionAPIOperationRequestDTO -from visier_api_administration.models.production_version_api_operation_response_dto import ProductionVersionAPIOperationResponseDTO -from visier_api_administration.models.production_versions_api_operation_request_dto import ProductionVersionsAPIOperationRequestDTO -from visier_api_administration.models.production_versions_api_operation_response_dto import ProductionVersionsAPIOperationResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_production_versions_api_response_dto import ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_production_version_api_operation_request_dto import ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_production_version_api_operation_response_dto import ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_production_versions_api_operation_request_dto import ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_production_versions_api_operation_response_dto import ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO import visier_api_administration.models @@ -61,7 +61,7 @@ def get_production_versions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetProductionVersionsAPIResponseDTO: + ) -> ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO: """Retrieve a list of all production versions Retrieve a list of all projects that were published to production, ordered from latest published to earliest published.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -105,7 +105,7 @@ def get_production_versions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetProductionVersionsAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -137,7 +137,7 @@ def get_production_versions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetProductionVersionsAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO]: """Retrieve a list of all production versions Retrieve a list of all projects that were published to production, ordered from latest published to earliest published.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -181,7 +181,7 @@ def get_production_versions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetProductionVersionsAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -257,7 +257,7 @@ def get_production_versions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetProductionVersionsAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -317,6 +317,11 @@ def _get_production_versions_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -341,7 +346,7 @@ def _get_production_versions_serialize( def post_production_version( self, production_version_id: Annotated[StrictStr, Field(description="The production version to use as the target of the operation; for example, the production version to roll back to for the `rollBackTo` operation.")], - production_version_api_operation_request_dto: ProductionVersionAPIOperationRequestDTO, + servicing_publicapi_transfers_production_version_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -355,15 +360,15 @@ def post_production_version( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProductionVersionAPIOperationResponseDTO: + ) -> ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO: """Perform an operation on a production version Perform operations on a specific production version. The following operations are supported: * `rollBackTo`: Create a project that rolls back the production version to the specified version. The project contains uncommitted changes that reverse the published versions after the target production version.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param production_version_id: The production version to use as the target of the operation; for example, the production version to roll back to for the `rollBackTo` operation. (required) :type production_version_id: str - :param production_version_api_operation_request_dto: (required) - :type production_version_api_operation_request_dto: ProductionVersionAPIOperationRequestDTO + :param servicing_publicapi_transfers_production_version_api_operation_request_dto: (required) + :type servicing_publicapi_transfers_production_version_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -390,7 +395,7 @@ def post_production_version( _param = self._post_production_version_serialize( production_version_id=production_version_id, - production_version_api_operation_request_dto=production_version_api_operation_request_dto, + servicing_publicapi_transfers_production_version_api_operation_request_dto=servicing_publicapi_transfers_production_version_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -399,7 +404,7 @@ def post_production_version( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProductionVersionAPIOperationResponseDTO", + '200': "ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -417,7 +422,7 @@ def post_production_version( def post_production_version_with_http_info( self, production_version_id: Annotated[StrictStr, Field(description="The production version to use as the target of the operation; for example, the production version to roll back to for the `rollBackTo` operation.")], - production_version_api_operation_request_dto: ProductionVersionAPIOperationRequestDTO, + servicing_publicapi_transfers_production_version_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -431,15 +436,15 @@ def post_production_version_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProductionVersionAPIOperationResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO]: """Perform an operation on a production version Perform operations on a specific production version. The following operations are supported: * `rollBackTo`: Create a project that rolls back the production version to the specified version. The project contains uncommitted changes that reverse the published versions after the target production version.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param production_version_id: The production version to use as the target of the operation; for example, the production version to roll back to for the `rollBackTo` operation. (required) :type production_version_id: str - :param production_version_api_operation_request_dto: (required) - :type production_version_api_operation_request_dto: ProductionVersionAPIOperationRequestDTO + :param servicing_publicapi_transfers_production_version_api_operation_request_dto: (required) + :type servicing_publicapi_transfers_production_version_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -466,7 +471,7 @@ def post_production_version_with_http_info( _param = self._post_production_version_serialize( production_version_id=production_version_id, - production_version_api_operation_request_dto=production_version_api_operation_request_dto, + servicing_publicapi_transfers_production_version_api_operation_request_dto=servicing_publicapi_transfers_production_version_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -475,7 +480,7 @@ def post_production_version_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProductionVersionAPIOperationResponseDTO", + '200': "ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -493,7 +498,7 @@ def post_production_version_with_http_info( def post_production_version_without_preload_content( self, production_version_id: Annotated[StrictStr, Field(description="The production version to use as the target of the operation; for example, the production version to roll back to for the `rollBackTo` operation.")], - production_version_api_operation_request_dto: ProductionVersionAPIOperationRequestDTO, + servicing_publicapi_transfers_production_version_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -514,8 +519,8 @@ def post_production_version_without_preload_content( :param production_version_id: The production version to use as the target of the operation; for example, the production version to roll back to for the `rollBackTo` operation. (required) :type production_version_id: str - :param production_version_api_operation_request_dto: (required) - :type production_version_api_operation_request_dto: ProductionVersionAPIOperationRequestDTO + :param servicing_publicapi_transfers_production_version_api_operation_request_dto: (required) + :type servicing_publicapi_transfers_production_version_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -542,7 +547,7 @@ def post_production_version_without_preload_content( _param = self._post_production_version_serialize( production_version_id=production_version_id, - production_version_api_operation_request_dto=production_version_api_operation_request_dto, + servicing_publicapi_transfers_production_version_api_operation_request_dto=servicing_publicapi_transfers_production_version_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -551,7 +556,7 @@ def post_production_version_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProductionVersionAPIOperationResponseDTO", + '200': "ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -563,7 +568,7 @@ def post_production_version_without_preload_content( def _post_production_version_serialize( self, production_version_id, - production_version_api_operation_request_dto, + servicing_publicapi_transfers_production_version_api_operation_request_dto, target_tenant_id, _request_auth, _content_type, @@ -592,8 +597,8 @@ def _post_production_version_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if production_version_api_operation_request_dto is not None: - _body_params = production_version_api_operation_request_dto + if servicing_publicapi_transfers_production_version_api_operation_request_dto is not None: + _body_params = servicing_publicapi_transfers_production_version_api_operation_request_dto # set the HTTP header `Accept` @@ -620,6 +625,11 @@ def _post_production_version_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -643,7 +653,7 @@ def _post_production_version_serialize( @validate_call def post_production_versions( self, - production_versions_api_operation_request_dto: ProductionVersionsAPIOperationRequestDTO, + servicing_publicapi_transfers_production_versions_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -657,13 +667,13 @@ def post_production_versions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProductionVersionsAPIOperationResponseDTO: + ) -> ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO: """Perform an operation on production versions Perform operations on production versions, such as exporting a production project's committed changes. If exporting, please specify `Accept: application/zip, application/json` in the header. The API returns exported changes in ZIP format and error messages in JSON format. If your request returns an error and it doesn't accept `application/json`, you will receive an HTTP 406 status code instead of the appropriate error response body.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param production_versions_api_operation_request_dto: (required) - :type production_versions_api_operation_request_dto: ProductionVersionsAPIOperationRequestDTO + :param servicing_publicapi_transfers_production_versions_api_operation_request_dto: (required) + :type servicing_publicapi_transfers_production_versions_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -689,7 +699,7 @@ def post_production_versions( """ # noqa: E501 _param = self._post_production_versions_serialize( - production_versions_api_operation_request_dto=production_versions_api_operation_request_dto, + servicing_publicapi_transfers_production_versions_api_operation_request_dto=servicing_publicapi_transfers_production_versions_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -698,7 +708,7 @@ def post_production_versions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProductionVersionsAPIOperationResponseDTO", + '200': "ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -715,7 +725,7 @@ def post_production_versions( @validate_call def post_production_versions_with_http_info( self, - production_versions_api_operation_request_dto: ProductionVersionsAPIOperationRequestDTO, + servicing_publicapi_transfers_production_versions_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -729,13 +739,13 @@ def post_production_versions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProductionVersionsAPIOperationResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO]: """Perform an operation on production versions Perform operations on production versions, such as exporting a production project's committed changes. If exporting, please specify `Accept: application/zip, application/json` in the header. The API returns exported changes in ZIP format and error messages in JSON format. If your request returns an error and it doesn't accept `application/json`, you will receive an HTTP 406 status code instead of the appropriate error response body.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param production_versions_api_operation_request_dto: (required) - :type production_versions_api_operation_request_dto: ProductionVersionsAPIOperationRequestDTO + :param servicing_publicapi_transfers_production_versions_api_operation_request_dto: (required) + :type servicing_publicapi_transfers_production_versions_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -761,7 +771,7 @@ def post_production_versions_with_http_info( """ # noqa: E501 _param = self._post_production_versions_serialize( - production_versions_api_operation_request_dto=production_versions_api_operation_request_dto, + servicing_publicapi_transfers_production_versions_api_operation_request_dto=servicing_publicapi_transfers_production_versions_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -770,7 +780,7 @@ def post_production_versions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProductionVersionsAPIOperationResponseDTO", + '200': "ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -787,7 +797,7 @@ def post_production_versions_with_http_info( @validate_call def post_production_versions_without_preload_content( self, - production_versions_api_operation_request_dto: ProductionVersionsAPIOperationRequestDTO, + servicing_publicapi_transfers_production_versions_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -806,8 +816,8 @@ def post_production_versions_without_preload_content( Perform operations on production versions, such as exporting a production project's committed changes. If exporting, please specify `Accept: application/zip, application/json` in the header. The API returns exported changes in ZIP format and error messages in JSON format. If your request returns an error and it doesn't accept `application/json`, you will receive an HTTP 406 status code instead of the appropriate error response body.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param production_versions_api_operation_request_dto: (required) - :type production_versions_api_operation_request_dto: ProductionVersionsAPIOperationRequestDTO + :param servicing_publicapi_transfers_production_versions_api_operation_request_dto: (required) + :type servicing_publicapi_transfers_production_versions_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -833,7 +843,7 @@ def post_production_versions_without_preload_content( """ # noqa: E501 _param = self._post_production_versions_serialize( - production_versions_api_operation_request_dto=production_versions_api_operation_request_dto, + servicing_publicapi_transfers_production_versions_api_operation_request_dto=servicing_publicapi_transfers_production_versions_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -842,7 +852,7 @@ def post_production_versions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProductionVersionsAPIOperationResponseDTO", + '200': "ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -853,7 +863,7 @@ def post_production_versions_without_preload_content( def _post_production_versions_serialize( self, - production_versions_api_operation_request_dto, + servicing_publicapi_transfers_production_versions_api_operation_request_dto, target_tenant_id, _request_auth, _content_type, @@ -880,8 +890,8 @@ def _post_production_versions_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if production_versions_api_operation_request_dto is not None: - _body_params = production_versions_api_operation_request_dto + if servicing_publicapi_transfers_production_versions_api_operation_request_dto is not None: + _body_params = servicing_publicapi_transfers_production_versions_api_operation_request_dto # set the HTTP header `Accept` @@ -908,6 +918,11 @@ def _post_production_versions_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( diff --git a/src/visier_api_administration/visier_api_administration/api/profiles_api.py b/src/visier_api_administration/visier_api_administration/api/profiles_api.py index 9a63f30544..475122228d 100644 --- a/src/visier_api_administration/visier_api_administration/api/profiles_api.py +++ b/src/visier_api_administration/visier_api_administration/api/profiles_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,18 +23,18 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_administration.models.accessible_tenant_profile_assignment_request_dto import AccessibleTenantProfileAssignmentRequestDTO -from visier_api_administration.models.accessible_tenant_profile_assignment_response_dto import AccessibleTenantProfileAssignmentResponseDTO -from visier_api_administration.models.accessible_tenant_profile_revoke_request_dto import AccessibleTenantProfileRevokeRequestDTO -from visier_api_administration.models.accessible_tenant_profile_revoke_response_dto import AccessibleTenantProfileRevokeResponseDTO -from visier_api_administration.models.all_profile_assigned_for_accessible_tenant_dto import AllProfileAssignedForAccessibleTenantDTO -from visier_api_administration.models.all_profile_assigned_for_local_tenant_dto import AllProfileAssignedForLocalTenantDTO -from visier_api_administration.models.local_tenant_profile_assignment_request_dto import LocalTenantProfileAssignmentRequestDTO -from visier_api_administration.models.local_tenant_profile_assignment_response_dto import LocalTenantProfileAssignmentResponseDTO -from visier_api_administration.models.local_tenant_profile_revoke_request_dto import LocalTenantProfileRevokeRequestDTO -from visier_api_administration.models.local_tenant_profile_revoke_response_dto import LocalTenantProfileRevokeResponseDTO -from visier_api_administration.models.profile_get_api_response_dto import ProfileGetAPIResponseDTO -from visier_api_administration.models.profiles_get_api_response_dto import ProfilesGetAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto import ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_assignment_response_dto import ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto import ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_revoke_response_dto import ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_all_profile_assigned_for_accessible_tenant_dto import ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_all_profile_assigned_for_local_tenant_dto import ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto import ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_assignment_response_dto import ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto import ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_revoke_response_dto import ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_profile_get_api_response_dto import ServicingPublicapiTransfersProfileGetAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_profiles_get_api_response_dto import ServicingPublicapiTransfersProfilesGetAPIResponseDTO import visier_api_administration.models @@ -54,7 +54,7 @@ def __init__(self, api_client=None) -> None: def assign_analytic_profile( self, profile_id: Annotated[StrictStr, Field(description="The ID of the profile to assign.")], - accessible_tenant_profile_assignment_request_dto: AccessibleTenantProfileAssignmentRequestDTO, + servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -67,15 +67,15 @@ def assign_analytic_profile( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AccessibleTenantProfileAssignmentResponseDTO: + ) -> ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO: """Assign an analytic tenant profile to administrating tenant users Assign an analytic tenant profile to a list of administrating tenant users for a list of analytic tenants. **Note:** - Administrating tenants only. - You can revoke a profile from a user with this request by updating the validityEndTime to be \"less than\" the current time (that is, in the past). :param profile_id: The ID of the profile to assign. (required) :type profile_id: str - :param accessible_tenant_profile_assignment_request_dto: (required) - :type accessible_tenant_profile_assignment_request_dto: AccessibleTenantProfileAssignmentRequestDTO + :param servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: (required) + :type servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -100,7 +100,7 @@ def assign_analytic_profile( _param = self._assign_analytic_profile_serialize( profile_id=profile_id, - accessible_tenant_profile_assignment_request_dto=accessible_tenant_profile_assignment_request_dto, + servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto=servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -108,7 +108,7 @@ def assign_analytic_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AccessibleTenantProfileAssignmentResponseDTO", + '200': "ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -126,7 +126,7 @@ def assign_analytic_profile( def assign_analytic_profile_with_http_info( self, profile_id: Annotated[StrictStr, Field(description="The ID of the profile to assign.")], - accessible_tenant_profile_assignment_request_dto: AccessibleTenantProfileAssignmentRequestDTO, + servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -139,15 +139,15 @@ def assign_analytic_profile_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AccessibleTenantProfileAssignmentResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO]: """Assign an analytic tenant profile to administrating tenant users Assign an analytic tenant profile to a list of administrating tenant users for a list of analytic tenants. **Note:** - Administrating tenants only. - You can revoke a profile from a user with this request by updating the validityEndTime to be \"less than\" the current time (that is, in the past). :param profile_id: The ID of the profile to assign. (required) :type profile_id: str - :param accessible_tenant_profile_assignment_request_dto: (required) - :type accessible_tenant_profile_assignment_request_dto: AccessibleTenantProfileAssignmentRequestDTO + :param servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: (required) + :type servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -172,7 +172,7 @@ def assign_analytic_profile_with_http_info( _param = self._assign_analytic_profile_serialize( profile_id=profile_id, - accessible_tenant_profile_assignment_request_dto=accessible_tenant_profile_assignment_request_dto, + servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto=servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -180,7 +180,7 @@ def assign_analytic_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AccessibleTenantProfileAssignmentResponseDTO", + '200': "ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -198,7 +198,7 @@ def assign_analytic_profile_with_http_info( def assign_analytic_profile_without_preload_content( self, profile_id: Annotated[StrictStr, Field(description="The ID of the profile to assign.")], - accessible_tenant_profile_assignment_request_dto: AccessibleTenantProfileAssignmentRequestDTO, + servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -218,8 +218,8 @@ def assign_analytic_profile_without_preload_content( :param profile_id: The ID of the profile to assign. (required) :type profile_id: str - :param accessible_tenant_profile_assignment_request_dto: (required) - :type accessible_tenant_profile_assignment_request_dto: AccessibleTenantProfileAssignmentRequestDTO + :param servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: (required) + :type servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -244,7 +244,7 @@ def assign_analytic_profile_without_preload_content( _param = self._assign_analytic_profile_serialize( profile_id=profile_id, - accessible_tenant_profile_assignment_request_dto=accessible_tenant_profile_assignment_request_dto, + servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto=servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -252,7 +252,7 @@ def assign_analytic_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AccessibleTenantProfileAssignmentResponseDTO", + '200': "ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -264,7 +264,7 @@ def assign_analytic_profile_without_preload_content( def _assign_analytic_profile_serialize( self, profile_id, - accessible_tenant_profile_assignment_request_dto, + servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto, _request_auth, _content_type, _headers, @@ -290,8 +290,8 @@ def _assign_analytic_profile_serialize( # process the header parameters # process the form parameters # process the body parameter - if accessible_tenant_profile_assignment_request_dto is not None: - _body_params = accessible_tenant_profile_assignment_request_dto + if servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto is not None: + _body_params = servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto # set the HTTP header `Accept` @@ -318,6 +318,11 @@ def _assign_analytic_profile_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -342,7 +347,7 @@ def _assign_analytic_profile_serialize( def assign_profile( self, profile_id: Annotated[StrictStr, Field(description="The ID of the profile to assign to a list of users.")], - local_tenant_profile_assignment_request_dto: LocalTenantProfileAssignmentRequestDTO, + servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -356,15 +361,15 @@ def assign_profile( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> LocalTenantProfileAssignmentResponseDTO: + ) -> ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO: """Assign a profile to a list of users Assign a profile to a list of users. For administrating tenants, this assigns an administrating tenant profile to a list of users. :param profile_id: The ID of the profile to assign to a list of users. (required) :type profile_id: str - :param local_tenant_profile_assignment_request_dto: (required) - :type local_tenant_profile_assignment_request_dto: LocalTenantProfileAssignmentRequestDTO + :param servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: (required) + :type servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -391,7 +396,7 @@ def assign_profile( _param = self._assign_profile_serialize( profile_id=profile_id, - local_tenant_profile_assignment_request_dto=local_tenant_profile_assignment_request_dto, + servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto=servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -400,7 +405,7 @@ def assign_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LocalTenantProfileAssignmentResponseDTO", + '200': "ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -418,7 +423,7 @@ def assign_profile( def assign_profile_with_http_info( self, profile_id: Annotated[StrictStr, Field(description="The ID of the profile to assign to a list of users.")], - local_tenant_profile_assignment_request_dto: LocalTenantProfileAssignmentRequestDTO, + servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -432,15 +437,15 @@ def assign_profile_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[LocalTenantProfileAssignmentResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO]: """Assign a profile to a list of users Assign a profile to a list of users. For administrating tenants, this assigns an administrating tenant profile to a list of users. :param profile_id: The ID of the profile to assign to a list of users. (required) :type profile_id: str - :param local_tenant_profile_assignment_request_dto: (required) - :type local_tenant_profile_assignment_request_dto: LocalTenantProfileAssignmentRequestDTO + :param servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: (required) + :type servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -467,7 +472,7 @@ def assign_profile_with_http_info( _param = self._assign_profile_serialize( profile_id=profile_id, - local_tenant_profile_assignment_request_dto=local_tenant_profile_assignment_request_dto, + servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto=servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -476,7 +481,7 @@ def assign_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LocalTenantProfileAssignmentResponseDTO", + '200': "ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -494,7 +499,7 @@ def assign_profile_with_http_info( def assign_profile_without_preload_content( self, profile_id: Annotated[StrictStr, Field(description="The ID of the profile to assign to a list of users.")], - local_tenant_profile_assignment_request_dto: LocalTenantProfileAssignmentRequestDTO, + servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -515,8 +520,8 @@ def assign_profile_without_preload_content( :param profile_id: The ID of the profile to assign to a list of users. (required) :type profile_id: str - :param local_tenant_profile_assignment_request_dto: (required) - :type local_tenant_profile_assignment_request_dto: LocalTenantProfileAssignmentRequestDTO + :param servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: (required) + :type servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -543,7 +548,7 @@ def assign_profile_without_preload_content( _param = self._assign_profile_serialize( profile_id=profile_id, - local_tenant_profile_assignment_request_dto=local_tenant_profile_assignment_request_dto, + servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto=servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -552,7 +557,7 @@ def assign_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LocalTenantProfileAssignmentResponseDTO", + '200': "ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -564,7 +569,7 @@ def assign_profile_without_preload_content( def _assign_profile_serialize( self, profile_id, - local_tenant_profile_assignment_request_dto, + servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto, target_tenant_id, _request_auth, _content_type, @@ -593,8 +598,8 @@ def _assign_profile_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if local_tenant_profile_assignment_request_dto is not None: - _body_params = local_tenant_profile_assignment_request_dto + if servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto is not None: + _body_params = servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto # set the HTTP header `Accept` @@ -621,6 +626,11 @@ def _assign_profile_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -657,7 +667,7 @@ def get_all_profiles( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProfilesGetAPIResponseDTO: + ) -> ServicingPublicapiTransfersProfilesGetAPIResponseDTO: """Retrieve a list of all profiles Get a list of all available profiles. For administrating tenants, this retrieves all administrating tenant profiles. @@ -695,7 +705,7 @@ def get_all_profiles( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfilesGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersProfilesGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -725,7 +735,7 @@ def get_all_profiles_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProfilesGetAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersProfilesGetAPIResponseDTO]: """Retrieve a list of all profiles Get a list of all available profiles. For administrating tenants, this retrieves all administrating tenant profiles. @@ -763,7 +773,7 @@ def get_all_profiles_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfilesGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersProfilesGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -831,7 +841,7 @@ def get_all_profiles_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfilesGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersProfilesGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -881,6 +891,11 @@ def _get_all_profiles_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -917,7 +932,7 @@ def get_analytic_profile_detail( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProfileGetAPIResponseDTO: + ) -> ServicingPublicapiTransfersProfileGetAPIResponseDTO: """Retrieve the details of an analytic tenant profile Get the details of an analytic tenant profile. **Note:** Administrating tenants only. @@ -955,7 +970,7 @@ def get_analytic_profile_detail( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersProfileGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -985,7 +1000,7 @@ def get_analytic_profile_detail_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProfileGetAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersProfileGetAPIResponseDTO]: """Retrieve the details of an analytic tenant profile Get the details of an analytic tenant profile. **Note:** Administrating tenants only. @@ -1023,7 +1038,7 @@ def get_analytic_profile_detail_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersProfileGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1091,7 +1106,7 @@ def get_analytic_profile_detail_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersProfileGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1141,6 +1156,11 @@ def _get_analytic_profile_detail_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1176,7 +1196,7 @@ def get_analytic_profiles( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProfilesGetAPIResponseDTO: + ) -> ServicingPublicapiTransfersProfilesGetAPIResponseDTO: """Retrieve a list of analytic tenant profiles Retrieve a list of profiles available for analytic tenants. **Note:** Administrating tenants only. @@ -1211,7 +1231,7 @@ def get_analytic_profiles( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfilesGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersProfilesGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1240,7 +1260,7 @@ def get_analytic_profiles_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProfilesGetAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersProfilesGetAPIResponseDTO]: """Retrieve a list of analytic tenant profiles Retrieve a list of profiles available for analytic tenants. **Note:** Administrating tenants only. @@ -1275,7 +1295,7 @@ def get_analytic_profiles_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfilesGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersProfilesGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1339,7 +1359,7 @@ def get_analytic_profiles_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfilesGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersProfilesGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1386,6 +1406,11 @@ def _get_analytic_profiles_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1422,7 +1447,7 @@ def get_analytic_user_profile( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AllProfileAssignedForAccessibleTenantDTO: + ) -> ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO: """Retrieve an administrating tenant user's analytic tenant profiles Retrieve a specified user's assigned profiles for analytic tenants. **Note:** Administrating tenants only. @@ -1460,7 +1485,7 @@ def get_analytic_user_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AllProfileAssignedForAccessibleTenantDTO", + '200': "ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -1490,7 +1515,7 @@ def get_analytic_user_profile_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AllProfileAssignedForAccessibleTenantDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO]: """Retrieve an administrating tenant user's analytic tenant profiles Retrieve a specified user's assigned profiles for analytic tenants. **Note:** Administrating tenants only. @@ -1528,7 +1553,7 @@ def get_analytic_user_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AllProfileAssignedForAccessibleTenantDTO", + '200': "ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -1596,7 +1621,7 @@ def get_analytic_user_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AllProfileAssignedForAccessibleTenantDTO", + '200': "ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -1646,6 +1671,11 @@ def _get_analytic_user_profile_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1683,7 +1713,7 @@ def get_profile_detail( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProfileGetAPIResponseDTO: + ) -> ServicingPublicapiTransfersProfileGetAPIResponseDTO: """Retrieve the details of a profile Get the details of a specific profile. For administrating tenants, this retrieves the details of administrating tenant profiles. @@ -1724,7 +1754,7 @@ def get_profile_detail( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersProfileGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1755,7 +1785,7 @@ def get_profile_detail_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProfileGetAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersProfileGetAPIResponseDTO]: """Retrieve the details of a profile Get the details of a specific profile. For administrating tenants, this retrieves the details of administrating tenant profiles. @@ -1796,7 +1826,7 @@ def get_profile_detail_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersProfileGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1868,7 +1898,7 @@ def get_profile_detail_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersProfileGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1921,6 +1951,11 @@ def _get_profile_detail_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1958,7 +1993,7 @@ def get_user_profile( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AllProfileAssignedForLocalTenantDTO: + ) -> ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO: """Retrieve a user's profiles Retrieve a specified user's assigned profiles. For administrating tenants, this retrieves a user's administrating tenant profiles. @@ -1999,7 +2034,7 @@ def get_user_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AllProfileAssignedForLocalTenantDTO", + '200': "ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -2030,7 +2065,7 @@ def get_user_profile_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AllProfileAssignedForLocalTenantDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO]: """Retrieve a user's profiles Retrieve a specified user's assigned profiles. For administrating tenants, this retrieves a user's administrating tenant profiles. @@ -2071,7 +2106,7 @@ def get_user_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AllProfileAssignedForLocalTenantDTO", + '200': "ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -2143,7 +2178,7 @@ def get_user_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AllProfileAssignedForLocalTenantDTO", + '200': "ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -2196,6 +2231,11 @@ def _get_user_profile_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -2220,7 +2260,7 @@ def _get_user_profile_serialize( def remove_analytic_profile( self, profile_id: Annotated[StrictStr, Field(description="The ID of the profile to remove.")], - accessible_tenant_profile_revoke_request_dto: AccessibleTenantProfileRevokeRequestDTO, + servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -2234,15 +2274,15 @@ def remove_analytic_profile( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AccessibleTenantProfileRevokeResponseDTO: + ) -> ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO: """Remove an analytic tenant profile from administrating tenant users Remove an analytic tenant profile from a list of administrating tenant users for a list of analytic tenants. **Note:** Administrating tenants only. :param profile_id: The ID of the profile to remove. (required) :type profile_id: str - :param accessible_tenant_profile_revoke_request_dto: (required) - :type accessible_tenant_profile_revoke_request_dto: AccessibleTenantProfileRevokeRequestDTO + :param servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: (required) + :type servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -2269,7 +2309,7 @@ def remove_analytic_profile( _param = self._remove_analytic_profile_serialize( profile_id=profile_id, - accessible_tenant_profile_revoke_request_dto=accessible_tenant_profile_revoke_request_dto, + servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto=servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2278,7 +2318,7 @@ def remove_analytic_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AccessibleTenantProfileRevokeResponseDTO", + '200': "ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2296,7 +2336,7 @@ def remove_analytic_profile( def remove_analytic_profile_with_http_info( self, profile_id: Annotated[StrictStr, Field(description="The ID of the profile to remove.")], - accessible_tenant_profile_revoke_request_dto: AccessibleTenantProfileRevokeRequestDTO, + servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -2310,15 +2350,15 @@ def remove_analytic_profile_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AccessibleTenantProfileRevokeResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO]: """Remove an analytic tenant profile from administrating tenant users Remove an analytic tenant profile from a list of administrating tenant users for a list of analytic tenants. **Note:** Administrating tenants only. :param profile_id: The ID of the profile to remove. (required) :type profile_id: str - :param accessible_tenant_profile_revoke_request_dto: (required) - :type accessible_tenant_profile_revoke_request_dto: AccessibleTenantProfileRevokeRequestDTO + :param servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: (required) + :type servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -2345,7 +2385,7 @@ def remove_analytic_profile_with_http_info( _param = self._remove_analytic_profile_serialize( profile_id=profile_id, - accessible_tenant_profile_revoke_request_dto=accessible_tenant_profile_revoke_request_dto, + servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto=servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2354,7 +2394,7 @@ def remove_analytic_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AccessibleTenantProfileRevokeResponseDTO", + '200': "ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2372,7 +2412,7 @@ def remove_analytic_profile_with_http_info( def remove_analytic_profile_without_preload_content( self, profile_id: Annotated[StrictStr, Field(description="The ID of the profile to remove.")], - accessible_tenant_profile_revoke_request_dto: AccessibleTenantProfileRevokeRequestDTO, + servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -2393,8 +2433,8 @@ def remove_analytic_profile_without_preload_content( :param profile_id: The ID of the profile to remove. (required) :type profile_id: str - :param accessible_tenant_profile_revoke_request_dto: (required) - :type accessible_tenant_profile_revoke_request_dto: AccessibleTenantProfileRevokeRequestDTO + :param servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: (required) + :type servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -2421,7 +2461,7 @@ def remove_analytic_profile_without_preload_content( _param = self._remove_analytic_profile_serialize( profile_id=profile_id, - accessible_tenant_profile_revoke_request_dto=accessible_tenant_profile_revoke_request_dto, + servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto=servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2430,7 +2470,7 @@ def remove_analytic_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AccessibleTenantProfileRevokeResponseDTO", + '200': "ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2442,7 +2482,7 @@ def remove_analytic_profile_without_preload_content( def _remove_analytic_profile_serialize( self, profile_id, - accessible_tenant_profile_revoke_request_dto, + servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto, target_tenant_id, _request_auth, _content_type, @@ -2471,8 +2511,8 @@ def _remove_analytic_profile_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if accessible_tenant_profile_revoke_request_dto is not None: - _body_params = accessible_tenant_profile_revoke_request_dto + if servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto is not None: + _body_params = servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto # set the HTTP header `Accept` @@ -2499,6 +2539,11 @@ def _remove_analytic_profile_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -2523,7 +2568,7 @@ def _remove_analytic_profile_serialize( def remove_profile( self, profile_id: Annotated[StrictStr, Field(description="The ID of the profile to remove to a list of users.")], - local_tenant_profile_revoke_request_dto: LocalTenantProfileRevokeRequestDTO, + servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -2537,15 +2582,15 @@ def remove_profile( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> LocalTenantProfileRevokeResponseDTO: + ) -> ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO: """Remove a profile from a list of users Remove a profile from a list of users. For administrating tenants, this removes an administrating tenant profile from a list of users. :param profile_id: The ID of the profile to remove to a list of users. (required) :type profile_id: str - :param local_tenant_profile_revoke_request_dto: (required) - :type local_tenant_profile_revoke_request_dto: LocalTenantProfileRevokeRequestDTO + :param servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: (required) + :type servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -2572,7 +2617,7 @@ def remove_profile( _param = self._remove_profile_serialize( profile_id=profile_id, - local_tenant_profile_revoke_request_dto=local_tenant_profile_revoke_request_dto, + servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto=servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2581,7 +2626,7 @@ def remove_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LocalTenantProfileRevokeResponseDTO", + '200': "ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2599,7 +2644,7 @@ def remove_profile( def remove_profile_with_http_info( self, profile_id: Annotated[StrictStr, Field(description="The ID of the profile to remove to a list of users.")], - local_tenant_profile_revoke_request_dto: LocalTenantProfileRevokeRequestDTO, + servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -2613,15 +2658,15 @@ def remove_profile_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[LocalTenantProfileRevokeResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO]: """Remove a profile from a list of users Remove a profile from a list of users. For administrating tenants, this removes an administrating tenant profile from a list of users. :param profile_id: The ID of the profile to remove to a list of users. (required) :type profile_id: str - :param local_tenant_profile_revoke_request_dto: (required) - :type local_tenant_profile_revoke_request_dto: LocalTenantProfileRevokeRequestDTO + :param servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: (required) + :type servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -2648,7 +2693,7 @@ def remove_profile_with_http_info( _param = self._remove_profile_serialize( profile_id=profile_id, - local_tenant_profile_revoke_request_dto=local_tenant_profile_revoke_request_dto, + servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto=servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2657,7 +2702,7 @@ def remove_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LocalTenantProfileRevokeResponseDTO", + '200': "ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2675,7 +2720,7 @@ def remove_profile_with_http_info( def remove_profile_without_preload_content( self, profile_id: Annotated[StrictStr, Field(description="The ID of the profile to remove to a list of users.")], - local_tenant_profile_revoke_request_dto: LocalTenantProfileRevokeRequestDTO, + servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -2696,8 +2741,8 @@ def remove_profile_without_preload_content( :param profile_id: The ID of the profile to remove to a list of users. (required) :type profile_id: str - :param local_tenant_profile_revoke_request_dto: (required) - :type local_tenant_profile_revoke_request_dto: LocalTenantProfileRevokeRequestDTO + :param servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: (required) + :type servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -2724,7 +2769,7 @@ def remove_profile_without_preload_content( _param = self._remove_profile_serialize( profile_id=profile_id, - local_tenant_profile_revoke_request_dto=local_tenant_profile_revoke_request_dto, + servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto=servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2733,7 +2778,7 @@ def remove_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LocalTenantProfileRevokeResponseDTO", + '200': "ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2745,7 +2790,7 @@ def remove_profile_without_preload_content( def _remove_profile_serialize( self, profile_id, - local_tenant_profile_revoke_request_dto, + servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto, target_tenant_id, _request_auth, _content_type, @@ -2774,8 +2819,8 @@ def _remove_profile_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if local_tenant_profile_revoke_request_dto is not None: - _body_params = local_tenant_profile_revoke_request_dto + if servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto is not None: + _body_params = servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto # set the HTTP header `Accept` @@ -2802,6 +2847,11 @@ def _remove_profile_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( diff --git a/src/visier_api_administration/visier_api_administration/api/projects_api.py b/src/visier_api_administration/visier_api_administration/api/projects_api.py index 48fa7a9045..9f4530ac3b 100644 --- a/src/visier_api_administration/visier_api_administration/api/projects_api.py +++ b/src/visier_api_administration/visier_api_administration/api/projects_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,12 +23,12 @@ from pydantic import Field, StrictInt, StrictStr from typing import List, Optional from typing_extensions import Annotated -from visier_api_administration.models.get_projects_api_response_dto import GetProjectsAPIResponseDTO -from visier_api_administration.models.project_commits_api_response_dto import ProjectCommitsAPIResponseDTO -from visier_api_administration.models.project_dto import ProjectDTO -from visier_api_administration.models.project_operation_request_dto import ProjectOperationRequestDTO -from visier_api_administration.models.project_operation_response_dto import ProjectOperationResponseDTO -from visier_api_administration.models.put_project_commits_request import PutProjectCommitsRequest +from visier_api_administration.models.admin_put_project_commits_request import AdminPutProjectCommitsRequest +from visier_api_administration.models.servicing_publicapi_transfers_get_projects_api_response_dto import ServicingPublicapiTransfersGetProjectsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_project_commits_api_response_dto import ServicingPublicapiTransfersProjectCommitsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_project_dto import ServicingPublicapiTransfersProjectDTO +from visier_api_administration.models.servicing_publicapi_transfers_project_operation_request_dto import ServicingPublicapiTransfersProjectOperationRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_project_operation_response_dto import ServicingPublicapiTransfersProjectOperationResponseDTO import visier_api_administration.models @@ -47,7 +47,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_project( self, - project_dto: ProjectDTO, + servicing_publicapi_transfers_project_dto: ServicingPublicapiTransfersProjectDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -61,13 +61,13 @@ def create_project( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProjectDTO: + ) -> ServicingPublicapiTransfersProjectDTO: """Create a new draft project Create a new draft project in the tenant.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param project_dto: (required) - :type project_dto: ProjectDTO + :param servicing_publicapi_transfers_project_dto: (required) + :type servicing_publicapi_transfers_project_dto: ServicingPublicapiTransfersProjectDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -93,7 +93,7 @@ def create_project( """ # noqa: E501 _param = self._create_project_serialize( - project_dto=project_dto, + servicing_publicapi_transfers_project_dto=servicing_publicapi_transfers_project_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -102,7 +102,7 @@ def create_project( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectDTO", + '200': "ServicingPublicapiTransfersProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -119,7 +119,7 @@ def create_project( @validate_call def create_project_with_http_info( self, - project_dto: ProjectDTO, + servicing_publicapi_transfers_project_dto: ServicingPublicapiTransfersProjectDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -133,13 +133,13 @@ def create_project_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProjectDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersProjectDTO]: """Create a new draft project Create a new draft project in the tenant.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param project_dto: (required) - :type project_dto: ProjectDTO + :param servicing_publicapi_transfers_project_dto: (required) + :type servicing_publicapi_transfers_project_dto: ServicingPublicapiTransfersProjectDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -165,7 +165,7 @@ def create_project_with_http_info( """ # noqa: E501 _param = self._create_project_serialize( - project_dto=project_dto, + servicing_publicapi_transfers_project_dto=servicing_publicapi_transfers_project_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -174,7 +174,7 @@ def create_project_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectDTO", + '200': "ServicingPublicapiTransfersProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -191,7 +191,7 @@ def create_project_with_http_info( @validate_call def create_project_without_preload_content( self, - project_dto: ProjectDTO, + servicing_publicapi_transfers_project_dto: ServicingPublicapiTransfersProjectDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -210,8 +210,8 @@ def create_project_without_preload_content( Create a new draft project in the tenant.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param project_dto: (required) - :type project_dto: ProjectDTO + :param servicing_publicapi_transfers_project_dto: (required) + :type servicing_publicapi_transfers_project_dto: ServicingPublicapiTransfersProjectDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -237,7 +237,7 @@ def create_project_without_preload_content( """ # noqa: E501 _param = self._create_project_serialize( - project_dto=project_dto, + servicing_publicapi_transfers_project_dto=servicing_publicapi_transfers_project_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -246,7 +246,7 @@ def create_project_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectDTO", + '200': "ServicingPublicapiTransfersProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -257,7 +257,7 @@ def create_project_without_preload_content( def _create_project_serialize( self, - project_dto, + servicing_publicapi_transfers_project_dto, target_tenant_id, _request_auth, _content_type, @@ -284,8 +284,8 @@ def _create_project_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if project_dto is not None: - _body_params = project_dto + if servicing_publicapi_transfers_project_dto is not None: + _body_params = servicing_publicapi_transfers_project_dto # set the HTTP header `Accept` @@ -312,6 +312,11 @@ def _create_project_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -349,7 +354,7 @@ def delete_project( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProjectDTO: + ) -> ServicingPublicapiTransfersProjectDTO: """Delete a draft project Delete a draft project in the tenant. The project will first be archived if applicable.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -390,7 +395,7 @@ def delete_project( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectDTO", + '200': "ServicingPublicapiTransfersProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -421,7 +426,7 @@ def delete_project_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProjectDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersProjectDTO]: """Delete a draft project Delete a draft project in the tenant. The project will first be archived if applicable.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -462,7 +467,7 @@ def delete_project_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectDTO", + '200': "ServicingPublicapiTransfersProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -534,7 +539,7 @@ def delete_project_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectDTO", + '200': "ServicingPublicapiTransfersProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -587,6 +592,11 @@ def _delete_project_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -624,7 +634,7 @@ def get_project( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProjectDTO: + ) -> ServicingPublicapiTransfersProjectDTO: """Retrieve a draft project's information Retrieve the details of an accessible draft project. You must know the ID of the project to retrieve its details. To retrieve draft project IDs, see `GET v1beta/admin/projects`. A project is accessible if it is owned by the user or shared to the user.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -665,7 +675,7 @@ def get_project( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectDTO", + '200': "ServicingPublicapiTransfersProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -696,7 +706,7 @@ def get_project_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProjectDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersProjectDTO]: """Retrieve a draft project's information Retrieve the details of an accessible draft project. You must know the ID of the project to retrieve its details. To retrieve draft project IDs, see `GET v1beta/admin/projects`. A project is accessible if it is owned by the user or shared to the user.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -737,7 +747,7 @@ def get_project_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectDTO", + '200': "ServicingPublicapiTransfersProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -809,7 +819,7 @@ def get_project_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectDTO", + '200': "ServicingPublicapiTransfersProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -862,6 +872,11 @@ def _get_project_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -901,7 +916,7 @@ def get_project_commits( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProjectCommitsAPIResponseDTO: + ) -> ServicingPublicapiTransfersProjectCommitsAPIResponseDTO: """Retrieve a list of all committed changes in a project Retrieve the full list of all committed changes in a project.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -948,7 +963,7 @@ def get_project_commits( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectCommitsAPIResponseDTO", + '200': "ServicingPublicapiTransfersProjectCommitsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -981,7 +996,7 @@ def get_project_commits_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProjectCommitsAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersProjectCommitsAPIResponseDTO]: """Retrieve a list of all committed changes in a project Retrieve the full list of all committed changes in a project.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1028,7 +1043,7 @@ def get_project_commits_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectCommitsAPIResponseDTO", + '200': "ServicingPublicapiTransfersProjectCommitsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1108,7 +1123,7 @@ def get_project_commits_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectCommitsAPIResponseDTO", + '200': "ServicingPublicapiTransfersProjectCommitsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1171,6 +1186,11 @@ def _get_project_commits_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1209,7 +1229,7 @@ def get_projects( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetProjectsAPIResponseDTO: + ) -> ServicingPublicapiTransfersGetProjectsAPIResponseDTO: """Retrieve a list of draft projects accessible to the user Get a list of draft projects accessible to the requesting user in the tenant. A project is accessible if it is owned by the user or shared to the user.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1253,7 +1273,7 @@ def get_projects( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetProjectsAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetProjectsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1285,7 +1305,7 @@ def get_projects_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetProjectsAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersGetProjectsAPIResponseDTO]: """Retrieve a list of draft projects accessible to the user Get a list of draft projects accessible to the requesting user in the tenant. A project is accessible if it is owned by the user or shared to the user.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1329,7 +1349,7 @@ def get_projects_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetProjectsAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetProjectsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1405,7 +1425,7 @@ def get_projects_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetProjectsAPIResponseDTO", + '200': "ServicingPublicapiTransfersGetProjectsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1466,6 +1486,11 @@ def _get_projects_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1490,7 +1515,7 @@ def _get_projects_serialize( def put_project_commits( self, project_id: Annotated[StrictStr, Field(description="The unique identifier of the draft project you want to import committed changes into.")], - put_project_commits_request: PutProjectCommitsRequest, + admin_put_project_commits_request: AdminPutProjectCommitsRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1504,15 +1529,15 @@ def put_project_commits( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProjectCommitsAPIResponseDTO: + ) -> ServicingPublicapiTransfersProjectCommitsAPIResponseDTO: """Import committed changes into a project Import a ZIP file that contains a list of committed changes into a draft project. The file must be an export from `POST /v1beta/admin/production-versions`. Use this API after making changes in a development environment to copy the changes to a draft project in your production environment.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param project_id: The unique identifier of the draft project you want to import committed changes into. (required) :type project_id: str - :param put_project_commits_request: (required) - :type put_project_commits_request: PutProjectCommitsRequest + :param admin_put_project_commits_request: (required) + :type admin_put_project_commits_request: AdminPutProjectCommitsRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1539,7 +1564,7 @@ def put_project_commits( _param = self._put_project_commits_serialize( project_id=project_id, - put_project_commits_request=put_project_commits_request, + admin_put_project_commits_request=admin_put_project_commits_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1548,7 +1573,7 @@ def put_project_commits( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectCommitsAPIResponseDTO", + '200': "ServicingPublicapiTransfersProjectCommitsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1566,7 +1591,7 @@ def put_project_commits( def put_project_commits_with_http_info( self, project_id: Annotated[StrictStr, Field(description="The unique identifier of the draft project you want to import committed changes into.")], - put_project_commits_request: PutProjectCommitsRequest, + admin_put_project_commits_request: AdminPutProjectCommitsRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1580,15 +1605,15 @@ def put_project_commits_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProjectCommitsAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersProjectCommitsAPIResponseDTO]: """Import committed changes into a project Import a ZIP file that contains a list of committed changes into a draft project. The file must be an export from `POST /v1beta/admin/production-versions`. Use this API after making changes in a development environment to copy the changes to a draft project in your production environment.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param project_id: The unique identifier of the draft project you want to import committed changes into. (required) :type project_id: str - :param put_project_commits_request: (required) - :type put_project_commits_request: PutProjectCommitsRequest + :param admin_put_project_commits_request: (required) + :type admin_put_project_commits_request: AdminPutProjectCommitsRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1615,7 +1640,7 @@ def put_project_commits_with_http_info( _param = self._put_project_commits_serialize( project_id=project_id, - put_project_commits_request=put_project_commits_request, + admin_put_project_commits_request=admin_put_project_commits_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1624,7 +1649,7 @@ def put_project_commits_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectCommitsAPIResponseDTO", + '200': "ServicingPublicapiTransfersProjectCommitsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1642,7 +1667,7 @@ def put_project_commits_with_http_info( def put_project_commits_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="The unique identifier of the draft project you want to import committed changes into.")], - put_project_commits_request: PutProjectCommitsRequest, + admin_put_project_commits_request: AdminPutProjectCommitsRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1663,8 +1688,8 @@ def put_project_commits_without_preload_content( :param project_id: The unique identifier of the draft project you want to import committed changes into. (required) :type project_id: str - :param put_project_commits_request: (required) - :type put_project_commits_request: PutProjectCommitsRequest + :param admin_put_project_commits_request: (required) + :type admin_put_project_commits_request: AdminPutProjectCommitsRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1691,7 +1716,7 @@ def put_project_commits_without_preload_content( _param = self._put_project_commits_serialize( project_id=project_id, - put_project_commits_request=put_project_commits_request, + admin_put_project_commits_request=admin_put_project_commits_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1700,7 +1725,7 @@ def put_project_commits_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectCommitsAPIResponseDTO", + '200': "ServicingPublicapiTransfersProjectCommitsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1712,7 +1737,7 @@ def put_project_commits_without_preload_content( def _put_project_commits_serialize( self, project_id, - put_project_commits_request, + admin_put_project_commits_request, target_tenant_id, _request_auth, _content_type, @@ -1741,8 +1766,8 @@ def _put_project_commits_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if put_project_commits_request is not None: - _body_params = put_project_commits_request + if admin_put_project_commits_request is not None: + _body_params = admin_put_project_commits_request # set the HTTP header `Accept` @@ -1769,6 +1794,11 @@ def _put_project_commits_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1793,7 +1823,7 @@ def _put_project_commits_serialize( def run_project_operation( self, project_id: StrictStr, - project_operation_request_dto: ProjectOperationRequestDTO, + servicing_publicapi_transfers_project_operation_request_dto: ServicingPublicapiTransfersProjectOperationRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1807,15 +1837,15 @@ def run_project_operation( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProjectOperationResponseDTO: + ) -> ServicingPublicapiTransfersProjectOperationResponseDTO: """Perform an operation on a draft project Perform operations on a draft project. The following operations are supported: * `commitAndPublish`: Commits project changes and publishes the project to production.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param project_id: (required) :type project_id: str - :param project_operation_request_dto: (required) - :type project_operation_request_dto: ProjectOperationRequestDTO + :param servicing_publicapi_transfers_project_operation_request_dto: (required) + :type servicing_publicapi_transfers_project_operation_request_dto: ServicingPublicapiTransfersProjectOperationRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1842,7 +1872,7 @@ def run_project_operation( _param = self._run_project_operation_serialize( project_id=project_id, - project_operation_request_dto=project_operation_request_dto, + servicing_publicapi_transfers_project_operation_request_dto=servicing_publicapi_transfers_project_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1851,7 +1881,7 @@ def run_project_operation( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectOperationResponseDTO", + '200': "ServicingPublicapiTransfersProjectOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1869,7 +1899,7 @@ def run_project_operation( def run_project_operation_with_http_info( self, project_id: StrictStr, - project_operation_request_dto: ProjectOperationRequestDTO, + servicing_publicapi_transfers_project_operation_request_dto: ServicingPublicapiTransfersProjectOperationRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1883,15 +1913,15 @@ def run_project_operation_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProjectOperationResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersProjectOperationResponseDTO]: """Perform an operation on a draft project Perform operations on a draft project. The following operations are supported: * `commitAndPublish`: Commits project changes and publishes the project to production.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). :param project_id: (required) :type project_id: str - :param project_operation_request_dto: (required) - :type project_operation_request_dto: ProjectOperationRequestDTO + :param servicing_publicapi_transfers_project_operation_request_dto: (required) + :type servicing_publicapi_transfers_project_operation_request_dto: ServicingPublicapiTransfersProjectOperationRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1918,7 +1948,7 @@ def run_project_operation_with_http_info( _param = self._run_project_operation_serialize( project_id=project_id, - project_operation_request_dto=project_operation_request_dto, + servicing_publicapi_transfers_project_operation_request_dto=servicing_publicapi_transfers_project_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1927,7 +1957,7 @@ def run_project_operation_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectOperationResponseDTO", + '200': "ServicingPublicapiTransfersProjectOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1945,7 +1975,7 @@ def run_project_operation_with_http_info( def run_project_operation_without_preload_content( self, project_id: StrictStr, - project_operation_request_dto: ProjectOperationRequestDTO, + servicing_publicapi_transfers_project_operation_request_dto: ServicingPublicapiTransfersProjectOperationRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1966,8 +1996,8 @@ def run_project_operation_without_preload_content( :param project_id: (required) :type project_id: str - :param project_operation_request_dto: (required) - :type project_operation_request_dto: ProjectOperationRequestDTO + :param servicing_publicapi_transfers_project_operation_request_dto: (required) + :type servicing_publicapi_transfers_project_operation_request_dto: ServicingPublicapiTransfersProjectOperationRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1994,7 +2024,7 @@ def run_project_operation_without_preload_content( _param = self._run_project_operation_serialize( project_id=project_id, - project_operation_request_dto=project_operation_request_dto, + servicing_publicapi_transfers_project_operation_request_dto=servicing_publicapi_transfers_project_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2003,7 +2033,7 @@ def run_project_operation_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectOperationResponseDTO", + '200': "ServicingPublicapiTransfersProjectOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2015,7 +2045,7 @@ def run_project_operation_without_preload_content( def _run_project_operation_serialize( self, project_id, - project_operation_request_dto, + servicing_publicapi_transfers_project_operation_request_dto, target_tenant_id, _request_auth, _content_type, @@ -2044,8 +2074,8 @@ def _run_project_operation_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if project_operation_request_dto is not None: - _body_params = project_operation_request_dto + if servicing_publicapi_transfers_project_operation_request_dto is not None: + _body_params = servicing_publicapi_transfers_project_operation_request_dto # set the HTTP header `Accept` @@ -2072,6 +2102,11 @@ def _run_project_operation_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( diff --git a/src/visier_api_administration/visier_api_administration/api/sources_api.py b/src/visier_api_administration/visier_api_administration/api/sources_api.py index 80be0370f3..2ddabc038a 100644 --- a/src/visier_api_administration/visier_api_administration/api/sources_api.py +++ b/src/visier_api_administration/visier_api_administration/api/sources_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,7 +23,7 @@ from pydantic import Field, StrictBool, StrictBytes, StrictStr from typing import Any, Dict, Optional, Tuple, Union from typing_extensions import Annotated -from visier_api_administration.models.sources_api_operation_request_dto import SourcesAPIOperationRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_sources_api_operation_request_dto import ServicingPublicapiTransfersSourcesAPIOperationRequestDTO from visier_api_administration.models.sources_api_put_response_dto import SourcesAPIPutResponseDTO import visier_api_administration.models @@ -330,6 +330,11 @@ def _put_sources_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -353,7 +358,7 @@ def _put_sources_serialize( @validate_call def run_sources_operation( self, - sources_api_operation_request_dto: SourcesAPIOperationRequestDTO, + servicing_publicapi_transfers_sources_api_operation_request_dto: ServicingPublicapiTransfersSourcesAPIOperationRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -372,8 +377,8 @@ def run_sources_operation( Perform operations on all sources. The following operations are supported: * `exportSources`: Export a ZIP file that contains a list of all sources in the application.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param sources_api_operation_request_dto: (required) - :type sources_api_operation_request_dto: SourcesAPIOperationRequestDTO + :param servicing_publicapi_transfers_sources_api_operation_request_dto: (required) + :type servicing_publicapi_transfers_sources_api_operation_request_dto: ServicingPublicapiTransfersSourcesAPIOperationRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -399,7 +404,7 @@ def run_sources_operation( """ # noqa: E501 _param = self._run_sources_operation_serialize( - sources_api_operation_request_dto=sources_api_operation_request_dto, + servicing_publicapi_transfers_sources_api_operation_request_dto=servicing_publicapi_transfers_sources_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -425,7 +430,7 @@ def run_sources_operation( @validate_call def run_sources_operation_with_http_info( self, - sources_api_operation_request_dto: SourcesAPIOperationRequestDTO, + servicing_publicapi_transfers_sources_api_operation_request_dto: ServicingPublicapiTransfersSourcesAPIOperationRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -444,8 +449,8 @@ def run_sources_operation_with_http_info( Perform operations on all sources. The following operations are supported: * `exportSources`: Export a ZIP file that contains a list of all sources in the application.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param sources_api_operation_request_dto: (required) - :type sources_api_operation_request_dto: SourcesAPIOperationRequestDTO + :param servicing_publicapi_transfers_sources_api_operation_request_dto: (required) + :type servicing_publicapi_transfers_sources_api_operation_request_dto: ServicingPublicapiTransfersSourcesAPIOperationRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -471,7 +476,7 @@ def run_sources_operation_with_http_info( """ # noqa: E501 _param = self._run_sources_operation_serialize( - sources_api_operation_request_dto=sources_api_operation_request_dto, + servicing_publicapi_transfers_sources_api_operation_request_dto=servicing_publicapi_transfers_sources_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -497,7 +502,7 @@ def run_sources_operation_with_http_info( @validate_call def run_sources_operation_without_preload_content( self, - sources_api_operation_request_dto: SourcesAPIOperationRequestDTO, + servicing_publicapi_transfers_sources_api_operation_request_dto: ServicingPublicapiTransfersSourcesAPIOperationRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -516,8 +521,8 @@ def run_sources_operation_without_preload_content( Perform operations on all sources. The following operations are supported: * `exportSources`: Export a ZIP file that contains a list of all sources in the application.
**Note:** This API is in **beta**. While in beta, APIs are interface-stable and implementation may change without notice. Rarely, interface changes may occur that are not backwards-compatible and require advance communication. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param sources_api_operation_request_dto: (required) - :type sources_api_operation_request_dto: SourcesAPIOperationRequestDTO + :param servicing_publicapi_transfers_sources_api_operation_request_dto: (required) + :type servicing_publicapi_transfers_sources_api_operation_request_dto: ServicingPublicapiTransfersSourcesAPIOperationRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -543,7 +548,7 @@ def run_sources_operation_without_preload_content( """ # noqa: E501 _param = self._run_sources_operation_serialize( - sources_api_operation_request_dto=sources_api_operation_request_dto, + servicing_publicapi_transfers_sources_api_operation_request_dto=servicing_publicapi_transfers_sources_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -563,7 +568,7 @@ def run_sources_operation_without_preload_content( def _run_sources_operation_serialize( self, - sources_api_operation_request_dto, + servicing_publicapi_transfers_sources_api_operation_request_dto, target_tenant_id, _request_auth, _content_type, @@ -590,8 +595,8 @@ def _run_sources_operation_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if sources_api_operation_request_dto is not None: - _body_params = sources_api_operation_request_dto + if servicing_publicapi_transfers_sources_api_operation_request_dto is not None: + _body_params = servicing_publicapi_transfers_sources_api_operation_request_dto # set the HTTP header `Accept` @@ -618,6 +623,11 @@ def _run_sources_operation_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( diff --git a/src/visier_api_administration/visier_api_administration/api/system_status_api.py b/src/visier_api_administration/visier_api_administration/api/system_status_api.py index bc2f26b577..18c3cc8682 100644 --- a/src/visier_api_administration/visier_api_administration/api/system_status_api.py +++ b/src/visier_api_administration/visier_api_administration/api/system_status_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,7 +23,7 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_administration.models.system_status_dto import SystemStatusDTO +from visier_api_administration.models.systemstatus_publicapi_transfers_system_status_dto import SystemstatusPublicapiTransfersSystemStatusDTO import visier_api_administration.models @@ -55,7 +55,7 @@ def post_system_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SystemStatusDTO: + ) -> SystemstatusPublicapiTransfersSystemStatusDTO: """Check the overall current status of Visier's systems Check the current overall status of Visier's systems. The overall status is one of: * ``UP`` : All systems are operational. * `DOWN`: At least one system is not fully operational. @@ -93,7 +93,7 @@ def post_system_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SystemStatusDTO", + '200': "SystemstatusPublicapiTransfersSystemStatusDTO", } response_data = self.api_client.call_api( *_param, @@ -123,7 +123,7 @@ def post_system_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SystemStatusDTO]: + ) -> ApiResponse[SystemstatusPublicapiTransfersSystemStatusDTO]: """Check the overall current status of Visier's systems Check the current overall status of Visier's systems. The overall status is one of: * ``UP`` : All systems are operational. * `DOWN`: At least one system is not fully operational. @@ -161,7 +161,7 @@ def post_system_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SystemStatusDTO", + '200': "SystemstatusPublicapiTransfersSystemStatusDTO", } response_data = self.api_client.call_api( *_param, @@ -229,7 +229,7 @@ def post_system_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SystemStatusDTO", + '200': "SystemstatusPublicapiTransfersSystemStatusDTO", } response_data = self.api_client.call_api( *_param, @@ -279,6 +279,11 @@ def _post_system_status_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -315,7 +320,7 @@ def system_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SystemStatusDTO: + ) -> SystemstatusPublicapiTransfersSystemStatusDTO: """Check the overall current status of Visier's systems Check the current overall status of Visier's systems. The overall status is one of: * ``UP`` : All systems are operational. * `DOWN`: At least one system is not fully operational. @@ -353,7 +358,7 @@ def system_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SystemStatusDTO", + '200': "SystemstatusPublicapiTransfersSystemStatusDTO", } response_data = self.api_client.call_api( *_param, @@ -383,7 +388,7 @@ def system_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SystemStatusDTO]: + ) -> ApiResponse[SystemstatusPublicapiTransfersSystemStatusDTO]: """Check the overall current status of Visier's systems Check the current overall status of Visier's systems. The overall status is one of: * ``UP`` : All systems are operational. * `DOWN`: At least one system is not fully operational. @@ -421,7 +426,7 @@ def system_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SystemStatusDTO", + '200': "SystemstatusPublicapiTransfersSystemStatusDTO", } response_data = self.api_client.call_api( *_param, @@ -489,7 +494,7 @@ def system_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SystemStatusDTO", + '200': "SystemstatusPublicapiTransfersSystemStatusDTO", } response_data = self.api_client.call_api( *_param, @@ -539,6 +544,11 @@ def _system_status_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( diff --git a/src/visier_api_administration/visier_api_administration/api/tenants_v1_api.py b/src/visier_api_administration/visier_api_administration/api/tenants_v1_api.py index 7fa861f2ce..49f42ec42f 100644 --- a/src/visier_api_administration/visier_api_administration/api/tenants_v1_api.py +++ b/src/visier_api_administration/visier_api_administration/api/tenants_v1_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,14 +23,14 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_administration.models.all_tenants_status_apidto import AllTenantsStatusAPIDTO -from visier_api_administration.models.batch_tenant_provision_apidto import BatchTenantProvisionAPIDTO -from visier_api_administration.models.tenant_detail_apidto import TenantDetailAPIDTO -from visier_api_administration.models.tenant_preview_entries_summary_dto import TenantPreviewEntriesSummaryDTO -from visier_api_administration.models.tenant_preview_entries_summary_list_dto import TenantPreviewEntriesSummaryListDTO -from visier_api_administration.models.tenant_provision_apidto import TenantProvisionAPIDTO -from visier_api_administration.models.tenant_status_apidto import TenantStatusAPIDTO -from visier_api_administration.models.update_tenant_model import UpdateTenantModel +from visier_api_administration.models.admin_publicapi_transfers_all_tenants_status_apidto import AdminPublicapiTransfersAllTenantsStatusAPIDTO +from visier_api_administration.models.admin_publicapi_transfers_batch_tenant_provision_apidto import AdminPublicapiTransfersBatchTenantProvisionAPIDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_detail_apidto import AdminPublicapiTransfersTenantDetailAPIDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_provision_apidto import AdminPublicapiTransfersTenantProvisionAPIDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_status_apidto import AdminPublicapiTransfersTenantStatusAPIDTO +from visier_api_administration.models.admin_update_tenant_model import AdminUpdateTenantModel +from visier_api_administration.models.dp_automation_transfers_tenant_preview_entries_summary_dto import DpAutomationTransfersTenantPreviewEntriesSummaryDTO +from visier_api_administration.models.dp_automation_transfers_tenant_preview_entries_summary_list_dto import DpAutomationTransfersTenantPreviewEntriesSummaryListDTO import visier_api_administration.models @@ -49,7 +49,7 @@ def __init__(self, api_client=None) -> None: @validate_call def add_tenant( self, - tenant_provision_apidto: TenantProvisionAPIDTO, + admin_publicapi_transfers_tenant_provision_apidto: AdminPublicapiTransfersTenantProvisionAPIDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -62,13 +62,13 @@ def add_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantProvisionAPIDTO: + ) -> AdminPublicapiTransfersTenantProvisionAPIDTO: """Add an analytic tenant Prior to processing and loading an analytic tenant's data files, you must provision, or create, that tenant. A provisioned analytic tenant is automatically enabled. If the tenant's data is loaded after provisioning, that data is immediately accessible by their users. Create an analytic tenant and identify the applications assigned to the tenant. Visier organizes content under a set of modules. Contact Visier Support to determine the list of modules allocated to you. - :param tenant_provision_apidto: (required) - :type tenant_provision_apidto: TenantProvisionAPIDTO + :param admin_publicapi_transfers_tenant_provision_apidto: (required) + :type admin_publicapi_transfers_tenant_provision_apidto: AdminPublicapiTransfersTenantProvisionAPIDTO :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -92,7 +92,7 @@ def add_tenant( """ # noqa: E501 _param = self._add_tenant_serialize( - tenant_provision_apidto=tenant_provision_apidto, + admin_publicapi_transfers_tenant_provision_apidto=admin_publicapi_transfers_tenant_provision_apidto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100,7 +100,7 @@ def add_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantProvisionAPIDTO", + '200': "AdminPublicapiTransfersTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -117,7 +117,7 @@ def add_tenant( @validate_call def add_tenant_with_http_info( self, - tenant_provision_apidto: TenantProvisionAPIDTO, + admin_publicapi_transfers_tenant_provision_apidto: AdminPublicapiTransfersTenantProvisionAPIDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -130,13 +130,13 @@ def add_tenant_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantProvisionAPIDTO]: + ) -> ApiResponse[AdminPublicapiTransfersTenantProvisionAPIDTO]: """Add an analytic tenant Prior to processing and loading an analytic tenant's data files, you must provision, or create, that tenant. A provisioned analytic tenant is automatically enabled. If the tenant's data is loaded after provisioning, that data is immediately accessible by their users. Create an analytic tenant and identify the applications assigned to the tenant. Visier organizes content under a set of modules. Contact Visier Support to determine the list of modules allocated to you. - :param tenant_provision_apidto: (required) - :type tenant_provision_apidto: TenantProvisionAPIDTO + :param admin_publicapi_transfers_tenant_provision_apidto: (required) + :type admin_publicapi_transfers_tenant_provision_apidto: AdminPublicapiTransfersTenantProvisionAPIDTO :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -160,7 +160,7 @@ def add_tenant_with_http_info( """ # noqa: E501 _param = self._add_tenant_serialize( - tenant_provision_apidto=tenant_provision_apidto, + admin_publicapi_transfers_tenant_provision_apidto=admin_publicapi_transfers_tenant_provision_apidto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -168,7 +168,7 @@ def add_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantProvisionAPIDTO", + '200': "AdminPublicapiTransfersTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -185,7 +185,7 @@ def add_tenant_with_http_info( @validate_call def add_tenant_without_preload_content( self, - tenant_provision_apidto: TenantProvisionAPIDTO, + admin_publicapi_transfers_tenant_provision_apidto: AdminPublicapiTransfersTenantProvisionAPIDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -203,8 +203,8 @@ def add_tenant_without_preload_content( Prior to processing and loading an analytic tenant's data files, you must provision, or create, that tenant. A provisioned analytic tenant is automatically enabled. If the tenant's data is loaded after provisioning, that data is immediately accessible by their users. Create an analytic tenant and identify the applications assigned to the tenant. Visier organizes content under a set of modules. Contact Visier Support to determine the list of modules allocated to you. - :param tenant_provision_apidto: (required) - :type tenant_provision_apidto: TenantProvisionAPIDTO + :param admin_publicapi_transfers_tenant_provision_apidto: (required) + :type admin_publicapi_transfers_tenant_provision_apidto: AdminPublicapiTransfersTenantProvisionAPIDTO :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -228,7 +228,7 @@ def add_tenant_without_preload_content( """ # noqa: E501 _param = self._add_tenant_serialize( - tenant_provision_apidto=tenant_provision_apidto, + admin_publicapi_transfers_tenant_provision_apidto=admin_publicapi_transfers_tenant_provision_apidto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -236,7 +236,7 @@ def add_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantProvisionAPIDTO", + '200': "AdminPublicapiTransfersTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -247,7 +247,7 @@ def add_tenant_without_preload_content( def _add_tenant_serialize( self, - tenant_provision_apidto, + admin_publicapi_transfers_tenant_provision_apidto, _request_auth, _content_type, _headers, @@ -271,8 +271,8 @@ def _add_tenant_serialize( # process the header parameters # process the form parameters # process the body parameter - if tenant_provision_apidto is not None: - _body_params = tenant_provision_apidto + if admin_publicapi_transfers_tenant_provision_apidto is not None: + _body_params = admin_publicapi_transfers_tenant_provision_apidto # set the HTTP header `Accept` @@ -299,6 +299,11 @@ def _add_tenant_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -322,7 +327,7 @@ def _add_tenant_serialize( @validate_call def add_tenants( self, - batch_tenant_provision_apidto: BatchTenantProvisionAPIDTO, + admin_publicapi_transfers_batch_tenant_provision_apidto: AdminPublicapiTransfersBatchTenantProvisionAPIDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -335,13 +340,13 @@ def add_tenants( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BatchTenantProvisionAPIDTO: + ) -> AdminPublicapiTransfersBatchTenantProvisionAPIDTO: """Add analytic tenants Prior to processing and loading an analytic tenant's data files, you must provision, or create, that tenant. A provisioned analytic tenant is automatically enabled. If the tenant's data is loaded after provisioning, that data is immediately accessible by their users. Create one or more analytic tenants and identify the applications assigned to the tenants. The maximum number of tenants to create in one request is 200. Contact Visier Support to determine the list of modules allocated to you. - :param batch_tenant_provision_apidto: (required) - :type batch_tenant_provision_apidto: BatchTenantProvisionAPIDTO + :param admin_publicapi_transfers_batch_tenant_provision_apidto: (required) + :type admin_publicapi_transfers_batch_tenant_provision_apidto: AdminPublicapiTransfersBatchTenantProvisionAPIDTO :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -365,7 +370,7 @@ def add_tenants( """ # noqa: E501 _param = self._add_tenants_serialize( - batch_tenant_provision_apidto=batch_tenant_provision_apidto, + admin_publicapi_transfers_batch_tenant_provision_apidto=admin_publicapi_transfers_batch_tenant_provision_apidto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -373,7 +378,7 @@ def add_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BatchTenantProvisionAPIDTO", + '200': "AdminPublicapiTransfersBatchTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -390,7 +395,7 @@ def add_tenants( @validate_call def add_tenants_with_http_info( self, - batch_tenant_provision_apidto: BatchTenantProvisionAPIDTO, + admin_publicapi_transfers_batch_tenant_provision_apidto: AdminPublicapiTransfersBatchTenantProvisionAPIDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -403,13 +408,13 @@ def add_tenants_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BatchTenantProvisionAPIDTO]: + ) -> ApiResponse[AdminPublicapiTransfersBatchTenantProvisionAPIDTO]: """Add analytic tenants Prior to processing and loading an analytic tenant's data files, you must provision, or create, that tenant. A provisioned analytic tenant is automatically enabled. If the tenant's data is loaded after provisioning, that data is immediately accessible by their users. Create one or more analytic tenants and identify the applications assigned to the tenants. The maximum number of tenants to create in one request is 200. Contact Visier Support to determine the list of modules allocated to you. - :param batch_tenant_provision_apidto: (required) - :type batch_tenant_provision_apidto: BatchTenantProvisionAPIDTO + :param admin_publicapi_transfers_batch_tenant_provision_apidto: (required) + :type admin_publicapi_transfers_batch_tenant_provision_apidto: AdminPublicapiTransfersBatchTenantProvisionAPIDTO :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -433,7 +438,7 @@ def add_tenants_with_http_info( """ # noqa: E501 _param = self._add_tenants_serialize( - batch_tenant_provision_apidto=batch_tenant_provision_apidto, + admin_publicapi_transfers_batch_tenant_provision_apidto=admin_publicapi_transfers_batch_tenant_provision_apidto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -441,7 +446,7 @@ def add_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BatchTenantProvisionAPIDTO", + '200': "AdminPublicapiTransfersBatchTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -458,7 +463,7 @@ def add_tenants_with_http_info( @validate_call def add_tenants_without_preload_content( self, - batch_tenant_provision_apidto: BatchTenantProvisionAPIDTO, + admin_publicapi_transfers_batch_tenant_provision_apidto: AdminPublicapiTransfersBatchTenantProvisionAPIDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -476,8 +481,8 @@ def add_tenants_without_preload_content( Prior to processing and loading an analytic tenant's data files, you must provision, or create, that tenant. A provisioned analytic tenant is automatically enabled. If the tenant's data is loaded after provisioning, that data is immediately accessible by their users. Create one or more analytic tenants and identify the applications assigned to the tenants. The maximum number of tenants to create in one request is 200. Contact Visier Support to determine the list of modules allocated to you. - :param batch_tenant_provision_apidto: (required) - :type batch_tenant_provision_apidto: BatchTenantProvisionAPIDTO + :param admin_publicapi_transfers_batch_tenant_provision_apidto: (required) + :type admin_publicapi_transfers_batch_tenant_provision_apidto: AdminPublicapiTransfersBatchTenantProvisionAPIDTO :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -501,7 +506,7 @@ def add_tenants_without_preload_content( """ # noqa: E501 _param = self._add_tenants_serialize( - batch_tenant_provision_apidto=batch_tenant_provision_apidto, + admin_publicapi_transfers_batch_tenant_provision_apidto=admin_publicapi_transfers_batch_tenant_provision_apidto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -509,7 +514,7 @@ def add_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BatchTenantProvisionAPIDTO", + '200': "AdminPublicapiTransfersBatchTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -520,7 +525,7 @@ def add_tenants_without_preload_content( def _add_tenants_serialize( self, - batch_tenant_provision_apidto, + admin_publicapi_transfers_batch_tenant_provision_apidto, _request_auth, _content_type, _headers, @@ -544,8 +549,8 @@ def _add_tenants_serialize( # process the header parameters # process the form parameters # process the body parameter - if batch_tenant_provision_apidto is not None: - _body_params = batch_tenant_provision_apidto + if admin_publicapi_transfers_batch_tenant_provision_apidto is not None: + _body_params = admin_publicapi_transfers_batch_tenant_provision_apidto # set the HTTP header `Accept` @@ -572,6 +577,11 @@ def _add_tenants_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -608,7 +618,7 @@ def delete_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantStatusAPIDTO: + ) -> AdminPublicapiTransfersTenantStatusAPIDTO: """Deprovision an analytic tenant Warning! Deprovisioning an analytic tenant is not reversible. Before deprovisioning, you must disable an analytic tenant. For more information, see **`/v1/admin/tenants/{tenantId}/disable`**. This API removes an analytic tenant permanently from the Visier system. If you are unsure whether an analytic tenant may be re-enabled on any of the Visier modules at any time, you may instead want to disable the analytic tenant. If successful, the response returns the status \"Deprovisioned\". This indicates that the tenant is scheduled for deprovisioning, which may take several days to complete. @@ -646,7 +656,7 @@ def delete_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantStatusAPIDTO", + '200': "AdminPublicapiTransfersTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -676,7 +686,7 @@ def delete_tenant_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantStatusAPIDTO]: + ) -> ApiResponse[AdminPublicapiTransfersTenantStatusAPIDTO]: """Deprovision an analytic tenant Warning! Deprovisioning an analytic tenant is not reversible. Before deprovisioning, you must disable an analytic tenant. For more information, see **`/v1/admin/tenants/{tenantId}/disable`**. This API removes an analytic tenant permanently from the Visier system. If you are unsure whether an analytic tenant may be re-enabled on any of the Visier modules at any time, you may instead want to disable the analytic tenant. If successful, the response returns the status \"Deprovisioned\". This indicates that the tenant is scheduled for deprovisioning, which may take several days to complete. @@ -714,7 +724,7 @@ def delete_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantStatusAPIDTO", + '200': "AdminPublicapiTransfersTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -782,7 +792,7 @@ def delete_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantStatusAPIDTO", + '200': "AdminPublicapiTransfersTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -832,6 +842,11 @@ def _delete_tenant_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -868,7 +883,7 @@ def disable_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantStatusAPIDTO: + ) -> AdminPublicapiTransfersTenantStatusAPIDTO: """Disable an analytic tenant Disable an analytic tenant and remove access to Visier visualizations for the tenant's users. You must disable an analytic tenant before deprovisioning, or removing, it from the system. @@ -906,7 +921,7 @@ def disable_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantStatusAPIDTO", + '200': "AdminPublicapiTransfersTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -936,7 +951,7 @@ def disable_tenant_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantStatusAPIDTO]: + ) -> ApiResponse[AdminPublicapiTransfersTenantStatusAPIDTO]: """Disable an analytic tenant Disable an analytic tenant and remove access to Visier visualizations for the tenant's users. You must disable an analytic tenant before deprovisioning, or removing, it from the system. @@ -974,7 +989,7 @@ def disable_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantStatusAPIDTO", + '200': "AdminPublicapiTransfersTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1042,7 +1057,7 @@ def disable_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantStatusAPIDTO", + '200': "AdminPublicapiTransfersTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1092,6 +1107,11 @@ def _disable_tenant_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1128,7 +1148,7 @@ def enable_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantStatusAPIDTO: + ) -> AdminPublicapiTransfersTenantStatusAPIDTO: """Enable an analytic tenant An analytic tenant is enabled when you provision or create the tenant. Use this API to enable a tenant that you have specifically disabled; for example, if you previously did not want that tenant to have access to Visier visualizations, but now do. @@ -1166,7 +1186,7 @@ def enable_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantStatusAPIDTO", + '200': "AdminPublicapiTransfersTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1196,7 +1216,7 @@ def enable_tenant_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantStatusAPIDTO]: + ) -> ApiResponse[AdminPublicapiTransfersTenantStatusAPIDTO]: """Enable an analytic tenant An analytic tenant is enabled when you provision or create the tenant. Use this API to enable a tenant that you have specifically disabled; for example, if you previously did not want that tenant to have access to Visier visualizations, but now do. @@ -1234,7 +1254,7 @@ def enable_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantStatusAPIDTO", + '200': "AdminPublicapiTransfersTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1302,7 +1322,7 @@ def enable_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantStatusAPIDTO", + '200': "AdminPublicapiTransfersTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1352,6 +1372,11 @@ def _enable_tenant_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1388,7 +1413,7 @@ def get_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantDetailAPIDTO: + ) -> AdminPublicapiTransfersTenantDetailAPIDTO: """Retrieve an analytic tenant's details Retrieve all details for a specified analytic tenant. Doing so allows you to see the current state of the tenant, the content modules assigned to it, and all other relevant details for the tenant. @@ -1426,7 +1451,7 @@ def get_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantDetailAPIDTO", + '200': "AdminPublicapiTransfersTenantDetailAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1456,7 +1481,7 @@ def get_tenant_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantDetailAPIDTO]: + ) -> ApiResponse[AdminPublicapiTransfersTenantDetailAPIDTO]: """Retrieve an analytic tenant's details Retrieve all details for a specified analytic tenant. Doing so allows you to see the current state of the tenant, the content modules assigned to it, and all other relevant details for the tenant. @@ -1494,7 +1519,7 @@ def get_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantDetailAPIDTO", + '200': "AdminPublicapiTransfersTenantDetailAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1562,7 +1587,7 @@ def get_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantDetailAPIDTO", + '200': "AdminPublicapiTransfersTenantDetailAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1612,6 +1637,11 @@ def _get_tenant_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1650,7 +1680,7 @@ def get_tenants( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AllTenantsStatusAPIDTO: + ) -> AdminPublicapiTransfersAllTenantsStatusAPIDTO: """Retrieve a list of all analytic tenants Retrieve the full list of analytic tenants managed by you with their current states and the content modules assigned to them, and all other relevant details for the tenants if requested. @@ -1694,7 +1724,7 @@ def get_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AllTenantsStatusAPIDTO", + '200': "AdminPublicapiTransfersAllTenantsStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1726,7 +1756,7 @@ def get_tenants_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AllTenantsStatusAPIDTO]: + ) -> ApiResponse[AdminPublicapiTransfersAllTenantsStatusAPIDTO]: """Retrieve a list of all analytic tenants Retrieve the full list of analytic tenants managed by you with their current states and the content modules assigned to them, and all other relevant details for the tenants if requested. @@ -1770,7 +1800,7 @@ def get_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AllTenantsStatusAPIDTO", + '200': "AdminPublicapiTransfersAllTenantsStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1846,7 +1876,7 @@ def get_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AllTenantsStatusAPIDTO", + '200': "AdminPublicapiTransfersAllTenantsStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1908,6 +1938,11 @@ def _get_tenants_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1932,7 +1967,7 @@ def _get_tenants_serialize( def update_tenant( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant to update.")], - update_tenant_model: UpdateTenantModel, + admin_update_tenant_model: AdminUpdateTenantModel, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1945,15 +1980,15 @@ def update_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantProvisionAPIDTO: + ) -> AdminPublicapiTransfersTenantProvisionAPIDTO: """Update an analytic tenant You may need to update analytic tenants as they grow and as your organization upgrades the content available to them. You may also encounter a scenario where an analytic tenant transitions across different industries. To ensure that the analytic tenant receives accurate benchmarks and predictive functionality, update their industry code in the Visier system. You can use this API to update any field on an analytic tenant, except `tenantCode`. :param tenant_id: The ID of the tenant to update. (required) :type tenant_id: str - :param update_tenant_model: (required) - :type update_tenant_model: UpdateTenantModel + :param admin_update_tenant_model: (required) + :type admin_update_tenant_model: AdminUpdateTenantModel :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1978,7 +2013,7 @@ def update_tenant( _param = self._update_tenant_serialize( tenant_id=tenant_id, - update_tenant_model=update_tenant_model, + admin_update_tenant_model=admin_update_tenant_model, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1986,7 +2021,7 @@ def update_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantProvisionAPIDTO", + '200': "AdminPublicapiTransfersTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -2004,7 +2039,7 @@ def update_tenant( def update_tenant_with_http_info( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant to update.")], - update_tenant_model: UpdateTenantModel, + admin_update_tenant_model: AdminUpdateTenantModel, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2017,15 +2052,15 @@ def update_tenant_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantProvisionAPIDTO]: + ) -> ApiResponse[AdminPublicapiTransfersTenantProvisionAPIDTO]: """Update an analytic tenant You may need to update analytic tenants as they grow and as your organization upgrades the content available to them. You may also encounter a scenario where an analytic tenant transitions across different industries. To ensure that the analytic tenant receives accurate benchmarks and predictive functionality, update their industry code in the Visier system. You can use this API to update any field on an analytic tenant, except `tenantCode`. :param tenant_id: The ID of the tenant to update. (required) :type tenant_id: str - :param update_tenant_model: (required) - :type update_tenant_model: UpdateTenantModel + :param admin_update_tenant_model: (required) + :type admin_update_tenant_model: AdminUpdateTenantModel :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2050,7 +2085,7 @@ def update_tenant_with_http_info( _param = self._update_tenant_serialize( tenant_id=tenant_id, - update_tenant_model=update_tenant_model, + admin_update_tenant_model=admin_update_tenant_model, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2058,7 +2093,7 @@ def update_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantProvisionAPIDTO", + '200': "AdminPublicapiTransfersTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -2076,7 +2111,7 @@ def update_tenant_with_http_info( def update_tenant_without_preload_content( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant to update.")], - update_tenant_model: UpdateTenantModel, + admin_update_tenant_model: AdminUpdateTenantModel, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2096,8 +2131,8 @@ def update_tenant_without_preload_content( :param tenant_id: The ID of the tenant to update. (required) :type tenant_id: str - :param update_tenant_model: (required) - :type update_tenant_model: UpdateTenantModel + :param admin_update_tenant_model: (required) + :type admin_update_tenant_model: AdminUpdateTenantModel :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2122,7 +2157,7 @@ def update_tenant_without_preload_content( _param = self._update_tenant_serialize( tenant_id=tenant_id, - update_tenant_model=update_tenant_model, + admin_update_tenant_model=admin_update_tenant_model, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2130,7 +2165,7 @@ def update_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantProvisionAPIDTO", + '200': "AdminPublicapiTransfersTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -2142,7 +2177,7 @@ def update_tenant_without_preload_content( def _update_tenant_serialize( self, tenant_id, - update_tenant_model, + admin_update_tenant_model, _request_auth, _content_type, _headers, @@ -2168,8 +2203,8 @@ def _update_tenant_serialize( # process the header parameters # process the form parameters # process the body parameter - if update_tenant_model is not None: - _body_params = update_tenant_model + if admin_update_tenant_model is not None: + _body_params = admin_update_tenant_model # set the HTTP header `Accept` @@ -2196,6 +2231,11 @@ def _update_tenant_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -2233,7 +2273,7 @@ def validate_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantPreviewEntriesSummaryDTO: + ) -> DpAutomationTransfersTenantPreviewEntriesSummaryDTO: """Validate an analytic tenant's metric values Retrieve the metric values for an individual analytic tenant. The metric values included in the response are the tenant's configured summary metrics. Administrators can configure summary metrics in a project: - Sign in to Visier as an administrator. - In a project, on the navigation bar, click the **Home button**. - Click **Dashboard**, and then click **Edit Summary Metrics**. - Select the metrics that you want to validate, and then close the **Summary Metrics** dialog. - Publish the project to production. @@ -2274,7 +2314,7 @@ def validate_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantPreviewEntriesSummaryDTO", + '200': "DpAutomationTransfersTenantPreviewEntriesSummaryDTO", } response_data = self.api_client.call_api( *_param, @@ -2305,7 +2345,7 @@ def validate_tenant_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantPreviewEntriesSummaryDTO]: + ) -> ApiResponse[DpAutomationTransfersTenantPreviewEntriesSummaryDTO]: """Validate an analytic tenant's metric values Retrieve the metric values for an individual analytic tenant. The metric values included in the response are the tenant's configured summary metrics. Administrators can configure summary metrics in a project: - Sign in to Visier as an administrator. - In a project, on the navigation bar, click the **Home button**. - Click **Dashboard**, and then click **Edit Summary Metrics**. - Select the metrics that you want to validate, and then close the **Summary Metrics** dialog. - Publish the project to production. @@ -2346,7 +2386,7 @@ def validate_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantPreviewEntriesSummaryDTO", + '200': "DpAutomationTransfersTenantPreviewEntriesSummaryDTO", } response_data = self.api_client.call_api( *_param, @@ -2418,7 +2458,7 @@ def validate_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantPreviewEntriesSummaryDTO", + '200': "DpAutomationTransfersTenantPreviewEntriesSummaryDTO", } response_data = self.api_client.call_api( *_param, @@ -2471,6 +2511,11 @@ def _validate_tenant_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -2509,7 +2554,7 @@ def validate_tenants( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantPreviewEntriesSummaryListDTO: + ) -> DpAutomationTransfersTenantPreviewEntriesSummaryListDTO: """Validate metric values for all analytic tenants As you onboard more analytic tenants, you can validate the data visible to your users to ensure it matches the source systems from which it was exported and that it matches what your expectations are for this data. The metric values included in the response are the tenant's configured summary metrics. Administrators can configure summary metrics in a project: - Sign in to Visier as an administrator. - In a project, on the navigation bar, click the **Home** button. - Click **Dashboard**, and then click **Edit Summary Metrics**. - Select the metrics that you want to validate, and then close the **Summary Metrics** dialog. - Publish the project to production. @@ -2553,7 +2598,7 @@ def validate_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantPreviewEntriesSummaryListDTO", + '200': "DpAutomationTransfersTenantPreviewEntriesSummaryListDTO", } response_data = self.api_client.call_api( *_param, @@ -2585,7 +2630,7 @@ def validate_tenants_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantPreviewEntriesSummaryListDTO]: + ) -> ApiResponse[DpAutomationTransfersTenantPreviewEntriesSummaryListDTO]: """Validate metric values for all analytic tenants As you onboard more analytic tenants, you can validate the data visible to your users to ensure it matches the source systems from which it was exported and that it matches what your expectations are for this data. The metric values included in the response are the tenant's configured summary metrics. Administrators can configure summary metrics in a project: - Sign in to Visier as an administrator. - In a project, on the navigation bar, click the **Home** button. - Click **Dashboard**, and then click **Edit Summary Metrics**. - Select the metrics that you want to validate, and then close the **Summary Metrics** dialog. - Publish the project to production. @@ -2629,7 +2674,7 @@ def validate_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantPreviewEntriesSummaryListDTO", + '200': "DpAutomationTransfersTenantPreviewEntriesSummaryListDTO", } response_data = self.api_client.call_api( *_param, @@ -2705,7 +2750,7 @@ def validate_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantPreviewEntriesSummaryListDTO", + '200': "DpAutomationTransfersTenantPreviewEntriesSummaryListDTO", } response_data = self.api_client.call_api( *_param, @@ -2765,6 +2810,11 @@ def _validate_tenants_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( diff --git a/src/visier_api_administration/visier_api_administration/api/tenants_v2_api.py b/src/visier_api_administration/visier_api_administration/api/tenants_v2_api.py index 76ca7ea4fa..f17aca483c 100644 --- a/src/visier_api_administration/visier_api_administration/api/tenants_v2_api.py +++ b/src/visier_api_administration/visier_api_administration/api/tenants_v2_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,12 +23,12 @@ from pydantic import Field, StrictInt, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_administration.models.mask_message import MaskMessage -from visier_api_administration.models.tenant_management_api_get_response_dto import TenantManagementAPIGetResponseDTO -from visier_api_administration.models.tenant_management_api_list_response_dto import TenantManagementAPIListResponseDTO -from visier_api_administration.models.tenant_management_api_update_request_dto import TenantManagementAPIUpdateRequestDTO -from visier_api_administration.models.tenant_management_api_update_response_dto import TenantManagementAPIUpdateResponseDTO -from visier_api_administration.models.tenant_status_apidto import TenantStatusAPIDTO +from visier_api_administration.models.admin_mask_message import AdminMaskMessage +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_get_response_dto import AdminPublicapiTransfersTenantManagementAPIGetResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_list_response_dto import AdminPublicapiTransfersTenantManagementAPIListResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_update_request_dto import AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_update_response_dto import AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_status_apidto import AdminPublicapiTransfersTenantStatusAPIDTO import visier_api_administration.models @@ -47,7 +47,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_tenant( self, - tenant_management_api_update_request_dto: TenantManagementAPIUpdateRequestDTO, + admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -61,13 +61,13 @@ def create_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantManagementAPIUpdateResponseDTO: + ) -> AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO: """Add an analytic tenant Prior to processing and loading an analytic tenant's data files, you must provision, or create, that tenant. A provisioned analytic tenant is automatically enabled. If the tenant's data is loaded after provisioning, that data is immediately accessible by their users. Create an analytic tenant and identify the applications assigned to the tenant. Visier organizes content under a set of modules. Contact Visier Support to determine the list of modules allocated to you. **Note:** API requests that contain `homeAnalysisId`, `homeAnalysisByUserGroup`, `clickThroughLink`, or `defaultCurrency` take longer to run because they require publishing a project to production. - :param tenant_management_api_update_request_dto: (required) - :type tenant_management_api_update_request_dto: TenantManagementAPIUpdateRequestDTO + :param admin_publicapi_transfers_tenant_management_api_update_request_dto: (required) + :type admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -93,7 +93,7 @@ def create_tenant( """ # noqa: E501 _param = self._create_tenant_serialize( - tenant_management_api_update_request_dto=tenant_management_api_update_request_dto, + admin_publicapi_transfers_tenant_management_api_update_request_dto=admin_publicapi_transfers_tenant_management_api_update_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -102,7 +102,7 @@ def create_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantManagementAPIUpdateResponseDTO", + '200': "AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -119,7 +119,7 @@ def create_tenant( @validate_call def create_tenant_with_http_info( self, - tenant_management_api_update_request_dto: TenantManagementAPIUpdateRequestDTO, + admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -133,13 +133,13 @@ def create_tenant_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantManagementAPIUpdateResponseDTO]: + ) -> ApiResponse[AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO]: """Add an analytic tenant Prior to processing and loading an analytic tenant's data files, you must provision, or create, that tenant. A provisioned analytic tenant is automatically enabled. If the tenant's data is loaded after provisioning, that data is immediately accessible by their users. Create an analytic tenant and identify the applications assigned to the tenant. Visier organizes content under a set of modules. Contact Visier Support to determine the list of modules allocated to you. **Note:** API requests that contain `homeAnalysisId`, `homeAnalysisByUserGroup`, `clickThroughLink`, or `defaultCurrency` take longer to run because they require publishing a project to production. - :param tenant_management_api_update_request_dto: (required) - :type tenant_management_api_update_request_dto: TenantManagementAPIUpdateRequestDTO + :param admin_publicapi_transfers_tenant_management_api_update_request_dto: (required) + :type admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -165,7 +165,7 @@ def create_tenant_with_http_info( """ # noqa: E501 _param = self._create_tenant_serialize( - tenant_management_api_update_request_dto=tenant_management_api_update_request_dto, + admin_publicapi_transfers_tenant_management_api_update_request_dto=admin_publicapi_transfers_tenant_management_api_update_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -174,7 +174,7 @@ def create_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantManagementAPIUpdateResponseDTO", + '200': "AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -191,7 +191,7 @@ def create_tenant_with_http_info( @validate_call def create_tenant_without_preload_content( self, - tenant_management_api_update_request_dto: TenantManagementAPIUpdateRequestDTO, + admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -210,8 +210,8 @@ def create_tenant_without_preload_content( Prior to processing and loading an analytic tenant's data files, you must provision, or create, that tenant. A provisioned analytic tenant is automatically enabled. If the tenant's data is loaded after provisioning, that data is immediately accessible by their users. Create an analytic tenant and identify the applications assigned to the tenant. Visier organizes content under a set of modules. Contact Visier Support to determine the list of modules allocated to you. **Note:** API requests that contain `homeAnalysisId`, `homeAnalysisByUserGroup`, `clickThroughLink`, or `defaultCurrency` take longer to run because they require publishing a project to production. - :param tenant_management_api_update_request_dto: (required) - :type tenant_management_api_update_request_dto: TenantManagementAPIUpdateRequestDTO + :param admin_publicapi_transfers_tenant_management_api_update_request_dto: (required) + :type admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -237,7 +237,7 @@ def create_tenant_without_preload_content( """ # noqa: E501 _param = self._create_tenant_serialize( - tenant_management_api_update_request_dto=tenant_management_api_update_request_dto, + admin_publicapi_transfers_tenant_management_api_update_request_dto=admin_publicapi_transfers_tenant_management_api_update_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -246,7 +246,7 @@ def create_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantManagementAPIUpdateResponseDTO", + '200': "AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -257,7 +257,7 @@ def create_tenant_without_preload_content( def _create_tenant_serialize( self, - tenant_management_api_update_request_dto, + admin_publicapi_transfers_tenant_management_api_update_request_dto, target_tenant_id, _request_auth, _content_type, @@ -284,8 +284,8 @@ def _create_tenant_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if tenant_management_api_update_request_dto is not None: - _body_params = tenant_management_api_update_request_dto + if admin_publicapi_transfers_tenant_management_api_update_request_dto is not None: + _body_params = admin_publicapi_transfers_tenant_management_api_update_request_dto # set the HTTP header `Accept` @@ -312,6 +312,11 @@ def _create_tenant_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -349,7 +354,7 @@ def delete_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantStatusAPIDTO: + ) -> AdminPublicapiTransfersTenantStatusAPIDTO: """Deprovision an analytic tenant Warning! Deprovisioning an analytic tenant is not reversible. Before deprovisioning, you must disable an analytic tenant. For more information, see **`/v1/admin/tenants/{tenantId}/disable`**. This API removes an analytic tenant permanently from the Visier system. If you are unsure whether an analytic tenant may be re-enabled on any of the Visier modules at any time, you may instead want to disable the analytic tenant. If successful, the response returns the status \"Deprovisioned\". This indicates that the tenant is scheduled for deprovisioning, which may take several days to complete. @@ -390,7 +395,7 @@ def delete_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantStatusAPIDTO", + '200': "AdminPublicapiTransfersTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -421,7 +426,7 @@ def delete_tenant_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantStatusAPIDTO]: + ) -> ApiResponse[AdminPublicapiTransfersTenantStatusAPIDTO]: """Deprovision an analytic tenant Warning! Deprovisioning an analytic tenant is not reversible. Before deprovisioning, you must disable an analytic tenant. For more information, see **`/v1/admin/tenants/{tenantId}/disable`**. This API removes an analytic tenant permanently from the Visier system. If you are unsure whether an analytic tenant may be re-enabled on any of the Visier modules at any time, you may instead want to disable the analytic tenant. If successful, the response returns the status \"Deprovisioned\". This indicates that the tenant is scheduled for deprovisioning, which may take several days to complete. @@ -462,7 +467,7 @@ def delete_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantStatusAPIDTO", + '200': "AdminPublicapiTransfersTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -534,7 +539,7 @@ def delete_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantStatusAPIDTO", + '200': "AdminPublicapiTransfersTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -587,6 +592,11 @@ def _delete_tenant_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -614,7 +624,7 @@ def list_tenants( start: Annotated[Optional[StrictInt], Field(description="The starting index of the first tenant to return. Default is 0.")] = None, mask: Annotated[Optional[StrictStr], Field(description="A list of fields to include in the response, separated by commas. E.g., \"displayName,purchasedModules\"")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, - mask_message: Optional[MaskMessage] = None, + admin_mask_message: Optional[AdminMaskMessage] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -627,7 +637,7 @@ def list_tenants( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantManagementAPIListResponseDTO: + ) -> AdminPublicapiTransfersTenantManagementAPIListResponseDTO: """Retrieve a list of all analytic tenants Retrieve the full list of analytic tenants managed by you with their current states and the content modules assigned to them, and all other relevant details for the tenants if requested. @@ -640,8 +650,8 @@ def list_tenants( :type mask: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str - :param mask_message: - :type mask_message: MaskMessage + :param admin_mask_message: + :type admin_mask_message: AdminMaskMessage :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -669,7 +679,7 @@ def list_tenants( start=start, mask=mask, target_tenant_id=target_tenant_id, - mask_message=mask_message, + admin_mask_message=admin_mask_message, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -677,7 +687,7 @@ def list_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantManagementAPIListResponseDTO", + '200': "AdminPublicapiTransfersTenantManagementAPIListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -698,7 +708,7 @@ def list_tenants_with_http_info( start: Annotated[Optional[StrictInt], Field(description="The starting index of the first tenant to return. Default is 0.")] = None, mask: Annotated[Optional[StrictStr], Field(description="A list of fields to include in the response, separated by commas. E.g., \"displayName,purchasedModules\"")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, - mask_message: Optional[MaskMessage] = None, + admin_mask_message: Optional[AdminMaskMessage] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -711,7 +721,7 @@ def list_tenants_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantManagementAPIListResponseDTO]: + ) -> ApiResponse[AdminPublicapiTransfersTenantManagementAPIListResponseDTO]: """Retrieve a list of all analytic tenants Retrieve the full list of analytic tenants managed by you with their current states and the content modules assigned to them, and all other relevant details for the tenants if requested. @@ -724,8 +734,8 @@ def list_tenants_with_http_info( :type mask: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str - :param mask_message: - :type mask_message: MaskMessage + :param admin_mask_message: + :type admin_mask_message: AdminMaskMessage :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -753,7 +763,7 @@ def list_tenants_with_http_info( start=start, mask=mask, target_tenant_id=target_tenant_id, - mask_message=mask_message, + admin_mask_message=admin_mask_message, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -761,7 +771,7 @@ def list_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantManagementAPIListResponseDTO", + '200': "AdminPublicapiTransfersTenantManagementAPIListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -782,7 +792,7 @@ def list_tenants_without_preload_content( start: Annotated[Optional[StrictInt], Field(description="The starting index of the first tenant to return. Default is 0.")] = None, mask: Annotated[Optional[StrictStr], Field(description="A list of fields to include in the response, separated by commas. E.g., \"displayName,purchasedModules\"")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, - mask_message: Optional[MaskMessage] = None, + admin_mask_message: Optional[AdminMaskMessage] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -808,8 +818,8 @@ def list_tenants_without_preload_content( :type mask: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str - :param mask_message: - :type mask_message: MaskMessage + :param admin_mask_message: + :type admin_mask_message: AdminMaskMessage :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -837,7 +847,7 @@ def list_tenants_without_preload_content( start=start, mask=mask, target_tenant_id=target_tenant_id, - mask_message=mask_message, + admin_mask_message=admin_mask_message, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -845,7 +855,7 @@ def list_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantManagementAPIListResponseDTO", + '200': "AdminPublicapiTransfersTenantManagementAPIListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -860,7 +870,7 @@ def _list_tenants_serialize( start, mask, target_tenant_id, - mask_message, + admin_mask_message, _request_auth, _content_type, _headers, @@ -898,8 +908,8 @@ def _list_tenants_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if mask_message is not None: - _body_params = mask_message + if admin_mask_message is not None: + _body_params = admin_mask_message # set the HTTP header `Accept` @@ -926,6 +936,11 @@ def _list_tenants_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -952,7 +967,7 @@ def tenant_info( tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant to retrieve.")], mask: Annotated[Optional[StrictStr], Field(description="A list of fields to include in the response, separated by commas. E.g., \"displayName,purchasedModules\"")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, - mask_message: Optional[MaskMessage] = None, + admin_mask_message: Optional[AdminMaskMessage] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -965,7 +980,7 @@ def tenant_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantManagementAPIGetResponseDTO: + ) -> AdminPublicapiTransfersTenantManagementAPIGetResponseDTO: """Retrieve an analytic tenant's details Retrieve the details for a specified analytic tenant. Doing so allows you to see the current state of the tenant, the content modules assigned to it, and all other relevant details for the tenant. @@ -976,8 +991,8 @@ def tenant_info( :type mask: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str - :param mask_message: - :type mask_message: MaskMessage + :param admin_mask_message: + :type admin_mask_message: AdminMaskMessage :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1004,7 +1019,7 @@ def tenant_info( tenant_id=tenant_id, mask=mask, target_tenant_id=target_tenant_id, - mask_message=mask_message, + admin_mask_message=admin_mask_message, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1012,7 +1027,7 @@ def tenant_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantManagementAPIGetResponseDTO", + '200': "AdminPublicapiTransfersTenantManagementAPIGetResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1032,7 +1047,7 @@ def tenant_info_with_http_info( tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant to retrieve.")], mask: Annotated[Optional[StrictStr], Field(description="A list of fields to include in the response, separated by commas. E.g., \"displayName,purchasedModules\"")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, - mask_message: Optional[MaskMessage] = None, + admin_mask_message: Optional[AdminMaskMessage] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1045,7 +1060,7 @@ def tenant_info_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantManagementAPIGetResponseDTO]: + ) -> ApiResponse[AdminPublicapiTransfersTenantManagementAPIGetResponseDTO]: """Retrieve an analytic tenant's details Retrieve the details for a specified analytic tenant. Doing so allows you to see the current state of the tenant, the content modules assigned to it, and all other relevant details for the tenant. @@ -1056,8 +1071,8 @@ def tenant_info_with_http_info( :type mask: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str - :param mask_message: - :type mask_message: MaskMessage + :param admin_mask_message: + :type admin_mask_message: AdminMaskMessage :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1084,7 +1099,7 @@ def tenant_info_with_http_info( tenant_id=tenant_id, mask=mask, target_tenant_id=target_tenant_id, - mask_message=mask_message, + admin_mask_message=admin_mask_message, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1092,7 +1107,7 @@ def tenant_info_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantManagementAPIGetResponseDTO", + '200': "AdminPublicapiTransfersTenantManagementAPIGetResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1112,7 +1127,7 @@ def tenant_info_without_preload_content( tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant to retrieve.")], mask: Annotated[Optional[StrictStr], Field(description="A list of fields to include in the response, separated by commas. E.g., \"displayName,purchasedModules\"")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, - mask_message: Optional[MaskMessage] = None, + admin_mask_message: Optional[AdminMaskMessage] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1136,8 +1151,8 @@ def tenant_info_without_preload_content( :type mask: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str - :param mask_message: - :type mask_message: MaskMessage + :param admin_mask_message: + :type admin_mask_message: AdminMaskMessage :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1164,7 +1179,7 @@ def tenant_info_without_preload_content( tenant_id=tenant_id, mask=mask, target_tenant_id=target_tenant_id, - mask_message=mask_message, + admin_mask_message=admin_mask_message, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1172,7 +1187,7 @@ def tenant_info_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantManagementAPIGetResponseDTO", + '200': "AdminPublicapiTransfersTenantManagementAPIGetResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1186,7 +1201,7 @@ def _tenant_info_serialize( tenant_id, mask, target_tenant_id, - mask_message, + admin_mask_message, _request_auth, _content_type, _headers, @@ -1218,8 +1233,8 @@ def _tenant_info_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if mask_message is not None: - _body_params = mask_message + if admin_mask_message is not None: + _body_params = admin_mask_message # set the HTTP header `Accept` @@ -1246,6 +1261,11 @@ def _tenant_info_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1270,7 +1290,7 @@ def _tenant_info_serialize( def update_tenant( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant to update.")], - tenant_management_api_update_request_dto: TenantManagementAPIUpdateRequestDTO, + admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1284,15 +1304,15 @@ def update_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantManagementAPIUpdateResponseDTO: + ) -> AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO: """Update an analytic tenant You may need to update analytic tenants as they grow and as your organization upgrades the content available to them. You may also encounter a scenario where an analytic tenant transitions across different industries. To make updates to your tenants, use this API. * To ensure that the analytic tenant receives accurate benchmarks and predictive functionality, update their industry code in the Visier system. * To programmatically assign the Home analysis that analytic tenants see at login, use this API to set the default Home analysis for a tenant and specific user groups of that tenant. You can use this API to update any field on an analytic tenant, except `tenantCode`. **Note:** API requests that contain `homeAnalysisId`, `homeAnalysisByUserGroup`, `clickThroughLink`, or `defaultCurrency` take longer to run because they require publishing a project to production. :param tenant_id: The ID of the tenant to update. (required) :type tenant_id: str - :param tenant_management_api_update_request_dto: (required) - :type tenant_management_api_update_request_dto: TenantManagementAPIUpdateRequestDTO + :param admin_publicapi_transfers_tenant_management_api_update_request_dto: (required) + :type admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1319,7 +1339,7 @@ def update_tenant( _param = self._update_tenant_serialize( tenant_id=tenant_id, - tenant_management_api_update_request_dto=tenant_management_api_update_request_dto, + admin_publicapi_transfers_tenant_management_api_update_request_dto=admin_publicapi_transfers_tenant_management_api_update_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1328,7 +1348,7 @@ def update_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantManagementAPIUpdateResponseDTO", + '200': "AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1346,7 +1366,7 @@ def update_tenant( def update_tenant_with_http_info( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant to update.")], - tenant_management_api_update_request_dto: TenantManagementAPIUpdateRequestDTO, + admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1360,15 +1380,15 @@ def update_tenant_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantManagementAPIUpdateResponseDTO]: + ) -> ApiResponse[AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO]: """Update an analytic tenant You may need to update analytic tenants as they grow and as your organization upgrades the content available to them. You may also encounter a scenario where an analytic tenant transitions across different industries. To make updates to your tenants, use this API. * To ensure that the analytic tenant receives accurate benchmarks and predictive functionality, update their industry code in the Visier system. * To programmatically assign the Home analysis that analytic tenants see at login, use this API to set the default Home analysis for a tenant and specific user groups of that tenant. You can use this API to update any field on an analytic tenant, except `tenantCode`. **Note:** API requests that contain `homeAnalysisId`, `homeAnalysisByUserGroup`, `clickThroughLink`, or `defaultCurrency` take longer to run because they require publishing a project to production. :param tenant_id: The ID of the tenant to update. (required) :type tenant_id: str - :param tenant_management_api_update_request_dto: (required) - :type tenant_management_api_update_request_dto: TenantManagementAPIUpdateRequestDTO + :param admin_publicapi_transfers_tenant_management_api_update_request_dto: (required) + :type admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1395,7 +1415,7 @@ def update_tenant_with_http_info( _param = self._update_tenant_serialize( tenant_id=tenant_id, - tenant_management_api_update_request_dto=tenant_management_api_update_request_dto, + admin_publicapi_transfers_tenant_management_api_update_request_dto=admin_publicapi_transfers_tenant_management_api_update_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1404,7 +1424,7 @@ def update_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantManagementAPIUpdateResponseDTO", + '200': "AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1422,7 +1442,7 @@ def update_tenant_with_http_info( def update_tenant_without_preload_content( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant to update.")], - tenant_management_api_update_request_dto: TenantManagementAPIUpdateRequestDTO, + admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1443,8 +1463,8 @@ def update_tenant_without_preload_content( :param tenant_id: The ID of the tenant to update. (required) :type tenant_id: str - :param tenant_management_api_update_request_dto: (required) - :type tenant_management_api_update_request_dto: TenantManagementAPIUpdateRequestDTO + :param admin_publicapi_transfers_tenant_management_api_update_request_dto: (required) + :type admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1471,7 +1491,7 @@ def update_tenant_without_preload_content( _param = self._update_tenant_serialize( tenant_id=tenant_id, - tenant_management_api_update_request_dto=tenant_management_api_update_request_dto, + admin_publicapi_transfers_tenant_management_api_update_request_dto=admin_publicapi_transfers_tenant_management_api_update_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1480,7 +1500,7 @@ def update_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantManagementAPIUpdateResponseDTO", + '200': "AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1492,7 +1512,7 @@ def update_tenant_without_preload_content( def _update_tenant_serialize( self, tenant_id, - tenant_management_api_update_request_dto, + admin_publicapi_transfers_tenant_management_api_update_request_dto, target_tenant_id, _request_auth, _content_type, @@ -1521,8 +1541,8 @@ def _update_tenant_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if tenant_management_api_update_request_dto is not None: - _body_params = tenant_management_api_update_request_dto + if admin_publicapi_transfers_tenant_management_api_update_request_dto is not None: + _body_params = admin_publicapi_transfers_tenant_management_api_update_request_dto # set the HTTP header `Accept` @@ -1549,6 +1569,11 @@ def _update_tenant_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( diff --git a/src/visier_api_administration/visier_api_administration/api/user_groups_v2_api.py b/src/visier_api_administration/visier_api_administration/api/user_groups_v2_api.py index 43966afc13..5789b98a42 100644 --- a/src/visier_api_administration/visier_api_administration/api/user_groups_v2_api.py +++ b/src/visier_api_administration/visier_api_administration/api/user_groups_v2_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,13 +23,13 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from visier_api_administration.models.delete_user_group_v2_request import DeleteUserGroupV2Request -from visier_api_administration.models.user_group_change_definition_dto import UserGroupChangeDefinitionDTO -from visier_api_administration.models.user_group_change_response_dto import UserGroupChangeResponseDTO -from visier_api_administration.models.user_group_delete_response_dto import UserGroupDeleteResponseDTO -from visier_api_administration.models.user_group_single_delete_response_dto import UserGroupSingleDeleteResponseDTO -from visier_api_administration.models.user_groups_change_dto import UserGroupsChangeDTO -from visier_api_administration.models.user_groups_delete_request_dto import UserGroupsDeleteRequestDTO +from visier_api_administration.models.admin_delete_user_group_v2_request import AdminDeleteUserGroupV2Request +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_definition_dto import AdminPublicapiTransfersUserGroupChangeDefinitionDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_response_dto import AdminPublicapiTransfersUserGroupChangeResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_response_dto import AdminPublicapiTransfersUserGroupDeleteResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_single_delete_response_dto import AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_user_groups_change_dto import AdminPublicapiTransfersUserGroupsChangeDTO +from visier_api_administration.models.admin_publicapi_transfers_user_groups_delete_request_dto import AdminPublicapiTransfersUserGroupsDeleteRequestDTO import visier_api_administration.models @@ -48,7 +48,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_user_groups( self, - user_groups_change_dto: UserGroupsChangeDTO, + admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -64,13 +64,13 @@ def create_user_groups( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserGroupChangeResponseDTO: + ) -> AdminPublicapiTransfersUserGroupChangeResponseDTO: """Create multiple user groups Create new user groups. To specify the tenant in which to add new user groups, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header. To specify the project in which to create new user groups, provide a project UUID in the `ProjectID` request header or `projectId` for each user group in the request body. - :param user_groups_change_dto: (required) - :type user_groups_change_dto: UserGroupsChangeDTO + :param admin_publicapi_transfers_user_groups_change_dto: (required) + :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -100,7 +100,7 @@ def create_user_groups( """ # noqa: E501 _param = self._create_user_groups_serialize( - user_groups_change_dto=user_groups_change_dto, + admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -111,7 +111,7 @@ def create_user_groups( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupChangeResponseDTO", + '200': "AdminPublicapiTransfersUserGroupChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -128,7 +128,7 @@ def create_user_groups( @validate_call def create_user_groups_with_http_info( self, - user_groups_change_dto: UserGroupsChangeDTO, + admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -144,13 +144,13 @@ def create_user_groups_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserGroupChangeResponseDTO]: + ) -> ApiResponse[AdminPublicapiTransfersUserGroupChangeResponseDTO]: """Create multiple user groups Create new user groups. To specify the tenant in which to add new user groups, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header. To specify the project in which to create new user groups, provide a project UUID in the `ProjectID` request header or `projectId` for each user group in the request body. - :param user_groups_change_dto: (required) - :type user_groups_change_dto: UserGroupsChangeDTO + :param admin_publicapi_transfers_user_groups_change_dto: (required) + :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -180,7 +180,7 @@ def create_user_groups_with_http_info( """ # noqa: E501 _param = self._create_user_groups_serialize( - user_groups_change_dto=user_groups_change_dto, + admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -191,7 +191,7 @@ def create_user_groups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupChangeResponseDTO", + '200': "AdminPublicapiTransfersUserGroupChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -208,7 +208,7 @@ def create_user_groups_with_http_info( @validate_call def create_user_groups_without_preload_content( self, - user_groups_change_dto: UserGroupsChangeDTO, + admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -229,8 +229,8 @@ def create_user_groups_without_preload_content( Create new user groups. To specify the tenant in which to add new user groups, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header. To specify the project in which to create new user groups, provide a project UUID in the `ProjectID` request header or `projectId` for each user group in the request body. - :param user_groups_change_dto: (required) - :type user_groups_change_dto: UserGroupsChangeDTO + :param admin_publicapi_transfers_user_groups_change_dto: (required) + :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -260,7 +260,7 @@ def create_user_groups_without_preload_content( """ # noqa: E501 _param = self._create_user_groups_serialize( - user_groups_change_dto=user_groups_change_dto, + admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -271,7 +271,7 @@ def create_user_groups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupChangeResponseDTO", + '200': "AdminPublicapiTransfersUserGroupChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -282,7 +282,7 @@ def create_user_groups_without_preload_content( def _create_user_groups_serialize( self, - user_groups_change_dto, + admin_publicapi_transfers_user_groups_change_dto, target_tenant_id, project_id, non_versioned, @@ -315,8 +315,8 @@ def _create_user_groups_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if user_groups_change_dto is not None: - _body_params = user_groups_change_dto + if admin_publicapi_transfers_user_groups_change_dto is not None: + _body_params = admin_publicapi_transfers_user_groups_change_dto # set the HTTP header `Accept` @@ -343,6 +343,11 @@ def _create_user_groups_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -367,7 +372,7 @@ def _create_user_groups_serialize( def delete_user_group( self, user_group_id: Annotated[StrictStr, Field(description="The ID of user group to delete.")], - delete_user_group_v2_request: DeleteUserGroupV2Request, + admin_delete_user_group_v2_request: AdminDeleteUserGroupV2Request, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -383,15 +388,15 @@ def delete_user_group( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserGroupSingleDeleteResponseDTO: + ) -> AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO: """Delete a user group Delete a specific user group. To specify the tenant in which to delete a user group, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header. To specify the project in which to delete a user group, provide a project UUID in the `ProjectID` request header. :param user_group_id: The ID of user group to delete. (required) :type user_group_id: str - :param delete_user_group_v2_request: (required) - :type delete_user_group_v2_request: DeleteUserGroupV2Request + :param admin_delete_user_group_v2_request: (required) + :type admin_delete_user_group_v2_request: AdminDeleteUserGroupV2Request :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -422,7 +427,7 @@ def delete_user_group( _param = self._delete_user_group_serialize( user_group_id=user_group_id, - delete_user_group_v2_request=delete_user_group_v2_request, + admin_delete_user_group_v2_request=admin_delete_user_group_v2_request, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -433,7 +438,7 @@ def delete_user_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupSingleDeleteResponseDTO", + '200': "AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -451,7 +456,7 @@ def delete_user_group( def delete_user_group_with_http_info( self, user_group_id: Annotated[StrictStr, Field(description="The ID of user group to delete.")], - delete_user_group_v2_request: DeleteUserGroupV2Request, + admin_delete_user_group_v2_request: AdminDeleteUserGroupV2Request, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -467,15 +472,15 @@ def delete_user_group_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserGroupSingleDeleteResponseDTO]: + ) -> ApiResponse[AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO]: """Delete a user group Delete a specific user group. To specify the tenant in which to delete a user group, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header. To specify the project in which to delete a user group, provide a project UUID in the `ProjectID` request header. :param user_group_id: The ID of user group to delete. (required) :type user_group_id: str - :param delete_user_group_v2_request: (required) - :type delete_user_group_v2_request: DeleteUserGroupV2Request + :param admin_delete_user_group_v2_request: (required) + :type admin_delete_user_group_v2_request: AdminDeleteUserGroupV2Request :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -506,7 +511,7 @@ def delete_user_group_with_http_info( _param = self._delete_user_group_serialize( user_group_id=user_group_id, - delete_user_group_v2_request=delete_user_group_v2_request, + admin_delete_user_group_v2_request=admin_delete_user_group_v2_request, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -517,7 +522,7 @@ def delete_user_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupSingleDeleteResponseDTO", + '200': "AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -535,7 +540,7 @@ def delete_user_group_with_http_info( def delete_user_group_without_preload_content( self, user_group_id: Annotated[StrictStr, Field(description="The ID of user group to delete.")], - delete_user_group_v2_request: DeleteUserGroupV2Request, + admin_delete_user_group_v2_request: AdminDeleteUserGroupV2Request, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -558,8 +563,8 @@ def delete_user_group_without_preload_content( :param user_group_id: The ID of user group to delete. (required) :type user_group_id: str - :param delete_user_group_v2_request: (required) - :type delete_user_group_v2_request: DeleteUserGroupV2Request + :param admin_delete_user_group_v2_request: (required) + :type admin_delete_user_group_v2_request: AdminDeleteUserGroupV2Request :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -590,7 +595,7 @@ def delete_user_group_without_preload_content( _param = self._delete_user_group_serialize( user_group_id=user_group_id, - delete_user_group_v2_request=delete_user_group_v2_request, + admin_delete_user_group_v2_request=admin_delete_user_group_v2_request, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -601,7 +606,7 @@ def delete_user_group_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupSingleDeleteResponseDTO", + '200': "AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -613,7 +618,7 @@ def delete_user_group_without_preload_content( def _delete_user_group_serialize( self, user_group_id, - delete_user_group_v2_request, + admin_delete_user_group_v2_request, target_tenant_id, project_id, non_versioned, @@ -648,8 +653,8 @@ def _delete_user_group_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if delete_user_group_v2_request is not None: - _body_params = delete_user_group_v2_request + if admin_delete_user_group_v2_request is not None: + _body_params = admin_delete_user_group_v2_request # set the HTTP header `Accept` @@ -676,6 +681,11 @@ def _delete_user_group_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -699,7 +709,7 @@ def _delete_user_group_serialize( @validate_call def delete_user_groups( self, - user_groups_delete_request_dto: UserGroupsDeleteRequestDTO, + admin_publicapi_transfers_user_groups_delete_request_dto: AdminPublicapiTransfersUserGroupsDeleteRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -715,13 +725,13 @@ def delete_user_groups( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserGroupDeleteResponseDTO: + ) -> AdminPublicapiTransfersUserGroupDeleteResponseDTO: """Delete multiple user groups Delete user groups in bulk. To specify the tenant in which to delete user groups, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header. To specify the project in which to delete user groups, provide a project UUID in the `ProjectID` request header or `projectId` for each user group in the request body. - :param user_groups_delete_request_dto: (required) - :type user_groups_delete_request_dto: UserGroupsDeleteRequestDTO + :param admin_publicapi_transfers_user_groups_delete_request_dto: (required) + :type admin_publicapi_transfers_user_groups_delete_request_dto: AdminPublicapiTransfersUserGroupsDeleteRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -751,7 +761,7 @@ def delete_user_groups( """ # noqa: E501 _param = self._delete_user_groups_serialize( - user_groups_delete_request_dto=user_groups_delete_request_dto, + admin_publicapi_transfers_user_groups_delete_request_dto=admin_publicapi_transfers_user_groups_delete_request_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -762,7 +772,7 @@ def delete_user_groups( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupDeleteResponseDTO", + '200': "AdminPublicapiTransfersUserGroupDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -779,7 +789,7 @@ def delete_user_groups( @validate_call def delete_user_groups_with_http_info( self, - user_groups_delete_request_dto: UserGroupsDeleteRequestDTO, + admin_publicapi_transfers_user_groups_delete_request_dto: AdminPublicapiTransfersUserGroupsDeleteRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -795,13 +805,13 @@ def delete_user_groups_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserGroupDeleteResponseDTO]: + ) -> ApiResponse[AdminPublicapiTransfersUserGroupDeleteResponseDTO]: """Delete multiple user groups Delete user groups in bulk. To specify the tenant in which to delete user groups, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header. To specify the project in which to delete user groups, provide a project UUID in the `ProjectID` request header or `projectId` for each user group in the request body. - :param user_groups_delete_request_dto: (required) - :type user_groups_delete_request_dto: UserGroupsDeleteRequestDTO + :param admin_publicapi_transfers_user_groups_delete_request_dto: (required) + :type admin_publicapi_transfers_user_groups_delete_request_dto: AdminPublicapiTransfersUserGroupsDeleteRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -831,7 +841,7 @@ def delete_user_groups_with_http_info( """ # noqa: E501 _param = self._delete_user_groups_serialize( - user_groups_delete_request_dto=user_groups_delete_request_dto, + admin_publicapi_transfers_user_groups_delete_request_dto=admin_publicapi_transfers_user_groups_delete_request_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -842,7 +852,7 @@ def delete_user_groups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupDeleteResponseDTO", + '200': "AdminPublicapiTransfersUserGroupDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -859,7 +869,7 @@ def delete_user_groups_with_http_info( @validate_call def delete_user_groups_without_preload_content( self, - user_groups_delete_request_dto: UserGroupsDeleteRequestDTO, + admin_publicapi_transfers_user_groups_delete_request_dto: AdminPublicapiTransfersUserGroupsDeleteRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -880,8 +890,8 @@ def delete_user_groups_without_preload_content( Delete user groups in bulk. To specify the tenant in which to delete user groups, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header. To specify the project in which to delete user groups, provide a project UUID in the `ProjectID` request header or `projectId` for each user group in the request body. - :param user_groups_delete_request_dto: (required) - :type user_groups_delete_request_dto: UserGroupsDeleteRequestDTO + :param admin_publicapi_transfers_user_groups_delete_request_dto: (required) + :type admin_publicapi_transfers_user_groups_delete_request_dto: AdminPublicapiTransfersUserGroupsDeleteRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -911,7 +921,7 @@ def delete_user_groups_without_preload_content( """ # noqa: E501 _param = self._delete_user_groups_serialize( - user_groups_delete_request_dto=user_groups_delete_request_dto, + admin_publicapi_transfers_user_groups_delete_request_dto=admin_publicapi_transfers_user_groups_delete_request_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -922,7 +932,7 @@ def delete_user_groups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupDeleteResponseDTO", + '200': "AdminPublicapiTransfersUserGroupDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -933,7 +943,7 @@ def delete_user_groups_without_preload_content( def _delete_user_groups_serialize( self, - user_groups_delete_request_dto, + admin_publicapi_transfers_user_groups_delete_request_dto, target_tenant_id, project_id, non_versioned, @@ -966,8 +976,8 @@ def _delete_user_groups_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if user_groups_delete_request_dto is not None: - _body_params = user_groups_delete_request_dto + if admin_publicapi_transfers_user_groups_delete_request_dto is not None: + _body_params = admin_publicapi_transfers_user_groups_delete_request_dto # set the HTTP header `Accept` @@ -994,6 +1004,11 @@ def _delete_user_groups_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1034,7 +1049,7 @@ def get_user_group( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserGroupChangeDefinitionDTO: + ) -> AdminPublicapiTransfersUserGroupChangeDefinitionDTO: """Retrieve the details of a user group Retrieve all available information about a specific user group.
To specify the tenant in which to retrieve a user group, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header. To specify the project in which to return a user group, provide a project UUID in the `ProjectID` request header. @@ -1084,7 +1099,7 @@ def get_user_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupChangeDefinitionDTO", + '200': "AdminPublicapiTransfersUserGroupChangeDefinitionDTO", } response_data = self.api_client.call_api( *_param, @@ -1118,7 +1133,7 @@ def get_user_group_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserGroupChangeDefinitionDTO]: + ) -> ApiResponse[AdminPublicapiTransfersUserGroupChangeDefinitionDTO]: """Retrieve the details of a user group Retrieve all available information about a specific user group.
To specify the tenant in which to retrieve a user group, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header. To specify the project in which to return a user group, provide a project UUID in the `ProjectID` request header. @@ -1168,7 +1183,7 @@ def get_user_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupChangeDefinitionDTO", + '200': "AdminPublicapiTransfersUserGroupChangeDefinitionDTO", } response_data = self.api_client.call_api( *_param, @@ -1252,7 +1267,7 @@ def get_user_group_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupChangeDefinitionDTO", + '200': "AdminPublicapiTransfersUserGroupChangeDefinitionDTO", } response_data = self.api_client.call_api( *_param, @@ -1316,6 +1331,11 @@ def _get_user_group_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1356,7 +1376,7 @@ def get_user_groups( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserGroupsChangeDTO: + ) -> AdminPublicapiTransfersUserGroupsChangeDTO: """Retrieve a list of user groups Retrieve a collection of user groups. Use `with` to control the amount of detail returned in the response. `with` supports these values: * **permissions**: Include the user group's permissions. * **users**: Include the users in the user group. * **details**: Include all available information. This API can return a maximum of 1000 user groups. The default number of user groups to return is 100. To specify the project in which to return user groups, provide a project UUID in the `ProjectID` request header.
To specify the tenant in which to retrieve user groups, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header. @@ -1406,7 +1426,7 @@ def get_user_groups( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupsChangeDTO", + '200': "AdminPublicapiTransfersUserGroupsChangeDTO", } response_data = self.api_client.call_api( *_param, @@ -1440,7 +1460,7 @@ def get_user_groups_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserGroupsChangeDTO]: + ) -> ApiResponse[AdminPublicapiTransfersUserGroupsChangeDTO]: """Retrieve a list of user groups Retrieve a collection of user groups. Use `with` to control the amount of detail returned in the response. `with` supports these values: * **permissions**: Include the user group's permissions. * **users**: Include the users in the user group. * **details**: Include all available information. This API can return a maximum of 1000 user groups. The default number of user groups to return is 100. To specify the project in which to return user groups, provide a project UUID in the `ProjectID` request header.
To specify the tenant in which to retrieve user groups, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header. @@ -1490,7 +1510,7 @@ def get_user_groups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupsChangeDTO", + '200': "AdminPublicapiTransfersUserGroupsChangeDTO", } response_data = self.api_client.call_api( *_param, @@ -1574,7 +1594,7 @@ def get_user_groups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupsChangeDTO", + '200': "AdminPublicapiTransfersUserGroupsChangeDTO", } response_data = self.api_client.call_api( *_param, @@ -1640,6 +1660,11 @@ def _get_user_groups_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1663,7 +1688,7 @@ def _get_user_groups_serialize( @validate_call def patch_user_groups( self, - user_groups_change_dto: UserGroupsChangeDTO, + admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -1679,13 +1704,13 @@ def patch_user_groups( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserGroupChangeResponseDTO: + ) -> AdminPublicapiTransfersUserGroupChangeResponseDTO: """Patch multiple user groups Make partial changes to user groups. To specify the tenant in which to patch a user group, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header or `tenantCode` for each user group in the request body. Unlike `PUT`, which completely replaces the user group definition, use `PATCH` to change specific fields in the user group without affecting omitted fields. To specify the project in which to patch user groups, provide a project UUID in the `ProjectID` request header or `projectId` for each user group in the request body. - :param user_groups_change_dto: (required) - :type user_groups_change_dto: UserGroupsChangeDTO + :param admin_publicapi_transfers_user_groups_change_dto: (required) + :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -1715,7 +1740,7 @@ def patch_user_groups( """ # noqa: E501 _param = self._patch_user_groups_serialize( - user_groups_change_dto=user_groups_change_dto, + admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -1726,7 +1751,7 @@ def patch_user_groups( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupChangeResponseDTO", + '200': "AdminPublicapiTransfersUserGroupChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1743,7 +1768,7 @@ def patch_user_groups( @validate_call def patch_user_groups_with_http_info( self, - user_groups_change_dto: UserGroupsChangeDTO, + admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -1759,13 +1784,13 @@ def patch_user_groups_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserGroupChangeResponseDTO]: + ) -> ApiResponse[AdminPublicapiTransfersUserGroupChangeResponseDTO]: """Patch multiple user groups Make partial changes to user groups. To specify the tenant in which to patch a user group, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header or `tenantCode` for each user group in the request body. Unlike `PUT`, which completely replaces the user group definition, use `PATCH` to change specific fields in the user group without affecting omitted fields. To specify the project in which to patch user groups, provide a project UUID in the `ProjectID` request header or `projectId` for each user group in the request body. - :param user_groups_change_dto: (required) - :type user_groups_change_dto: UserGroupsChangeDTO + :param admin_publicapi_transfers_user_groups_change_dto: (required) + :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -1795,7 +1820,7 @@ def patch_user_groups_with_http_info( """ # noqa: E501 _param = self._patch_user_groups_serialize( - user_groups_change_dto=user_groups_change_dto, + admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -1806,7 +1831,7 @@ def patch_user_groups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupChangeResponseDTO", + '200': "AdminPublicapiTransfersUserGroupChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1823,7 +1848,7 @@ def patch_user_groups_with_http_info( @validate_call def patch_user_groups_without_preload_content( self, - user_groups_change_dto: UserGroupsChangeDTO, + admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -1844,8 +1869,8 @@ def patch_user_groups_without_preload_content( Make partial changes to user groups. To specify the tenant in which to patch a user group, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header or `tenantCode` for each user group in the request body. Unlike `PUT`, which completely replaces the user group definition, use `PATCH` to change specific fields in the user group without affecting omitted fields. To specify the project in which to patch user groups, provide a project UUID in the `ProjectID` request header or `projectId` for each user group in the request body. - :param user_groups_change_dto: (required) - :type user_groups_change_dto: UserGroupsChangeDTO + :param admin_publicapi_transfers_user_groups_change_dto: (required) + :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -1875,7 +1900,7 @@ def patch_user_groups_without_preload_content( """ # noqa: E501 _param = self._patch_user_groups_serialize( - user_groups_change_dto=user_groups_change_dto, + admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -1886,7 +1911,7 @@ def patch_user_groups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupChangeResponseDTO", + '200': "AdminPublicapiTransfersUserGroupChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1897,7 +1922,7 @@ def patch_user_groups_without_preload_content( def _patch_user_groups_serialize( self, - user_groups_change_dto, + admin_publicapi_transfers_user_groups_change_dto, target_tenant_id, project_id, non_versioned, @@ -1930,8 +1955,8 @@ def _patch_user_groups_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if user_groups_change_dto is not None: - _body_params = user_groups_change_dto + if admin_publicapi_transfers_user_groups_change_dto is not None: + _body_params = admin_publicapi_transfers_user_groups_change_dto # set the HTTP header `Accept` @@ -1958,6 +1983,11 @@ def _patch_user_groups_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1981,7 +2011,7 @@ def _patch_user_groups_serialize( @validate_call def put_user_groups( self, - user_groups_change_dto: UserGroupsChangeDTO, + admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -1997,13 +2027,13 @@ def put_user_groups( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserGroupChangeResponseDTO: + ) -> AdminPublicapiTransfersUserGroupChangeResponseDTO: """Update multiple user groups Update existing user groups. To specify the tenant in which to update a user group, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header or `tenantCode` for each user group in the request body. When updating user groups, the user group definition in your API call replaces the prior definition. You must provide the entire definition in the `PUT` call. If you omit values from the update request, those values are removed from the user group. We recommend that you retrieve a user group's details before you update the user group with new values. To specify the project in which to update user groups, provide a project UUID in the `ProjectID` request header or `projectId` for each user group in the request body. - :param user_groups_change_dto: (required) - :type user_groups_change_dto: UserGroupsChangeDTO + :param admin_publicapi_transfers_user_groups_change_dto: (required) + :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -2033,7 +2063,7 @@ def put_user_groups( """ # noqa: E501 _param = self._put_user_groups_serialize( - user_groups_change_dto=user_groups_change_dto, + admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -2044,7 +2074,7 @@ def put_user_groups( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupChangeResponseDTO", + '200': "AdminPublicapiTransfersUserGroupChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2061,7 +2091,7 @@ def put_user_groups( @validate_call def put_user_groups_with_http_info( self, - user_groups_change_dto: UserGroupsChangeDTO, + admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -2077,13 +2107,13 @@ def put_user_groups_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserGroupChangeResponseDTO]: + ) -> ApiResponse[AdminPublicapiTransfersUserGroupChangeResponseDTO]: """Update multiple user groups Update existing user groups. To specify the tenant in which to update a user group, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header or `tenantCode` for each user group in the request body. When updating user groups, the user group definition in your API call replaces the prior definition. You must provide the entire definition in the `PUT` call. If you omit values from the update request, those values are removed from the user group. We recommend that you retrieve a user group's details before you update the user group with new values. To specify the project in which to update user groups, provide a project UUID in the `ProjectID` request header or `projectId` for each user group in the request body. - :param user_groups_change_dto: (required) - :type user_groups_change_dto: UserGroupsChangeDTO + :param admin_publicapi_transfers_user_groups_change_dto: (required) + :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -2113,7 +2143,7 @@ def put_user_groups_with_http_info( """ # noqa: E501 _param = self._put_user_groups_serialize( - user_groups_change_dto=user_groups_change_dto, + admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -2124,7 +2154,7 @@ def put_user_groups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupChangeResponseDTO", + '200': "AdminPublicapiTransfersUserGroupChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2141,7 +2171,7 @@ def put_user_groups_with_http_info( @validate_call def put_user_groups_without_preload_content( self, - user_groups_change_dto: UserGroupsChangeDTO, + admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -2162,8 +2192,8 @@ def put_user_groups_without_preload_content( Update existing user groups. To specify the tenant in which to update a user group, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header or `tenantCode` for each user group in the request body. When updating user groups, the user group definition in your API call replaces the prior definition. You must provide the entire definition in the `PUT` call. If you omit values from the update request, those values are removed from the user group. We recommend that you retrieve a user group's details before you update the user group with new values. To specify the project in which to update user groups, provide a project UUID in the `ProjectID` request header or `projectId` for each user group in the request body. - :param user_groups_change_dto: (required) - :type user_groups_change_dto: UserGroupsChangeDTO + :param admin_publicapi_transfers_user_groups_change_dto: (required) + :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -2193,7 +2223,7 @@ def put_user_groups_without_preload_content( """ # noqa: E501 _param = self._put_user_groups_serialize( - user_groups_change_dto=user_groups_change_dto, + admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -2204,7 +2234,7 @@ def put_user_groups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupChangeResponseDTO", + '200': "AdminPublicapiTransfersUserGroupChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2215,7 +2245,7 @@ def put_user_groups_without_preload_content( def _put_user_groups_serialize( self, - user_groups_change_dto, + admin_publicapi_transfers_user_groups_change_dto, target_tenant_id, project_id, non_versioned, @@ -2248,8 +2278,8 @@ def _put_user_groups_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if user_groups_change_dto is not None: - _body_params = user_groups_change_dto + if admin_publicapi_transfers_user_groups_change_dto is not None: + _body_params = admin_publicapi_transfers_user_groups_change_dto # set the HTTP header `Accept` @@ -2276,6 +2306,11 @@ def _put_user_groups_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( diff --git a/src/visier_api_administration/visier_api_administration/api/users_v1_api.py b/src/visier_api_administration/visier_api_administration/api/users_v1_api.py index f123a0e527..0eb15c29a9 100644 --- a/src/visier_api_administration/visier_api_administration/api/users_v1_api.py +++ b/src/visier_api_administration/visier_api_administration/api/users_v1_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,20 +23,20 @@ from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr from typing import Any, Dict, Optional, Tuple, Union from typing_extensions import Annotated -from visier_api_administration.models.all_users_get_api_response_dto import AllUsersGetAPIResponseDTO -from visier_api_administration.models.assign_revoke_permissions_request_dto import AssignRevokePermissionsRequestDTO -from visier_api_administration.models.assign_revoke_permissions_response_dto import AssignRevokePermissionsResponseDTO -from visier_api_administration.models.permission_assigned_users_dto import PermissionAssignedUsersDTO -from visier_api_administration.models.permissions_to_user_group_for_tenant_dto import PermissionsToUserGroupForTenantDTO -from visier_api_administration.models.permissions_to_user_groups_request_dto import PermissionsToUserGroupsRequestDTO -from visier_api_administration.models.security_assignment_response_dto import SecurityAssignmentResponseDTO -from visier_api_administration.models.user_creation_api_request_dto import UserCreationAPIRequestDTO +from visier_api_administration.models.admin_transfers_permissions_to_user_group_for_tenant_dto import AdminTransfersPermissionsToUserGroupForTenantDTO +from visier_api_administration.models.admin_transfers_permissions_to_user_groups_request_dto import AdminTransfersPermissionsToUserGroupsRequestDTO +from visier_api_administration.models.admin_transfers_security_assignment_response_dto import AdminTransfersSecurityAssignmentResponseDTO +from visier_api_administration.models.admin_transfers_user_groups_get_api_response_dto import AdminTransfersUserGroupsGetAPIResponseDTO +from visier_api_administration.models.admin_transfers_user_groups_users_dto import AdminTransfersUserGroupsUsersDTO +from visier_api_administration.models.admin_transfers_users_to_user_groups_request_dto import AdminTransfersUsersToUserGroupsRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_all_users_get_api_response_dto import ServicingPublicapiTransfersAllUsersGetAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permissions_request_dto import ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permissions_response_dto import ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_users_dto import ServicingPublicapiTransfersPermissionAssignedUsersDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_creation_api_request_dto import ServicingPublicapiTransfersUserCreationAPIRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_get_api_response_dto import ServicingPublicapiTransfersUserGetAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_update_api_request_dto import ServicingPublicapiTransfersUserUpdateAPIRequestDTO from visier_api_administration.models.user_creation_api_response_dto import UserCreationAPIResponseDTO -from visier_api_administration.models.user_get_api_response_dto import UserGetAPIResponseDTO -from visier_api_administration.models.user_groups_get_api_response_dto import UserGroupsGetAPIResponseDTO -from visier_api_administration.models.user_groups_users_dto import UserGroupsUsersDTO -from visier_api_administration.models.user_update_api_request_dto import UserUpdateAPIRequestDTO -from visier_api_administration.models.users_to_user_groups_request_dto import UsersToUserGroupsRequestDTO import visier_api_administration.models @@ -55,7 +55,7 @@ def __init__(self, api_client=None) -> None: @validate_call def add_user( self, - user_creation_api_request_dto: UserCreationAPIRequestDTO, + servicing_publicapi_transfers_user_creation_api_request_dto: ServicingPublicapiTransfersUserCreationAPIRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to create a user in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -75,8 +75,8 @@ def add_user( Create a new user. Administrating tenant users can specify the tenant in which to add a user. - :param user_creation_api_request_dto: (required) - :type user_creation_api_request_dto: UserCreationAPIRequestDTO + :param servicing_publicapi_transfers_user_creation_api_request_dto: (required) + :type servicing_publicapi_transfers_user_creation_api_request_dto: ServicingPublicapiTransfersUserCreationAPIRequestDTO :param tenant_code: Specify the tenant to create a user in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -104,7 +104,7 @@ def add_user( """ # noqa: E501 _param = self._add_user_serialize( - user_creation_api_request_dto=user_creation_api_request_dto, + servicing_publicapi_transfers_user_creation_api_request_dto=servicing_publicapi_transfers_user_creation_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -131,7 +131,7 @@ def add_user( @validate_call def add_user_with_http_info( self, - user_creation_api_request_dto: UserCreationAPIRequestDTO, + servicing_publicapi_transfers_user_creation_api_request_dto: ServicingPublicapiTransfersUserCreationAPIRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to create a user in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -151,8 +151,8 @@ def add_user_with_http_info( Create a new user. Administrating tenant users can specify the tenant in which to add a user. - :param user_creation_api_request_dto: (required) - :type user_creation_api_request_dto: UserCreationAPIRequestDTO + :param servicing_publicapi_transfers_user_creation_api_request_dto: (required) + :type servicing_publicapi_transfers_user_creation_api_request_dto: ServicingPublicapiTransfersUserCreationAPIRequestDTO :param tenant_code: Specify the tenant to create a user in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -180,7 +180,7 @@ def add_user_with_http_info( """ # noqa: E501 _param = self._add_user_serialize( - user_creation_api_request_dto=user_creation_api_request_dto, + servicing_publicapi_transfers_user_creation_api_request_dto=servicing_publicapi_transfers_user_creation_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -207,7 +207,7 @@ def add_user_with_http_info( @validate_call def add_user_without_preload_content( self, - user_creation_api_request_dto: UserCreationAPIRequestDTO, + servicing_publicapi_transfers_user_creation_api_request_dto: ServicingPublicapiTransfersUserCreationAPIRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to create a user in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -227,8 +227,8 @@ def add_user_without_preload_content( Create a new user. Administrating tenant users can specify the tenant in which to add a user. - :param user_creation_api_request_dto: (required) - :type user_creation_api_request_dto: UserCreationAPIRequestDTO + :param servicing_publicapi_transfers_user_creation_api_request_dto: (required) + :type servicing_publicapi_transfers_user_creation_api_request_dto: ServicingPublicapiTransfersUserCreationAPIRequestDTO :param tenant_code: Specify the tenant to create a user in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -256,7 +256,7 @@ def add_user_without_preload_content( """ # noqa: E501 _param = self._add_user_serialize( - user_creation_api_request_dto=user_creation_api_request_dto, + servicing_publicapi_transfers_user_creation_api_request_dto=servicing_publicapi_transfers_user_creation_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -277,7 +277,7 @@ def add_user_without_preload_content( def _add_user_serialize( self, - user_creation_api_request_dto, + servicing_publicapi_transfers_user_creation_api_request_dto, tenant_code, target_tenant_id, _request_auth, @@ -309,8 +309,8 @@ def _add_user_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if user_creation_api_request_dto is not None: - _body_params = user_creation_api_request_dto + if servicing_publicapi_transfers_user_creation_api_request_dto is not None: + _body_params = servicing_publicapi_transfers_user_creation_api_request_dto # set the HTTP header `Accept` @@ -337,6 +337,11 @@ def _add_user_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -360,7 +365,7 @@ def _add_user_serialize( @validate_call def add_users_to_user_group( self, - users_to_user_groups_request_dto: UsersToUserGroupsRequestDTO, + admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -376,13 +381,13 @@ def add_users_to_user_group( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SecurityAssignmentResponseDTO: + ) -> AdminTransfersSecurityAssignmentResponseDTO: """Assign users to user groups This API allows you to assign users to specific user groups. To assign users to user groups in a project for the administrating tenant, provide a project UUID in the `ProjectID` request header. Administrating tenants can assign users to user groups in multiple analytic tenants by providing a tenant code and project ID in the request body. We recommend that administrating tenants set the analytic tenant in which to execute the API call using the `TargetTenantID` request header. - :param users_to_user_groups_request_dto: (required) - :type users_to_user_groups_request_dto: UsersToUserGroupsRequestDTO + :param admin_transfers_users_to_user_groups_request_dto: (required) + :type admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -412,7 +417,7 @@ def add_users_to_user_group( """ # noqa: E501 _param = self._add_users_to_user_group_serialize( - users_to_user_groups_request_dto=users_to_user_groups_request_dto, + admin_transfers_users_to_user_groups_request_dto=admin_transfers_users_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -423,7 +428,7 @@ def add_users_to_user_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SecurityAssignmentResponseDTO", + '200': "AdminTransfersSecurityAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -440,7 +445,7 @@ def add_users_to_user_group( @validate_call def add_users_to_user_group_with_http_info( self, - users_to_user_groups_request_dto: UsersToUserGroupsRequestDTO, + admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -456,13 +461,13 @@ def add_users_to_user_group_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SecurityAssignmentResponseDTO]: + ) -> ApiResponse[AdminTransfersSecurityAssignmentResponseDTO]: """Assign users to user groups This API allows you to assign users to specific user groups. To assign users to user groups in a project for the administrating tenant, provide a project UUID in the `ProjectID` request header. Administrating tenants can assign users to user groups in multiple analytic tenants by providing a tenant code and project ID in the request body. We recommend that administrating tenants set the analytic tenant in which to execute the API call using the `TargetTenantID` request header. - :param users_to_user_groups_request_dto: (required) - :type users_to_user_groups_request_dto: UsersToUserGroupsRequestDTO + :param admin_transfers_users_to_user_groups_request_dto: (required) + :type admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -492,7 +497,7 @@ def add_users_to_user_group_with_http_info( """ # noqa: E501 _param = self._add_users_to_user_group_serialize( - users_to_user_groups_request_dto=users_to_user_groups_request_dto, + admin_transfers_users_to_user_groups_request_dto=admin_transfers_users_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -503,7 +508,7 @@ def add_users_to_user_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SecurityAssignmentResponseDTO", + '200': "AdminTransfersSecurityAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -520,7 +525,7 @@ def add_users_to_user_group_with_http_info( @validate_call def add_users_to_user_group_without_preload_content( self, - users_to_user_groups_request_dto: UsersToUserGroupsRequestDTO, + admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -541,8 +546,8 @@ def add_users_to_user_group_without_preload_content( This API allows you to assign users to specific user groups. To assign users to user groups in a project for the administrating tenant, provide a project UUID in the `ProjectID` request header. Administrating tenants can assign users to user groups in multiple analytic tenants by providing a tenant code and project ID in the request body. We recommend that administrating tenants set the analytic tenant in which to execute the API call using the `TargetTenantID` request header. - :param users_to_user_groups_request_dto: (required) - :type users_to_user_groups_request_dto: UsersToUserGroupsRequestDTO + :param admin_transfers_users_to_user_groups_request_dto: (required) + :type admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -572,7 +577,7 @@ def add_users_to_user_group_without_preload_content( """ # noqa: E501 _param = self._add_users_to_user_group_serialize( - users_to_user_groups_request_dto=users_to_user_groups_request_dto, + admin_transfers_users_to_user_groups_request_dto=admin_transfers_users_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -583,7 +588,7 @@ def add_users_to_user_group_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SecurityAssignmentResponseDTO", + '200': "AdminTransfersSecurityAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -594,7 +599,7 @@ def add_users_to_user_group_without_preload_content( def _add_users_to_user_group_serialize( self, - users_to_user_groups_request_dto, + admin_transfers_users_to_user_groups_request_dto, project_id, target_tenant_id, non_versioned, @@ -627,8 +632,8 @@ def _add_users_to_user_group_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if users_to_user_groups_request_dto is not None: - _body_params = users_to_user_groups_request_dto + if admin_transfers_users_to_user_groups_request_dto is not None: + _body_params = admin_transfers_users_to_user_groups_request_dto # set the HTTP header `Accept` @@ -655,6 +660,11 @@ def _add_users_to_user_group_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -678,7 +688,7 @@ def _add_users_to_user_group_serialize( @validate_call def assign_permissions( self, - assign_revoke_permissions_request_dto: AssignRevokePermissionsRequestDTO, + servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -694,13 +704,13 @@ def assign_permissions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AssignRevokePermissionsResponseDTO: + ) -> ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO: """Assign permissions to users This API allows you to assign a permission to specific users. Administrating tenant users can assign permissions to users in the administrating tenant and in the analytic tenants those users belong to. To assign permissions to users in a project for the administrating tenant, provide a project UUID in the `ProjectID` request header. Administrating tenants can assign permissions to users in analytic tenants by providing a tenant code and project ID in the request body. - :param assign_revoke_permissions_request_dto: (required) - :type assign_revoke_permissions_request_dto: AssignRevokePermissionsRequestDTO + :param servicing_publicapi_transfers_assign_revoke_permissions_request_dto: (required) + :type servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -730,7 +740,7 @@ def assign_permissions( """ # noqa: E501 _param = self._assign_permissions_serialize( - assign_revoke_permissions_request_dto=assign_revoke_permissions_request_dto, + servicing_publicapi_transfers_assign_revoke_permissions_request_dto=servicing_publicapi_transfers_assign_revoke_permissions_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -741,7 +751,7 @@ def assign_permissions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AssignRevokePermissionsResponseDTO", + '200': "ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -758,7 +768,7 @@ def assign_permissions( @validate_call def assign_permissions_with_http_info( self, - assign_revoke_permissions_request_dto: AssignRevokePermissionsRequestDTO, + servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -774,13 +784,13 @@ def assign_permissions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AssignRevokePermissionsResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO]: """Assign permissions to users This API allows you to assign a permission to specific users. Administrating tenant users can assign permissions to users in the administrating tenant and in the analytic tenants those users belong to. To assign permissions to users in a project for the administrating tenant, provide a project UUID in the `ProjectID` request header. Administrating tenants can assign permissions to users in analytic tenants by providing a tenant code and project ID in the request body. - :param assign_revoke_permissions_request_dto: (required) - :type assign_revoke_permissions_request_dto: AssignRevokePermissionsRequestDTO + :param servicing_publicapi_transfers_assign_revoke_permissions_request_dto: (required) + :type servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -810,7 +820,7 @@ def assign_permissions_with_http_info( """ # noqa: E501 _param = self._assign_permissions_serialize( - assign_revoke_permissions_request_dto=assign_revoke_permissions_request_dto, + servicing_publicapi_transfers_assign_revoke_permissions_request_dto=servicing_publicapi_transfers_assign_revoke_permissions_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -821,7 +831,7 @@ def assign_permissions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AssignRevokePermissionsResponseDTO", + '200': "ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -838,7 +848,7 @@ def assign_permissions_with_http_info( @validate_call def assign_permissions_without_preload_content( self, - assign_revoke_permissions_request_dto: AssignRevokePermissionsRequestDTO, + servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -859,8 +869,8 @@ def assign_permissions_without_preload_content( This API allows you to assign a permission to specific users. Administrating tenant users can assign permissions to users in the administrating tenant and in the analytic tenants those users belong to. To assign permissions to users in a project for the administrating tenant, provide a project UUID in the `ProjectID` request header. Administrating tenants can assign permissions to users in analytic tenants by providing a tenant code and project ID in the request body. - :param assign_revoke_permissions_request_dto: (required) - :type assign_revoke_permissions_request_dto: AssignRevokePermissionsRequestDTO + :param servicing_publicapi_transfers_assign_revoke_permissions_request_dto: (required) + :type servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -890,7 +900,7 @@ def assign_permissions_without_preload_content( """ # noqa: E501 _param = self._assign_permissions_serialize( - assign_revoke_permissions_request_dto=assign_revoke_permissions_request_dto, + servicing_publicapi_transfers_assign_revoke_permissions_request_dto=servicing_publicapi_transfers_assign_revoke_permissions_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -901,7 +911,7 @@ def assign_permissions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AssignRevokePermissionsResponseDTO", + '200': "ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -912,7 +922,7 @@ def assign_permissions_without_preload_content( def _assign_permissions_serialize( self, - assign_revoke_permissions_request_dto, + servicing_publicapi_transfers_assign_revoke_permissions_request_dto, project_id, target_tenant_id, non_versioned, @@ -945,8 +955,8 @@ def _assign_permissions_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if assign_revoke_permissions_request_dto is not None: - _body_params = assign_revoke_permissions_request_dto + if servicing_publicapi_transfers_assign_revoke_permissions_request_dto is not None: + _body_params = servicing_publicapi_transfers_assign_revoke_permissions_request_dto # set the HTTP header `Accept` @@ -973,6 +983,11 @@ def _assign_permissions_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -996,7 +1011,7 @@ def _assign_permissions_serialize( @validate_call def assign_permissions_to_user_groups( self, - permissions_to_user_groups_request_dto: PermissionsToUserGroupsRequestDTO, + admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -1011,13 +1026,13 @@ def assign_permissions_to_user_groups( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PermissionsToUserGroupForTenantDTO: + ) -> AdminTransfersPermissionsToUserGroupForTenantDTO: """Assign permissions to user groups This API allows you to assign a permission to specific user groups. This assigns the permission to all users in the user group. To assign permissions to user groups in a project, provide a project UUID in the `ProjectID` request header. - :param permissions_to_user_groups_request_dto: (required) - :type permissions_to_user_groups_request_dto: PermissionsToUserGroupsRequestDTO + :param admin_transfers_permissions_to_user_groups_request_dto: (required) + :type admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -1045,7 +1060,7 @@ def assign_permissions_to_user_groups( """ # noqa: E501 _param = self._assign_permissions_to_user_groups_serialize( - permissions_to_user_groups_request_dto=permissions_to_user_groups_request_dto, + admin_transfers_permissions_to_user_groups_request_dto=admin_transfers_permissions_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -1055,7 +1070,7 @@ def assign_permissions_to_user_groups( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionsToUserGroupForTenantDTO", + '200': "AdminTransfersPermissionsToUserGroupForTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -1072,7 +1087,7 @@ def assign_permissions_to_user_groups( @validate_call def assign_permissions_to_user_groups_with_http_info( self, - permissions_to_user_groups_request_dto: PermissionsToUserGroupsRequestDTO, + admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -1087,13 +1102,13 @@ def assign_permissions_to_user_groups_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PermissionsToUserGroupForTenantDTO]: + ) -> ApiResponse[AdminTransfersPermissionsToUserGroupForTenantDTO]: """Assign permissions to user groups This API allows you to assign a permission to specific user groups. This assigns the permission to all users in the user group. To assign permissions to user groups in a project, provide a project UUID in the `ProjectID` request header. - :param permissions_to_user_groups_request_dto: (required) - :type permissions_to_user_groups_request_dto: PermissionsToUserGroupsRequestDTO + :param admin_transfers_permissions_to_user_groups_request_dto: (required) + :type admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -1121,7 +1136,7 @@ def assign_permissions_to_user_groups_with_http_info( """ # noqa: E501 _param = self._assign_permissions_to_user_groups_serialize( - permissions_to_user_groups_request_dto=permissions_to_user_groups_request_dto, + admin_transfers_permissions_to_user_groups_request_dto=admin_transfers_permissions_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -1131,7 +1146,7 @@ def assign_permissions_to_user_groups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionsToUserGroupForTenantDTO", + '200': "AdminTransfersPermissionsToUserGroupForTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -1148,7 +1163,7 @@ def assign_permissions_to_user_groups_with_http_info( @validate_call def assign_permissions_to_user_groups_without_preload_content( self, - permissions_to_user_groups_request_dto: PermissionsToUserGroupsRequestDTO, + admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -1168,8 +1183,8 @@ def assign_permissions_to_user_groups_without_preload_content( This API allows you to assign a permission to specific user groups. This assigns the permission to all users in the user group. To assign permissions to user groups in a project, provide a project UUID in the `ProjectID` request header. - :param permissions_to_user_groups_request_dto: (required) - :type permissions_to_user_groups_request_dto: PermissionsToUserGroupsRequestDTO + :param admin_transfers_permissions_to_user_groups_request_dto: (required) + :type admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -1197,7 +1212,7 @@ def assign_permissions_to_user_groups_without_preload_content( """ # noqa: E501 _param = self._assign_permissions_to_user_groups_serialize( - permissions_to_user_groups_request_dto=permissions_to_user_groups_request_dto, + admin_transfers_permissions_to_user_groups_request_dto=admin_transfers_permissions_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -1207,7 +1222,7 @@ def assign_permissions_to_user_groups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionsToUserGroupForTenantDTO", + '200': "AdminTransfersPermissionsToUserGroupForTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -1218,7 +1233,7 @@ def assign_permissions_to_user_groups_without_preload_content( def _assign_permissions_to_user_groups_serialize( self, - permissions_to_user_groups_request_dto, + admin_transfers_permissions_to_user_groups_request_dto, project_id, target_tenant_id, _request_auth, @@ -1248,8 +1263,8 @@ def _assign_permissions_to_user_groups_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if permissions_to_user_groups_request_dto is not None: - _body_params = permissions_to_user_groups_request_dto + if admin_transfers_permissions_to_user_groups_request_dto is not None: + _body_params = admin_transfers_permissions_to_user_groups_request_dto # set the HTTP header `Accept` @@ -1276,6 +1291,11 @@ def _assign_permissions_to_user_groups_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1568,6 +1588,11 @@ def _delete_user_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1846,6 +1871,11 @@ def _get_all_permissions_xlsx_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -1886,7 +1916,7 @@ def get_all_user_groups( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserGroupsGetAPIResponseDTO: + ) -> AdminTransfersUserGroupsGetAPIResponseDTO: """Retrieve a list of all user groups This API allows you to retrieve the full list of user groups in a tenant. To specify the project in which to retrieve user groups for a tenant, provide a project UUID in the `ProjectID` request header. If omitted, the request retrieves user information from production. @@ -1936,7 +1966,7 @@ def get_all_user_groups( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupsGetAPIResponseDTO", + '200': "AdminTransfersUserGroupsGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1970,7 +2000,7 @@ def get_all_user_groups_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserGroupsGetAPIResponseDTO]: + ) -> ApiResponse[AdminTransfersUserGroupsGetAPIResponseDTO]: """Retrieve a list of all user groups This API allows you to retrieve the full list of user groups in a tenant. To specify the project in which to retrieve user groups for a tenant, provide a project UUID in the `ProjectID` request header. If omitted, the request retrieves user information from production. @@ -2020,7 +2050,7 @@ def get_all_user_groups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupsGetAPIResponseDTO", + '200': "AdminTransfersUserGroupsGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2104,7 +2134,7 @@ def get_all_user_groups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupsGetAPIResponseDTO", + '200': "AdminTransfersUserGroupsGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2172,6 +2202,11 @@ def _get_all_user_groups_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -2215,7 +2250,7 @@ def get_all_users( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AllUsersGetAPIResponseDTO: + ) -> ServicingPublicapiTransfersAllUsersGetAPIResponseDTO: """Retrieve a list of all users This API allows you to retrieve the full list of users and their current states. To specify the project in which to retrieve user information, provide a project UUID in the `ProjectID` request header. If omitted, the request retrieves user information from production. @@ -2274,7 +2309,7 @@ def get_all_users( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AllUsersGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersAllUsersGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2311,7 +2346,7 @@ def get_all_users_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AllUsersGetAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersAllUsersGetAPIResponseDTO]: """Retrieve a list of all users This API allows you to retrieve the full list of users and their current states. To specify the project in which to retrieve user information, provide a project UUID in the `ProjectID` request header. If omitted, the request retrieves user information from production. @@ -2370,7 +2405,7 @@ def get_all_users_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AllUsersGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersAllUsersGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2466,7 +2501,7 @@ def get_all_users_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AllUsersGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersAllUsersGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2549,6 +2584,11 @@ def _get_all_users_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -2861,6 +2901,11 @@ def _get_application_logs_xlsx_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -3154,6 +3199,11 @@ def _get_data_security_report_xlsx_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -3197,7 +3247,7 @@ def get_permission_assigned_users( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PermissionAssignedUsersDTO: + ) -> ServicingPublicapiTransfersPermissionAssignedUsersDTO: """Retrieve users that are assigned a specific permission This API allows you to retrieve all the users that are assigned a specified permission. You must know the ID of the permission you want to retrieve users for. To specify the project in which to retrieve users assigned to a specific permission for the login tenant, provide a project UUID in the `ProjectID` request header. If omitted, the request retrieves users assigned to a specific permission from production. @@ -3256,7 +3306,7 @@ def get_permission_assigned_users( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionAssignedUsersDTO", + '200': "ServicingPublicapiTransfersPermissionAssignedUsersDTO", } response_data = self.api_client.call_api( *_param, @@ -3293,7 +3343,7 @@ def get_permission_assigned_users_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PermissionAssignedUsersDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersPermissionAssignedUsersDTO]: """Retrieve users that are assigned a specific permission This API allows you to retrieve all the users that are assigned a specified permission. You must know the ID of the permission you want to retrieve users for. To specify the project in which to retrieve users assigned to a specific permission for the login tenant, provide a project UUID in the `ProjectID` request header. If omitted, the request retrieves users assigned to a specific permission from production. @@ -3352,7 +3402,7 @@ def get_permission_assigned_users_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionAssignedUsersDTO", + '200': "ServicingPublicapiTransfersPermissionAssignedUsersDTO", } response_data = self.api_client.call_api( *_param, @@ -3448,7 +3498,7 @@ def get_permission_assigned_users_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionAssignedUsersDTO", + '200': "ServicingPublicapiTransfersPermissionAssignedUsersDTO", } response_data = self.api_client.call_api( *_param, @@ -3527,6 +3577,11 @@ def _get_permission_assigned_users_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -3805,6 +3860,11 @@ def _get_profile_assignments_xlsx_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -3847,7 +3907,7 @@ def get_user_detail( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserGetAPIResponseDTO: + ) -> ServicingPublicapiTransfersUserGetAPIResponseDTO: """Retrieve a user's details This API allows you to retrieve all details for a specified user. To specify the project in which to retrieve user information, provide a project UUID in the `ProjectID` request header. If omitted, the request retrieves user information from production. @@ -3903,7 +3963,7 @@ def get_user_detail( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersUserGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3939,7 +3999,7 @@ def get_user_detail_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserGetAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersUserGetAPIResponseDTO]: """Retrieve a user's details This API allows you to retrieve all details for a specified user. To specify the project in which to retrieve user information, provide a project UUID in the `ProjectID` request header. If omitted, the request retrieves user information from production. @@ -3995,7 +4055,7 @@ def get_user_detail_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersUserGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4087,7 +4147,7 @@ def get_user_detail_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGetAPIResponseDTO", + '200': "ServicingPublicapiTransfersUserGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4163,6 +4223,11 @@ def _get_user_detail_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -4204,7 +4269,7 @@ def get_user_group_users( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserGroupsUsersDTO: + ) -> AdminTransfersUserGroupsUsersDTO: """Retrieve a list of user group users This API allows you to retrieve the list of users explicitly assigned to a user group. Users that are implicitly included in the user group through the user group's dynamic filters are not returned by this endpoint. To specify the project in which to retrieve user group users for the login tenant, provide a project UUID in the `ProjectID` request header. If omitted, the request retrieves user group users from production. @@ -4257,7 +4322,7 @@ def get_user_group_users( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupsUsersDTO", + '200': "AdminTransfersUserGroupsUsersDTO", } response_data = self.api_client.call_api( *_param, @@ -4292,7 +4357,7 @@ def get_user_group_users_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserGroupsUsersDTO]: + ) -> ApiResponse[AdminTransfersUserGroupsUsersDTO]: """Retrieve a list of user group users This API allows you to retrieve the list of users explicitly assigned to a user group. Users that are implicitly included in the user group through the user group's dynamic filters are not returned by this endpoint. To specify the project in which to retrieve user group users for the login tenant, provide a project UUID in the `ProjectID` request header. If omitted, the request retrieves user group users from production. @@ -4345,7 +4410,7 @@ def get_user_group_users_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupsUsersDTO", + '200': "AdminTransfersUserGroupsUsersDTO", } response_data = self.api_client.call_api( *_param, @@ -4433,7 +4498,7 @@ def get_user_group_users_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserGroupsUsersDTO", + '200': "AdminTransfersUserGroupsUsersDTO", } response_data = self.api_client.call_api( *_param, @@ -4504,6 +4569,11 @@ def _get_user_group_users_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -4782,6 +4852,11 @@ def _get_user_permissions_xlsx_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -4805,7 +4880,7 @@ def _get_user_permissions_xlsx_serialize( @validate_call def remove_permissions( self, - assign_revoke_permissions_request_dto: AssignRevokePermissionsRequestDTO, + servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -4821,13 +4896,13 @@ def remove_permissions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AssignRevokePermissionsResponseDTO: + ) -> ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO: """Remove permissions from users This API allows you to remove a permission from specific users. Administrating tenant users can remove permissions from users in the administrating tenant and in the analytic tenants those users belong to. To remove permission from users in a project for the administrating tenant, provide a project UUID in the `ProjectID` request header. Administrating tenants can remove permissions from users in analytic tenants by providing a tenant code and project ID in the request body. - :param assign_revoke_permissions_request_dto: (required) - :type assign_revoke_permissions_request_dto: AssignRevokePermissionsRequestDTO + :param servicing_publicapi_transfers_assign_revoke_permissions_request_dto: (required) + :type servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -4857,7 +4932,7 @@ def remove_permissions( """ # noqa: E501 _param = self._remove_permissions_serialize( - assign_revoke_permissions_request_dto=assign_revoke_permissions_request_dto, + servicing_publicapi_transfers_assign_revoke_permissions_request_dto=servicing_publicapi_transfers_assign_revoke_permissions_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -4868,7 +4943,7 @@ def remove_permissions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AssignRevokePermissionsResponseDTO", + '200': "ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4885,7 +4960,7 @@ def remove_permissions( @validate_call def remove_permissions_with_http_info( self, - assign_revoke_permissions_request_dto: AssignRevokePermissionsRequestDTO, + servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -4901,13 +4976,13 @@ def remove_permissions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AssignRevokePermissionsResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO]: """Remove permissions from users This API allows you to remove a permission from specific users. Administrating tenant users can remove permissions from users in the administrating tenant and in the analytic tenants those users belong to. To remove permission from users in a project for the administrating tenant, provide a project UUID in the `ProjectID` request header. Administrating tenants can remove permissions from users in analytic tenants by providing a tenant code and project ID in the request body. - :param assign_revoke_permissions_request_dto: (required) - :type assign_revoke_permissions_request_dto: AssignRevokePermissionsRequestDTO + :param servicing_publicapi_transfers_assign_revoke_permissions_request_dto: (required) + :type servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -4937,7 +5012,7 @@ def remove_permissions_with_http_info( """ # noqa: E501 _param = self._remove_permissions_serialize( - assign_revoke_permissions_request_dto=assign_revoke_permissions_request_dto, + servicing_publicapi_transfers_assign_revoke_permissions_request_dto=servicing_publicapi_transfers_assign_revoke_permissions_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -4948,7 +5023,7 @@ def remove_permissions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AssignRevokePermissionsResponseDTO", + '200': "ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4965,7 +5040,7 @@ def remove_permissions_with_http_info( @validate_call def remove_permissions_without_preload_content( self, - assign_revoke_permissions_request_dto: AssignRevokePermissionsRequestDTO, + servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -4986,8 +5061,8 @@ def remove_permissions_without_preload_content( This API allows you to remove a permission from specific users. Administrating tenant users can remove permissions from users in the administrating tenant and in the analytic tenants those users belong to. To remove permission from users in a project for the administrating tenant, provide a project UUID in the `ProjectID` request header. Administrating tenants can remove permissions from users in analytic tenants by providing a tenant code and project ID in the request body. - :param assign_revoke_permissions_request_dto: (required) - :type assign_revoke_permissions_request_dto: AssignRevokePermissionsRequestDTO + :param servicing_publicapi_transfers_assign_revoke_permissions_request_dto: (required) + :type servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -5017,7 +5092,7 @@ def remove_permissions_without_preload_content( """ # noqa: E501 _param = self._remove_permissions_serialize( - assign_revoke_permissions_request_dto=assign_revoke_permissions_request_dto, + servicing_publicapi_transfers_assign_revoke_permissions_request_dto=servicing_publicapi_transfers_assign_revoke_permissions_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -5028,7 +5103,7 @@ def remove_permissions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AssignRevokePermissionsResponseDTO", + '200': "ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5039,7 +5114,7 @@ def remove_permissions_without_preload_content( def _remove_permissions_serialize( self, - assign_revoke_permissions_request_dto, + servicing_publicapi_transfers_assign_revoke_permissions_request_dto, project_id, target_tenant_id, non_versioned, @@ -5072,8 +5147,8 @@ def _remove_permissions_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if assign_revoke_permissions_request_dto is not None: - _body_params = assign_revoke_permissions_request_dto + if servicing_publicapi_transfers_assign_revoke_permissions_request_dto is not None: + _body_params = servicing_publicapi_transfers_assign_revoke_permissions_request_dto # set the HTTP header `Accept` @@ -5100,6 +5175,11 @@ def _remove_permissions_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -5123,7 +5203,7 @@ def _remove_permissions_serialize( @validate_call def remove_users_from_user_group( self, - users_to_user_groups_request_dto: UsersToUserGroupsRequestDTO, + admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -5139,13 +5219,13 @@ def remove_users_from_user_group( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SecurityAssignmentResponseDTO: + ) -> AdminTransfersSecurityAssignmentResponseDTO: """Remove users from user groups This API allows you to remove users from specific user groups. To remove users from user groups in a project for the administrating tenant, provide a project UUID in the `ProjectID` request header. Administrating tenants can remove users to user groups in multiple analytic tenants by providing a tenant code and project ID in the request body. We recommend that administrating tenants set the analytic tenant in which to execute the API call using the `TargetTenantID` request header. - :param users_to_user_groups_request_dto: (required) - :type users_to_user_groups_request_dto: UsersToUserGroupsRequestDTO + :param admin_transfers_users_to_user_groups_request_dto: (required) + :type admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -5175,7 +5255,7 @@ def remove_users_from_user_group( """ # noqa: E501 _param = self._remove_users_from_user_group_serialize( - users_to_user_groups_request_dto=users_to_user_groups_request_dto, + admin_transfers_users_to_user_groups_request_dto=admin_transfers_users_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -5186,7 +5266,7 @@ def remove_users_from_user_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SecurityAssignmentResponseDTO", + '200': "AdminTransfersSecurityAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5203,7 +5283,7 @@ def remove_users_from_user_group( @validate_call def remove_users_from_user_group_with_http_info( self, - users_to_user_groups_request_dto: UsersToUserGroupsRequestDTO, + admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -5219,13 +5299,13 @@ def remove_users_from_user_group_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SecurityAssignmentResponseDTO]: + ) -> ApiResponse[AdminTransfersSecurityAssignmentResponseDTO]: """Remove users from user groups This API allows you to remove users from specific user groups. To remove users from user groups in a project for the administrating tenant, provide a project UUID in the `ProjectID` request header. Administrating tenants can remove users to user groups in multiple analytic tenants by providing a tenant code and project ID in the request body. We recommend that administrating tenants set the analytic tenant in which to execute the API call using the `TargetTenantID` request header. - :param users_to_user_groups_request_dto: (required) - :type users_to_user_groups_request_dto: UsersToUserGroupsRequestDTO + :param admin_transfers_users_to_user_groups_request_dto: (required) + :type admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -5255,7 +5335,7 @@ def remove_users_from_user_group_with_http_info( """ # noqa: E501 _param = self._remove_users_from_user_group_serialize( - users_to_user_groups_request_dto=users_to_user_groups_request_dto, + admin_transfers_users_to_user_groups_request_dto=admin_transfers_users_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -5266,7 +5346,7 @@ def remove_users_from_user_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SecurityAssignmentResponseDTO", + '200': "AdminTransfersSecurityAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5283,7 +5363,7 @@ def remove_users_from_user_group_with_http_info( @validate_call def remove_users_from_user_group_without_preload_content( self, - users_to_user_groups_request_dto: UsersToUserGroupsRequestDTO, + admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, non_versioned: Annotated[Optional[StrictBool], Field(description="If `true`, the API call executes on non-versioned artifacts and create/update actions take effect without a new production version. If `false`, the API call executes on versioned artifacts and create/update actions release a new production version. Default is `false`.
**Note:** This header is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).")] = None, @@ -5304,8 +5384,8 @@ def remove_users_from_user_group_without_preload_content( This API allows you to remove users from specific user groups. To remove users from user groups in a project for the administrating tenant, provide a project UUID in the `ProjectID` request header. Administrating tenants can remove users to user groups in multiple analytic tenants by providing a tenant code and project ID in the request body. We recommend that administrating tenants set the analytic tenant in which to execute the API call using the `TargetTenantID` request header. - :param users_to_user_groups_request_dto: (required) - :type users_to_user_groups_request_dto: UsersToUserGroupsRequestDTO + :param admin_transfers_users_to_user_groups_request_dto: (required) + :type admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -5335,7 +5415,7 @@ def remove_users_from_user_group_without_preload_content( """ # noqa: E501 _param = self._remove_users_from_user_group_serialize( - users_to_user_groups_request_dto=users_to_user_groups_request_dto, + admin_transfers_users_to_user_groups_request_dto=admin_transfers_users_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -5346,7 +5426,7 @@ def remove_users_from_user_group_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SecurityAssignmentResponseDTO", + '200': "AdminTransfersSecurityAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5357,7 +5437,7 @@ def remove_users_from_user_group_without_preload_content( def _remove_users_from_user_group_serialize( self, - users_to_user_groups_request_dto, + admin_transfers_users_to_user_groups_request_dto, project_id, target_tenant_id, non_versioned, @@ -5390,8 +5470,8 @@ def _remove_users_from_user_group_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if users_to_user_groups_request_dto is not None: - _body_params = users_to_user_groups_request_dto + if admin_transfers_users_to_user_groups_request_dto is not None: + _body_params = admin_transfers_users_to_user_groups_request_dto # set the HTTP header `Accept` @@ -5418,6 +5498,11 @@ def _remove_users_from_user_group_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -5441,7 +5526,7 @@ def _remove_users_from_user_group_serialize( @validate_call def revoke_permissions_from_user_groups( self, - permissions_to_user_groups_request_dto: PermissionsToUserGroupsRequestDTO, + admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -5456,13 +5541,13 @@ def revoke_permissions_from_user_groups( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PermissionsToUserGroupForTenantDTO: + ) -> AdminTransfersPermissionsToUserGroupForTenantDTO: """Remove permissions from user groups This API allows you to remove a permission from specific user groups. To remove permissions from user groups in a project, provide a project UUID in the `ProjectID` request header. - :param permissions_to_user_groups_request_dto: (required) - :type permissions_to_user_groups_request_dto: PermissionsToUserGroupsRequestDTO + :param admin_transfers_permissions_to_user_groups_request_dto: (required) + :type admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -5490,7 +5575,7 @@ def revoke_permissions_from_user_groups( """ # noqa: E501 _param = self._revoke_permissions_from_user_groups_serialize( - permissions_to_user_groups_request_dto=permissions_to_user_groups_request_dto, + admin_transfers_permissions_to_user_groups_request_dto=admin_transfers_permissions_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -5500,7 +5585,7 @@ def revoke_permissions_from_user_groups( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionsToUserGroupForTenantDTO", + '200': "AdminTransfersPermissionsToUserGroupForTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -5517,7 +5602,7 @@ def revoke_permissions_from_user_groups( @validate_call def revoke_permissions_from_user_groups_with_http_info( self, - permissions_to_user_groups_request_dto: PermissionsToUserGroupsRequestDTO, + admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -5532,13 +5617,13 @@ def revoke_permissions_from_user_groups_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PermissionsToUserGroupForTenantDTO]: + ) -> ApiResponse[AdminTransfersPermissionsToUserGroupForTenantDTO]: """Remove permissions from user groups This API allows you to remove a permission from specific user groups. To remove permissions from user groups in a project, provide a project UUID in the `ProjectID` request header. - :param permissions_to_user_groups_request_dto: (required) - :type permissions_to_user_groups_request_dto: PermissionsToUserGroupsRequestDTO + :param admin_transfers_permissions_to_user_groups_request_dto: (required) + :type admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -5566,7 +5651,7 @@ def revoke_permissions_from_user_groups_with_http_info( """ # noqa: E501 _param = self._revoke_permissions_from_user_groups_serialize( - permissions_to_user_groups_request_dto=permissions_to_user_groups_request_dto, + admin_transfers_permissions_to_user_groups_request_dto=admin_transfers_permissions_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -5576,7 +5661,7 @@ def revoke_permissions_from_user_groups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionsToUserGroupForTenantDTO", + '200': "AdminTransfersPermissionsToUserGroupForTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -5593,7 +5678,7 @@ def revoke_permissions_from_user_groups_with_http_info( @validate_call def revoke_permissions_from_user_groups_without_preload_content( self, - permissions_to_user_groups_request_dto: PermissionsToUserGroupsRequestDTO, + admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request. If omitted, the request uses the production version.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -5613,8 +5698,8 @@ def revoke_permissions_from_user_groups_without_preload_content( This API allows you to remove a permission from specific user groups. To remove permissions from user groups in a project, provide a project UUID in the `ProjectID` request header. - :param permissions_to_user_groups_request_dto: (required) - :type permissions_to_user_groups_request_dto: PermissionsToUserGroupsRequestDTO + :param admin_transfers_permissions_to_user_groups_request_dto: (required) + :type admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO :param project_id: Optionally, specify a project in which to make the request. If omitted, the request uses the production version. :type project_id: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -5642,7 +5727,7 @@ def revoke_permissions_from_user_groups_without_preload_content( """ # noqa: E501 _param = self._revoke_permissions_from_user_groups_serialize( - permissions_to_user_groups_request_dto=permissions_to_user_groups_request_dto, + admin_transfers_permissions_to_user_groups_request_dto=admin_transfers_permissions_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -5652,7 +5737,7 @@ def revoke_permissions_from_user_groups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionsToUserGroupForTenantDTO", + '200': "AdminTransfersPermissionsToUserGroupForTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -5663,7 +5748,7 @@ def revoke_permissions_from_user_groups_without_preload_content( def _revoke_permissions_from_user_groups_serialize( self, - permissions_to_user_groups_request_dto, + admin_transfers_permissions_to_user_groups_request_dto, project_id, target_tenant_id, _request_auth, @@ -5693,8 +5778,8 @@ def _revoke_permissions_from_user_groups_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if permissions_to_user_groups_request_dto is not None: - _body_params = permissions_to_user_groups_request_dto + if admin_transfers_permissions_to_user_groups_request_dto is not None: + _body_params = admin_transfers_permissions_to_user_groups_request_dto # set the HTTP header `Accept` @@ -5721,6 +5806,11 @@ def _revoke_permissions_from_user_groups_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -5745,7 +5835,7 @@ def _revoke_permissions_from_user_groups_serialize( def update_user( self, user_id: Annotated[StrictStr, Field(description="The ID of the user you want to update.")], - user_update_api_request_dto: UserUpdateAPIRequestDTO, + servicing_publicapi_transfers_user_update_api_request_dto: ServicingPublicapiTransfersUserUpdateAPIRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to update a user in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -5760,15 +5850,15 @@ def update_user( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserUpdateAPIRequestDTO: + ) -> ServicingPublicapiTransfersUserUpdateAPIRequestDTO: """Update a user Update an existing user's information, such as their display name or if the user is enabled in Visier. :param user_id: The ID of the user you want to update. (required) :type user_id: str - :param user_update_api_request_dto: (required) - :type user_update_api_request_dto: UserUpdateAPIRequestDTO + :param servicing_publicapi_transfers_user_update_api_request_dto: (required) + :type servicing_publicapi_transfers_user_update_api_request_dto: ServicingPublicapiTransfersUserUpdateAPIRequestDTO :param tenant_code: Specify the tenant to update a user in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -5797,7 +5887,7 @@ def update_user( _param = self._update_user_serialize( user_id=user_id, - user_update_api_request_dto=user_update_api_request_dto, + servicing_publicapi_transfers_user_update_api_request_dto=servicing_publicapi_transfers_user_update_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -5807,7 +5897,7 @@ def update_user( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserUpdateAPIRequestDTO", + '200': "ServicingPublicapiTransfersUserUpdateAPIRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -5825,7 +5915,7 @@ def update_user( def update_user_with_http_info( self, user_id: Annotated[StrictStr, Field(description="The ID of the user you want to update.")], - user_update_api_request_dto: UserUpdateAPIRequestDTO, + servicing_publicapi_transfers_user_update_api_request_dto: ServicingPublicapiTransfersUserUpdateAPIRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to update a user in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -5840,15 +5930,15 @@ def update_user_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserUpdateAPIRequestDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersUserUpdateAPIRequestDTO]: """Update a user Update an existing user's information, such as their display name or if the user is enabled in Visier. :param user_id: The ID of the user you want to update. (required) :type user_id: str - :param user_update_api_request_dto: (required) - :type user_update_api_request_dto: UserUpdateAPIRequestDTO + :param servicing_publicapi_transfers_user_update_api_request_dto: (required) + :type servicing_publicapi_transfers_user_update_api_request_dto: ServicingPublicapiTransfersUserUpdateAPIRequestDTO :param tenant_code: Specify the tenant to update a user in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -5877,7 +5967,7 @@ def update_user_with_http_info( _param = self._update_user_serialize( user_id=user_id, - user_update_api_request_dto=user_update_api_request_dto, + servicing_publicapi_transfers_user_update_api_request_dto=servicing_publicapi_transfers_user_update_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -5887,7 +5977,7 @@ def update_user_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserUpdateAPIRequestDTO", + '200': "ServicingPublicapiTransfersUserUpdateAPIRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -5905,7 +5995,7 @@ def update_user_with_http_info( def update_user_without_preload_content( self, user_id: Annotated[StrictStr, Field(description="The ID of the user you want to update.")], - user_update_api_request_dto: UserUpdateAPIRequestDTO, + servicing_publicapi_transfers_user_update_api_request_dto: ServicingPublicapiTransfersUserUpdateAPIRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to update a user in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -5927,8 +6017,8 @@ def update_user_without_preload_content( :param user_id: The ID of the user you want to update. (required) :type user_id: str - :param user_update_api_request_dto: (required) - :type user_update_api_request_dto: UserUpdateAPIRequestDTO + :param servicing_publicapi_transfers_user_update_api_request_dto: (required) + :type servicing_publicapi_transfers_user_update_api_request_dto: ServicingPublicapiTransfersUserUpdateAPIRequestDTO :param tenant_code: Specify the tenant to update a user in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -5957,7 +6047,7 @@ def update_user_without_preload_content( _param = self._update_user_serialize( user_id=user_id, - user_update_api_request_dto=user_update_api_request_dto, + servicing_publicapi_transfers_user_update_api_request_dto=servicing_publicapi_transfers_user_update_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -5967,7 +6057,7 @@ def update_user_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserUpdateAPIRequestDTO", + '200': "ServicingPublicapiTransfersUserUpdateAPIRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -5979,7 +6069,7 @@ def update_user_without_preload_content( def _update_user_serialize( self, user_id, - user_update_api_request_dto, + servicing_publicapi_transfers_user_update_api_request_dto, tenant_code, target_tenant_id, _request_auth, @@ -6013,8 +6103,8 @@ def _update_user_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if user_update_api_request_dto is not None: - _body_params = user_update_api_request_dto + if servicing_publicapi_transfers_user_update_api_request_dto is not None: + _body_params = servicing_publicapi_transfers_user_update_api_request_dto # set the HTTP header `Accept` @@ -6041,6 +6131,11 @@ def _update_user_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( diff --git a/src/visier_api_administration/visier_api_administration/api/users_v2_api.py b/src/visier_api_administration/visier_api_administration/api/users_v2_api.py index 424e743d3d..4e2a8c1e28 100644 --- a/src/visier_api_administration/visier_api_administration/api/users_v2_api.py +++ b/src/visier_api_administration/visier_api_administration/api/users_v2_api.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,10 +23,10 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_administration.models.users_api_response_dto import UsersAPIResponseDTO -from visier_api_administration.models.users_creation_api_request_dto import UsersCreationAPIRequestDTO -from visier_api_administration.models.users_delete_api_request_dto import UsersDeleteAPIRequestDTO -from visier_api_administration.models.users_update_api_request_dto import UsersUpdateAPIRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_api_response_dto import ServicingPublicapiTransfersUsersAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_creation_api_request_dto import ServicingPublicapiTransfersUsersCreationAPIRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_delete_api_request_dto import ServicingPublicapiTransfersUsersDeleteAPIRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_update_api_request_dto import ServicingPublicapiTransfersUsersUpdateAPIRequestDTO import visier_api_administration.models @@ -45,7 +45,7 @@ def __init__(self, api_client=None) -> None: @validate_call def add_users( self, - users_creation_api_request_dto: UsersCreationAPIRequestDTO, + servicing_publicapi_transfers_users_creation_api_request_dto: ServicingPublicapiTransfersUsersCreationAPIRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to create a user in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -60,13 +60,13 @@ def add_users( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UsersAPIResponseDTO: + ) -> ServicingPublicapiTransfersUsersAPIResponseDTO: """Add users Create new users. Administrating tenant users can specify the tenant in which to add these users. - :param users_creation_api_request_dto: (required) - :type users_creation_api_request_dto: UsersCreationAPIRequestDTO + :param servicing_publicapi_transfers_users_creation_api_request_dto: (required) + :type servicing_publicapi_transfers_users_creation_api_request_dto: ServicingPublicapiTransfersUsersCreationAPIRequestDTO :param tenant_code: Specify the tenant to create a user in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -94,7 +94,7 @@ def add_users( """ # noqa: E501 _param = self._add_users_serialize( - users_creation_api_request_dto=users_creation_api_request_dto, + servicing_publicapi_transfers_users_creation_api_request_dto=servicing_publicapi_transfers_users_creation_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -104,7 +104,7 @@ def add_users( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UsersAPIResponseDTO", + '200': "ServicingPublicapiTransfersUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -121,7 +121,7 @@ def add_users( @validate_call def add_users_with_http_info( self, - users_creation_api_request_dto: UsersCreationAPIRequestDTO, + servicing_publicapi_transfers_users_creation_api_request_dto: ServicingPublicapiTransfersUsersCreationAPIRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to create a user in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -136,13 +136,13 @@ def add_users_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UsersAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersUsersAPIResponseDTO]: """Add users Create new users. Administrating tenant users can specify the tenant in which to add these users. - :param users_creation_api_request_dto: (required) - :type users_creation_api_request_dto: UsersCreationAPIRequestDTO + :param servicing_publicapi_transfers_users_creation_api_request_dto: (required) + :type servicing_publicapi_transfers_users_creation_api_request_dto: ServicingPublicapiTransfersUsersCreationAPIRequestDTO :param tenant_code: Specify the tenant to create a user in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -170,7 +170,7 @@ def add_users_with_http_info( """ # noqa: E501 _param = self._add_users_serialize( - users_creation_api_request_dto=users_creation_api_request_dto, + servicing_publicapi_transfers_users_creation_api_request_dto=servicing_publicapi_transfers_users_creation_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -180,7 +180,7 @@ def add_users_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UsersAPIResponseDTO", + '200': "ServicingPublicapiTransfersUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -197,7 +197,7 @@ def add_users_with_http_info( @validate_call def add_users_without_preload_content( self, - users_creation_api_request_dto: UsersCreationAPIRequestDTO, + servicing_publicapi_transfers_users_creation_api_request_dto: ServicingPublicapiTransfersUsersCreationAPIRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to create a user in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -217,8 +217,8 @@ def add_users_without_preload_content( Create new users. Administrating tenant users can specify the tenant in which to add these users. - :param users_creation_api_request_dto: (required) - :type users_creation_api_request_dto: UsersCreationAPIRequestDTO + :param servicing_publicapi_transfers_users_creation_api_request_dto: (required) + :type servicing_publicapi_transfers_users_creation_api_request_dto: ServicingPublicapiTransfersUsersCreationAPIRequestDTO :param tenant_code: Specify the tenant to create a user in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -246,7 +246,7 @@ def add_users_without_preload_content( """ # noqa: E501 _param = self._add_users_serialize( - users_creation_api_request_dto=users_creation_api_request_dto, + servicing_publicapi_transfers_users_creation_api_request_dto=servicing_publicapi_transfers_users_creation_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -256,7 +256,7 @@ def add_users_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UsersAPIResponseDTO", + '200': "ServicingPublicapiTransfersUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -267,7 +267,7 @@ def add_users_without_preload_content( def _add_users_serialize( self, - users_creation_api_request_dto, + servicing_publicapi_transfers_users_creation_api_request_dto, tenant_code, target_tenant_id, _request_auth, @@ -299,8 +299,8 @@ def _add_users_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if users_creation_api_request_dto is not None: - _body_params = users_creation_api_request_dto + if servicing_publicapi_transfers_users_creation_api_request_dto is not None: + _body_params = servicing_publicapi_transfers_users_creation_api_request_dto # set the HTTP header `Accept` @@ -327,6 +327,11 @@ def _add_users_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -350,7 +355,7 @@ def _add_users_serialize( @validate_call def delete_users( self, - users_delete_api_request_dto: UsersDeleteAPIRequestDTO, + servicing_publicapi_transfers_users_delete_api_request_dto: ServicingPublicapiTransfersUsersDeleteAPIRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to delete a user in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -365,13 +370,13 @@ def delete_users( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UsersAPIResponseDTO: + ) -> ServicingPublicapiTransfersUsersAPIResponseDTO: """Delete users Delete an existing user. Administrating tenant users can specify the tenant from which to delete a user. - :param users_delete_api_request_dto: (required) - :type users_delete_api_request_dto: UsersDeleteAPIRequestDTO + :param servicing_publicapi_transfers_users_delete_api_request_dto: (required) + :type servicing_publicapi_transfers_users_delete_api_request_dto: ServicingPublicapiTransfersUsersDeleteAPIRequestDTO :param tenant_code: Specify the tenant to delete a user in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -399,7 +404,7 @@ def delete_users( """ # noqa: E501 _param = self._delete_users_serialize( - users_delete_api_request_dto=users_delete_api_request_dto, + servicing_publicapi_transfers_users_delete_api_request_dto=servicing_publicapi_transfers_users_delete_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -409,7 +414,7 @@ def delete_users( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UsersAPIResponseDTO", + '200': "ServicingPublicapiTransfersUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -426,7 +431,7 @@ def delete_users( @validate_call def delete_users_with_http_info( self, - users_delete_api_request_dto: UsersDeleteAPIRequestDTO, + servicing_publicapi_transfers_users_delete_api_request_dto: ServicingPublicapiTransfersUsersDeleteAPIRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to delete a user in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -441,13 +446,13 @@ def delete_users_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UsersAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersUsersAPIResponseDTO]: """Delete users Delete an existing user. Administrating tenant users can specify the tenant from which to delete a user. - :param users_delete_api_request_dto: (required) - :type users_delete_api_request_dto: UsersDeleteAPIRequestDTO + :param servicing_publicapi_transfers_users_delete_api_request_dto: (required) + :type servicing_publicapi_transfers_users_delete_api_request_dto: ServicingPublicapiTransfersUsersDeleteAPIRequestDTO :param tenant_code: Specify the tenant to delete a user in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -475,7 +480,7 @@ def delete_users_with_http_info( """ # noqa: E501 _param = self._delete_users_serialize( - users_delete_api_request_dto=users_delete_api_request_dto, + servicing_publicapi_transfers_users_delete_api_request_dto=servicing_publicapi_transfers_users_delete_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -485,7 +490,7 @@ def delete_users_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UsersAPIResponseDTO", + '200': "ServicingPublicapiTransfersUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -502,7 +507,7 @@ def delete_users_with_http_info( @validate_call def delete_users_without_preload_content( self, - users_delete_api_request_dto: UsersDeleteAPIRequestDTO, + servicing_publicapi_transfers_users_delete_api_request_dto: ServicingPublicapiTransfersUsersDeleteAPIRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to delete a user in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -522,8 +527,8 @@ def delete_users_without_preload_content( Delete an existing user. Administrating tenant users can specify the tenant from which to delete a user. - :param users_delete_api_request_dto: (required) - :type users_delete_api_request_dto: UsersDeleteAPIRequestDTO + :param servicing_publicapi_transfers_users_delete_api_request_dto: (required) + :type servicing_publicapi_transfers_users_delete_api_request_dto: ServicingPublicapiTransfersUsersDeleteAPIRequestDTO :param tenant_code: Specify the tenant to delete a user in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -551,7 +556,7 @@ def delete_users_without_preload_content( """ # noqa: E501 _param = self._delete_users_serialize( - users_delete_api_request_dto=users_delete_api_request_dto, + servicing_publicapi_transfers_users_delete_api_request_dto=servicing_publicapi_transfers_users_delete_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -561,7 +566,7 @@ def delete_users_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UsersAPIResponseDTO", + '200': "ServicingPublicapiTransfersUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -572,7 +577,7 @@ def delete_users_without_preload_content( def _delete_users_serialize( self, - users_delete_api_request_dto, + servicing_publicapi_transfers_users_delete_api_request_dto, tenant_code, target_tenant_id, _request_auth, @@ -604,8 +609,8 @@ def _delete_users_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if users_delete_api_request_dto is not None: - _body_params = users_delete_api_request_dto + if servicing_publicapi_transfers_users_delete_api_request_dto is not None: + _body_params = servicing_publicapi_transfers_users_delete_api_request_dto # set the HTTP header `Accept` @@ -632,6 +637,11 @@ def _delete_users_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( @@ -655,7 +665,7 @@ def _delete_users_serialize( @validate_call def update_users( self, - users_update_api_request_dto: UsersUpdateAPIRequestDTO, + servicing_publicapi_transfers_users_update_api_request_dto: ServicingPublicapiTransfersUsersUpdateAPIRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to update a user in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -670,13 +680,13 @@ def update_users( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UsersAPIResponseDTO: + ) -> ServicingPublicapiTransfersUsersAPIResponseDTO: """Update users Update an existing user's information, such as their display name or if the user is enabled in Visier. - :param users_update_api_request_dto: (required) - :type users_update_api_request_dto: UsersUpdateAPIRequestDTO + :param servicing_publicapi_transfers_users_update_api_request_dto: (required) + :type servicing_publicapi_transfers_users_update_api_request_dto: ServicingPublicapiTransfersUsersUpdateAPIRequestDTO :param tenant_code: Specify the tenant to update a user in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -704,7 +714,7 @@ def update_users( """ # noqa: E501 _param = self._update_users_serialize( - users_update_api_request_dto=users_update_api_request_dto, + servicing_publicapi_transfers_users_update_api_request_dto=servicing_publicapi_transfers_users_update_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -714,7 +724,7 @@ def update_users( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UsersAPIResponseDTO", + '200': "ServicingPublicapiTransfersUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -731,7 +741,7 @@ def update_users( @validate_call def update_users_with_http_info( self, - users_update_api_request_dto: UsersUpdateAPIRequestDTO, + servicing_publicapi_transfers_users_update_api_request_dto: ServicingPublicapiTransfersUsersUpdateAPIRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to update a user in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -746,13 +756,13 @@ def update_users_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UsersAPIResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersUsersAPIResponseDTO]: """Update users Update an existing user's information, such as their display name or if the user is enabled in Visier. - :param users_update_api_request_dto: (required) - :type users_update_api_request_dto: UsersUpdateAPIRequestDTO + :param servicing_publicapi_transfers_users_update_api_request_dto: (required) + :type servicing_publicapi_transfers_users_update_api_request_dto: ServicingPublicapiTransfersUsersUpdateAPIRequestDTO :param tenant_code: Specify the tenant to update a user in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -780,7 +790,7 @@ def update_users_with_http_info( """ # noqa: E501 _param = self._update_users_serialize( - users_update_api_request_dto=users_update_api_request_dto, + servicing_publicapi_transfers_users_update_api_request_dto=servicing_publicapi_transfers_users_update_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -790,7 +800,7 @@ def update_users_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UsersAPIResponseDTO", + '200': "ServicingPublicapiTransfersUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -807,7 +817,7 @@ def update_users_with_http_info( @validate_call def update_users_without_preload_content( self, - users_update_api_request_dto: UsersUpdateAPIRequestDTO, + servicing_publicapi_transfers_users_update_api_request_dto: ServicingPublicapiTransfersUsersUpdateAPIRequestDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="Specify the tenant to update a user in.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -827,8 +837,8 @@ def update_users_without_preload_content( Update an existing user's information, such as their display name or if the user is enabled in Visier. - :param users_update_api_request_dto: (required) - :type users_update_api_request_dto: UsersUpdateAPIRequestDTO + :param servicing_publicapi_transfers_users_update_api_request_dto: (required) + :type servicing_publicapi_transfers_users_update_api_request_dto: ServicingPublicapiTransfersUsersUpdateAPIRequestDTO :param tenant_code: Specify the tenant to update a user in. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -856,7 +866,7 @@ def update_users_without_preload_content( """ # noqa: E501 _param = self._update_users_serialize( - users_update_api_request_dto=users_update_api_request_dto, + servicing_publicapi_transfers_users_update_api_request_dto=servicing_publicapi_transfers_users_update_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -866,7 +876,7 @@ def update_users_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UsersAPIResponseDTO", + '200': "ServicingPublicapiTransfersUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -877,7 +887,7 @@ def update_users_without_preload_content( def _update_users_serialize( self, - users_update_api_request_dto, + servicing_publicapi_transfers_users_update_api_request_dto, tenant_code, target_tenant_id, _request_auth, @@ -909,8 +919,8 @@ def _update_users_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if users_update_api_request_dto is not None: - _body_params = users_update_api_request_dto + if servicing_publicapi_transfers_users_update_api_request_dto is not None: + _body_params = servicing_publicapi_transfers_users_update_api_request_dto # set the HTTP header `Accept` @@ -937,6 +947,11 @@ def _update_users_serialize( # authentication setting _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' ] return self.api_client.param_serialize( diff --git a/src/visier_api_administration/visier_api_administration/models/__init__.py b/src/visier_api_administration/visier_api_administration/models/__init__.py index 68542d369e..d10cb77c00 100644 --- a/src/visier_api_administration/visier_api_administration/models/__init__.py +++ b/src/visier_api_administration/visier_api_administration/models/__init__.py @@ -6,7 +6,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,185 +16,184 @@ # import models into model package -from visier_api_administration.models.accessible_tenant_profile_assignment_request_dto import AccessibleTenantProfileAssignmentRequestDTO -from visier_api_administration.models.accessible_tenant_profile_assignment_response_dto import AccessibleTenantProfileAssignmentResponseDTO -from visier_api_administration.models.accessible_tenant_profile_revoke_request_dto import AccessibleTenantProfileRevokeRequestDTO -from visier_api_administration.models.accessible_tenant_profile_revoke_response_dto import AccessibleTenantProfileRevokeResponseDTO -from visier_api_administration.models.additional_capabilities_dto import AdditionalCapabilitiesDTO -from visier_api_administration.models.admin_capability_config_dto import AdminCapabilityConfigDTO -from visier_api_administration.models.all_permissions_assigned_for_local_tenant_dto import AllPermissionsAssignedForLocalTenantDTO -from visier_api_administration.models.all_profile_assigned_for_accessible_tenant_dto import AllProfileAssignedForAccessibleTenantDTO -from visier_api_administration.models.all_profile_assigned_for_local_tenant_dto import AllProfileAssignedForLocalTenantDTO -from visier_api_administration.models.all_tenants_status_apidto import AllTenantsStatusAPIDTO -from visier_api_administration.models.all_user_groups_assigned_for_local_tenant_dto import AllUserGroupsAssignedForLocalTenantDTO -from visier_api_administration.models.all_users_get_api_response_dto import AllUsersGetAPIResponseDTO -from visier_api_administration.models.analytic_object_dto import AnalyticObjectDTO -from visier_api_administration.models.assign_revoke_permission_by_permission_dto import AssignRevokePermissionByPermissionDTO -from visier_api_administration.models.assign_revoke_permission_by_tenant_dto import AssignRevokePermissionByTenantDTO -from visier_api_administration.models.assign_revoke_permission_by_user_dto import AssignRevokePermissionByUserDTO -from visier_api_administration.models.assign_revoke_permission_request_dto import AssignRevokePermissionRequestDTO -from visier_api_administration.models.assign_revoke_permissions_request_dto import AssignRevokePermissionsRequestDTO -from visier_api_administration.models.assign_revoke_permissions_response_dto import AssignRevokePermissionsResponseDTO -from visier_api_administration.models.batch_tenant_provision_apidto import BatchTenantProvisionAPIDTO -from visier_api_administration.models.bulk_data_access_set_response_dto import BulkDataAccessSetResponseDTO -from visier_api_administration.models.business_location_dto import BusinessLocationDTO -from visier_api_administration.models.capabilities_dto import CapabilitiesDTO -from visier_api_administration.models.capability_dto import CapabilityDTO -from visier_api_administration.models.commit_and_publish_operation_response_dto import CommitAndPublishOperationResponseDTO -from visier_api_administration.models.commit_dto import CommitDTO -from visier_api_administration.models.consolidated_analytics_api_excluded_source_list_dto import ConsolidatedAnalyticsAPIExcludedSourceListDTO -from visier_api_administration.models.consolidated_analytics_api_source_tenant_list_dto import ConsolidatedAnalyticsAPISourceTenantListDTO -from visier_api_administration.models.consolidated_analytics_api_tenant_create_request_dto import ConsolidatedAnalyticsAPITenantCreateRequestDTO -from visier_api_administration.models.consolidated_analytics_api_tenant_list_response_dto import ConsolidatedAnalyticsAPITenantListResponseDTO -from visier_api_administration.models.consolidated_analytics_api_tenant_with_details import ConsolidatedAnalyticsAPITenantWithDetails -from visier_api_administration.models.consolidated_analytics_api_tenant_with_details_list_response_dto import ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO -from visier_api_administration.models.content_package_dto import ContentPackageDTO -from visier_api_administration.models.create_data_access_set_request_dto import CreateDataAccessSetRequestDTO -from visier_api_administration.models.custom_property_dto import CustomPropertyDTO -from visier_api_administration.models.custom_tenant_property_dto import CustomTenantPropertyDTO -from visier_api_administration.models.data_access_set_dto import DataAccessSetDTO -from visier_api_administration.models.data_access_set_error_dto import DataAccessSetErrorDTO -from visier_api_administration.models.data_access_set_failure_dto import DataAccessSetFailureDTO -from visier_api_administration.models.data_access_set_success_dto import DataAccessSetSuccessDTO -from visier_api_administration.models.data_security_profile_dto import DataSecurityProfileDTO -from visier_api_administration.models.delete_permissions_request_dto import DeletePermissionsRequestDTO -from visier_api_administration.models.delete_user_group_v2_request import DeleteUserGroupV2Request -from visier_api_administration.models.dimension_filter_dto import DimensionFilterDTO -from visier_api_administration.models.dynamic_dimension_filter_dto import DynamicDimensionFilterDTO -from visier_api_administration.models.dynamic_property_mapping_dto import DynamicPropertyMappingDTO -from visier_api_administration.models.element_ids_dto import ElementIDsDTO -from visier_api_administration.models.email_domains_dto import EmailDomainsDTO -from visier_api_administration.models.error_dto import ErrorDTO -from visier_api_administration.models.excluded_sources_body import ExcludedSourcesBody -from visier_api_administration.models.export_production_versions_api_operation_parameters_dto import ExportProductionVersionsAPIOperationParametersDTO -from visier_api_administration.models.failed_accessible_tenant_profile_assignment_dto import FailedAccessibleTenantProfileAssignmentDTO -from visier_api_administration.models.failed_local_tenant_profile_assignment_dto import FailedLocalTenantProfileAssignmentDTO -from visier_api_administration.models.failed_local_tenant_profile_revoke_dto import FailedLocalTenantProfileRevokeDTO -from visier_api_administration.models.generate_key_request_dto import GenerateKeyRequestDTO -from visier_api_administration.models.get_capabilities_api_response_dto import GetCapabilitiesAPIResponseDTO -from visier_api_administration.models.get_content_packages_api_response_dto import GetContentPackagesAPIResponseDTO -from visier_api_administration.models.get_data_access_sets_api_response_dto import GetDataAccessSetsAPIResponseDTO -from visier_api_administration.models.get_data_security_objects_api_response_dto import GetDataSecurityObjectsAPIResponseDTO -from visier_api_administration.models.get_permissions_api_response_dto import GetPermissionsAPIResponseDTO -from visier_api_administration.models.get_production_versions_api_response_dto import GetProductionVersionsAPIResponseDTO -from visier_api_administration.models.get_projects_api_response_dto import GetProjectsAPIResponseDTO -from visier_api_administration.models.google_protobuf_any import GoogleProtobufAny -from visier_api_administration.models.hierarchy_property_dto import HierarchyPropertyDTO -from visier_api_administration.models.home_analysis_by_user_group_dto import HomeAnalysisByUserGroupDTO -from visier_api_administration.models.inherited_access_config_dto import InheritedAccessConfigDTO -from visier_api_administration.models.inherited_reference_member_filter_config_dto import InheritedReferenceMemberFilterConfigDTO -from visier_api_administration.models.key_name import KeyName -from visier_api_administration.models.last_login_dto import LastLoginDTO -from visier_api_administration.models.local_tenant_profile_assignment_request_dto import LocalTenantProfileAssignmentRequestDTO -from visier_api_administration.models.local_tenant_profile_assignment_response_dto import LocalTenantProfileAssignmentResponseDTO -from visier_api_administration.models.local_tenant_profile_revoke_request_dto import LocalTenantProfileRevokeRequestDTO -from visier_api_administration.models.local_tenant_profile_revoke_response_dto import LocalTenantProfileRevokeResponseDTO -from visier_api_administration.models.mask_message import MaskMessage -from visier_api_administration.models.member_filter_config_dto import MemberFilterConfigDTO -from visier_api_administration.models.member_selection_dto import MemberSelectionDTO -from visier_api_administration.models.metric_validation_summary_dto import MetricValidationSummaryDTO -from visier_api_administration.models.module_settings_dto import ModuleSettingsDTO -from visier_api_administration.models.permission_assigned_by_tenant_dto import PermissionAssignedByTenantDTO -from visier_api_administration.models.permission_assigned_for_local_tenant_dto import PermissionAssignedForLocalTenantDTO -from visier_api_administration.models.permission_assigned_user_dto import PermissionAssignedUserDTO -from visier_api_administration.models.permission_assigned_users_dto import PermissionAssignedUsersDTO -from visier_api_administration.models.permission_bulk_operation_response_dto import PermissionBulkOperationResponseDTO -from visier_api_administration.models.permission_dto import PermissionDTO -from visier_api_administration.models.permission_error_dto import PermissionErrorDTO -from visier_api_administration.models.permission_failure_dto import PermissionFailureDTO -from visier_api_administration.models.permission_response_dto import PermissionResponseDTO -from visier_api_administration.models.permission_success_dto import PermissionSuccessDTO -from visier_api_administration.models.permissions_list_dto import PermissionsListDTO -from visier_api_administration.models.permissions_to_user_group_for_tenant_dto import PermissionsToUserGroupForTenantDTO -from visier_api_administration.models.permissions_to_user_group_request_dto import PermissionsToUserGroupRequestDTO -from visier_api_administration.models.permissions_to_user_groups_request_dto import PermissionsToUserGroupsRequestDTO -from visier_api_administration.models.production_version_api_operation_request_dto import ProductionVersionAPIOperationRequestDTO -from visier_api_administration.models.production_version_api_operation_response_dto import ProductionVersionAPIOperationResponseDTO -from visier_api_administration.models.production_versions_api_operation_request_dto import ProductionVersionsAPIOperationRequestDTO -from visier_api_administration.models.production_versions_api_operation_response_dto import ProductionVersionsAPIOperationResponseDTO -from visier_api_administration.models.profile_assigned_for_accessible_tenant_dto import ProfileAssignedForAccessibleTenantDTO -from visier_api_administration.models.profile_assigned_for_local_tenant_dto import ProfileAssignedForLocalTenantDTO -from visier_api_administration.models.profile_get_api_response_dto import ProfileGetAPIResponseDTO -from visier_api_administration.models.profiles_get_api_response_dto import ProfilesGetAPIResponseDTO -from visier_api_administration.models.project_commits_api_response_dto import ProjectCommitsAPIResponseDTO -from visier_api_administration.models.project_dto import ProjectDTO -from visier_api_administration.models.project_operation_request_dto import ProjectOperationRequestDTO -from visier_api_administration.models.project_operation_response_dto import ProjectOperationResponseDTO -from visier_api_administration.models.property_access_config_dto import PropertyAccessConfigDTO -from visier_api_administration.models.property_set_config_dto import PropertySetConfigDTO -from visier_api_administration.models.put_project_commits_request import PutProjectCommitsRequest -from visier_api_administration.models.reduced_error_dto import ReducedErrorDTO -from visier_api_administration.models.reduced_tenant_code_error_dto import ReducedTenantCodeErrorDTO -from visier_api_administration.models.reduced_user_id_error_dto import ReducedUserIdErrorDTO -from visier_api_administration.models.related_analytic_object_dto import RelatedAnalyticObjectDTO -from visier_api_administration.models.role_modules_config_dto import RoleModulesConfigDTO -from visier_api_administration.models.securable_dimension_dto import SecurableDimensionDTO -from visier_api_administration.models.securable_property_dto import SecurablePropertyDTO -from visier_api_administration.models.security_assignment_response_dto import SecurityAssignmentResponseDTO -from visier_api_administration.models.shareable_data_access_set import ShareableDataAccessSet -from visier_api_administration.models.simple_user_dto import SimpleUserDTO +from visier_api_administration.models.admin_delete_user_group_v2_request import AdminDeleteUserGroupV2Request +from visier_api_administration.models.admin_excluded_sources_body import AdminExcludedSourcesBody +from visier_api_administration.models.admin_key_name import AdminKeyName +from visier_api_administration.models.admin_mask_message import AdminMaskMessage +from visier_api_administration.models.admin_permissions_list_dto import AdminPermissionsListDTO +from visier_api_administration.models.admin_publicapi_transfers_all_tenants_status_apidto import AdminPublicapiTransfersAllTenantsStatusAPIDTO +from visier_api_administration.models.admin_publicapi_transfers_batch_tenant_provision_apidto import AdminPublicapiTransfersBatchTenantProvisionAPIDTO +from visier_api_administration.models.admin_publicapi_transfers_business_location_dto import AdminPublicapiTransfersBusinessLocationDTO +from visier_api_administration.models.admin_publicapi_transfers_custom_property_dto import AdminPublicapiTransfersCustomPropertyDTO +from visier_api_administration.models.admin_publicapi_transfers_custom_tenant_property_dto import AdminPublicapiTransfersCustomTenantPropertyDTO +from visier_api_administration.models.admin_publicapi_transfers_element_ids_dto import AdminPublicapiTransfersElementIDsDTO +from visier_api_administration.models.admin_publicapi_transfers_home_analysis_by_user_group_dto import AdminPublicapiTransfersHomeAnalysisByUserGroupDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_detail_apidto import AdminPublicapiTransfersTenantDetailAPIDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_get_response_dto import AdminPublicapiTransfersTenantManagementAPIGetResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_list_response_dto import AdminPublicapiTransfersTenantManagementAPIListResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_update_request_dto import AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_update_response_dto import AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_provision_apidto import AdminPublicapiTransfersTenantProvisionAPIDTO +from visier_api_administration.models.admin_publicapi_transfers_tenant_status_apidto import AdminPublicapiTransfersTenantStatusAPIDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_definition_dto import AdminPublicapiTransfersUserGroupChangeDefinitionDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_dimension_filter_dto import AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_failure_dto import AdminPublicapiTransfersUserGroupChangeFailureDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_filter_dto import AdminPublicapiTransfersUserGroupChangeFilterDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_member_selection_dto import AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_response_dto import AdminPublicapiTransfersUserGroupChangeResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_success_dto import AdminPublicapiTransfersUserGroupChangeSuccessDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_users_dto import AdminPublicapiTransfersUserGroupChangeUsersDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_dto import AdminPublicapiTransfersUserGroupDeleteDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_failure_dto import AdminPublicapiTransfersUserGroupDeleteFailureDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_response_dto import AdminPublicapiTransfersUserGroupDeleteResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_success_dto import AdminPublicapiTransfersUserGroupDeleteSuccessDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_filters_dto import AdminPublicapiTransfersUserGroupFiltersDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_single_delete_response_dto import AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO +from visier_api_administration.models.admin_publicapi_transfers_user_groups_change_dto import AdminPublicapiTransfersUserGroupsChangeDTO +from visier_api_administration.models.admin_publicapi_transfers_user_groups_delete_request_dto import AdminPublicapiTransfersUserGroupsDeleteRequestDTO +from visier_api_administration.models.admin_put_project_commits_request import AdminPutProjectCommitsRequest +from visier_api_administration.models.admin_tenant_code_body import AdminTenantCodeBody +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_excluded_source_list_dto import AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_source_tenant_list_dto import AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_create_request_dto import AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_list_response_dto import AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_with_details import AdminTransfersConsolidatedAnalyticsAPITenantWithDetails +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_with_details_list_response_dto import AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO +from visier_api_administration.models.admin_transfers_email_domains_dto import AdminTransfersEmailDomainsDTO +from visier_api_administration.models.admin_transfers_permission_response_dto import AdminTransfersPermissionResponseDTO +from visier_api_administration.models.admin_transfers_permissions_to_user_group_for_tenant_dto import AdminTransfersPermissionsToUserGroupForTenantDTO +from visier_api_administration.models.admin_transfers_permissions_to_user_group_request_dto import AdminTransfersPermissionsToUserGroupRequestDTO +from visier_api_administration.models.admin_transfers_permissions_to_user_groups_request_dto import AdminTransfersPermissionsToUserGroupsRequestDTO +from visier_api_administration.models.admin_transfers_security_assignment_response_dto import AdminTransfersSecurityAssignmentResponseDTO +from visier_api_administration.models.admin_transfers_simple_user_dto import AdminTransfersSimpleUserDTO +from visier_api_administration.models.admin_transfers_target_project_for_tenant_dto import AdminTransfersTargetProjectForTenantDTO +from visier_api_administration.models.admin_transfers_target_project_for_tenants_list_dto import AdminTransfersTargetProjectForTenantsListDTO +from visier_api_administration.models.admin_transfers_tenant_assignments_dto import AdminTransfersTenantAssignmentsDTO +from visier_api_administration.models.admin_transfers_user_group_get_api_response_dto import AdminTransfersUserGroupGetAPIResponseDTO +from visier_api_administration.models.admin_transfers_user_groups_get_api_response_dto import AdminTransfersUserGroupsGetAPIResponseDTO +from visier_api_administration.models.admin_transfers_user_groups_users_dto import AdminTransfersUserGroupsUsersDTO +from visier_api_administration.models.admin_transfers_user_groups_users_for_tenant_dto import AdminTransfersUserGroupsUsersForTenantDTO +from visier_api_administration.models.admin_transfers_user_security_assignments_dto import AdminTransfersUserSecurityAssignmentsDTO +from visier_api_administration.models.admin_transfers_users_to_user_group_request_dto import AdminTransfersUsersToUserGroupRequestDTO +from visier_api_administration.models.admin_transfers_users_to_user_groups_request_dto import AdminTransfersUsersToUserGroupsRequestDTO +from visier_api_administration.models.admin_update_tenant_model import AdminUpdateTenantModel +from visier_api_administration.models.designer_crypto_generate_key_request_dto import DesignerCryptoGenerateKeyRequestDTO +from visier_api_administration.models.designer_crypto_tenant_encryption_key_dto import DesignerCryptoTenantEncryptionKeyDTO +from visier_api_administration.models.designer_crypto_tenant_encryption_key_details_dto import DesignerCryptoTenantEncryptionKeyDetailsDTO +from visier_api_administration.models.designer_transfers_module_settings_dto import DesignerTransfersModuleSettingsDTO +from visier_api_administration.models.designer_transfers_tenant_module_dto import DesignerTransfersTenantModuleDTO +from visier_api_administration.models.dp_automation_transfers_metric_validation_summary_dto import DpAutomationTransfersMetricValidationSummaryDTO +from visier_api_administration.models.dp_automation_transfers_tenant_preview_entries_summary_dto import DpAutomationTransfersTenantPreviewEntriesSummaryDTO +from visier_api_administration.models.dp_automation_transfers_tenant_preview_entries_summary_list_dto import DpAutomationTransfersTenantPreviewEntriesSummaryListDTO +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto import ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_assignment_response_dto import ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto import ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_accessible_tenant_profile_revoke_response_dto import ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_additional_capabilities_dto import ServicingPublicapiTransfersAdditionalCapabilitiesDTO +from visier_api_administration.models.servicing_publicapi_transfers_admin_capability_config_dto import ServicingPublicapiTransfersAdminCapabilityConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_all_permissions_assigned_for_local_tenant_dto import ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_all_profile_assigned_for_accessible_tenant_dto import ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_all_profile_assigned_for_local_tenant_dto import ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_all_user_groups_assigned_for_local_tenant_dto import ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_all_users_get_api_response_dto import ServicingPublicapiTransfersAllUsersGetAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_analytic_object_dto import ServicingPublicapiTransfersAnalyticObjectDTO +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_by_permission_dto import ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_by_tenant_dto import ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_by_user_dto import ServicingPublicapiTransfersAssignRevokePermissionByUserDTO +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_request_dto import ServicingPublicapiTransfersAssignRevokePermissionRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permissions_request_dto import ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permissions_response_dto import ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_bulk_data_access_set_response_dto import ServicingPublicapiTransfersBulkDataAccessSetResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_capabilities_dto import ServicingPublicapiTransfersCapabilitiesDTO +from visier_api_administration.models.servicing_publicapi_transfers_capability_dto import ServicingPublicapiTransfersCapabilityDTO +from visier_api_administration.models.servicing_publicapi_transfers_commit_and_publish_operation_response_dto import ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_commit_dto import ServicingPublicapiTransfersCommitDTO +from visier_api_administration.models.servicing_publicapi_transfers_content_package_dto import ServicingPublicapiTransfersContentPackageDTO +from visier_api_administration.models.servicing_publicapi_transfers_create_data_access_set_request_dto import ServicingPublicapiTransfersCreateDataAccessSetRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_dto import ServicingPublicapiTransfersDataAccessSetDTO +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_error_dto import ServicingPublicapiTransfersDataAccessSetErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_failure_dto import ServicingPublicapiTransfersDataAccessSetFailureDTO +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_success_dto import ServicingPublicapiTransfersDataAccessSetSuccessDTO +from visier_api_administration.models.servicing_publicapi_transfers_data_security_profile_dto import ServicingPublicapiTransfersDataSecurityProfileDTO +from visier_api_administration.models.servicing_publicapi_transfers_delete_permissions_request_dto import ServicingPublicapiTransfersDeletePermissionsRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_dimension_filter_dto import ServicingPublicapiTransfersDimensionFilterDTO +from visier_api_administration.models.servicing_publicapi_transfers_dynamic_dimension_filter_dto import ServicingPublicapiTransfersDynamicDimensionFilterDTO +from visier_api_administration.models.servicing_publicapi_transfers_dynamic_property_mapping_dto import ServicingPublicapiTransfersDynamicPropertyMappingDTO +from visier_api_administration.models.servicing_publicapi_transfers_error_dto import ServicingPublicapiTransfersErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_export_production_versions_api_operation_parameters_dto import ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO +from visier_api_administration.models.servicing_publicapi_transfers_failed_accessible_tenant_profile_assignment_dto import ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_publicapi_transfers_failed_local_tenant_profile_assignment_dto import ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_publicapi_transfers_failed_local_tenant_profile_revoke_dto import ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_capabilities_api_response_dto import ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_content_packages_api_response_dto import ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_data_access_sets_api_response_dto import ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_data_security_objects_api_response_dto import ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_permissions_api_response_dto import ServicingPublicapiTransfersGetPermissionsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_production_versions_api_response_dto import ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_get_projects_api_response_dto import ServicingPublicapiTransfersGetProjectsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_hierarchy_property_dto import ServicingPublicapiTransfersHierarchyPropertyDTO +from visier_api_administration.models.servicing_publicapi_transfers_inherited_access_config_dto import ServicingPublicapiTransfersInheritedAccessConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_inherited_reference_member_filter_config_dto import ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_last_login_dto import ServicingPublicapiTransfersLastLoginDTO +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto import ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_assignment_response_dto import ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto import ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_local_tenant_profile_revoke_response_dto import ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_member_filter_config_dto import ServicingPublicapiTransfersMemberFilterConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_member_selection_dto import ServicingPublicapiTransfersMemberSelectionDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_by_tenant_dto import ServicingPublicapiTransfersPermissionAssignedByTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_for_local_tenant_dto import ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_user_dto import ServicingPublicapiTransfersPermissionAssignedUserDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_users_dto import ServicingPublicapiTransfersPermissionAssignedUsersDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_bulk_operation_response_dto import ServicingPublicapiTransfersPermissionBulkOperationResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_dto import ServicingPublicapiTransfersPermissionDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_error_dto import ServicingPublicapiTransfersPermissionErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_failure_dto import ServicingPublicapiTransfersPermissionFailureDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_success_dto import ServicingPublicapiTransfersPermissionSuccessDTO +from visier_api_administration.models.servicing_publicapi_transfers_production_version_api_operation_request_dto import ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_production_version_api_operation_response_dto import ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_production_versions_api_operation_request_dto import ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_production_versions_api_operation_response_dto import ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_profile_assigned_for_accessible_tenant_dto import ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_profile_assigned_for_local_tenant_dto import ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_profile_get_api_response_dto import ServicingPublicapiTransfersProfileGetAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_profiles_get_api_response_dto import ServicingPublicapiTransfersProfilesGetAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_project_commits_api_response_dto import ServicingPublicapiTransfersProjectCommitsAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_project_dto import ServicingPublicapiTransfersProjectDTO +from visier_api_administration.models.servicing_publicapi_transfers_project_operation_request_dto import ServicingPublicapiTransfersProjectOperationRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_project_operation_response_dto import ServicingPublicapiTransfersProjectOperationResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_property_access_config_dto import ServicingPublicapiTransfersPropertyAccessConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_property_set_config_dto import ServicingPublicapiTransfersPropertySetConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_reduced_error_dto import ServicingPublicapiTransfersReducedErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_reduced_tenant_code_error_dto import ServicingPublicapiTransfersReducedTenantCodeErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_reduced_user_id_error_dto import ServicingPublicapiTransfersReducedUserIdErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_related_analytic_object_dto import ServicingPublicapiTransfersRelatedAnalyticObjectDTO +from visier_api_administration.models.servicing_publicapi_transfers_role_modules_config_dto import ServicingPublicapiTransfersRoleModulesConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_securable_dimension_dto import ServicingPublicapiTransfersSecurableDimensionDTO +from visier_api_administration.models.servicing_publicapi_transfers_securable_property_dto import ServicingPublicapiTransfersSecurablePropertyDTO +from visier_api_administration.models.servicing_publicapi_transfers_shareable_data_access_set import ServicingPublicapiTransfersShareableDataAccessSet +from visier_api_administration.models.servicing_publicapi_transfers_sources_api_operation_request_dto import ServicingPublicapiTransfersSourcesAPIOperationRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_static_dimension_filter_dto import ServicingPublicapiTransfersStaticDimensionFilterDTO +from visier_api_administration.models.servicing_publicapi_transfers_successful_accessible_tenant_profile_assignment_dto import ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_publicapi_transfers_successful_local_tenant_profile_assignment_dto import ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_publicapi_transfers_target_tenant_code_dto import ServicingPublicapiTransfersTargetTenantCodeDTO +from visier_api_administration.models.servicing_publicapi_transfers_tenant_code_error_dto import ServicingPublicapiTransfersTenantCodeErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_creation_api_request_dto import ServicingPublicapiTransfersUserCreationAPIRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_get_api_response_dto import ServicingPublicapiTransfersUserGetAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_group_assigned_for_local_tenant_dto import ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_id_error_dto import ServicingPublicapiTransfersUserIdErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_property_dto import ServicingPublicapiTransfersUserPropertyDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_update_api_request_dto import ServicingPublicapiTransfersUserUpdateAPIRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_api_error_message_dto import ServicingPublicapiTransfersUsersAPIErrorMessageDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_api_failure_dto import ServicingPublicapiTransfersUsersAPIFailureDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_api_response_dto import ServicingPublicapiTransfersUsersAPIResponseDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_api_success_dto import ServicingPublicapiTransfersUsersAPISuccessDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_creation_api_request_dto import ServicingPublicapiTransfersUsersCreationAPIRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_delete_api_request_dto import ServicingPublicapiTransfersUsersDeleteAPIRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_update_api_request_dto import ServicingPublicapiTransfersUsersUpdateAPIRequestDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_update_api_user_dto import ServicingPublicapiTransfersUsersUpdateAPIUserDTO from visier_api_administration.models.source_import_result_summary_dto import SourceImportResultSummaryDTO -from visier_api_administration.models.sources_api_operation_request_dto import SourcesAPIOperationRequestDTO from visier_api_administration.models.sources_api_put_response_dto import SourcesAPIPutResponseDTO -from visier_api_administration.models.static_dimension_filter_dto import StaticDimensionFilterDTO from visier_api_administration.models.status import Status -from visier_api_administration.models.successful_accessible_tenant_profile_assignment_dto import SuccessfulAccessibleTenantProfileAssignmentDTO -from visier_api_administration.models.successful_local_tenant_profile_assignment_dto import SuccessfulLocalTenantProfileAssignmentDTO -from visier_api_administration.models.system_status_dto import SystemStatusDTO -from visier_api_administration.models.target_project_for_tenant_dto import TargetProjectForTenantDTO -from visier_api_administration.models.target_project_for_tenants_list_dto import TargetProjectForTenantsListDTO -from visier_api_administration.models.target_tenant_code_dto import TargetTenantCodeDTO -from visier_api_administration.models.tenant_assignments_dto import TenantAssignmentsDTO -from visier_api_administration.models.tenant_code_body import TenantCodeBody -from visier_api_administration.models.tenant_code_error_dto import TenantCodeErrorDTO -from visier_api_administration.models.tenant_detail_apidto import TenantDetailAPIDTO -from visier_api_administration.models.tenant_encryption_key_dto import TenantEncryptionKeyDTO -from visier_api_administration.models.tenant_encryption_key_details_dto import TenantEncryptionKeyDetailsDTO -from visier_api_administration.models.tenant_management_api_get_response_dto import TenantManagementAPIGetResponseDTO -from visier_api_administration.models.tenant_management_api_list_response_dto import TenantManagementAPIListResponseDTO -from visier_api_administration.models.tenant_management_api_update_request_dto import TenantManagementAPIUpdateRequestDTO -from visier_api_administration.models.tenant_management_api_update_response_dto import TenantManagementAPIUpdateResponseDTO -from visier_api_administration.models.tenant_module_dto import TenantModuleDTO -from visier_api_administration.models.tenant_preview_entries_summary_dto import TenantPreviewEntriesSummaryDTO -from visier_api_administration.models.tenant_preview_entries_summary_list_dto import TenantPreviewEntriesSummaryListDTO -from visier_api_administration.models.tenant_provision_apidto import TenantProvisionAPIDTO -from visier_api_administration.models.tenant_status_apidto import TenantStatusAPIDTO -from visier_api_administration.models.update_tenant_model import UpdateTenantModel -from visier_api_administration.models.user_creation_api_request_dto import UserCreationAPIRequestDTO +from visier_api_administration.models.systemstatus_publicapi_transfers_system_status_dto import SystemstatusPublicapiTransfersSystemStatusDTO from visier_api_administration.models.user_creation_api_response_dto import UserCreationAPIResponseDTO -from visier_api_administration.models.user_get_api_response_dto import UserGetAPIResponseDTO -from visier_api_administration.models.user_group_assigned_for_local_tenant_dto import UserGroupAssignedForLocalTenantDTO -from visier_api_administration.models.user_group_change_definition_dto import UserGroupChangeDefinitionDTO -from visier_api_administration.models.user_group_change_dimension_filter_dto import UserGroupChangeDimensionFilterDTO -from visier_api_administration.models.user_group_change_failure_dto import UserGroupChangeFailureDTO -from visier_api_administration.models.user_group_change_filter_dto import UserGroupChangeFilterDTO -from visier_api_administration.models.user_group_change_member_selection_dto import UserGroupChangeMemberSelectionDTO -from visier_api_administration.models.user_group_change_response_dto import UserGroupChangeResponseDTO -from visier_api_administration.models.user_group_change_success_dto import UserGroupChangeSuccessDTO -from visier_api_administration.models.user_group_change_users_dto import UserGroupChangeUsersDTO -from visier_api_administration.models.user_group_delete_dto import UserGroupDeleteDTO -from visier_api_administration.models.user_group_delete_failure_dto import UserGroupDeleteFailureDTO -from visier_api_administration.models.user_group_delete_response_dto import UserGroupDeleteResponseDTO -from visier_api_administration.models.user_group_delete_success_dto import UserGroupDeleteSuccessDTO -from visier_api_administration.models.user_group_filters_dto import UserGroupFiltersDTO -from visier_api_administration.models.user_group_get_api_response_dto import UserGroupGetAPIResponseDTO -from visier_api_administration.models.user_group_single_delete_response_dto import UserGroupSingleDeleteResponseDTO -from visier_api_administration.models.user_groups_change_dto import UserGroupsChangeDTO -from visier_api_administration.models.user_groups_delete_request_dto import UserGroupsDeleteRequestDTO -from visier_api_administration.models.user_groups_get_api_response_dto import UserGroupsGetAPIResponseDTO -from visier_api_administration.models.user_groups_users_dto import UserGroupsUsersDTO -from visier_api_administration.models.user_groups_users_for_tenant_dto import UserGroupsUsersForTenantDTO -from visier_api_administration.models.user_id_error_dto import UserIdErrorDTO -from visier_api_administration.models.user_property_dto import UserPropertyDTO -from visier_api_administration.models.user_security_assignments_dto import UserSecurityAssignmentsDTO -from visier_api_administration.models.user_update_api_request_dto import UserUpdateAPIRequestDTO -from visier_api_administration.models.users_api_error_message_dto import UsersAPIErrorMessageDTO -from visier_api_administration.models.users_api_failure_dto import UsersAPIFailureDTO -from visier_api_administration.models.users_api_response_dto import UsersAPIResponseDTO -from visier_api_administration.models.users_api_success_dto import UsersAPISuccessDTO -from visier_api_administration.models.users_creation_api_request_dto import UsersCreationAPIRequestDTO -from visier_api_administration.models.users_delete_api_request_dto import UsersDeleteAPIRequestDTO -from visier_api_administration.models.users_to_user_group_request_dto import UsersToUserGroupRequestDTO -from visier_api_administration.models.users_to_user_groups_request_dto import UsersToUserGroupsRequestDTO -from visier_api_administration.models.users_update_api_request_dto import UsersUpdateAPIRequestDTO -from visier_api_administration.models.users_update_api_user_dto import UsersUpdateAPIUserDTO diff --git a/src/visier_api_administration/visier_api_administration/models/accessible_tenant_profile_assignment_request_dto.py b/src/visier_api_administration/visier_api_administration/models/accessible_tenant_profile_assignment_request_dto.py deleted file mode 100644 index 2f01a3a62b..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/accessible_tenant_profile_assignment_request_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.target_tenant_code_dto import TargetTenantCodeDTO -from typing import Optional, Set -from typing_extensions import Self - -class AccessibleTenantProfileAssignmentRequestDTO(BaseModel): - """ - AccessibleTenantProfileAssignmentRequestDTO - """ # noqa: E501 - target_tenant_codes: Optional[List[TargetTenantCodeDTO]] = Field(default=None, description="A list of objects representing the analytic tenants for profiles assigned to the users.", alias="targetTenantCodes") - target_user_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of users to assign this profile.", alias="targetUserIds") - validity_end_time: Optional[StrictStr] = Field(default=None, description="An exclusive date-time when this profile is no longer active.", alias="validityEndTime") - validity_start_time: Optional[StrictStr] = Field(default=None, description="An inclusive date-time when this profile is active.", alias="validityStartTime") - __properties: ClassVar[List[str]] = ["targetTenantCodes", "targetUserIds", "validityEndTime", "validityStartTime"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AccessibleTenantProfileAssignmentRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in target_tenant_codes (list) - _items = [] - if self.target_tenant_codes: - for _item_target_tenant_codes in self.target_tenant_codes: - if _item_target_tenant_codes: - _items.append(_item_target_tenant_codes.to_dict()) - _dict['targetTenantCodes'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AccessibleTenantProfileAssignmentRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "targetTenantCodes": [TargetTenantCodeDTO.from_dict(_item) for _item in obj["targetTenantCodes"]] if obj.get("targetTenantCodes") is not None else None, - "targetUserIds": obj.get("targetUserIds"), - "validityEndTime": obj.get("validityEndTime"), - "validityStartTime": obj.get("validityStartTime") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/accessible_tenant_profile_assignment_response_dto.py b/src/visier_api_administration/visier_api_administration/models/accessible_tenant_profile_assignment_response_dto.py deleted file mode 100644 index fe8962ba53..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/accessible_tenant_profile_assignment_response_dto.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.failed_accessible_tenant_profile_assignment_dto import FailedAccessibleTenantProfileAssignmentDTO -from visier_api_administration.models.successful_accessible_tenant_profile_assignment_dto import SuccessfulAccessibleTenantProfileAssignmentDTO -from visier_api_administration.models.tenant_code_error_dto import TenantCodeErrorDTO -from visier_api_administration.models.user_id_error_dto import UserIdErrorDTO -from typing import Optional, Set -from typing_extensions import Self - -class AccessibleTenantProfileAssignmentResponseDTO(BaseModel): - """ - AccessibleTenantProfileAssignmentResponseDTO - """ # noqa: E501 - bad_tenant_codes: Optional[List[TenantCodeErrorDTO]] = Field(default=None, description="A list of objects representing any tenants that returned errors.", alias="badTenantCodes") - bad_user_ids: Optional[List[UserIdErrorDTO]] = Field(default=None, description="A list of objects representing the user IDs that may not be valid.", alias="badUserIds") - errors: Optional[StrictBool] = Field(default=None, description="If true, an error is generated by the request.") - failed_assignments: Optional[List[FailedAccessibleTenantProfileAssignmentDTO]] = Field(default=None, description="A list of objects representing any errors during the assignment operation.", alias="failedAssignments") - successful_assignments: Optional[List[SuccessfulAccessibleTenantProfileAssignmentDTO]] = Field(default=None, description="A list of user IDs that were successfully assigned the profiles.", alias="successfulAssignments") - __properties: ClassVar[List[str]] = ["badTenantCodes", "badUserIds", "errors", "failedAssignments", "successfulAssignments"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AccessibleTenantProfileAssignmentResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in bad_tenant_codes (list) - _items = [] - if self.bad_tenant_codes: - for _item_bad_tenant_codes in self.bad_tenant_codes: - if _item_bad_tenant_codes: - _items.append(_item_bad_tenant_codes.to_dict()) - _dict['badTenantCodes'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in bad_user_ids (list) - _items = [] - if self.bad_user_ids: - for _item_bad_user_ids in self.bad_user_ids: - if _item_bad_user_ids: - _items.append(_item_bad_user_ids.to_dict()) - _dict['badUserIds'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in failed_assignments (list) - _items = [] - if self.failed_assignments: - for _item_failed_assignments in self.failed_assignments: - if _item_failed_assignments: - _items.append(_item_failed_assignments.to_dict()) - _dict['failedAssignments'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in successful_assignments (list) - _items = [] - if self.successful_assignments: - for _item_successful_assignments in self.successful_assignments: - if _item_successful_assignments: - _items.append(_item_successful_assignments.to_dict()) - _dict['successfulAssignments'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AccessibleTenantProfileAssignmentResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "badTenantCodes": [TenantCodeErrorDTO.from_dict(_item) for _item in obj["badTenantCodes"]] if obj.get("badTenantCodes") is not None else None, - "badUserIds": [UserIdErrorDTO.from_dict(_item) for _item in obj["badUserIds"]] if obj.get("badUserIds") is not None else None, - "errors": obj.get("errors"), - "failedAssignments": [FailedAccessibleTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["failedAssignments"]] if obj.get("failedAssignments") is not None else None, - "successfulAssignments": [SuccessfulAccessibleTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["successfulAssignments"]] if obj.get("successfulAssignments") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/accessible_tenant_profile_revoke_request_dto.py b/src/visier_api_administration/visier_api_administration/models/accessible_tenant_profile_revoke_request_dto.py deleted file mode 100644 index 3b6e854c99..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/accessible_tenant_profile_revoke_request_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.target_tenant_code_dto import TargetTenantCodeDTO -from typing import Optional, Set -from typing_extensions import Self - -class AccessibleTenantProfileRevokeRequestDTO(BaseModel): - """ - AccessibleTenantProfileRevokeRequestDTO - """ # noqa: E501 - target_tenant_codes: Optional[List[TargetTenantCodeDTO]] = Field(default=None, description="A list of objects representing the analytic tenants for removing profiles from each target user ID.", alias="targetTenantCodes") - target_user_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of users to remove this profile from.", alias="targetUserIds") - __properties: ClassVar[List[str]] = ["targetTenantCodes", "targetUserIds"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AccessibleTenantProfileRevokeRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in target_tenant_codes (list) - _items = [] - if self.target_tenant_codes: - for _item_target_tenant_codes in self.target_tenant_codes: - if _item_target_tenant_codes: - _items.append(_item_target_tenant_codes.to_dict()) - _dict['targetTenantCodes'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AccessibleTenantProfileRevokeRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "targetTenantCodes": [TargetTenantCodeDTO.from_dict(_item) for _item in obj["targetTenantCodes"]] if obj.get("targetTenantCodes") is not None else None, - "targetUserIds": obj.get("targetUserIds") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/accessible_tenant_profile_revoke_response_dto.py b/src/visier_api_administration/visier_api_administration/models/accessible_tenant_profile_revoke_response_dto.py deleted file mode 100644 index 57495e48c4..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/accessible_tenant_profile_revoke_response_dto.py +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.reduced_tenant_code_error_dto import ReducedTenantCodeErrorDTO -from visier_api_administration.models.reduced_user_id_error_dto import ReducedUserIdErrorDTO -from visier_api_administration.models.successful_local_tenant_profile_assignment_dto import SuccessfulLocalTenantProfileAssignmentDTO -from typing import Optional, Set -from typing_extensions import Self - -class AccessibleTenantProfileRevokeResponseDTO(BaseModel): - """ - AccessibleTenantProfileRevokeResponseDTO - """ # noqa: E501 - bad_tenant_codes: Optional[List[ReducedTenantCodeErrorDTO]] = Field(default=None, description="A list of objects representing any tenants that returned errors.", alias="badTenantCodes") - bad_user_ids: Optional[List[ReducedUserIdErrorDTO]] = Field(default=None, description="A list of objects representing the user IDs that may not be valid.", alias="badUserIds") - succeeded: Optional[List[SuccessfulLocalTenantProfileAssignmentDTO]] = Field(default=None, description="A list of objects representing the valid user IDs that succeeded.") - unaffected_users: Optional[List[SuccessfulLocalTenantProfileAssignmentDTO]] = Field(default=None, description="A list of objects representing the valid user IDs that were not affected.", alias="unaffectedUsers") - __properties: ClassVar[List[str]] = ["badTenantCodes", "badUserIds", "succeeded", "unaffectedUsers"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AccessibleTenantProfileRevokeResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in bad_tenant_codes (list) - _items = [] - if self.bad_tenant_codes: - for _item_bad_tenant_codes in self.bad_tenant_codes: - if _item_bad_tenant_codes: - _items.append(_item_bad_tenant_codes.to_dict()) - _dict['badTenantCodes'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in bad_user_ids (list) - _items = [] - if self.bad_user_ids: - for _item_bad_user_ids in self.bad_user_ids: - if _item_bad_user_ids: - _items.append(_item_bad_user_ids.to_dict()) - _dict['badUserIds'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in succeeded (list) - _items = [] - if self.succeeded: - for _item_succeeded in self.succeeded: - if _item_succeeded: - _items.append(_item_succeeded.to_dict()) - _dict['succeeded'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in unaffected_users (list) - _items = [] - if self.unaffected_users: - for _item_unaffected_users in self.unaffected_users: - if _item_unaffected_users: - _items.append(_item_unaffected_users.to_dict()) - _dict['unaffectedUsers'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AccessibleTenantProfileRevokeResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "badTenantCodes": [ReducedTenantCodeErrorDTO.from_dict(_item) for _item in obj["badTenantCodes"]] if obj.get("badTenantCodes") is not None else None, - "badUserIds": [ReducedUserIdErrorDTO.from_dict(_item) for _item in obj["badUserIds"]] if obj.get("badUserIds") is not None else None, - "succeeded": [SuccessfulLocalTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["succeeded"]] if obj.get("succeeded") is not None else None, - "unaffectedUsers": [SuccessfulLocalTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["unaffectedUsers"]] if obj.get("unaffectedUsers") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/additional_capabilities_dto.py b/src/visier_api_administration/visier_api_administration/models/additional_capabilities_dto.py deleted file mode 100644 index 6193c565bb..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/additional_capabilities_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AdditionalCapabilitiesDTO(BaseModel): - """ - AdditionalCapabilitiesDTO - """ # noqa: E501 - additional_capabilities: Optional[List[StrictStr]] = Field(default=None, description="The additional capabilities assigned to this profile.", alias="additionalCapabilities") - __properties: ClassVar[List[str]] = ["additionalCapabilities"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AdditionalCapabilitiesDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AdditionalCapabilitiesDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "additionalCapabilities": obj.get("additionalCapabilities") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/admin_capability_config_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_capability_config_dto.py deleted file mode 100644 index b286bbf3f1..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_capability_config_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AdminCapabilityConfigDTO(BaseModel): - """ - AdminCapabilityConfigDTO - """ # noqa: E501 - all_capabilities_access: Optional[StrictBool] = Field(default=None, description="If `true`, the permission has all possible capabilities.", alias="allCapabilitiesAccess") - capabilities: Optional[List[StrictStr]] = Field(default=None, description="A list of the capabilities assigned in the permission. Not required if `allCapabilitiesAccess` is true.") - __properties: ClassVar[List[str]] = ["allCapabilitiesAccess", "capabilities"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AdminCapabilityConfigDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AdminCapabilityConfigDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "allCapabilitiesAccess": obj.get("allCapabilitiesAccess"), - "capabilities": obj.get("capabilities") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/admin_delete_user_group_v2_request.py b/src/visier_api_administration/visier_api_administration/models/admin_delete_user_group_v2_request.py new file mode 100644 index 0000000000..7dc937bdf2 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_delete_user_group_v2_request.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminDeleteUserGroupV2Request(BaseModel): + """ + AdminDeleteUserGroupV2Request + """ # noqa: E501 + user_group_id: Optional[StrictStr] = Field(default=None, description="The ID of user group to delete.", alias="userGroupId") + __properties: ClassVar[List[str]] = ["userGroupId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminDeleteUserGroupV2Request from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminDeleteUserGroupV2Request from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userGroupId": obj.get("userGroupId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_excluded_sources_body.py b/src/visier_api_administration/visier_api_administration/models/admin_excluded_sources_body.py new file mode 100644 index 0000000000..073aaf9bb3 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_excluded_sources_body.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminExcludedSourcesBody(BaseModel): + """ + AdminExcludedSourcesBody + """ # noqa: E501 + excluded_sources: Optional[List[StrictStr]] = Field(default=None, description="A list of a CA tenant's excluded sources.", alias="excludedSources") + __properties: ClassVar[List[str]] = ["excludedSources"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminExcludedSourcesBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminExcludedSourcesBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "excludedSources": obj.get("excludedSources") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_key_name.py b/src/visier_api_administration/visier_api_administration/models/admin_key_name.py new file mode 100644 index 0000000000..3412524ad3 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_key_name.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminKeyName(BaseModel): + """ + AdminKeyName + """ # noqa: E501 + key_name: Optional[StrictStr] = Field(default=None, description="The encryption key's display name. The name may only contain alphanumeric or dash (-) characters and must be between 3 and 36 characters long.", alias="keyName") + __properties: ClassVar[List[str]] = ["keyName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminKeyName from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminKeyName from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "keyName": obj.get("keyName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_mask_message.py b/src/visier_api_administration/visier_api_administration/models/admin_mask_message.py new file mode 100644 index 0000000000..098e68d2ca --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_mask_message.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminMaskMessage(BaseModel): + """ + AdminMaskMessage + """ # noqa: E501 + mask: Optional[StrictStr] = Field(default=None, description="A comma-separated list of strings that specifies which fields to include in the response.") + __properties: ClassVar[List[str]] = ["mask"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminMaskMessage from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminMaskMessage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "mask": obj.get("mask") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_permissions_list_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_permissions_list_dto.py new file mode 100644 index 0000000000..2b68c3615f --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_permissions_list_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_permission_dto import ServicingPublicapiTransfersPermissionDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPermissionsListDTO(BaseModel): + """ + AdminPermissionsListDTO + """ # noqa: E501 + permissions: Optional[List[ServicingPublicapiTransfersPermissionDTO]] = Field(default=None, description="The list of permissions that will be created or updated") + __properties: ClassVar[List[str]] = ["permissions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPermissionsListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in permissions (list) + _items = [] + if self.permissions: + for _item_permissions in self.permissions: + if _item_permissions: + _items.append(_item_permissions.to_dict()) + _dict['permissions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPermissionsListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permissions": [ServicingPublicapiTransfersPermissionDTO.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_all_tenants_status_apidto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_all_tenants_status_apidto.py new file mode 100644 index 0000000000..b2ba829313 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_all_tenants_status_apidto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_tenant_detail_apidto import AdminPublicapiTransfersTenantDetailAPIDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersAllTenantsStatusAPIDTO(BaseModel): + """ + AdminPublicapiTransfersAllTenantsStatusAPIDTO + """ # noqa: E501 + limit: Optional[StrictInt] = Field(default=None, description="The limit of analytic tenants to return. The maximum value is 1000.") + start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving values from, also known as offset. The index begins at 0.") + tenants: Optional[List[AdminPublicapiTransfersTenantDetailAPIDTO]] = Field(default=None, description="A list of objects representing all the analytic tenants.") + __properties: ClassVar[List[str]] = ["limit", "start", "tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersAllTenantsStatusAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersAllTenantsStatusAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "start": obj.get("start"), + "tenants": [AdminPublicapiTransfersTenantDetailAPIDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_batch_tenant_provision_apidto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_batch_tenant_provision_apidto.py new file mode 100644 index 0000000000..50e68ad2c1 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_batch_tenant_provision_apidto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_tenant_provision_apidto import AdminPublicapiTransfersTenantProvisionAPIDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersBatchTenantProvisionAPIDTO(BaseModel): + """ + AdminPublicapiTransfersBatchTenantProvisionAPIDTO + """ # noqa: E501 + tenants: Optional[List[AdminPublicapiTransfersTenantProvisionAPIDTO]] = Field(default=None, description="An array of tenants to create. The maximum number of tenants to create in one request is 200.") + __properties: ClassVar[List[str]] = ["tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersBatchTenantProvisionAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersBatchTenantProvisionAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenants": [AdminPublicapiTransfersTenantProvisionAPIDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_business_location_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_business_location_dto.py new file mode 100644 index 0000000000..76177e14a0 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_business_location_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersBusinessLocationDTO(BaseModel): + """ + The location of operations or where business is performed. + """ # noqa: E501 + country_code: Optional[StrictStr] = Field(default=None, description="The country in which the business is located or business is performed. The country code must follow ISO 3166 standards in alpha-2 format (two-letter code).", alias="countryCode") + postal_code: Optional[StrictStr] = Field(default=None, description="The postal code associated with the business location. Cannot be blank.", alias="postalCode") + __properties: ClassVar[List[str]] = ["countryCode", "postalCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersBusinessLocationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersBusinessLocationDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "countryCode": obj.get("countryCode"), + "postalCode": obj.get("postalCode") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_custom_property_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_custom_property_dto.py new file mode 100644 index 0000000000..2c61bda1fa --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_custom_property_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersCustomPropertyDTO(BaseModel): + """ + AdminPublicapiTransfersCustomPropertyDTO + """ # noqa: E501 + key: Optional[StrictStr] = None + value: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["key", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersCustomPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersCustomPropertyDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "key": obj.get("key"), + "value": obj.get("value") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_custom_tenant_property_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_custom_tenant_property_dto.py new file mode 100644 index 0000000000..f0d4ea76e6 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_custom_tenant_property_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersCustomTenantPropertyDTO(BaseModel): + """ + AdminPublicapiTransfersCustomTenantPropertyDTO + """ # noqa: E501 + key: Optional[StrictStr] = None + value: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["key", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersCustomTenantPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersCustomTenantPropertyDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "key": obj.get("key"), + "value": obj.get("value") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_element_ids_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_element_ids_dto.py new file mode 100644 index 0000000000..5924d6ad59 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_element_ids_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersElementIDsDTO(BaseModel): + """ + AdminPublicapiTransfersElementIDsDTO + """ # noqa: E501 + ids: Optional[List[StrictStr]] = Field(default=None, description="The unique identifiers.") + __properties: ClassVar[List[str]] = ["ids"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersElementIDsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersElementIDsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ids": obj.get("ids") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_home_analysis_by_user_group_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_home_analysis_by_user_group_dto.py new file mode 100644 index 0000000000..2b813760f7 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_home_analysis_by_user_group_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersHomeAnalysisByUserGroupDTO(BaseModel): + """ + AdminPublicapiTransfersHomeAnalysisByUserGroupDTO + """ # noqa: E501 + home_analysis_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analysis to show for this user group when a user logs in.", alias="homeAnalysisId") + user_group_id: Optional[StrictStr] = Field(default=None, description="The user group ID.", alias="userGroupId") + __properties: ClassVar[List[str]] = ["homeAnalysisId", "userGroupId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersHomeAnalysisByUserGroupDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersHomeAnalysisByUserGroupDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "homeAnalysisId": obj.get("homeAnalysisId"), + "userGroupId": obj.get("userGroupId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_detail_apidto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_detail_apidto.py new file mode 100644 index 0000000000..8f29515f8a --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_detail_apidto.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_custom_tenant_property_dto import AdminPublicapiTransfersCustomTenantPropertyDTO +from visier_api_administration.models.designer_transfers_tenant_module_dto import DesignerTransfersTenantModuleDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersTenantDetailAPIDTO(BaseModel): + """ + AdminPublicapiTransfersTenantDetailAPIDTO + """ # noqa: E501 + allowed_o_auth_idp_url_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, which can be used as values for the idp_url parameter", alias="allowedOAuthIdpUrlDomains") + can_administer_other_tenants: Optional[StrictBool] = Field(default=None, description="If true, the tenant is an administrating tenant.", alias="canAdministerOtherTenants") + current_data_version: Optional[StrictStr] = Field(default=None, description="The data version ID that the tenant is using.", alias="currentDataVersion") + custom_properties: Optional[List[AdminPublicapiTransfersCustomTenantPropertyDTO]] = Field(default=None, description="A set of key-value pairs that represent different customizable properties for the analytic tenant.", alias="customProperties") + data_version_date: Optional[StrictStr] = Field(default=None, description="The date that the data version was published to production.", alias="dataVersionDate") + embeddable_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, in which Visier can be embedded.", alias="embeddableDomains") + industry_code: Optional[StrictInt] = Field(default=None, description="The 6-digit NAICS code for the industry to which the analytic tenant belongs.", alias="industryCode") + modules: Optional[List[DesignerTransfersTenantModuleDTO]] = Field(default=None, description="The modules assigned to the analytic tenant.") + provision_date: Optional[StrictStr] = Field(default=None, description="The date that the tenant was created.", alias="provisionDate") + sso_instance_issuers: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the issuers for the SSO providers that can authenticate this tenant.", alias="ssoInstanceIssuers") + status: Optional[StrictStr] = Field(default=None, description="Whether the tenant is enabled or disabled.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant. For example, \"WFF_j1r~i1o\".", alias="tenantCode") + tenant_display_name: Optional[StrictStr] = Field(default=None, description="An identifiable tenant name that is displayed within Visier. For example, \"Callisto\".", alias="tenantDisplayName") + vanity_url_name: Optional[StrictStr] = Field(default=None, description="The name of the administrating tenant used in Visier URLs.", alias="vanityUrlName") + __properties: ClassVar[List[str]] = ["allowedOAuthIdpUrlDomains", "canAdministerOtherTenants", "currentDataVersion", "customProperties", "dataVersionDate", "embeddableDomains", "industryCode", "modules", "provisionDate", "ssoInstanceIssuers", "status", "tenantCode", "tenantDisplayName", "vanityUrlName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersTenantDetailAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in custom_properties (list) + _items = [] + if self.custom_properties: + for _item_custom_properties in self.custom_properties: + if _item_custom_properties: + _items.append(_item_custom_properties.to_dict()) + _dict['customProperties'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in modules (list) + _items = [] + if self.modules: + for _item_modules in self.modules: + if _item_modules: + _items.append(_item_modules.to_dict()) + _dict['modules'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersTenantDetailAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowedOAuthIdpUrlDomains": obj.get("allowedOAuthIdpUrlDomains"), + "canAdministerOtherTenants": obj.get("canAdministerOtherTenants"), + "currentDataVersion": obj.get("currentDataVersion"), + "customProperties": [AdminPublicapiTransfersCustomTenantPropertyDTO.from_dict(_item) for _item in obj["customProperties"]] if obj.get("customProperties") is not None else None, + "dataVersionDate": obj.get("dataVersionDate"), + "embeddableDomains": obj.get("embeddableDomains"), + "industryCode": obj.get("industryCode"), + "modules": [DesignerTransfersTenantModuleDTO.from_dict(_item) for _item in obj["modules"]] if obj.get("modules") is not None else None, + "provisionDate": obj.get("provisionDate"), + "ssoInstanceIssuers": obj.get("ssoInstanceIssuers"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode"), + "tenantDisplayName": obj.get("tenantDisplayName"), + "vanityUrlName": obj.get("vanityUrlName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_get_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_get_response_dto.py new file mode 100644 index 0000000000..e6857b98ea --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_get_response_dto.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_business_location_dto import AdminPublicapiTransfersBusinessLocationDTO +from visier_api_administration.models.admin_publicapi_transfers_custom_property_dto import AdminPublicapiTransfersCustomPropertyDTO +from visier_api_administration.models.admin_publicapi_transfers_home_analysis_by_user_group_dto import AdminPublicapiTransfersHomeAnalysisByUserGroupDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersTenantManagementAPIGetResponseDTO(BaseModel): + """ + AdminPublicapiTransfersTenantManagementAPIGetResponseDTO + """ # noqa: E501 + allowed_o_auth_idp_url_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, that are allowed in the idp_url OAuth parameter.", alias="allowedOAuthIdpUrlDomains") + can_administer_other_tenants: Optional[StrictBool] = Field(default=None, description="If true, the tenant is an administrating tenant.", alias="canAdministerOtherTenants") + click_through_link: Optional[StrictStr] = Field(default=None, description="The custom URL to redirect users into your portal to see the relevant content. This URL is used for links that are shared by and with your users through the sharing capability or email content.", alias="clickThroughLink") + click_through_link_enabled: Optional[StrictStr] = Field(default=None, description="Whether the click-through link is enabled or disabled.", alias="clickThroughLinkEnabled") + current_data_version: Optional[StrictStr] = Field(default=None, description="The data version ID that the tenant is using.", alias="currentDataVersion") + custom_properties: Optional[List[AdminPublicapiTransfersCustomPropertyDTO]] = Field(default=None, description="A set of key-value pairs that represent different customizable properties for the analytic tenant.", alias="customProperties") + data_version_date: Optional[StrictStr] = Field(default=None, description="The date that the data version was published to production.", alias="dataVersionDate") + default_currency: Optional[StrictStr] = Field(default=None, description="The default currency to show in the application for the tenant.", alias="defaultCurrency") + embeddable_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, in which Visier can be embedded.", alias="embeddableDomains") + home_analysis_by_user_group: Optional[List[AdminPublicapiTransfersHomeAnalysisByUserGroupDTO]] = Field(default=None, description="A list of objects representing the analysis displayed to specific user groups when users log in.", alias="homeAnalysisByUserGroup") + home_analysis_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analysis that's displayed for this tenant when a user logs in.", alias="homeAnalysisId") + industry_code: Optional[StrictInt] = Field(default=None, description="The 6-digit NAICS code for the industry to which the analytic tenant belongs.", alias="industryCode") + primary_business_location: Optional[AdminPublicapiTransfersBusinessLocationDTO] = Field(default=None, description="The primary location of operations or where business is performed. If undefined, it is omitted from the response.", alias="primaryBusinessLocation") + provision_date: Optional[StrictStr] = Field(default=None, description="The date that the tenant was created.", alias="provisionDate") + purchased_modules: Optional[List[StrictStr]] = Field(default=None, description="The modules assigned to the analytic tenant.", alias="purchasedModules") + sso_instance_issuers: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the issuers for the SSO providers that can authenticate this tenant.", alias="ssoInstanceIssuers") + status: Optional[StrictStr] = Field(default=None, description="Whether the tenant is enabled or disabled.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant. For example, \"WFF_j1r~i1o\"", alias="tenantCode") + tenant_display_name: Optional[StrictStr] = Field(default=None, description="An identifiable tenant name that is displayed within Visier. For example, \"Callisto\".", alias="tenantDisplayName") + vanity_url_name: Optional[StrictStr] = Field(default=None, description="The name of the administrating tenant used in Visier URLs.", alias="vanityUrlName") + __properties: ClassVar[List[str]] = ["allowedOAuthIdpUrlDomains", "canAdministerOtherTenants", "clickThroughLink", "clickThroughLinkEnabled", "currentDataVersion", "customProperties", "dataVersionDate", "defaultCurrency", "embeddableDomains", "homeAnalysisByUserGroup", "homeAnalysisId", "industryCode", "primaryBusinessLocation", "provisionDate", "purchasedModules", "ssoInstanceIssuers", "status", "tenantCode", "tenantDisplayName", "vanityUrlName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersTenantManagementAPIGetResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in custom_properties (list) + _items = [] + if self.custom_properties: + for _item_custom_properties in self.custom_properties: + if _item_custom_properties: + _items.append(_item_custom_properties.to_dict()) + _dict['customProperties'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in home_analysis_by_user_group (list) + _items = [] + if self.home_analysis_by_user_group: + for _item_home_analysis_by_user_group in self.home_analysis_by_user_group: + if _item_home_analysis_by_user_group: + _items.append(_item_home_analysis_by_user_group.to_dict()) + _dict['homeAnalysisByUserGroup'] = _items + # override the default output from pydantic by calling `to_dict()` of primary_business_location + if self.primary_business_location: + _dict['primaryBusinessLocation'] = self.primary_business_location.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersTenantManagementAPIGetResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowedOAuthIdpUrlDomains": obj.get("allowedOAuthIdpUrlDomains"), + "canAdministerOtherTenants": obj.get("canAdministerOtherTenants"), + "clickThroughLink": obj.get("clickThroughLink"), + "clickThroughLinkEnabled": obj.get("clickThroughLinkEnabled"), + "currentDataVersion": obj.get("currentDataVersion"), + "customProperties": [AdminPublicapiTransfersCustomPropertyDTO.from_dict(_item) for _item in obj["customProperties"]] if obj.get("customProperties") is not None else None, + "dataVersionDate": obj.get("dataVersionDate"), + "defaultCurrency": obj.get("defaultCurrency"), + "embeddableDomains": obj.get("embeddableDomains"), + "homeAnalysisByUserGroup": [AdminPublicapiTransfersHomeAnalysisByUserGroupDTO.from_dict(_item) for _item in obj["homeAnalysisByUserGroup"]] if obj.get("homeAnalysisByUserGroup") is not None else None, + "homeAnalysisId": obj.get("homeAnalysisId"), + "industryCode": obj.get("industryCode"), + "primaryBusinessLocation": AdminPublicapiTransfersBusinessLocationDTO.from_dict(obj["primaryBusinessLocation"]) if obj.get("primaryBusinessLocation") is not None else None, + "provisionDate": obj.get("provisionDate"), + "purchasedModules": obj.get("purchasedModules"), + "ssoInstanceIssuers": obj.get("ssoInstanceIssuers"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode"), + "tenantDisplayName": obj.get("tenantDisplayName"), + "vanityUrlName": obj.get("vanityUrlName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_list_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_list_response_dto.py new file mode 100644 index 0000000000..3659e69e4a --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_list_response_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_tenant_management_api_get_response_dto import AdminPublicapiTransfersTenantManagementAPIGetResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersTenantManagementAPIListResponseDTO(BaseModel): + """ + AdminPublicapiTransfersTenantManagementAPIListResponseDTO + """ # noqa: E501 + limit: Optional[StrictInt] = Field(default=None, description="The limit of analytic tenants to return. The maximum value is 1000. The default is 150.") + start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving values from, also known as offset. The index begins at 0.") + tenants: Optional[List[AdminPublicapiTransfersTenantManagementAPIGetResponseDTO]] = Field(default=None, description="A list of objects representing all the analytic tenants.") + __properties: ClassVar[List[str]] = ["limit", "start", "tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersTenantManagementAPIListResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersTenantManagementAPIListResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "start": obj.get("start"), + "tenants": [AdminPublicapiTransfersTenantManagementAPIGetResponseDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_update_request_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_update_request_dto.py new file mode 100644 index 0000000000..28c78eabeb --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_update_request_dto.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_business_location_dto import AdminPublicapiTransfersBusinessLocationDTO +from visier_api_administration.models.admin_publicapi_transfers_custom_property_dto import AdminPublicapiTransfersCustomPropertyDTO +from visier_api_administration.models.admin_publicapi_transfers_home_analysis_by_user_group_dto import AdminPublicapiTransfersHomeAnalysisByUserGroupDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO(BaseModel): + """ + AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO + """ # noqa: E501 + allowed_o_auth_idp_url_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, that are allowed in the idp_url OAuth parameter. This is optional.", alias="allowedOAuthIdpUrlDomains") + click_through_link: Optional[StrictStr] = Field(default=None, description="A custom URL to redirect users into your portal to see the relevant content. This URL is used for links that are shared by and with your users through the sharing capability or email content. This is optional. Causes the API request to take longer because it must publish a project to production.", alias="clickThroughLink") + custom_properties: Optional[List[AdminPublicapiTransfersCustomPropertyDTO]] = Field(default=None, description="A list of objects that represent different customizable properties for the analytic tenant. This is optional.", alias="customProperties") + default_currency: Optional[StrictStr] = Field(default=None, description="The default currency to show in the application for the tenant.", alias="defaultCurrency") + embeddable_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, in which Visier can be embedded. If domains at the administrating tenant level match the domains at the analytic tenant level, you do not need to include a domain for each analytic tenant. This is optional.", alias="embeddableDomains") + enabled: Optional[StrictBool] = Field(default=None, description="If true, the tenant is enabled. Enabled tenants have access to Visier visualizations.") + home_analysis_by_user_group: Optional[List[AdminPublicapiTransfersHomeAnalysisByUserGroupDTO]] = Field(default=None, description="A list of objects representing the analysis to display to specific user groups when users log in. This is optional. Causes the API request to take longer because it must publish a project to production.", alias="homeAnalysisByUserGroup") + home_analysis_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analysis to display for this tenant when a user logs in. This is optional. Causes the API request to take longer because it must publish a project to production. Retrieve the ID by opening an analysis in the production version of a tenant and copying the string after the last forward slash (/) in the URL. For example: https://jupiter.visier.com/hr/prod/appcontainer?previewId=-eZPm8xvo3SUMpD4Q5pdE-6mCj9CQ9K699XgqRGwtOxagH5x2IzDFawlWn3hYqFEfU7nP0YK9ASEzmrNfAihGg..&previewType=Production#/analytics/myanalyses/`8a4c1d4f-eb61-4da0-9e5b-55bef757c30e`. The `homeAnalysisID` is `8a4c1d4f-eb61-4da0-9e5b-55bef757c30e`. Alternatively, retrieve the ID by copying the `Analysis ID` or `contentId` found by following the `Embed a Visualization` documentation.", alias="homeAnalysisId") + industry_code: Optional[StrictInt] = Field(default=None, description="The 6-digit NAICS code for the industry to which the analytic tenant belongs. If the code is unknown, type 0. For 2-digit codes, add trailing zeros at the end to reach 6 digits, such as 620000. Required if creating new tenants.", alias="industryCode") + primary_business_location: Optional[AdminPublicapiTransfersBusinessLocationDTO] = Field(default=None, description="The primary location of operations or where business is performed. This field is optional.", alias="primaryBusinessLocation") + purchased_modules: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated collection of strings that represent the Visier modules assigned to the new analytic tenant. Required if creating new tenants. To get the module name: 1. In Visier, open a project and navigate to **Model > Modules**. 2. Select a module. 3. In **Basic Information**, copy the **Object name**. This is the module name.", alias="purchasedModules") + sso_instance_issuers: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the issuers for the SSO providers that can authenticate this tenant. This is optional.", alias="ssoInstanceIssuers") + tenant_code: Optional[StrictStr] = Field(default=None, description="A unique identifier for the newly created analytic tenant. Required if creating new tenants.", alias="tenantCode") + tenant_display_name: Optional[StrictStr] = Field(default=None, description="A new display name to assign to the analytic tenant. Required if creating new tenants.", alias="tenantDisplayName") + tenant_short_name: Optional[StrictStr] = Field(default=None, description="A new short name to assign to the tenant. Required for analytic tenants.", alias="tenantShortName") + update_action: Optional[StrictStr] = Field(default=None, description="Specifies the way you want to update values. Default is MERGE. Valid values: - `MERGE`: Combine the existing values with the new values. - `REPLACE`: Remove existing values and let the new values take their place.", alias="updateAction") + vanity_url_name: Optional[StrictStr] = Field(default=None, description="A new vanity name to assign to the tenant. Omit for new Embedded analytic tenants.", alias="vanityUrlName") + __properties: ClassVar[List[str]] = ["allowedOAuthIdpUrlDomains", "clickThroughLink", "customProperties", "defaultCurrency", "embeddableDomains", "enabled", "homeAnalysisByUserGroup", "homeAnalysisId", "industryCode", "primaryBusinessLocation", "purchasedModules", "ssoInstanceIssuers", "tenantCode", "tenantDisplayName", "tenantShortName", "updateAction", "vanityUrlName"] + + @field_validator('update_action') + def update_action_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['MERGE', 'REPLACE']): + raise ValueError("must be one of enum values ('MERGE', 'REPLACE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in custom_properties (list) + _items = [] + if self.custom_properties: + for _item_custom_properties in self.custom_properties: + if _item_custom_properties: + _items.append(_item_custom_properties.to_dict()) + _dict['customProperties'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in home_analysis_by_user_group (list) + _items = [] + if self.home_analysis_by_user_group: + for _item_home_analysis_by_user_group in self.home_analysis_by_user_group: + if _item_home_analysis_by_user_group: + _items.append(_item_home_analysis_by_user_group.to_dict()) + _dict['homeAnalysisByUserGroup'] = _items + # override the default output from pydantic by calling `to_dict()` of primary_business_location + if self.primary_business_location: + _dict['primaryBusinessLocation'] = self.primary_business_location.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowedOAuthIdpUrlDomains": obj.get("allowedOAuthIdpUrlDomains"), + "clickThroughLink": obj.get("clickThroughLink"), + "customProperties": [AdminPublicapiTransfersCustomPropertyDTO.from_dict(_item) for _item in obj["customProperties"]] if obj.get("customProperties") is not None else None, + "defaultCurrency": obj.get("defaultCurrency"), + "embeddableDomains": obj.get("embeddableDomains"), + "enabled": obj.get("enabled"), + "homeAnalysisByUserGroup": [AdminPublicapiTransfersHomeAnalysisByUserGroupDTO.from_dict(_item) for _item in obj["homeAnalysisByUserGroup"]] if obj.get("homeAnalysisByUserGroup") is not None else None, + "homeAnalysisId": obj.get("homeAnalysisId"), + "industryCode": obj.get("industryCode"), + "primaryBusinessLocation": AdminPublicapiTransfersBusinessLocationDTO.from_dict(obj["primaryBusinessLocation"]) if obj.get("primaryBusinessLocation") is not None else None, + "purchasedModules": obj.get("purchasedModules"), + "ssoInstanceIssuers": obj.get("ssoInstanceIssuers"), + "tenantCode": obj.get("tenantCode"), + "tenantDisplayName": obj.get("tenantDisplayName"), + "tenantShortName": obj.get("tenantShortName"), + "updateAction": obj.get("updateAction"), + "vanityUrlName": obj.get("vanityUrlName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_update_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_update_response_dto.py new file mode 100644 index 0000000000..86b02c69a9 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_management_api_update_response_dto.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_business_location_dto import AdminPublicapiTransfersBusinessLocationDTO +from visier_api_administration.models.admin_publicapi_transfers_custom_property_dto import AdminPublicapiTransfersCustomPropertyDTO +from visier_api_administration.models.admin_publicapi_transfers_home_analysis_by_user_group_dto import AdminPublicapiTransfersHomeAnalysisByUserGroupDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO(BaseModel): + """ + AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO + """ # noqa: E501 + allowed_o_auth_idp_url_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, that are allowed in the idp_url OAuth parameter. This is optional.", alias="allowedOAuthIdpUrlDomains") + click_through_link: Optional[StrictStr] = Field(default=None, description="A custom URL to redirect users into your portal to see the relevant content. This URL is used for links that are shared by and with your users through the sharing capability or email content.", alias="clickThroughLink") + custom_properties: Optional[List[AdminPublicapiTransfersCustomPropertyDTO]] = Field(default=None, description="A list of objects that represent different customizable properties for the analytic tenant.", alias="customProperties") + default_currency: Optional[StrictStr] = Field(default=None, description="The default currency to show in the application for the tenant.", alias="defaultCurrency") + embeddable_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, in which Visier can be embedded. If domains at the administrating tenant level match the domains at the analytic tenant level, you do not need to include a domain for each analytic tenant.", alias="embeddableDomains") + home_analysis_by_user_group: Optional[List[AdminPublicapiTransfersHomeAnalysisByUserGroupDTO]] = Field(default=None, description="A list of objects representing the analysis to display to specific user groups when users log in.", alias="homeAnalysisByUserGroup") + home_analysis_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analysis to display for this tenant when a user logs in. This is optional. Retrieve the ID by opening an analysis in the production version of a tenant and copying the string after the last forward slash (/) in the URL. For example: https://jupiter.visier.com/hr/prod/appcontainer?previewId=-eZPm8xvo3SUMpD4Q5pdE-6mCj9CQ9K699XgqRGwtOxagH5x2IzDFawlWn3hYqFEfU7nP0YK9ASEzmrNfAihGg..&previewType=Production#/analytics/myanalyses/`8a4c1d4f-eb61-4da0-9e5b-55bef757c30e`. The `homeAnalysisID` is `8a4c1d4f-eb61-4da0-9e5b-55bef757c30e`. Alternatively, retrieve the ID by copying the `Analysis ID` or `contentId` found by following the `Embed a Visualization` documentation.", alias="homeAnalysisId") + industry_code: Optional[StrictInt] = Field(default=None, description="The 6-digit NAICS code for the industry to which the analytic tenant belongs.", alias="industryCode") + primary_business_location: Optional[AdminPublicapiTransfersBusinessLocationDTO] = Field(default=None, description="The primary location of operations or where business is performed. If undefined, it is omitted from the response.", alias="primaryBusinessLocation") + purchased_modules: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated collection of strings that represent the Visier modules assigned to the new analytic tenant.", alias="purchasedModules") + sso_instance_issuers: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the issuers for the SSO providers that can authenticate this tenant.", alias="ssoInstanceIssuers") + status: Optional[StrictStr] = Field(default=None, description="Whether the tenant is enabled or disabled. Enabled tenants have access to Visier visualizations.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier of the newly created analytic tenant.", alias="tenantCode") + tenant_display_name: Optional[StrictStr] = Field(default=None, description="A comma-separated collection of strings that represent the Visier modules assigned to the new analytic tenant.", alias="tenantDisplayName") + vanity_url_name: Optional[StrictStr] = Field(default=None, description="The name of the administrating tenant used in Visier URLs.", alias="vanityUrlName") + __properties: ClassVar[List[str]] = ["allowedOAuthIdpUrlDomains", "clickThroughLink", "customProperties", "defaultCurrency", "embeddableDomains", "homeAnalysisByUserGroup", "homeAnalysisId", "industryCode", "primaryBusinessLocation", "purchasedModules", "ssoInstanceIssuers", "status", "tenantCode", "tenantDisplayName", "vanityUrlName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in custom_properties (list) + _items = [] + if self.custom_properties: + for _item_custom_properties in self.custom_properties: + if _item_custom_properties: + _items.append(_item_custom_properties.to_dict()) + _dict['customProperties'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in home_analysis_by_user_group (list) + _items = [] + if self.home_analysis_by_user_group: + for _item_home_analysis_by_user_group in self.home_analysis_by_user_group: + if _item_home_analysis_by_user_group: + _items.append(_item_home_analysis_by_user_group.to_dict()) + _dict['homeAnalysisByUserGroup'] = _items + # override the default output from pydantic by calling `to_dict()` of primary_business_location + if self.primary_business_location: + _dict['primaryBusinessLocation'] = self.primary_business_location.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowedOAuthIdpUrlDomains": obj.get("allowedOAuthIdpUrlDomains"), + "clickThroughLink": obj.get("clickThroughLink"), + "customProperties": [AdminPublicapiTransfersCustomPropertyDTO.from_dict(_item) for _item in obj["customProperties"]] if obj.get("customProperties") is not None else None, + "defaultCurrency": obj.get("defaultCurrency"), + "embeddableDomains": obj.get("embeddableDomains"), + "homeAnalysisByUserGroup": [AdminPublicapiTransfersHomeAnalysisByUserGroupDTO.from_dict(_item) for _item in obj["homeAnalysisByUserGroup"]] if obj.get("homeAnalysisByUserGroup") is not None else None, + "homeAnalysisId": obj.get("homeAnalysisId"), + "industryCode": obj.get("industryCode"), + "primaryBusinessLocation": AdminPublicapiTransfersBusinessLocationDTO.from_dict(obj["primaryBusinessLocation"]) if obj.get("primaryBusinessLocation") is not None else None, + "purchasedModules": obj.get("purchasedModules"), + "ssoInstanceIssuers": obj.get("ssoInstanceIssuers"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode"), + "tenantDisplayName": obj.get("tenantDisplayName"), + "vanityUrlName": obj.get("vanityUrlName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_provision_apidto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_provision_apidto.py new file mode 100644 index 0000000000..5a6bac4e8c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_provision_apidto.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_custom_tenant_property_dto import AdminPublicapiTransfersCustomTenantPropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersTenantProvisionAPIDTO(BaseModel): + """ + AdminPublicapiTransfersTenantProvisionAPIDTO + """ # noqa: E501 + allowed_o_auth_idp_url_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, which can be used as values for the idp_url OAuth parameter.", alias="allowedOAuthIdpUrlDomains") + custom_properties: Optional[List[AdminPublicapiTransfersCustomTenantPropertyDTO]] = Field(default=None, description="A set of key-value pairs that represent different customizable properties for the analytic tenant.", alias="customProperties") + embeddable_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, in which Visier can be embedded. If domains at the administrating tenant level match the domains at the analytic tenant level, you do not need to include a domain for each analytic tenant.", alias="embeddableDomains") + industry_code: Optional[StrictInt] = Field(default=None, description="The 6-digit NAICS code for the industry to which the analytic tenant belongs. If the code is unknown, type 0. For 2-digit codes, add trailing zeros at the end to reach 6 digits, such as 620000.", alias="industryCode") + purchased_modules: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the Visier modules assigned to the analytic tenant.", alias="purchasedModules") + sso_instance_issuers: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the issuers for the SSO providers that can authenticate this tenant.", alias="ssoInstanceIssuers") + tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier of the analytic tenant.", alias="tenantCode") + tenant_display_name: Optional[StrictStr] = Field(default=None, description="The display name that is assigned to the analytic tenant.", alias="tenantDisplayName") + __properties: ClassVar[List[str]] = ["allowedOAuthIdpUrlDomains", "customProperties", "embeddableDomains", "industryCode", "purchasedModules", "ssoInstanceIssuers", "tenantCode", "tenantDisplayName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersTenantProvisionAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in custom_properties (list) + _items = [] + if self.custom_properties: + for _item_custom_properties in self.custom_properties: + if _item_custom_properties: + _items.append(_item_custom_properties.to_dict()) + _dict['customProperties'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersTenantProvisionAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowedOAuthIdpUrlDomains": obj.get("allowedOAuthIdpUrlDomains"), + "customProperties": [AdminPublicapiTransfersCustomTenantPropertyDTO.from_dict(_item) for _item in obj["customProperties"]] if obj.get("customProperties") is not None else None, + "embeddableDomains": obj.get("embeddableDomains"), + "industryCode": obj.get("industryCode"), + "purchasedModules": obj.get("purchasedModules"), + "ssoInstanceIssuers": obj.get("ssoInstanceIssuers"), + "tenantCode": obj.get("tenantCode"), + "tenantDisplayName": obj.get("tenantDisplayName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_status_apidto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_status_apidto.py new file mode 100644 index 0000000000..d9590363df --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_tenant_status_apidto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersTenantStatusAPIDTO(BaseModel): + """ + AdminPublicapiTransfersTenantStatusAPIDTO + """ # noqa: E501 + can_administer_other_tenants: Optional[StrictBool] = Field(default=None, description="If true, the tenant is an administrating tenant.", alias="canAdministerOtherTenants") + status: Optional[StrictStr] = Field(default=None, description="Whether the tenant is enabled or disabled.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier for the analytic tenant.", alias="tenantCode") + tenant_display_name: Optional[StrictStr] = Field(default=None, description="The identifiable tenant name that is displayed within Visier. For example, \"Callisto\".", alias="tenantDisplayName") + __properties: ClassVar[List[str]] = ["canAdministerOtherTenants", "status", "tenantCode", "tenantDisplayName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersTenantStatusAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersTenantStatusAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "canAdministerOtherTenants": obj.get("canAdministerOtherTenants"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode"), + "tenantDisplayName": obj.get("tenantDisplayName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_definition_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_definition_dto.py new file mode 100644 index 0000000000..fe3f346969 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_definition_dto.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_element_ids_dto import AdminPublicapiTransfersElementIDsDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_users_dto import AdminPublicapiTransfersUserGroupChangeUsersDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupChangeDefinitionDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupChangeDefinitionDTO + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="A detailed description of the population and purpose of the user group.") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable user group name to display in Visier, such as \"Leadership User Group\".", alias="displayName") + permission_ids: Optional[AdminPublicapiTransfersElementIDsDTO] = Field(default=None, description="The unique identifiers of permissions assigned to members of this user group.", alias="permissionIds") + project_id: Optional[StrictStr] = Field(default=None, description="The project ID in which to update or create the user group. If omitted and the ProjectID request header is not defined, the change is published to production immediately.", alias="projectId") + tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant to which the user group belongs or should be created in. Omit if creating or updating user groups in the current tenant.", alias="tenantCode") + user_group_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the user group. Omit if creating a new user group.", alias="userGroupId") + users: Optional[AdminPublicapiTransfersUserGroupChangeUsersDTO] = Field(default=None, description="The users assigned to the user group. You can define user group members dynamically with `dynamicFilterDefinition` or manually with `includeAllUsers` or `manuallyIncludedIds`.") + __properties: ClassVar[List[str]] = ["description", "displayName", "permissionIds", "projectId", "tenantCode", "userGroupId", "users"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of permission_ids + if self.permission_ids: + _dict['permissionIds'] = self.permission_ids.to_dict() + # override the default output from pydantic by calling `to_dict()` of users + if self.users: + _dict['users'] = self.users.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "permissionIds": AdminPublicapiTransfersElementIDsDTO.from_dict(obj["permissionIds"]) if obj.get("permissionIds") is not None else None, + "projectId": obj.get("projectId"), + "tenantCode": obj.get("tenantCode"), + "userGroupId": obj.get("userGroupId"), + "users": AdminPublicapiTransfersUserGroupChangeUsersDTO.from_dict(obj["users"]) if obj.get("users") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_dimension_filter_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_dimension_filter_dto.py new file mode 100644 index 0000000000..9303de4d34 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_dimension_filter_dto.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_element_ids_dto import AdminPublicapiTransfersElementIDsDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_member_selection_dto import AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO + """ # noqa: E501 + dimension_id: Optional[StrictStr] = Field(default=None, description="The object name of the dimension.", alias="dimensionId") + member_selections: Optional[List[AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO]] = Field(default=None, description="The dimension members to select in the dynamic filter.", alias="memberSelections") + subject_reference_path: Optional[AdminPublicapiTransfersElementIDsDTO] = Field(default=None, description="A qualifying path if the dimension is from an analytic object that references Employee. For example, use `subjectReferencePath` to create a filter on the `Employment_Start_Type` dimension from the `Employment_Start` object, which references `Employee`: `{ \"ids\": [ \"Employee\", \"Employment_Start\" ] }`.", alias="subjectReferencePath") + __properties: ClassVar[List[str]] = ["dimensionId", "memberSelections", "subjectReferencePath"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in member_selections (list) + _items = [] + if self.member_selections: + for _item_member_selections in self.member_selections: + if _item_member_selections: + _items.append(_item_member_selections.to_dict()) + _dict['memberSelections'] = _items + # override the default output from pydantic by calling `to_dict()` of subject_reference_path + if self.subject_reference_path: + _dict['subjectReferencePath'] = self.subject_reference_path.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensionId": obj.get("dimensionId"), + "memberSelections": [AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO.from_dict(_item) for _item in obj["memberSelections"]] if obj.get("memberSelections") is not None else None, + "subjectReferencePath": AdminPublicapiTransfersElementIDsDTO.from_dict(obj["subjectReferencePath"]) if obj.get("subjectReferencePath") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_failure_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_failure_dto.py new file mode 100644 index 0000000000..e1ed356bc0 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_failure_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupChangeFailureDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupChangeFailureDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the user group that couldn't be created.", alias="displayName") + message: Optional[StrictStr] = Field(default=None, description="The error message containing the cause of the failure.") + project_id: Optional[StrictStr] = Field(default=None, description="The ID of the project in which the user group could not be created or updated.", alias="projectId") + rci: Optional[StrictStr] = Field(default=None, description="The root cause identifier to provide to Visier Technical Support if you require further troubleshooting.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant for which the user group could not be created or updated.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["displayName", "message", "projectId", "rci", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeFailureDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeFailureDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "message": obj.get("message"), + "projectId": obj.get("projectId"), + "rci": obj.get("rci"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_filter_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_filter_dto.py new file mode 100644 index 0000000000..789b8fa10c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_filter_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_dimension_filter_dto import AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupChangeFilterDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupChangeFilterDTO + """ # noqa: E501 + analytic_object_id: Optional[StrictStr] = Field(default=None, description="The analytic object the filter applies to. Currently, the only supported analytic object is `Employee`. Default is `Employee`.", alias="analyticObjectId") + dimension_filters: Optional[List[AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO]] = Field(default=None, description="The dimensions in the dynamic filter.", alias="dimensionFilters") + filter_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the filter. Omit if creating a new filter.", alias="filterId") + __properties: ClassVar[List[str]] = ["analyticObjectId", "dimensionFilters", "filterId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in dimension_filters (list) + _items = [] + if self.dimension_filters: + for _item_dimension_filters in self.dimension_filters: + if _item_dimension_filters: + _items.append(_item_dimension_filters.to_dict()) + _dict['dimensionFilters'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeFilterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectId": obj.get("analyticObjectId"), + "dimensionFilters": [AdminPublicapiTransfersUserGroupChangeDimensionFilterDTO.from_dict(_item) for _item in obj["dimensionFilters"]] if obj.get("dimensionFilters") is not None else None, + "filterId": obj.get("filterId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_member_selection_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_member_selection_dto.py new file mode 100644 index 0000000000..e6e86c6b49 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_member_selection_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO + """ # noqa: E501 + is_excluded: Optional[StrictBool] = Field(default=None, description="If `true`, the specified member must not be defined for members of the user group.", alias="isExcluded") + name_path: Optional[List[StrictStr]] = Field(default=None, description="The name path for dimension members; for example, `[ \"North America\", \"US\", \"CA\" ]`.", alias="namePath") + __properties: ClassVar[List[str]] = ["isExcluded", "namePath"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeMemberSelectionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "isExcluded": obj.get("isExcluded"), + "namePath": obj.get("namePath") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_response_dto.py new file mode 100644 index 0000000000..1dc71f4d36 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_response_dto.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_failure_dto import AdminPublicapiTransfersUserGroupChangeFailureDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_success_dto import AdminPublicapiTransfersUserGroupChangeSuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupChangeResponseDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupChangeResponseDTO + """ # noqa: E501 + failures: Optional[List[AdminPublicapiTransfersUserGroupChangeFailureDTO]] = Field(default=None, description="The user groups that were not created.") + successes: Optional[List[AdminPublicapiTransfersUserGroupChangeSuccessDTO]] = Field(default=None, description="The user groups that were created.") + __properties: ClassVar[List[str]] = ["failures", "successes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in failures (list) + _items = [] + if self.failures: + for _item_failures in self.failures: + if _item_failures: + _items.append(_item_failures.to_dict()) + _dict['failures'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in successes (list) + _items = [] + if self.successes: + for _item_successes in self.successes: + if _item_successes: + _items.append(_item_successes.to_dict()) + _dict['successes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [AdminPublicapiTransfersUserGroupChangeFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [AdminPublicapiTransfersUserGroupChangeSuccessDTO.from_dict(_item) for _item in obj["successes"]] if obj.get("successes") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_success_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_success_dto.py new file mode 100644 index 0000000000..f377cc554f --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_success_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupChangeSuccessDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupChangeSuccessDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the created user group.", alias="displayName") + project_id: Optional[StrictStr] = Field(default=None, description="The ID of the project the user group was created or updated in.", alias="projectId") + tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant the user group was created or updated in.", alias="tenantCode") + user_group_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the user group.", alias="userGroupId") + __properties: ClassVar[List[str]] = ["displayName", "projectId", "tenantCode", "userGroupId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeSuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeSuccessDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "projectId": obj.get("projectId"), + "tenantCode": obj.get("tenantCode"), + "userGroupId": obj.get("userGroupId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_users_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_users_dto.py new file mode 100644 index 0000000000..dd776b622c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_change_users_dto.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_element_ids_dto import AdminPublicapiTransfersElementIDsDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_filters_dto import AdminPublicapiTransfersUserGroupFiltersDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupChangeUsersDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupChangeUsersDTO + """ # noqa: E501 + dynamic_filter_definition: Optional[AdminPublicapiTransfersUserGroupFiltersDTO] = Field(default=None, description="The filters that dynamically define a population through dimensions or dimensions accessible through references from the analytic object. * Omit if `includeAllUsers` is `true`. * You can combine dynamic filters with manually-assigned users.", alias="dynamicFilterDefinition") + include_all_users: Optional[StrictBool] = Field(default=None, description="If `true`, all users are included in the user group. If `true`: * You can manually exclude users with `manuallyExcludedIds`. * Cannot be combined with `manuallyIncludedIds` or `dynamicFilterDefinition`.", alias="includeAllUsers") + manually_excluded_ids: Optional[AdminPublicapiTransfersElementIDsDTO] = Field(default=None, description="Excludes specified user IDs from the user group. * You can manually exclude users if `includeAllUsers` is `true` or if `dynamicFilterDefinition` is defined. * Excluded IDs must not overlap with user IDs in `manuallyIncludedIds`.", alias="manuallyExcludedIds") + manually_included_ids: Optional[AdminPublicapiTransfersElementIDsDTO] = Field(default=None, description="Includes specified user IDs in the user group. * May be combined with `dynamicFilterDefinition`. * Omit if `includeAllUsers` is `true`.", alias="manuallyIncludedIds") + __properties: ClassVar[List[str]] = ["dynamicFilterDefinition", "includeAllUsers", "manuallyExcludedIds", "manuallyIncludedIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeUsersDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of dynamic_filter_definition + if self.dynamic_filter_definition: + _dict['dynamicFilterDefinition'] = self.dynamic_filter_definition.to_dict() + # override the default output from pydantic by calling `to_dict()` of manually_excluded_ids + if self.manually_excluded_ids: + _dict['manuallyExcludedIds'] = self.manually_excluded_ids.to_dict() + # override the default output from pydantic by calling `to_dict()` of manually_included_ids + if self.manually_included_ids: + _dict['manuallyIncludedIds'] = self.manually_included_ids.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupChangeUsersDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dynamicFilterDefinition": AdminPublicapiTransfersUserGroupFiltersDTO.from_dict(obj["dynamicFilterDefinition"]) if obj.get("dynamicFilterDefinition") is not None else None, + "includeAllUsers": obj.get("includeAllUsers"), + "manuallyExcludedIds": AdminPublicapiTransfersElementIDsDTO.from_dict(obj["manuallyExcludedIds"]) if obj.get("manuallyExcludedIds") is not None else None, + "manuallyIncludedIds": AdminPublicapiTransfersElementIDsDTO.from_dict(obj["manuallyIncludedIds"]) if obj.get("manuallyIncludedIds") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_delete_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_delete_dto.py new file mode 100644 index 0000000000..742cb57dc0 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_delete_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupDeleteDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupDeleteDTO + """ # noqa: E501 + project_id: Optional[StrictStr] = Field(default=None, description="The project ID in which to delete the user group. If omitted and the `ProjectID` request header is not defined, the change is published to production immediately.", alias="projectId") + tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant from which to delete the user group. Omit if deleting user groups in the current tenant.", alias="tenantCode") + user_group_id: Optional[StrictStr] = Field(default=None, description="Unique identifier for the user group.", alias="userGroupId") + __properties: ClassVar[List[str]] = ["projectId", "tenantCode", "userGroupId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupDeleteDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupDeleteDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "projectId": obj.get("projectId"), + "tenantCode": obj.get("tenantCode"), + "userGroupId": obj.get("userGroupId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_delete_failure_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_delete_failure_dto.py new file mode 100644 index 0000000000..88a6c68e73 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_delete_failure_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupDeleteFailureDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupDeleteFailureDTO + """ # noqa: E501 + message: Optional[StrictStr] = Field(default=None, description="The error message containing the cause of the failure.") + project_id: Optional[StrictStr] = Field(default=None, description="The ID of the project in which the user group could not be deleted.", alias="projectId") + rci: Optional[StrictStr] = Field(default=None, description="The root cause identifier to provide to Visier Technical Support if you require further troubleshooting.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant from which the user group could not be deleted.", alias="tenantCode") + user_group_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the user group that could not be deleted.", alias="userGroupId") + __properties: ClassVar[List[str]] = ["message", "projectId", "rci", "tenantCode", "userGroupId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupDeleteFailureDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupDeleteFailureDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "projectId": obj.get("projectId"), + "rci": obj.get("rci"), + "tenantCode": obj.get("tenantCode"), + "userGroupId": obj.get("userGroupId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_delete_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_delete_response_dto.py new file mode 100644 index 0000000000..9c8c656093 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_delete_response_dto.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_failure_dto import AdminPublicapiTransfersUserGroupDeleteFailureDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_success_dto import AdminPublicapiTransfersUserGroupDeleteSuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupDeleteResponseDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupDeleteResponseDTO + """ # noqa: E501 + failures: Optional[List[AdminPublicapiTransfersUserGroupDeleteFailureDTO]] = Field(default=None, description="The user groups that were not deleted successfully.") + successes: Optional[List[AdminPublicapiTransfersUserGroupDeleteSuccessDTO]] = Field(default=None, description="The user groups that were successfully deleted.") + __properties: ClassVar[List[str]] = ["failures", "successes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupDeleteResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in failures (list) + _items = [] + if self.failures: + for _item_failures in self.failures: + if _item_failures: + _items.append(_item_failures.to_dict()) + _dict['failures'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in successes (list) + _items = [] + if self.successes: + for _item_successes in self.successes: + if _item_successes: + _items.append(_item_successes.to_dict()) + _dict['successes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupDeleteResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [AdminPublicapiTransfersUserGroupDeleteFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [AdminPublicapiTransfersUserGroupDeleteSuccessDTO.from_dict(_item) for _item in obj["successes"]] if obj.get("successes") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_delete_success_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_delete_success_dto.py new file mode 100644 index 0000000000..86c46bd3e5 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_delete_success_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupDeleteSuccessDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupDeleteSuccessDTO + """ # noqa: E501 + project_id: Optional[StrictStr] = Field(default=None, description="The ID of the project in which user group was deleted.", alias="projectId") + tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant the user group was deleted from.", alias="tenantCode") + user_group_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the user group that was deleted.", alias="userGroupId") + __properties: ClassVar[List[str]] = ["projectId", "tenantCode", "userGroupId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupDeleteSuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupDeleteSuccessDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "projectId": obj.get("projectId"), + "tenantCode": obj.get("tenantCode"), + "userGroupId": obj.get("userGroupId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_filters_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_filters_dto.py new file mode 100644 index 0000000000..49373eec27 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_filters_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_filter_dto import AdminPublicapiTransfersUserGroupChangeFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupFiltersDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupFiltersDTO + """ # noqa: E501 + filters: Optional[List[AdminPublicapiTransfersUserGroupChangeFilterDTO]] = Field(default=None, description="The filters that define user group membership.") + __properties: ClassVar[List[str]] = ["filters"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupFiltersDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in filters (list) + _items = [] + if self.filters: + for _item_filters in self.filters: + if _item_filters: + _items.append(_item_filters.to_dict()) + _dict['filters'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupFiltersDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "filters": [AdminPublicapiTransfersUserGroupChangeFilterDTO.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_single_delete_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_single_delete_response_dto.py new file mode 100644 index 0000000000..8f64c3ae11 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_group_single_delete_response_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_failure_dto import AdminPublicapiTransfersUserGroupDeleteFailureDTO +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_success_dto import AdminPublicapiTransfersUserGroupDeleteSuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO + """ # noqa: E501 + failure: Optional[AdminPublicapiTransfersUserGroupDeleteFailureDTO] = Field(default=None, description="The user group was not successfully deleted.") + success: Optional[AdminPublicapiTransfersUserGroupDeleteSuccessDTO] = Field(default=None, description="The user group was successfully deleted.") + __properties: ClassVar[List[str]] = ["failure", "success"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of failure + if self.failure: + _dict['failure'] = self.failure.to_dict() + # override the default output from pydantic by calling `to_dict()` of success + if self.success: + _dict['success'] = self.success.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failure": AdminPublicapiTransfersUserGroupDeleteFailureDTO.from_dict(obj["failure"]) if obj.get("failure") is not None else None, + "success": AdminPublicapiTransfersUserGroupDeleteSuccessDTO.from_dict(obj["success"]) if obj.get("success") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_groups_change_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_groups_change_dto.py new file mode 100644 index 0000000000..f201f309ab --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_groups_change_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_user_group_change_definition_dto import AdminPublicapiTransfersUserGroupChangeDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupsChangeDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupsChangeDTO + """ # noqa: E501 + user_groups: Optional[List[AdminPublicapiTransfersUserGroupChangeDefinitionDTO]] = Field(default=None, description="The user groups and their definitions.", alias="userGroups") + __properties: ClassVar[List[str]] = ["userGroups"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupsChangeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in user_groups (list) + _items = [] + if self.user_groups: + for _item_user_groups in self.user_groups: + if _item_user_groups: + _items.append(_item_user_groups.to_dict()) + _dict['userGroups'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupsChangeDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userGroups": [AdminPublicapiTransfersUserGroupChangeDefinitionDTO.from_dict(_item) for _item in obj["userGroups"]] if obj.get("userGroups") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_groups_delete_request_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_groups_delete_request_dto.py new file mode 100644 index 0000000000..8beee532b1 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_user_groups_delete_request_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_publicapi_transfers_user_group_delete_dto import AdminPublicapiTransfersUserGroupDeleteDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPublicapiTransfersUserGroupsDeleteRequestDTO(BaseModel): + """ + AdminPublicapiTransfersUserGroupsDeleteRequestDTO + """ # noqa: E501 + user_groups: Optional[List[AdminPublicapiTransfersUserGroupDeleteDTO]] = Field(default=None, description="The user groups to delete.", alias="userGroups") + __properties: ClassVar[List[str]] = ["userGroups"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupsDeleteRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in user_groups (list) + _items = [] + if self.user_groups: + for _item_user_groups in self.user_groups: + if _item_user_groups: + _items.append(_item_user_groups.to_dict()) + _dict['userGroups'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPublicapiTransfersUserGroupsDeleteRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userGroups": [AdminPublicapiTransfersUserGroupDeleteDTO.from_dict(_item) for _item in obj["userGroups"]] if obj.get("userGroups") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_put_project_commits_request.py b/src/visier_api_administration/visier_api_administration/models/admin_put_project_commits_request.py new file mode 100644 index 0000000000..4e2e4658bb --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_put_project_commits_request.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminPutProjectCommitsRequest(BaseModel): + """ + AdminPutProjectCommitsRequest + """ # noqa: E501 + project_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the draft project you want to import committed changes into.", alias="projectId") + __properties: ClassVar[List[str]] = ["projectId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminPutProjectCommitsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPutProjectCommitsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "projectId": obj.get("projectId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_tenant_code_body.py b/src/visier_api_administration/visier_api_administration/models/admin_tenant_code_body.py new file mode 100644 index 0000000000..0c0b3a95a2 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_tenant_code_body.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTenantCodeBody(BaseModel): + """ + AdminTenantCodeBody + """ # noqa: E501 + tenant_codes: Optional[List[StrictStr]] = Field(default=None, description="A list of a CA tenant's source tenants codes. The maximum length is 1000.", alias="tenantCodes") + __properties: ClassVar[List[str]] = ["tenantCodes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTenantCodeBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTenantCodeBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenantCodes": obj.get("tenantCodes") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_excluded_source_list_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_excluded_source_list_dto.py new file mode 100644 index 0000000000..440781f8b4 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_excluded_source_list_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO(BaseModel): + """ + AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO + """ # noqa: E501 + excluded_sources: Optional[List[StrictStr]] = Field(default=None, description="A list of the CA tenant's excluded sources.", alias="excludedSources") + __properties: ClassVar[List[str]] = ["excludedSources"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "excludedSources": obj.get("excludedSources") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_source_tenant_list_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_source_tenant_list_dto.py new file mode 100644 index 0000000000..0f6af20046 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_source_tenant_list_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO(BaseModel): + """ + AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO + """ # noqa: E501 + tenant_codes: Optional[List[StrictStr]] = Field(default=None, description="A list of the CA tenant's source tenants.", alias="tenantCodes") + __properties: ClassVar[List[str]] = ["tenantCodes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenantCodes": obj.get("tenantCodes") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_create_request_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_create_request_dto.py new file mode 100644 index 0000000000..f3f5f554bd --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_create_request_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO(BaseModel): + """ + AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO + """ # noqa: E501 + tenant_code: Optional[StrictStr] = Field(default=None, description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_list_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_list_response_dto.py new file mode 100644 index 0000000000..5d59a12225 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_list_response_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO(BaseModel): + """ + AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO + """ # noqa: E501 + tenant_codes: Optional[List[StrictStr]] = Field(default=None, description="A list of CA tenant codes.", alias="tenantCodes") + __properties: ClassVar[List[str]] = ["tenantCodes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenantCodes": obj.get("tenantCodes") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_with_details.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_with_details.py new file mode 100644 index 0000000000..11238045ba --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_with_details.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersConsolidatedAnalyticsAPITenantWithDetails(BaseModel): + """ + AdminTransfersConsolidatedAnalyticsAPITenantWithDetails + """ # noqa: E501 + excluded_sources_list: Optional[List[StrictStr]] = Field(default=None, description="A list of the CA tenant's excluded sources.", alias="excludedSourcesList") + source_tenants_list: Optional[List[StrictStr]] = Field(default=None, description="A list of the CA tenant's source tenants.", alias="sourceTenantsList") + tenant_code: Optional[StrictStr] = Field(default=None, description="The CA tenant's code.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["excludedSourcesList", "sourceTenantsList", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersConsolidatedAnalyticsAPITenantWithDetails from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersConsolidatedAnalyticsAPITenantWithDetails from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "excludedSourcesList": obj.get("excludedSourcesList"), + "sourceTenantsList": obj.get("sourceTenantsList"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_with_details_list_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_with_details_list_response_dto.py new file mode 100644 index 0000000000..c501270e50 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_consolidated_analytics_api_tenant_with_details_list_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_transfers_consolidated_analytics_api_tenant_with_details import AdminTransfersConsolidatedAnalyticsAPITenantWithDetails +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO(BaseModel): + """ + AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO + """ # noqa: E501 + tenants: Optional[List[AdminTransfersConsolidatedAnalyticsAPITenantWithDetails]] = Field(default=None, description="A list of CA tenants and their details.") + __properties: ClassVar[List[str]] = ["tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenants": [AdminTransfersConsolidatedAnalyticsAPITenantWithDetails.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_email_domains_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_email_domains_dto.py new file mode 100644 index 0000000000..1ff2b21c04 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_email_domains_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersEmailDomainsDTO(BaseModel): + """ + AdminTransfersEmailDomainsDTO + """ # noqa: E501 + confirm_not_allowed_domain: Optional[StrictBool] = Field(default=None, description="If `true`, you cannot sign in using credentials, such as username and password. You can only log in with single sign-on (SSO). To avoid this, add your current email address's domain to allowed domains list.", alias="confirmNotAllowedDomain") + domains: Optional[List[StrictStr]] = Field(default=None, description="The list of allowed email address domains.") + __properties: ClassVar[List[str]] = ["confirmNotAllowedDomain", "domains"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersEmailDomainsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersEmailDomainsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "confirmNotAllowedDomain": obj.get("confirmNotAllowedDomain"), + "domains": obj.get("domains") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_permission_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_permission_response_dto.py new file mode 100644 index 0000000000..b6f8db7a3a --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_permission_response_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersPermissionResponseDTO(BaseModel): + """ + AdminTransfersPermissionResponseDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable permission name to display in Visier, such as \"Diversity Access\".", alias="displayName") + permission_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the permission.", alias="permissionId") + __properties: ClassVar[List[str]] = ["displayName", "permissionId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersPermissionResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersPermissionResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "permissionId": obj.get("permissionId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_permissions_to_user_group_for_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_permissions_to_user_group_for_tenant_dto.py new file mode 100644 index 0000000000..e30e3e9366 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_permissions_to_user_group_for_tenant_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_transfers_user_group_get_api_response_dto import AdminTransfersUserGroupGetAPIResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersPermissionsToUserGroupForTenantDTO(BaseModel): + """ + AdminTransfersPermissionsToUserGroupForTenantDTO + """ # noqa: E501 + message: Optional[StrictStr] = Field(default=None, description="A detailed description of the request outcome, if available.") + status: Optional[StrictStr] = Field(default=None, description="The state of the permission assignment or removal. Valid values are Succeed or Failed.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") + user_groups: Optional[List[AdminTransfersUserGroupGetAPIResponseDTO]] = Field(default=None, description="A list of objects representing user groups and the permissions to assign to or remove from them.", alias="userGroups") + __properties: ClassVar[List[str]] = ["message", "status", "tenantCode", "userGroups"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersPermissionsToUserGroupForTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in user_groups (list) + _items = [] + if self.user_groups: + for _item_user_groups in self.user_groups: + if _item_user_groups: + _items.append(_item_user_groups.to_dict()) + _dict['userGroups'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersPermissionsToUserGroupForTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode"), + "userGroups": [AdminTransfersUserGroupGetAPIResponseDTO.from_dict(_item) for _item in obj["userGroups"]] if obj.get("userGroups") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_permissions_to_user_group_request_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_permissions_to_user_group_request_dto.py new file mode 100644 index 0000000000..673f9bbcdd --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_permissions_to_user_group_request_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersPermissionsToUserGroupRequestDTO(BaseModel): + """ + AdminTransfersPermissionsToUserGroupRequestDTO + """ # noqa: E501 + permissions_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing the unique permission IDs to assign.", alias="permissionsIds") + user_group_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user group.", alias="userGroupId") + __properties: ClassVar[List[str]] = ["permissionsIds", "userGroupId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersPermissionsToUserGroupRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersPermissionsToUserGroupRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permissionsIds": obj.get("permissionsIds"), + "userGroupId": obj.get("userGroupId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_permissions_to_user_groups_request_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_permissions_to_user_groups_request_dto.py new file mode 100644 index 0000000000..694467066f --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_permissions_to_user_groups_request_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_transfers_permissions_to_user_group_request_dto import AdminTransfersPermissionsToUserGroupRequestDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersPermissionsToUserGroupsRequestDTO(BaseModel): + """ + AdminTransfersPermissionsToUserGroupsRequestDTO + """ # noqa: E501 + user_groups: Optional[List[AdminTransfersPermissionsToUserGroupRequestDTO]] = Field(default=None, description="A list of objects representing the user groups and permissions to assign or remove.", alias="userGroups") + __properties: ClassVar[List[str]] = ["userGroups"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersPermissionsToUserGroupsRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in user_groups (list) + _items = [] + if self.user_groups: + for _item_user_groups in self.user_groups: + if _item_user_groups: + _items.append(_item_user_groups.to_dict()) + _dict['userGroups'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersPermissionsToUserGroupsRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userGroups": [AdminTransfersPermissionsToUserGroupRequestDTO.from_dict(_item) for _item in obj["userGroups"]] if obj.get("userGroups") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_security_assignment_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_security_assignment_response_dto.py new file mode 100644 index 0000000000..78fac8625b --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_security_assignment_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_transfers_tenant_assignments_dto import AdminTransfersTenantAssignmentsDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersSecurityAssignmentResponseDTO(BaseModel): + """ + AdminTransfersSecurityAssignmentResponseDTO + """ # noqa: E501 + tenants: Optional[List[AdminTransfersTenantAssignmentsDTO]] = Field(default=None, description="A list of objects representing the tenants and users that were assigned to or removed from user groups.") + __properties: ClassVar[List[str]] = ["tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersSecurityAssignmentResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersSecurityAssignmentResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenants": [AdminTransfersTenantAssignmentsDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_simple_user_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_simple_user_dto.py new file mode 100644 index 0000000000..ca69921840 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_simple_user_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersSimpleUserDTO(BaseModel): + """ + AdminTransfersSimpleUserDTO + """ # noqa: E501 + user_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="userId") + username: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@visier.com.") + __properties: ClassVar[List[str]] = ["userId", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersSimpleUserDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersSimpleUserDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userId": obj.get("userId"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_target_project_for_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_target_project_for_tenant_dto.py new file mode 100644 index 0000000000..e8533d20b4 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_target_project_for_tenant_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersTargetProjectForTenantDTO(BaseModel): + """ + AdminTransfersTargetProjectForTenantDTO + """ # noqa: E501 + project_id: Optional[StrictStr] = Field(default=None, description="The project in which to make changes for the tenant.", alias="projectId") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["projectId", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersTargetProjectForTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersTargetProjectForTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "projectId": obj.get("projectId"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_target_project_for_tenants_list_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_target_project_for_tenants_list_dto.py new file mode 100644 index 0000000000..2053666e89 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_target_project_for_tenants_list_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_transfers_target_project_for_tenant_dto import AdminTransfersTargetProjectForTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersTargetProjectForTenantsListDTO(BaseModel): + """ + AdminTransfersTargetProjectForTenantsListDTO + """ # noqa: E501 + target_project_for_tenants: Optional[List[AdminTransfersTargetProjectForTenantDTO]] = Field(default=None, description="Administrating tenants can specify the tenants and projects in which to make assignments to users. Specify one `projectId` per `tenantCode`. If omitted, the request is immediately published to production or applied to the `ProjectID` in the request header, if available, for the administrating tenant or TargetTenantID, if available.", alias="targetProjectForTenants") + __properties: ClassVar[List[str]] = ["targetProjectForTenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersTargetProjectForTenantsListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in target_project_for_tenants (list) + _items = [] + if self.target_project_for_tenants: + for _item_target_project_for_tenants in self.target_project_for_tenants: + if _item_target_project_for_tenants: + _items.append(_item_target_project_for_tenants.to_dict()) + _dict['targetProjectForTenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersTargetProjectForTenantsListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "targetProjectForTenants": [AdminTransfersTargetProjectForTenantDTO.from_dict(_item) for _item in obj["targetProjectForTenants"]] if obj.get("targetProjectForTenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_tenant_assignments_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_tenant_assignments_dto.py new file mode 100644 index 0000000000..533cbef564 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_tenant_assignments_dto.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_transfers_user_security_assignments_dto import AdminTransfersUserSecurityAssignmentsDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersTenantAssignmentsDTO(BaseModel): + """ + AdminTransfersTenantAssignmentsDTO + """ # noqa: E501 + assignments: Optional[List[AdminTransfersUserSecurityAssignmentsDTO]] = Field(default=None, description="A list of objects representing the user group and user assignments.") + message: Optional[StrictStr] = Field(default=None, description="A detailed description of the request outcome, if available.") + project_id: Optional[StrictStr] = Field(default=None, description="The ID of the project that the change was made in, if applicable.", alias="projectId") + status: Optional[StrictStr] = Field(default=None, description="The state of the user group assignment. Valid values are Succeed or Failed.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["assignments", "message", "projectId", "status", "tenantCode"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Unknown', 'Succeed', 'Failed']): + raise ValueError("must be one of enum values ('Unknown', 'Succeed', 'Failed')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersTenantAssignmentsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in assignments (list) + _items = [] + if self.assignments: + for _item_assignments in self.assignments: + if _item_assignments: + _items.append(_item_assignments.to_dict()) + _dict['assignments'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersTenantAssignmentsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assignments": [AdminTransfersUserSecurityAssignmentsDTO.from_dict(_item) for _item in obj["assignments"]] if obj.get("assignments") is not None else None, + "message": obj.get("message"), + "projectId": obj.get("projectId"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_user_group_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_user_group_get_api_response_dto.py new file mode 100644 index 0000000000..8950f8aedb --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_user_group_get_api_response_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_transfers_permission_response_dto import AdminTransfersPermissionResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersUserGroupGetAPIResponseDTO(BaseModel): + """ + AdminTransfersUserGroupGetAPIResponseDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable user group name to display in Visier, such as \"Leadership User Group\".", alias="displayName") + permissions: Optional[List[AdminTransfersPermissionResponseDTO]] = Field(default=None, description="A list of objects representing the user's permissions.") + user_group_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user group.", alias="userGroupId") + __properties: ClassVar[List[str]] = ["displayName", "permissions", "userGroupId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersUserGroupGetAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in permissions (list) + _items = [] + if self.permissions: + for _item_permissions in self.permissions: + if _item_permissions: + _items.append(_item_permissions.to_dict()) + _dict['permissions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersUserGroupGetAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "permissions": [AdminTransfersPermissionResponseDTO.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None, + "userGroupId": obj.get("userGroupId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_user_groups_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_user_groups_get_api_response_dto.py new file mode 100644 index 0000000000..bcb8e14800 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_user_groups_get_api_response_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_transfers_user_group_get_api_response_dto import AdminTransfersUserGroupGetAPIResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersUserGroupsGetAPIResponseDTO(BaseModel): + """ + AdminTransfersUserGroupsGetAPIResponseDTO + """ # noqa: E501 + limit: Optional[StrictInt] = Field(default=None, description="The number of results to return. The maximum number of users to retrieve is 1000.") + start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset.") + user_groups: Optional[List[AdminTransfersUserGroupGetAPIResponseDTO]] = Field(default=None, description="A list of user groups.", alias="userGroups") + __properties: ClassVar[List[str]] = ["limit", "start", "userGroups"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersUserGroupsGetAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in user_groups (list) + _items = [] + if self.user_groups: + for _item_user_groups in self.user_groups: + if _item_user_groups: + _items.append(_item_user_groups.to_dict()) + _dict['userGroups'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersUserGroupsGetAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "start": obj.get("start"), + "userGroups": [AdminTransfersUserGroupGetAPIResponseDTO.from_dict(_item) for _item in obj["userGroups"]] if obj.get("userGroups") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_user_groups_users_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_user_groups_users_dto.py new file mode 100644 index 0000000000..132e655e76 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_user_groups_users_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_transfers_user_groups_users_for_tenant_dto import AdminTransfersUserGroupsUsersForTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersUserGroupsUsersDTO(BaseModel): + """ + AdminTransfersUserGroupsUsersDTO + """ # noqa: E501 + limit: Optional[StrictInt] = Field(default=None, description="The limit of results to return. The maximum value is 1000.") + start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving values from, also known as offset. The index begins at 0.") + tenants: Optional[List[AdminTransfersUserGroupsUsersForTenantDTO]] = Field(default=None, description="A list of objects representing the users that are explicitly assigned to the user group, organized by the tenants the users belong to.") + __properties: ClassVar[List[str]] = ["limit", "start", "tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersUserGroupsUsersDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersUserGroupsUsersDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "start": obj.get("start"), + "tenants": [AdminTransfersUserGroupsUsersForTenantDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_user_groups_users_for_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_user_groups_users_for_tenant_dto.py new file mode 100644 index 0000000000..83ec9f3928 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_user_groups_users_for_tenant_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_transfers_simple_user_dto import AdminTransfersSimpleUserDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersUserGroupsUsersForTenantDTO(BaseModel): + """ + AdminTransfersUserGroupsUsersForTenantDTO + """ # noqa: E501 + tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") + users: Optional[List[AdminTransfersSimpleUserDTO]] = Field(default=None, description="A list of objects representing the users in the user group.") + __properties: ClassVar[List[str]] = ["tenantCode", "users"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersUserGroupsUsersForTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersUserGroupsUsersForTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenantCode": obj.get("tenantCode"), + "users": [AdminTransfersSimpleUserDTO.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_user_security_assignments_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_user_security_assignments_dto.py new file mode 100644 index 0000000000..ca6538cb5b --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_user_security_assignments_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_transfers_simple_user_dto import AdminTransfersSimpleUserDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersUserSecurityAssignmentsDTO(BaseModel): + """ + AdminTransfersUserSecurityAssignmentsDTO + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user group.") + name: Optional[StrictStr] = Field(default=None, description="The name of the user group.") + users: Optional[List[AdminTransfersSimpleUserDTO]] = Field(default=None, description="A list of objects representing the users assigned to or removed from the user group.") + __properties: ClassVar[List[str]] = ["id", "name", "users"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersUserSecurityAssignmentsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersUserSecurityAssignmentsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "users": [AdminTransfersSimpleUserDTO.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_users_to_user_group_request_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_users_to_user_group_request_dto.py new file mode 100644 index 0000000000..1afd53d335 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_users_to_user_group_request_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersUsersToUserGroupRequestDTO(BaseModel): + """ + AdminTransfersUsersToUserGroupRequestDTO + """ # noqa: E501 + user_group_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user group.", alias="userGroupId") + user_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing unique user IDs to assign to or remove from the user group. The maximum number of `userIds` per user group is 100.", alias="userIds") + __properties: ClassVar[List[str]] = ["userGroupId", "userIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersUsersToUserGroupRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersUsersToUserGroupRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userGroupId": obj.get("userGroupId"), + "userIds": obj.get("userIds") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_transfers_users_to_user_groups_request_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_transfers_users_to_user_groups_request_dto.py new file mode 100644 index 0000000000..bfd9c99745 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_transfers_users_to_user_groups_request_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_transfers_target_project_for_tenants_list_dto import AdminTransfersTargetProjectForTenantsListDTO +from visier_api_administration.models.admin_transfers_users_to_user_group_request_dto import AdminTransfersUsersToUserGroupRequestDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersUsersToUserGroupsRequestDTO(BaseModel): + """ + AdminTransfersUsersToUserGroupsRequestDTO + """ # noqa: E501 + target_project_for_tenants_list: Optional[AdminTransfersTargetProjectForTenantsListDTO] = Field(default=None, description="Administrating tenants can specify the tenants and projects in which to assign users to user groups or remove users from user groups. Specify one `projectId` per `tenantCode`. If omitted, the request is immediately published to production or applied to the ProjectID in the request header, if available, for the administrating tenant or TargetTenantID, if available.", alias="targetProjectForTenantsList") + user_groups: Optional[List[AdminTransfersUsersToUserGroupRequestDTO]] = Field(default=None, description="A list of objects representing the user groups and users to assign or remove.", alias="userGroups") + __properties: ClassVar[List[str]] = ["targetProjectForTenantsList", "userGroups"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersUsersToUserGroupsRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of target_project_for_tenants_list + if self.target_project_for_tenants_list: + _dict['targetProjectForTenantsList'] = self.target_project_for_tenants_list.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in user_groups (list) + _items = [] + if self.user_groups: + for _item_user_groups in self.user_groups: + if _item_user_groups: + _items.append(_item_user_groups.to_dict()) + _dict['userGroups'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersUsersToUserGroupsRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "targetProjectForTenantsList": AdminTransfersTargetProjectForTenantsListDTO.from_dict(obj["targetProjectForTenantsList"]) if obj.get("targetProjectForTenantsList") is not None else None, + "userGroups": [AdminTransfersUsersToUserGroupRequestDTO.from_dict(_item) for _item in obj["userGroups"]] if obj.get("userGroups") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_update_tenant_model.py b/src/visier_api_administration/visier_api_administration/models/admin_update_tenant_model.py new file mode 100644 index 0000000000..cd4ab145aa --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_update_tenant_model.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminUpdateTenantModel(BaseModel): + """ + AdminUpdateTenantModel + """ # noqa: E501 + custom_properties: Optional[Dict[str, StrictStr]] = Field(default=None, description="A set of key-value pairs that represent different customizable properties for the analytic tenant.", alias="customProperties") + embeddable_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, in which Visier can be embedded. If domains at the administrating tenant level match the domains at the analytic tenant level, you do not need to include a domain for each analytic tenant.", alias="embeddableDomains") + industry_code: Optional[StrictInt] = Field(default=None, description="The 6-digit NAICS code for the industry to which the analytic tenant belongs. If the code is unknown, type 0. For 2-digit codes, add trailing zeros at the end to reach 6 digits, such as 620000.", alias="industryCode") + purchased_modules: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated collection of strings that represent the Visier modules assigned to the new analytic tenant.", alias="purchasedModules") + sso_instance_issuers: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the issuers for the SSO providers that can authenticate this tenant.", alias="ssoInstanceIssuers") + tenant_display_name: Optional[StrictStr] = Field(default=None, description="A display name that is assigned to the new analytic tenant.", alias="tenantDisplayName") + __properties: ClassVar[List[str]] = ["customProperties", "embeddableDomains", "industryCode", "purchasedModules", "ssoInstanceIssuers", "tenantDisplayName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminUpdateTenantModel from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminUpdateTenantModel from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customProperties": obj.get("customProperties"), + "embeddableDomains": obj.get("embeddableDomains"), + "industryCode": obj.get("industryCode"), + "purchasedModules": obj.get("purchasedModules"), + "ssoInstanceIssuers": obj.get("ssoInstanceIssuers"), + "tenantDisplayName": obj.get("tenantDisplayName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/all_permissions_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/all_permissions_assigned_for_local_tenant_dto.py deleted file mode 100644 index 4a3e0c6d38..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/all_permissions_assigned_for_local_tenant_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.permission_assigned_for_local_tenant_dto import PermissionAssignedForLocalTenantDTO -from typing import Optional, Set -from typing_extensions import Self - -class AllPermissionsAssignedForLocalTenantDTO(BaseModel): - """ - AllPermissionsAssignedForLocalTenantDTO - """ # noqa: E501 - assigned_permissions: Optional[List[PermissionAssignedForLocalTenantDTO]] = Field(default=None, description="A list of objects representing the user's permissions.", alias="assignedPermissions") - __properties: ClassVar[List[str]] = ["assignedPermissions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AllPermissionsAssignedForLocalTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in assigned_permissions (list) - _items = [] - if self.assigned_permissions: - for _item_assigned_permissions in self.assigned_permissions: - if _item_assigned_permissions: - _items.append(_item_assigned_permissions.to_dict()) - _dict['assignedPermissions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AllPermissionsAssignedForLocalTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "assignedPermissions": [PermissionAssignedForLocalTenantDTO.from_dict(_item) for _item in obj["assignedPermissions"]] if obj.get("assignedPermissions") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/all_profile_assigned_for_accessible_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/all_profile_assigned_for_accessible_tenant_dto.py deleted file mode 100644 index 3a4ef36b5c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/all_profile_assigned_for_accessible_tenant_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.profile_assigned_for_accessible_tenant_dto import ProfileAssignedForAccessibleTenantDTO -from typing import Optional, Set -from typing_extensions import Self - -class AllProfileAssignedForAccessibleTenantDTO(BaseModel): - """ - AllProfileAssignedForAccessibleTenantDTO - """ # noqa: E501 - assigned_profiles_for_accessible_tenant: Optional[List[ProfileAssignedForAccessibleTenantDTO]] = Field(default=None, description="A list of objects representing the user profiles assigned to the user and their validity range.", alias="assignedProfilesForAccessibleTenant") - __properties: ClassVar[List[str]] = ["assignedProfilesForAccessibleTenant"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AllProfileAssignedForAccessibleTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in assigned_profiles_for_accessible_tenant (list) - _items = [] - if self.assigned_profiles_for_accessible_tenant: - for _item_assigned_profiles_for_accessible_tenant in self.assigned_profiles_for_accessible_tenant: - if _item_assigned_profiles_for_accessible_tenant: - _items.append(_item_assigned_profiles_for_accessible_tenant.to_dict()) - _dict['assignedProfilesForAccessibleTenant'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AllProfileAssignedForAccessibleTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "assignedProfilesForAccessibleTenant": [ProfileAssignedForAccessibleTenantDTO.from_dict(_item) for _item in obj["assignedProfilesForAccessibleTenant"]] if obj.get("assignedProfilesForAccessibleTenant") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/all_profile_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/all_profile_assigned_for_local_tenant_dto.py deleted file mode 100644 index 01c7e39f95..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/all_profile_assigned_for_local_tenant_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.profile_assigned_for_local_tenant_dto import ProfileAssignedForLocalTenantDTO -from typing import Optional, Set -from typing_extensions import Self - -class AllProfileAssignedForLocalTenantDTO(BaseModel): - """ - AllProfileAssignedForLocalTenantDTO - """ # noqa: E501 - assigned_profiles: Optional[List[ProfileAssignedForLocalTenantDTO]] = Field(default=None, description="A list of objects representing the user profiles assigned to the user and their validity range.", alias="assignedProfiles") - __properties: ClassVar[List[str]] = ["assignedProfiles"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AllProfileAssignedForLocalTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in assigned_profiles (list) - _items = [] - if self.assigned_profiles: - for _item_assigned_profiles in self.assigned_profiles: - if _item_assigned_profiles: - _items.append(_item_assigned_profiles.to_dict()) - _dict['assignedProfiles'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AllProfileAssignedForLocalTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "assignedProfiles": [ProfileAssignedForLocalTenantDTO.from_dict(_item) for _item in obj["assignedProfiles"]] if obj.get("assignedProfiles") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/all_tenants_status_apidto.py b/src/visier_api_administration/visier_api_administration/models/all_tenants_status_apidto.py deleted file mode 100644 index 55d7e23b5e..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/all_tenants_status_apidto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.tenant_detail_apidto import TenantDetailAPIDTO -from typing import Optional, Set -from typing_extensions import Self - -class AllTenantsStatusAPIDTO(BaseModel): - """ - AllTenantsStatusAPIDTO - """ # noqa: E501 - limit: Optional[StrictInt] = Field(default=None, description="The limit of analytic tenants to return. The maximum value is 1000.") - start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving values from, also known as offset. The index begins at 0.") - tenants: Optional[List[TenantDetailAPIDTO]] = Field(default=None, description="A list of objects representing all the analytic tenants.") - __properties: ClassVar[List[str]] = ["limit", "start", "tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AllTenantsStatusAPIDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AllTenantsStatusAPIDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "limit": obj.get("limit"), - "start": obj.get("start"), - "tenants": [TenantDetailAPIDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/all_user_groups_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/all_user_groups_assigned_for_local_tenant_dto.py deleted file mode 100644 index 897c85aee8..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/all_user_groups_assigned_for_local_tenant_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.user_group_assigned_for_local_tenant_dto import UserGroupAssignedForLocalTenantDTO -from typing import Optional, Set -from typing_extensions import Self - -class AllUserGroupsAssignedForLocalTenantDTO(BaseModel): - """ - AllUserGroupsAssignedForLocalTenantDTO - """ # noqa: E501 - assigned_user_groups: Optional[List[UserGroupAssignedForLocalTenantDTO]] = Field(default=None, description="A list of objects representing the available user groups.", alias="assignedUserGroups") - __properties: ClassVar[List[str]] = ["assignedUserGroups"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AllUserGroupsAssignedForLocalTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in assigned_user_groups (list) - _items = [] - if self.assigned_user_groups: - for _item_assigned_user_groups in self.assigned_user_groups: - if _item_assigned_user_groups: - _items.append(_item_assigned_user_groups.to_dict()) - _dict['assignedUserGroups'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AllUserGroupsAssignedForLocalTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "assignedUserGroups": [UserGroupAssignedForLocalTenantDTO.from_dict(_item) for _item in obj["assignedUserGroups"]] if obj.get("assignedUserGroups") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/all_users_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/all_users_get_api_response_dto.py deleted file mode 100644 index 5f3c251f1c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/all_users_get_api_response_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.user_get_api_response_dto import UserGetAPIResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class AllUsersGetAPIResponseDTO(BaseModel): - """ - AllUsersGetAPIResponseDTO - """ # noqa: E501 - limit: Optional[StrictInt] = Field(default=None, description="The number of results to return. The maximum number of users to retrieve is 1000.") - start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") - users: Optional[List[UserGetAPIResponseDTO]] = Field(default=None, description="A list of available users.") - __properties: ClassVar[List[str]] = ["limit", "start", "users"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AllUsersGetAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in users (list) - _items = [] - if self.users: - for _item_users in self.users: - if _item_users: - _items.append(_item_users.to_dict()) - _dict['users'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AllUsersGetAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "limit": obj.get("limit"), - "start": obj.get("start"), - "users": [UserGetAPIResponseDTO.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/analytic_object_dto.py b/src/visier_api_administration/visier_api_administration/models/analytic_object_dto.py deleted file mode 100644 index 20eafe0acb..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/analytic_object_dto.py +++ /dev/null @@ -1,133 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.related_analytic_object_dto import RelatedAnalyticObjectDTO -from visier_api_administration.models.securable_dimension_dto import SecurableDimensionDTO -from visier_api_administration.models.securable_property_dto import SecurablePropertyDTO -from typing import Optional, Set -from typing_extensions import Self - -class AnalyticObjectDTO(BaseModel): - """ - AnalyticObjectDTO - """ # noqa: E501 - analytic_object_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analytic object.", alias="analyticObjectId") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name to display in Visier, such as \"Employee\".", alias="displayName") - object_type: Optional[StrictStr] = Field(default=None, description="The analytic object type.", alias="objectType") - related_objects: Optional[List[RelatedAnalyticObjectDTO]] = Field(default=None, description="The analytic objects related to the data security object.", alias="relatedObjects") - securable_dimensions: Optional[List[SecurableDimensionDTO]] = Field(default=None, description="A list of dimensions that are available to define population access filters in the permission.", alias="securableDimensions") - securable_properties: Optional[List[SecurablePropertyDTO]] = Field(default=None, description="All available properties from the data security object and its related analytic objects that you can configure data access for.", alias="securableProperties") - __properties: ClassVar[List[str]] = ["analyticObjectId", "displayName", "objectType", "relatedObjects", "securableDimensions", "securableProperties"] - - @field_validator('object_type') - def object_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['Event', 'Subject', 'BusinessOutcomeOverlay', 'PlanOrBudgetOverlay', 'ExternalBenchmark', 'VisierBenchmark', 'UsageOverlay', 'OtherOverlay', 'InternalComparison', 'PlanAnalyticObject']): - raise ValueError("must be one of enum values ('Event', 'Subject', 'BusinessOutcomeOverlay', 'PlanOrBudgetOverlay', 'ExternalBenchmark', 'VisierBenchmark', 'UsageOverlay', 'OtherOverlay', 'InternalComparison', 'PlanAnalyticObject')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalyticObjectDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in related_objects (list) - _items = [] - if self.related_objects: - for _item_related_objects in self.related_objects: - if _item_related_objects: - _items.append(_item_related_objects.to_dict()) - _dict['relatedObjects'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in securable_dimensions (list) - _items = [] - if self.securable_dimensions: - for _item_securable_dimensions in self.securable_dimensions: - if _item_securable_dimensions: - _items.append(_item_securable_dimensions.to_dict()) - _dict['securableDimensions'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in securable_properties (list) - _items = [] - if self.securable_properties: - for _item_securable_properties in self.securable_properties: - if _item_securable_properties: - _items.append(_item_securable_properties.to_dict()) - _dict['securableProperties'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalyticObjectDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObjectId": obj.get("analyticObjectId"), - "displayName": obj.get("displayName"), - "objectType": obj.get("objectType"), - "relatedObjects": [RelatedAnalyticObjectDTO.from_dict(_item) for _item in obj["relatedObjects"]] if obj.get("relatedObjects") is not None else None, - "securableDimensions": [SecurableDimensionDTO.from_dict(_item) for _item in obj["securableDimensions"]] if obj.get("securableDimensions") is not None else None, - "securableProperties": [SecurablePropertyDTO.from_dict(_item) for _item in obj["securableProperties"]] if obj.get("securableProperties") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/assign_revoke_permission_by_permission_dto.py b/src/visier_api_administration/visier_api_administration/models/assign_revoke_permission_by_permission_dto.py deleted file mode 100644 index 906b51d191..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/assign_revoke_permission_by_permission_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.assign_revoke_permission_by_user_dto import AssignRevokePermissionByUserDTO -from visier_api_administration.models.permission_assigned_for_local_tenant_dto import PermissionAssignedForLocalTenantDTO -from typing import Optional, Set -from typing_extensions import Self - -class AssignRevokePermissionByPermissionDTO(BaseModel): - """ - The results of the permission assignment or removal. - """ # noqa: E501 - permission: Optional[PermissionAssignedForLocalTenantDTO] = None - users: Optional[List[AssignRevokePermissionByUserDTO]] = Field(default=None, description="A list of objects representing the users that was permission was assigned to or removed from.") - __properties: ClassVar[List[str]] = ["permission", "users"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AssignRevokePermissionByPermissionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of permission - if self.permission: - _dict['permission'] = self.permission.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in users (list) - _items = [] - if self.users: - for _item_users in self.users: - if _item_users: - _items.append(_item_users.to_dict()) - _dict['users'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AssignRevokePermissionByPermissionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "permission": PermissionAssignedForLocalTenantDTO.from_dict(obj["permission"]) if obj.get("permission") is not None else None, - "users": [AssignRevokePermissionByUserDTO.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/assign_revoke_permission_by_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/assign_revoke_permission_by_tenant_dto.py deleted file mode 100644 index c4b50be20d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/assign_revoke_permission_by_tenant_dto.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.assign_revoke_permission_by_permission_dto import AssignRevokePermissionByPermissionDTO -from typing import Optional, Set -from typing_extensions import Self - -class AssignRevokePermissionByTenantDTO(BaseModel): - """ - The permissions organized by tenant. - """ # noqa: E501 - message: Optional[StrictStr] = Field(default=None, description="A detailed description of the request outcome, if available.") - permissions: Optional[List[AssignRevokePermissionByPermissionDTO]] = Field(default=None, description="A list of objects representing the assigned or removed permissions.") - project_id: Optional[StrictStr] = Field(default=None, description="The ID of the project that the change was made in, if applicable.", alias="projectId") - status: Optional[StrictStr] = Field(default=None, description="The state of the permission assignment. Valid values are Succeed or Failed.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["message", "permissions", "projectId", "status", "tenantCode"] - - @field_validator('status') - def status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['Unknown', 'Succeed', 'Failed']): - raise ValueError("must be one of enum values ('Unknown', 'Succeed', 'Failed')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AssignRevokePermissionByTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in permissions (list) - _items = [] - if self.permissions: - for _item_permissions in self.permissions: - if _item_permissions: - _items.append(_item_permissions.to_dict()) - _dict['permissions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AssignRevokePermissionByTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "message": obj.get("message"), - "permissions": [AssignRevokePermissionByPermissionDTO.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None, - "projectId": obj.get("projectId"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/assign_revoke_permission_by_user_dto.py b/src/visier_api_administration/visier_api_administration/models/assign_revoke_permission_by_user_dto.py deleted file mode 100644 index 8c4b0a4bda..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/assign_revoke_permission_by_user_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AssignRevokePermissionByUserDTO(BaseModel): - """ - The results of the permission assignment or removal by user. - """ # noqa: E501 - message: Optional[StrictStr] = Field(default=None, description="A meaningful message about the user permission.") - user_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="userId") - username: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@visier.com.") - __properties: ClassVar[List[str]] = ["message", "userId", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AssignRevokePermissionByUserDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AssignRevokePermissionByUserDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "message": obj.get("message"), - "userId": obj.get("userId"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/assign_revoke_permission_request_dto.py b/src/visier_api_administration/visier_api_administration/models/assign_revoke_permission_request_dto.py deleted file mode 100644 index bd5e1002b5..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/assign_revoke_permission_request_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AssignRevokePermissionRequestDTO(BaseModel): - """ - Set permission detail permissionId with assign to userIds - """ # noqa: E501 - permission_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with a permission.", alias="permissionId") - user_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing unique user IDs.", alias="userIds") - __properties: ClassVar[List[str]] = ["permissionId", "userIds"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AssignRevokePermissionRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AssignRevokePermissionRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "permissionId": obj.get("permissionId"), - "userIds": obj.get("userIds") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/assign_revoke_permissions_request_dto.py b/src/visier_api_administration/visier_api_administration/models/assign_revoke_permissions_request_dto.py deleted file mode 100644 index 2a2606fb82..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/assign_revoke_permissions_request_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.assign_revoke_permission_request_dto import AssignRevokePermissionRequestDTO -from visier_api_administration.models.target_project_for_tenants_list_dto import TargetProjectForTenantsListDTO -from typing import Optional, Set -from typing_extensions import Self - -class AssignRevokePermissionsRequestDTO(BaseModel): - """ - Set permissions request List of permissionId with assign to user Ids - """ # noqa: E501 - permissions: Optional[List[AssignRevokePermissionRequestDTO]] = Field(default=None, description="A list of objects representing the permissions to assign to or remove from users.") - target_project_for_tenants_list: Optional[TargetProjectForTenantsListDTO] = Field(default=None, description="Administrating tenants can specify the tenants and projects in which to assign permissions to users or remove permissions from users. Specify one `projectId` per `tenantCode`. If omitted, the request is immediately published to production or applied to the `ProjectID` in the request header, if available, for the administrating tenant or TargetTenantID, if available.", alias="targetProjectForTenantsList") - __properties: ClassVar[List[str]] = ["permissions", "targetProjectForTenantsList"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AssignRevokePermissionsRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in permissions (list) - _items = [] - if self.permissions: - for _item_permissions in self.permissions: - if _item_permissions: - _items.append(_item_permissions.to_dict()) - _dict['permissions'] = _items - # override the default output from pydantic by calling `to_dict()` of target_project_for_tenants_list - if self.target_project_for_tenants_list: - _dict['targetProjectForTenantsList'] = self.target_project_for_tenants_list.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AssignRevokePermissionsRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "permissions": [AssignRevokePermissionRequestDTO.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None, - "targetProjectForTenantsList": TargetProjectForTenantsListDTO.from_dict(obj["targetProjectForTenantsList"]) if obj.get("targetProjectForTenantsList") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/assign_revoke_permissions_response_dto.py b/src/visier_api_administration/visier_api_administration/models/assign_revoke_permissions_response_dto.py deleted file mode 100644 index f8f224b78e..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/assign_revoke_permissions_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.assign_revoke_permission_by_tenant_dto import AssignRevokePermissionByTenantDTO -from typing import Optional, Set -from typing_extensions import Self - -class AssignRevokePermissionsResponseDTO(BaseModel): - """ - The results of the permission assignment or removal. - """ # noqa: E501 - tenants: Optional[List[AssignRevokePermissionByTenantDTO]] = Field(default=None, description="A list of objects representing the users that were assigned permissions, organized by the tenants the users belong to.") - __properties: ClassVar[List[str]] = ["tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AssignRevokePermissionsResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AssignRevokePermissionsResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tenants": [AssignRevokePermissionByTenantDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/batch_tenant_provision_apidto.py b/src/visier_api_administration/visier_api_administration/models/batch_tenant_provision_apidto.py deleted file mode 100644 index 5c8a41b49c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/batch_tenant_provision_apidto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.tenant_provision_apidto import TenantProvisionAPIDTO -from typing import Optional, Set -from typing_extensions import Self - -class BatchTenantProvisionAPIDTO(BaseModel): - """ - BatchTenantProvisionAPIDTO - """ # noqa: E501 - tenants: Optional[List[TenantProvisionAPIDTO]] = Field(default=None, description="An array of tenants to create. The maximum number of tenants to create in one request is 200.") - __properties: ClassVar[List[str]] = ["tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BatchTenantProvisionAPIDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BatchTenantProvisionAPIDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tenants": [TenantProvisionAPIDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/bulk_data_access_set_response_dto.py b/src/visier_api_administration/visier_api_administration/models/bulk_data_access_set_response_dto.py deleted file mode 100644 index 625d54b511..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/bulk_data_access_set_response_dto.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.data_access_set_failure_dto import DataAccessSetFailureDTO -from visier_api_administration.models.data_access_set_success_dto import DataAccessSetSuccessDTO -from typing import Optional, Set -from typing_extensions import Self - -class BulkDataAccessSetResponseDTO(BaseModel): - """ - BulkDataAccessSetResponseDTO - """ # noqa: E501 - failures: Optional[List[DataAccessSetFailureDTO]] = Field(default=None, description="The data access sets that failed to be created and any relevant error information.") - successes: Optional[List[DataAccessSetSuccessDTO]] = Field(default=None, description="The successfully created data access sets.") - __properties: ClassVar[List[str]] = ["failures", "successes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BulkDataAccessSetResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in failures (list) - _items = [] - if self.failures: - for _item_failures in self.failures: - if _item_failures: - _items.append(_item_failures.to_dict()) - _dict['failures'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in successes (list) - _items = [] - if self.successes: - for _item_successes in self.successes: - if _item_successes: - _items.append(_item_successes.to_dict()) - _dict['successes'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BulkDataAccessSetResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "failures": [DataAccessSetFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, - "successes": [DataAccessSetSuccessDTO.from_dict(_item) for _item in obj["successes"]] if obj.get("successes") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/business_location_dto.py b/src/visier_api_administration/visier_api_administration/models/business_location_dto.py deleted file mode 100644 index b75867c180..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/business_location_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class BusinessLocationDTO(BaseModel): - """ - The location of operations or where business is performed. - """ # noqa: E501 - country_code: Optional[StrictStr] = Field(default=None, description="The country in which the business is located or business is performed. The country code must follow ISO 3166 standards in alpha-2 format (two-letter code).", alias="countryCode") - postal_code: Optional[StrictStr] = Field(default=None, description="The postal code associated with the business location. Cannot be blank.", alias="postalCode") - __properties: ClassVar[List[str]] = ["countryCode", "postalCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BusinessLocationDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BusinessLocationDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "countryCode": obj.get("countryCode"), - "postalCode": obj.get("postalCode") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/capabilities_dto.py b/src/visier_api_administration/visier_api_administration/models/capabilities_dto.py deleted file mode 100644 index 8f096c2649..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/capabilities_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CapabilitiesDTO(BaseModel): - """ - CapabilitiesDTO - """ # noqa: E501 - access_level: Optional[StrictStr] = Field(default=None, description="The access level of the profile for the given capability.", alias="accessLevel") - capability: Optional[StrictStr] = Field(default=None, description="The name of the capability.") - view_level: Optional[StrictStr] = Field(default=None, description="The view level of the profile for the given capability.", alias="viewLevel") - __properties: ClassVar[List[str]] = ["accessLevel", "capability", "viewLevel"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CapabilitiesDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CapabilitiesDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "accessLevel": obj.get("accessLevel"), - "capability": obj.get("capability"), - "viewLevel": obj.get("viewLevel") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/capability_dto.py b/src/visier_api_administration/visier_api_administration/models/capability_dto.py deleted file mode 100644 index e9e6da004c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/capability_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CapabilityDTO(BaseModel): - """ - CapabilityDTO - """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="A description of the capability.") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable capability name to display in Visier, such as \"Schedule Analysis\".", alias="displayName") - name: Optional[StrictStr] = Field(default=None, description="The unique name of the capability.") - __properties: ClassVar[List[str]] = ["description", "displayName", "name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CapabilityDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CapabilityDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "name": obj.get("name") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/commit_and_publish_operation_response_dto.py b/src/visier_api_administration/visier_api_administration/models/commit_and_publish_operation_response_dto.py deleted file mode 100644 index 725b42cb3e..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/commit_and_publish_operation_response_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.project_dto import ProjectDTO -from typing import Optional, Set -from typing_extensions import Self - -class CommitAndPublishOperationResponseDTO(BaseModel): - """ - CommitAndPublishOperationResponseDTO - """ # noqa: E501 - published_version: Optional[ProjectDTO] = Field(default=None, description="The project version that was published to production.", alias="publishedVersion") - __properties: ClassVar[List[str]] = ["publishedVersion"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CommitAndPublishOperationResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of published_version - if self.published_version: - _dict['publishedVersion'] = self.published_version.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CommitAndPublishOperationResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "publishedVersion": ProjectDTO.from_dict(obj["publishedVersion"]) if obj.get("publishedVersion") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/commit_dto.py b/src/visier_api_administration/visier_api_administration/models/commit_dto.py deleted file mode 100644 index 406a76a813..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/commit_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CommitDTO(BaseModel): - """ - CommitDTO - """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="A description of the committed change.") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the committed change.") - name: Optional[StrictStr] = Field(default=None, description="An identifiable name of the committed change to display in Visier.") - __properties: ClassVar[List[str]] = ["description", "id", "name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CommitDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CommitDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "id": obj.get("id"), - "name": obj.get("name") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_excluded_source_list_dto.py b/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_excluded_source_list_dto.py deleted file mode 100644 index db7be62e6e..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_excluded_source_list_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ConsolidatedAnalyticsAPIExcludedSourceListDTO(BaseModel): - """ - ConsolidatedAnalyticsAPIExcludedSourceListDTO - """ # noqa: E501 - excluded_sources: Optional[List[StrictStr]] = Field(default=None, description="A list of the CA tenant's excluded sources.", alias="excludedSources") - __properties: ClassVar[List[str]] = ["excludedSources"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ConsolidatedAnalyticsAPIExcludedSourceListDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ConsolidatedAnalyticsAPIExcludedSourceListDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "excludedSources": obj.get("excludedSources") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_source_tenant_list_dto.py b/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_source_tenant_list_dto.py deleted file mode 100644 index c5035da276..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_source_tenant_list_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ConsolidatedAnalyticsAPISourceTenantListDTO(BaseModel): - """ - ConsolidatedAnalyticsAPISourceTenantListDTO - """ # noqa: E501 - tenant_codes: Optional[List[StrictStr]] = Field(default=None, description="A list of the CA tenant's source tenants.", alias="tenantCodes") - __properties: ClassVar[List[str]] = ["tenantCodes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ConsolidatedAnalyticsAPISourceTenantListDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ConsolidatedAnalyticsAPISourceTenantListDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tenantCodes": obj.get("tenantCodes") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_tenant_create_request_dto.py b/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_tenant_create_request_dto.py deleted file mode 100644 index e9b9fc36a4..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_tenant_create_request_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ConsolidatedAnalyticsAPITenantCreateRequestDTO(BaseModel): - """ - ConsolidatedAnalyticsAPITenantCreateRequestDTO - """ # noqa: E501 - tenant_code: Optional[StrictStr] = Field(default=None, description="The ID of the tenant. For example, WFF_{XXX}~CA{YYY} where {XXX} is the administrating tenant code and {YYY} is the consolidated analytic tenant code.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ConsolidatedAnalyticsAPITenantCreateRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ConsolidatedAnalyticsAPITenantCreateRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_tenant_list_response_dto.py b/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_tenant_list_response_dto.py deleted file mode 100644 index 512937abdf..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_tenant_list_response_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ConsolidatedAnalyticsAPITenantListResponseDTO(BaseModel): - """ - ConsolidatedAnalyticsAPITenantListResponseDTO - """ # noqa: E501 - tenant_codes: Optional[List[StrictStr]] = Field(default=None, description="A list of CA tenant codes.", alias="tenantCodes") - __properties: ClassVar[List[str]] = ["tenantCodes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ConsolidatedAnalyticsAPITenantListResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ConsolidatedAnalyticsAPITenantListResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tenantCodes": obj.get("tenantCodes") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_tenant_with_details.py b/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_tenant_with_details.py deleted file mode 100644 index 02abe2798a..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_tenant_with_details.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ConsolidatedAnalyticsAPITenantWithDetails(BaseModel): - """ - ConsolidatedAnalyticsAPITenantWithDetails - """ # noqa: E501 - excluded_sources_list: Optional[List[StrictStr]] = Field(default=None, description="A list of the CA tenant's excluded sources.", alias="excludedSourcesList") - source_tenants_list: Optional[List[StrictStr]] = Field(default=None, description="A list of the CA tenant's source tenants.", alias="sourceTenantsList") - tenant_code: Optional[StrictStr] = Field(default=None, description="The CA tenant's code.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["excludedSourcesList", "sourceTenantsList", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ConsolidatedAnalyticsAPITenantWithDetails from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ConsolidatedAnalyticsAPITenantWithDetails from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "excludedSourcesList": obj.get("excludedSourcesList"), - "sourceTenantsList": obj.get("sourceTenantsList"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_tenant_with_details_list_response_dto.py b/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_tenant_with_details_list_response_dto.py deleted file mode 100644 index a350657c9b..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/consolidated_analytics_api_tenant_with_details_list_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.consolidated_analytics_api_tenant_with_details import ConsolidatedAnalyticsAPITenantWithDetails -from typing import Optional, Set -from typing_extensions import Self - -class ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO(BaseModel): - """ - ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO - """ # noqa: E501 - tenants: Optional[List[ConsolidatedAnalyticsAPITenantWithDetails]] = Field(default=None, description="A list of CA tenants and their details.") - __properties: ClassVar[List[str]] = ["tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tenants": [ConsolidatedAnalyticsAPITenantWithDetails.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/content_package_dto.py b/src/visier_api_administration/visier_api_administration/models/content_package_dto.py deleted file mode 100644 index e53e3dcf33..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/content_package_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ContentPackageDTO(BaseModel): - """ - ContentPackageDTO - """ # noqa: E501 - content_package_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the content package.", alias="contentPackageId") - description: Optional[StrictStr] = Field(default=None, description="A description of the content package.") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable content package name to display in Visier, such as \"Talent Acquisition Core Content\".", alias="displayName") - __properties: ClassVar[List[str]] = ["contentPackageId", "description", "displayName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ContentPackageDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ContentPackageDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "contentPackageId": obj.get("contentPackageId"), - "description": obj.get("description"), - "displayName": obj.get("displayName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/create_data_access_set_request_dto.py b/src/visier_api_administration/visier_api_administration/models/create_data_access_set_request_dto.py deleted file mode 100644 index dfb2bc2579..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/create_data_access_set_request_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.data_access_set_dto import DataAccessSetDTO -from typing import Optional, Set -from typing_extensions import Self - -class CreateDataAccessSetRequestDTO(BaseModel): - """ - CreateDataAccessSetRequestDTO - """ # noqa: E501 - shareable_property_access_configs: Optional[List[DataAccessSetDTO]] = Field(default=None, description="The data access sets to be created.", alias="shareablePropertyAccessConfigs") - __properties: ClassVar[List[str]] = ["shareablePropertyAccessConfigs"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CreateDataAccessSetRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in shareable_property_access_configs (list) - _items = [] - if self.shareable_property_access_configs: - for _item_shareable_property_access_configs in self.shareable_property_access_configs: - if _item_shareable_property_access_configs: - _items.append(_item_shareable_property_access_configs.to_dict()) - _dict['shareablePropertyAccessConfigs'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CreateDataAccessSetRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "shareablePropertyAccessConfigs": [DataAccessSetDTO.from_dict(_item) for _item in obj["shareablePropertyAccessConfigs"]] if obj.get("shareablePropertyAccessConfigs") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/custom_property_dto.py b/src/visier_api_administration/visier_api_administration/models/custom_property_dto.py deleted file mode 100644 index 5a0788bdda..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/custom_property_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CustomPropertyDTO(BaseModel): - """ - CustomPropertyDTO - """ # noqa: E501 - key: Optional[StrictStr] = None - value: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["key", "value"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CustomPropertyDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CustomPropertyDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "key": obj.get("key"), - "value": obj.get("value") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/custom_tenant_property_dto.py b/src/visier_api_administration/visier_api_administration/models/custom_tenant_property_dto.py deleted file mode 100644 index f64ee05460..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/custom_tenant_property_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CustomTenantPropertyDTO(BaseModel): - """ - CustomTenantPropertyDTO - """ # noqa: E501 - key: Optional[StrictStr] = None - value: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["key", "value"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CustomTenantPropertyDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CustomTenantPropertyDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "key": obj.get("key"), - "value": obj.get("value") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/data_access_set_dto.py b/src/visier_api_administration/visier_api_administration/models/data_access_set_dto.py deleted file mode 100644 index 9567fb1d0d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/data_access_set_dto.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.property_access_config_dto import PropertyAccessConfigDTO -from typing import Optional, Set -from typing_extensions import Self - -class DataAccessSetDTO(BaseModel): - """ - DataAccessSetDTO - """ # noqa: E501 - analytic_object_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analytic object that the data access set is for.", alias="analyticObjectId") - description: Optional[StrictStr] = Field(default=None, description="A description of the data access set.") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable data access set name to display in Visier, such as \"Aggregate(Employee)\".", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the data access set.") - property_access_configs: Optional[List[PropertyAccessConfigDTO]] = Field(default=None, description="The data access assigned to properties in the data access set.", alias="propertyAccessConfigs") - __properties: ClassVar[List[str]] = ["analyticObjectId", "description", "displayName", "id", "propertyAccessConfigs"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataAccessSetDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in property_access_configs (list) - _items = [] - if self.property_access_configs: - for _item_property_access_configs in self.property_access_configs: - if _item_property_access_configs: - _items.append(_item_property_access_configs.to_dict()) - _dict['propertyAccessConfigs'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataAccessSetDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObjectId": obj.get("analyticObjectId"), - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "propertyAccessConfigs": [PropertyAccessConfigDTO.from_dict(_item) for _item in obj["propertyAccessConfigs"]] if obj.get("propertyAccessConfigs") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/data_access_set_error_dto.py b/src/visier_api_administration/visier_api_administration/models/data_access_set_error_dto.py deleted file mode 100644 index 3ecfe21379..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/data_access_set_error_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataAccessSetErrorDTO(BaseModel): - """ - DataAccessSetErrorDTO - """ # noqa: E501 - message: Optional[StrictStr] = Field(default=None, description="Error message") - rci: Optional[StrictStr] = Field(default=None, description="A root cause identifier that allows Visier to determine the source of the problem.") - __properties: ClassVar[List[str]] = ["message", "rci"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataAccessSetErrorDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataAccessSetErrorDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "message": obj.get("message"), - "rci": obj.get("rci") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/data_access_set_failure_dto.py b/src/visier_api_administration/visier_api_administration/models/data_access_set_failure_dto.py deleted file mode 100644 index 74da6c531d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/data_access_set_failure_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.data_access_set_error_dto import DataAccessSetErrorDTO -from typing import Optional, Set -from typing_extensions import Self - -class DataAccessSetFailureDTO(BaseModel): - """ - DataAccessSetFailureDTO - """ # noqa: E501 - data_access_set_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the data access set.", alias="dataAccessSetId") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable data access set name to display in Visier, such as \"Detailed(Employee)\".", alias="displayName") - error: Optional[DataAccessSetErrorDTO] = Field(default=None, description="The error associated with the failure.") - __properties: ClassVar[List[str]] = ["dataAccessSetId", "displayName", "error"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataAccessSetFailureDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataAccessSetFailureDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataAccessSetId": obj.get("dataAccessSetId"), - "displayName": obj.get("displayName"), - "error": DataAccessSetErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/data_access_set_success_dto.py b/src/visier_api_administration/visier_api_administration/models/data_access_set_success_dto.py deleted file mode 100644 index bb9c471d29..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/data_access_set_success_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataAccessSetSuccessDTO(BaseModel): - """ - DataAccessSetSuccessDTO - """ # noqa: E501 - data_access_set_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the created data access set.", alias="dataAccessSetId") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable data access set name to display in Visier, such as \"Detailed(Employee)\".", alias="displayName") - __properties: ClassVar[List[str]] = ["dataAccessSetId", "displayName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataAccessSetSuccessDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataAccessSetSuccessDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataAccessSetId": obj.get("dataAccessSetId"), - "displayName": obj.get("displayName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/data_security_profile_dto.py b/src/visier_api_administration/visier_api_administration/models/data_security_profile_dto.py deleted file mode 100644 index dbc4d4fb05..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/data_security_profile_dto.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.inherited_access_config_dto import InheritedAccessConfigDTO -from visier_api_administration.models.inherited_reference_member_filter_config_dto import InheritedReferenceMemberFilterConfigDTO -from visier_api_administration.models.member_filter_config_dto import MemberFilterConfigDTO -from visier_api_administration.models.property_set_config_dto import PropertySetConfigDTO -from typing import Optional, Set -from typing_extensions import Self - -class DataSecurityProfileDTO(BaseModel): - """ - DataSecurityProfileDTO - """ # noqa: E501 - all_data_point_access: Optional[StrictBool] = Field(default=None, description="If `true`, the permission grants access to the entire population. If `false`, define `memberFilterConfigs` to set custom population access.", alias="allDataPointAccess") - analytic_object_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analytic object assigned data security in this permission.", alias="analyticObjectId") - analytic_object_status: Optional[StrictStr] = Field(default=None, description="The analytic object's validity status. Valid values: Valid, NoData, NotFound. * **Valid**: The object exists and has loaded data. * **NoData**: The object exists but doesn't have loaded data. * **NotFound**: The object doesn't exist.", alias="analyticObjectStatus") - inherited_access_configs: Optional[List[InheritedAccessConfigDTO]] = Field(default=None, description="The events and related objects inherited from the analytic object. By default, all events and related objects associated with the analytic object will be inherited from the analytic object in a permission. For example, if you assign access to Employee, then access to the Employee Exit event is inherited in the permission. To remove access to an event or related object, add the object to `inheritedAccessConfigs` with `removeAccess`: true. To add custom filters to an event or related object, add the object to `inheritedAccessConfigs` and define `memberFilterConfigs`.", alias="inheritedAccessConfigs") - inherited_reference_member_filter_config: Optional[InheritedReferenceMemberFilterConfigDTO] = Field(default=None, description="Configures the analytic object to inherit population access filters from. The target analytic object must be assigned population access in the permission and have a binding (strong) reference from the source analytic object. * For example, assume `Applicant` -> `Requisition` is configured to be a binding (strong) reference. For `Applicant` (source analytic object) to inherit population access filters from `Requisition` (target analytic object), in the Applicant `dataSecurityProfile`, set `inheritedReferenceMemberFilterConfig` to `Requisition`. In this example, Applicant will inherit filters from Requisition because Requsition is assigned data security in this permission and there is a binding (strong) reference from Applicant to Requisition.", alias="inheritedReferenceMemberFilterConfig") - member_filter_configs: Optional[List[MemberFilterConfigDTO]] = Field(default=None, description="Custom filters that define population access for an item in the permission.", alias="memberFilterConfigs") - property_set_config: Optional[PropertySetConfigDTO] = Field(default=None, description="A list of objects representing the data access for an analytic object’s properties.", alias="propertySetConfig") - __properties: ClassVar[List[str]] = ["allDataPointAccess", "analyticObjectId", "analyticObjectStatus", "inheritedAccessConfigs", "inheritedReferenceMemberFilterConfig", "memberFilterConfigs", "propertySetConfig"] - - @field_validator('analytic_object_status') - def analytic_object_status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['Unset', 'Valid', 'NoData', 'NotFound']): - raise ValueError("must be one of enum values ('Unset', 'Valid', 'NoData', 'NotFound')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataSecurityProfileDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in inherited_access_configs (list) - _items = [] - if self.inherited_access_configs: - for _item_inherited_access_configs in self.inherited_access_configs: - if _item_inherited_access_configs: - _items.append(_item_inherited_access_configs.to_dict()) - _dict['inheritedAccessConfigs'] = _items - # override the default output from pydantic by calling `to_dict()` of inherited_reference_member_filter_config - if self.inherited_reference_member_filter_config: - _dict['inheritedReferenceMemberFilterConfig'] = self.inherited_reference_member_filter_config.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in member_filter_configs (list) - _items = [] - if self.member_filter_configs: - for _item_member_filter_configs in self.member_filter_configs: - if _item_member_filter_configs: - _items.append(_item_member_filter_configs.to_dict()) - _dict['memberFilterConfigs'] = _items - # override the default output from pydantic by calling `to_dict()` of property_set_config - if self.property_set_config: - _dict['propertySetConfig'] = self.property_set_config.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataSecurityProfileDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "allDataPointAccess": obj.get("allDataPointAccess"), - "analyticObjectId": obj.get("analyticObjectId"), - "analyticObjectStatus": obj.get("analyticObjectStatus"), - "inheritedAccessConfigs": [InheritedAccessConfigDTO.from_dict(_item) for _item in obj["inheritedAccessConfigs"]] if obj.get("inheritedAccessConfigs") is not None else None, - "inheritedReferenceMemberFilterConfig": InheritedReferenceMemberFilterConfigDTO.from_dict(obj["inheritedReferenceMemberFilterConfig"]) if obj.get("inheritedReferenceMemberFilterConfig") is not None else None, - "memberFilterConfigs": [MemberFilterConfigDTO.from_dict(_item) for _item in obj["memberFilterConfigs"]] if obj.get("memberFilterConfigs") is not None else None, - "propertySetConfig": PropertySetConfigDTO.from_dict(obj["propertySetConfig"]) if obj.get("propertySetConfig") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/delete_permissions_request_dto.py b/src/visier_api_administration/visier_api_administration/models/delete_permissions_request_dto.py deleted file mode 100644 index 3c131879cb..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/delete_permissions_request_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DeletePermissionsRequestDTO(BaseModel): - """ - DeletePermissionsRequestDTO - """ # noqa: E501 - permission_ids: Optional[List[StrictStr]] = Field(default=None, description="The identifiers of the permissions to delete.", alias="permissionIds") - __properties: ClassVar[List[str]] = ["permissionIds"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DeletePermissionsRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DeletePermissionsRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "permissionIds": obj.get("permissionIds") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/delete_user_group_v2_request.py b/src/visier_api_administration/visier_api_administration/models/delete_user_group_v2_request.py deleted file mode 100644 index 4da2ae70ee..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/delete_user_group_v2_request.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DeleteUserGroupV2Request(BaseModel): - """ - DeleteUserGroupV2Request - """ # noqa: E501 - user_group_id: Optional[StrictStr] = Field(default=None, description="The ID of user group to delete.", alias="userGroupId") - __properties: ClassVar[List[str]] = ["userGroupId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DeleteUserGroupV2Request from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DeleteUserGroupV2Request from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "userGroupId": obj.get("userGroupId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/designer_crypto_generate_key_request_dto.py b/src/visier_api_administration/visier_api_administration/models/designer_crypto_generate_key_request_dto.py new file mode 100644 index 0000000000..168a06a980 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/designer_crypto_generate_key_request_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerCryptoGenerateKeyRequestDTO(BaseModel): + """ + The settings to define for an encryption key. + """ # noqa: E501 + algorithm: Optional[StrictStr] = Field(default=None, description="The hash-based message authentication code and cryptographic hash function associated with the encryption key. Must be one of `HmacSHA224`, `HmacSHA256`, `HmacSHA384`, or `HmacSHA512`.") + expiry_date: Optional[StrictStr] = Field(default=None, description="The UTC expiration date of the key in ISO-8601 format. Must be between 2 and 10 years. Default is 2 years.", alias="expiryDate") + key_name: Optional[StrictStr] = Field(default=None, description="The encryption key's display name. The name may only contain alphanumeric or dash (-) characters and must be between 6 and 36 characters long.", alias="keyName") + __properties: ClassVar[List[str]] = ["algorithm", "expiryDate", "keyName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerCryptoGenerateKeyRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerCryptoGenerateKeyRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "algorithm": obj.get("algorithm"), + "expiryDate": obj.get("expiryDate"), + "keyName": obj.get("keyName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/designer_crypto_tenant_encryption_key_details_dto.py b/src/visier_api_administration/visier_api_administration/models/designer_crypto_tenant_encryption_key_details_dto.py new file mode 100644 index 0000000000..ce25d80656 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/designer_crypto_tenant_encryption_key_details_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerCryptoTenantEncryptionKeyDetailsDTO(BaseModel): + """ + Information about who generated an encryption key, its key name, algorithm, generation date, and expiration date. + """ # noqa: E501 + algorithm: Optional[StrictStr] = Field(default=None, description="The hash-based message authentication code and cryptographic hash function associated with the encryption key.") + date_generated: Optional[StrictStr] = Field(default=None, description="The UTC date that the key was generated in milliseconds since the Unix epoch.", alias="dateGenerated") + expiry_date: Optional[StrictStr] = Field(default=None, description="The UTC expiration date of the key in milliseconds since the Unix epoch.", alias="expiryDate") + generated_by: Optional[StrictStr] = Field(default=None, description="The user who generated the key.", alias="generatedBy") + key_name: Optional[StrictStr] = Field(default=None, description="The encryption key's display name. The name may only contain alphanumeric or dash (-) characters and must be between 6 and 36 characters long.", alias="keyName") + __properties: ClassVar[List[str]] = ["algorithm", "dateGenerated", "expiryDate", "generatedBy", "keyName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerCryptoTenantEncryptionKeyDetailsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerCryptoTenantEncryptionKeyDetailsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "algorithm": obj.get("algorithm"), + "dateGenerated": obj.get("dateGenerated"), + "expiryDate": obj.get("expiryDate"), + "generatedBy": obj.get("generatedBy"), + "keyName": obj.get("keyName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/designer_crypto_tenant_encryption_key_dto.py b/src/visier_api_administration/visier_api_administration/models/designer_crypto_tenant_encryption_key_dto.py new file mode 100644 index 0000000000..bc3194e07d --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/designer_crypto_tenant_encryption_key_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.designer_crypto_tenant_encryption_key_details_dto import DesignerCryptoTenantEncryptionKeyDetailsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerCryptoTenantEncryptionKeyDTO(BaseModel): + """ + The details of an encryption key. + """ # noqa: E501 + detail: Optional[DesignerCryptoTenantEncryptionKeyDetailsDTO] = Field(default=None, description="Information about an encryption key.") + key: Optional[StrictStr] = Field(default=None, description="The encryption key value.") + __properties: ClassVar[List[str]] = ["detail", "key"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerCryptoTenantEncryptionKeyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of detail + if self.detail: + _dict['detail'] = self.detail.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerCryptoTenantEncryptionKeyDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "detail": DesignerCryptoTenantEncryptionKeyDetailsDTO.from_dict(obj["detail"]) if obj.get("detail") is not None else None, + "key": obj.get("key") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/designer_transfers_module_settings_dto.py b/src/visier_api_administration/visier_api_administration/models/designer_transfers_module_settings_dto.py new file mode 100644 index 0000000000..3fc5384299 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/designer_transfers_module_settings_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersModuleSettingsDTO(BaseModel): + """ + DesignerTransfersModuleSettingsDTO + """ # noqa: E501 + locale: Optional[StrictStr] = Field(default=None, description="The language of the module. For example, a module that is in English will have the locale \"en\".") + special_handling_instruction: Optional[StrictStr] = Field(default=None, description="An instruction message in the module selection dialog. This can be a note for administrators such as \"Don't assign this module\" or \"Assign Module B instead\".", alias="specialHandlingInstruction") + unavailable_for_assignment: Optional[StrictBool] = Field(default=None, description="If true, the module cannot be assigned to tenants.", alias="unavailableForAssignment") + __properties: ClassVar[List[str]] = ["locale", "specialHandlingInstruction", "unavailableForAssignment"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersModuleSettingsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersModuleSettingsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "locale": obj.get("locale"), + "specialHandlingInstruction": obj.get("specialHandlingInstruction"), + "unavailableForAssignment": obj.get("unavailableForAssignment") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/designer_transfers_tenant_module_dto.py b/src/visier_api_administration/visier_api_administration/models/designer_transfers_tenant_module_dto.py new file mode 100644 index 0000000000..d61eaf38ef --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/designer_transfers_tenant_module_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.designer_transfers_module_settings_dto import DesignerTransfersModuleSettingsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersTenantModuleDTO(BaseModel): + """ + DesignerTransfersTenantModuleDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name that is displayed within Visier. For example, \"TALENT\".", alias="displayName") + module_settings: Optional[DesignerTransfersModuleSettingsDTO] = Field(default=None, description="The settings associated with the module.", alias="moduleSettings") + symbol_name: Optional[StrictStr] = Field(default=None, description="The symbol name of the module. For example, \"Talent_Management\".", alias="symbolName") + __properties: ClassVar[List[str]] = ["displayName", "moduleSettings", "symbolName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersTenantModuleDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of module_settings + if self.module_settings: + _dict['moduleSettings'] = self.module_settings.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersTenantModuleDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "moduleSettings": DesignerTransfersModuleSettingsDTO.from_dict(obj["moduleSettings"]) if obj.get("moduleSettings") is not None else None, + "symbolName": obj.get("symbolName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/dimension_filter_dto.py b/src/visier_api_administration/visier_api_administration/models/dimension_filter_dto.py deleted file mode 100644 index 7512033956..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/dimension_filter_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.dynamic_dimension_filter_dto import DynamicDimensionFilterDTO -from visier_api_administration.models.static_dimension_filter_dto import StaticDimensionFilterDTO -from typing import Optional, Set -from typing_extensions import Self - -class DimensionFilterDTO(BaseModel): - """ - DimensionFilterDTO - """ # noqa: E501 - dynamic_dimension_filter: Optional[DynamicDimensionFilterDTO] = Field(default=None, alias="dynamicDimensionFilter") - static_dimension_filter: Optional[StaticDimensionFilterDTO] = Field(default=None, alias="staticDimensionFilter") - __properties: ClassVar[List[str]] = ["dynamicDimensionFilter", "staticDimensionFilter"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DimensionFilterDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of dynamic_dimension_filter - if self.dynamic_dimension_filter: - _dict['dynamicDimensionFilter'] = self.dynamic_dimension_filter.to_dict() - # override the default output from pydantic by calling `to_dict()` of static_dimension_filter - if self.static_dimension_filter: - _dict['staticDimensionFilter'] = self.static_dimension_filter.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DimensionFilterDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dynamicDimensionFilter": DynamicDimensionFilterDTO.from_dict(obj["dynamicDimensionFilter"]) if obj.get("dynamicDimensionFilter") is not None else None, - "staticDimensionFilter": StaticDimensionFilterDTO.from_dict(obj["staticDimensionFilter"]) if obj.get("staticDimensionFilter") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/dp_automation_transfers_metric_validation_summary_dto.py b/src/visier_api_administration/visier_api_administration/models/dp_automation_transfers_metric_validation_summary_dto.py new file mode 100644 index 0000000000..9cdf2f0213 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/dp_automation_transfers_metric_validation_summary_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class DpAutomationTransfersMetricValidationSummaryDTO(BaseModel): + """ + DpAutomationTransfersMetricValidationSummaryDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name that is displayed within Visier. For example, \"Headcount\".", alias="displayName") + symbol_name: Optional[StrictStr] = Field(default=None, description="The symbol name of the metric. For example, \"employeeCount\".", alias="symbolName") + value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The current value of the metric expressed as an integer.") + __properties: ClassVar[List[str]] = ["displayName", "symbolName", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DpAutomationTransfersMetricValidationSummaryDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DpAutomationTransfersMetricValidationSummaryDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "symbolName": obj.get("symbolName"), + "value": obj.get("value") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/dp_automation_transfers_tenant_preview_entries_summary_dto.py b/src/visier_api_administration/visier_api_administration/models/dp_automation_transfers_tenant_preview_entries_summary_dto.py new file mode 100644 index 0000000000..a116d7a567 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/dp_automation_transfers_tenant_preview_entries_summary_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.dp_automation_transfers_metric_validation_summary_dto import DpAutomationTransfersMetricValidationSummaryDTO +from typing import Optional, Set +from typing_extensions import Self + +class DpAutomationTransfersTenantPreviewEntriesSummaryDTO(BaseModel): + """ + DpAutomationTransfersTenantPreviewEntriesSummaryDTO + """ # noqa: E501 + data_version: Optional[StrictStr] = Field(default=None, description="The data version ID.", alias="dataVersion") + data_version_date: Optional[StrictStr] = Field(default=None, description="The date that the data version was created.", alias="dataVersionDate") + metrics: Optional[List[DpAutomationTransfersMetricValidationSummaryDTO]] = Field(default=None, description="A list of metrics and their values.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant. For example, \"WFF_j1r~i1o\".", alias="tenantCode") + __properties: ClassVar[List[str]] = ["dataVersion", "dataVersionDate", "metrics", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DpAutomationTransfersTenantPreviewEntriesSummaryDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in metrics (list) + _items = [] + if self.metrics: + for _item_metrics in self.metrics: + if _item_metrics: + _items.append(_item_metrics.to_dict()) + _dict['metrics'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DpAutomationTransfersTenantPreviewEntriesSummaryDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataVersion": obj.get("dataVersion"), + "dataVersionDate": obj.get("dataVersionDate"), + "metrics": [DpAutomationTransfersMetricValidationSummaryDTO.from_dict(_item) for _item in obj["metrics"]] if obj.get("metrics") is not None else None, + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/dp_automation_transfers_tenant_preview_entries_summary_list_dto.py b/src/visier_api_administration/visier_api_administration/models/dp_automation_transfers_tenant_preview_entries_summary_list_dto.py new file mode 100644 index 0000000000..ce00f24385 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/dp_automation_transfers_tenant_preview_entries_summary_list_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.dp_automation_transfers_tenant_preview_entries_summary_dto import DpAutomationTransfersTenantPreviewEntriesSummaryDTO +from typing import Optional, Set +from typing_extensions import Self + +class DpAutomationTransfersTenantPreviewEntriesSummaryListDTO(BaseModel): + """ + DpAutomationTransfersTenantPreviewEntriesSummaryListDTO + """ # noqa: E501 + limit: Optional[StrictInt] = Field(default=None, description="The number of analytic tenants to retrieve. The maximum number to retrieve is 1000.") + start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") + tenants: Optional[List[DpAutomationTransfersTenantPreviewEntriesSummaryDTO]] = Field(default=None, description="A list of objects representing all the analytic tenants.") + __properties: ClassVar[List[str]] = ["limit", "start", "tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DpAutomationTransfersTenantPreviewEntriesSummaryListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DpAutomationTransfersTenantPreviewEntriesSummaryListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "start": obj.get("start"), + "tenants": [DpAutomationTransfersTenantPreviewEntriesSummaryDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/dynamic_dimension_filter_dto.py b/src/visier_api_administration/visier_api_administration/models/dynamic_dimension_filter_dto.py deleted file mode 100644 index b705711905..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/dynamic_dimension_filter_dto.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.dynamic_property_mapping_dto import DynamicPropertyMappingDTO -from typing import Optional, Set -from typing_extensions import Self - -class DynamicDimensionFilterDTO(BaseModel): - """ - DynamicDimensionFilterDTO - """ # noqa: E501 - dimension_id: Optional[StrictStr] = Field(default=None, description="The dimension ID associated with the filter.", alias="dimensionId") - dimension_status: Optional[StrictStr] = Field(default=None, description="The dimension's validity status. Valid values: Valid, NoData, NotFound. * **Valid**: The object exists and has loaded data. * **NoData**: The object exists but doesn't have loaded data. * **NotFound**: The object doesn't exist.", alias="dimensionStatus") - dynamic_property_mappings: Optional[List[DynamicPropertyMappingDTO]] = Field(default=None, description="The properties assigned population access in the dynamic filter.", alias="dynamicPropertyMappings") - subject_reference_path: Optional[List[StrictStr]] = Field(default=None, description="The subject reference path.", alias="subjectReferencePath") - __properties: ClassVar[List[str]] = ["dimensionId", "dimensionStatus", "dynamicPropertyMappings", "subjectReferencePath"] - - @field_validator('dimension_status') - def dimension_status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['Unset', 'Valid', 'NoData', 'NotFound']): - raise ValueError("must be one of enum values ('Unset', 'Valid', 'NoData', 'NotFound')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DynamicDimensionFilterDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in dynamic_property_mappings (list) - _items = [] - if self.dynamic_property_mappings: - for _item_dynamic_property_mappings in self.dynamic_property_mappings: - if _item_dynamic_property_mappings: - _items.append(_item_dynamic_property_mappings.to_dict()) - _dict['dynamicPropertyMappings'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DynamicDimensionFilterDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimensionId": obj.get("dimensionId"), - "dimensionStatus": obj.get("dimensionStatus"), - "dynamicPropertyMappings": [DynamicPropertyMappingDTO.from_dict(_item) for _item in obj["dynamicPropertyMappings"]] if obj.get("dynamicPropertyMappings") is not None else None, - "subjectReferencePath": obj.get("subjectReferencePath") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/dynamic_property_mapping_dto.py b/src/visier_api_administration/visier_api_administration/models/dynamic_property_mapping_dto.py deleted file mode 100644 index 37cba28bf5..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/dynamic_property_mapping_dto.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.user_property_dto import UserPropertyDTO -from typing import Optional, Set -from typing_extensions import Self - -class DynamicPropertyMappingDTO(BaseModel): - """ - DynamicPropertyMappingDTO - """ # noqa: E501 - hierarchy_property_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the property.", alias="hierarchyPropertyId") - hierarchy_property_status: Optional[StrictStr] = Field(default=None, description="The property's validity status. Valid values: `Valid`, `NotFound`. * **Valid**: The object exists and has loaded data. * **NotFound**: The object doesn't exist.", alias="hierarchyPropertyStatus") - user_property: Optional[UserPropertyDTO] = Field(default=None, description="The user property that you want to link the name property or organization head to.", alias="userProperty") - __properties: ClassVar[List[str]] = ["hierarchyPropertyId", "hierarchyPropertyStatus", "userProperty"] - - @field_validator('hierarchy_property_status') - def hierarchy_property_status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['Unset', 'Valid', 'NoData', 'NotFound']): - raise ValueError("must be one of enum values ('Unset', 'Valid', 'NoData', 'NotFound')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DynamicPropertyMappingDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of user_property - if self.user_property: - _dict['userProperty'] = self.user_property.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DynamicPropertyMappingDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "hierarchyPropertyId": obj.get("hierarchyPropertyId"), - "hierarchyPropertyStatus": obj.get("hierarchyPropertyStatus"), - "userProperty": UserPropertyDTO.from_dict(obj["userProperty"]) if obj.get("userProperty") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/element_ids_dto.py b/src/visier_api_administration/visier_api_administration/models/element_ids_dto.py deleted file mode 100644 index 696d8574e5..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/element_ids_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ElementIDsDTO(BaseModel): - """ - ElementIDsDTO - """ # noqa: E501 - ids: Optional[List[StrictStr]] = Field(default=None, description="The unique identifiers.") - __properties: ClassVar[List[str]] = ["ids"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ElementIDsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ElementIDsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "ids": obj.get("ids") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/email_domains_dto.py b/src/visier_api_administration/visier_api_administration/models/email_domains_dto.py deleted file mode 100644 index eb194b1e9a..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/email_domains_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class EmailDomainsDTO(BaseModel): - """ - EmailDomainsDTO - """ # noqa: E501 - confirm_not_allowed_domain: Optional[StrictBool] = Field(default=None, description="If `true`, you cannot sign in using credentials, such as username and password. You can only log in with single sign-on (SSO). To avoid this, add your current email address's domain to allowed domains list.", alias="confirmNotAllowedDomain") - domains: Optional[List[StrictStr]] = Field(default=None, description="The list of allowed email address domains.") - __properties: ClassVar[List[str]] = ["confirmNotAllowedDomain", "domains"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of EmailDomainsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of EmailDomainsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "confirmNotAllowedDomain": obj.get("confirmNotAllowedDomain"), - "domains": obj.get("domains") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/error_dto.py b/src/visier_api_administration/visier_api_administration/models/error_dto.py deleted file mode 100644 index c4117b1846..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/error_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ErrorDTO(BaseModel): - """ - ErrorDTO - """ # noqa: E501 - error_code: Optional[StrictStr] = Field(default=None, description="A brief identifier of the type of error.", alias="errorCode") - error_message: Optional[StrictStr] = Field(default=None, description="A description of the error that occurred.", alias="errorMessage") - root_cause_id: Optional[StrictStr] = Field(default=None, description="The root cause identifier that allows Visier to determine the source of the problem.", alias="rootCauseId") - __properties: ClassVar[List[str]] = ["errorCode", "errorMessage", "rootCauseId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ErrorDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ErrorDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "errorCode": obj.get("errorCode"), - "errorMessage": obj.get("errorMessage"), - "rootCauseId": obj.get("rootCauseId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/excluded_sources_body.py b/src/visier_api_administration/visier_api_administration/models/excluded_sources_body.py deleted file mode 100644 index 7d5d84c032..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/excluded_sources_body.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ExcludedSourcesBody(BaseModel): - """ - ExcludedSourcesBody - """ # noqa: E501 - excluded_sources: Optional[List[StrictStr]] = Field(default=None, description="A list of a CA tenant's excluded sources.", alias="excludedSources") - __properties: ClassVar[List[str]] = ["excludedSources"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExcludedSourcesBody from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExcludedSourcesBody from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "excludedSources": obj.get("excludedSources") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/export_production_versions_api_operation_parameters_dto.py b/src/visier_api_administration/visier_api_administration/models/export_production_versions_api_operation_parameters_dto.py deleted file mode 100644 index 3e1e07bdad..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/export_production_versions_api_operation_parameters_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ExportProductionVersionsAPIOperationParametersDTO(BaseModel): - """ - ExportProductionVersionsAPIOperationParametersDTO - """ # noqa: E501 - end_version: Optional[StrictStr] = Field(default=None, description="The unique identifier of the version to stop exporting versions at. The range is inclusive.", alias="endVersion") - excluded_versions: Optional[List[StrictStr]] = Field(default=None, description="A list of versions between `startVersion` and `endVersion` to exclude.", alias="excludedVersions") - start_version: Optional[StrictStr] = Field(default=None, description="The unique identifier of the version to start exporting versions from. The range is inclusive.", alias="startVersion") - __properties: ClassVar[List[str]] = ["endVersion", "excludedVersions", "startVersion"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExportProductionVersionsAPIOperationParametersDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExportProductionVersionsAPIOperationParametersDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "endVersion": obj.get("endVersion"), - "excludedVersions": obj.get("excludedVersions"), - "startVersion": obj.get("startVersion") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/failed_accessible_tenant_profile_assignment_dto.py b/src/visier_api_administration/visier_api_administration/models/failed_accessible_tenant_profile_assignment_dto.py deleted file mode 100644 index 0a6c135a34..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/failed_accessible_tenant_profile_assignment_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.error_dto import ErrorDTO -from typing import Optional, Set -from typing_extensions import Self - -class FailedAccessibleTenantProfileAssignmentDTO(BaseModel): - """ - FailedAccessibleTenantProfileAssignmentDTO - """ # noqa: E501 - error: Optional[ErrorDTO] = Field(default=None, description="The details about the error.") - for_all_children: Optional[StrictBool] = Field(default=None, description="If true, the target assignment is for all analytic tenants.", alias="forAllChildren") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code.", alias="tenantCode") - user_id: Optional[StrictStr] = Field(default=None, description="The impacted user ID.", alias="userId") - __properties: ClassVar[List[str]] = ["error", "forAllChildren", "tenantCode", "userId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FailedAccessibleTenantProfileAssignmentDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FailedAccessibleTenantProfileAssignmentDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "error": ErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, - "forAllChildren": obj.get("forAllChildren"), - "tenantCode": obj.get("tenantCode"), - "userId": obj.get("userId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/failed_local_tenant_profile_assignment_dto.py b/src/visier_api_administration/visier_api_administration/models/failed_local_tenant_profile_assignment_dto.py deleted file mode 100644 index eafd55d06a..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/failed_local_tenant_profile_assignment_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.error_dto import ErrorDTO -from typing import Optional, Set -from typing_extensions import Self - -class FailedLocalTenantProfileAssignmentDTO(BaseModel): - """ - FailedLocalTenantProfileAssignmentDTO - """ # noqa: E501 - error: Optional[ErrorDTO] = Field(default=None, description="The details about the error.") - user_id: Optional[StrictStr] = Field(default=None, description="The impacted user ID.", alias="userId") - __properties: ClassVar[List[str]] = ["error", "userId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FailedLocalTenantProfileAssignmentDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FailedLocalTenantProfileAssignmentDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "error": ErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, - "userId": obj.get("userId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/failed_local_tenant_profile_revoke_dto.py b/src/visier_api_administration/visier_api_administration/models/failed_local_tenant_profile_revoke_dto.py deleted file mode 100644 index 87f3096da3..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/failed_local_tenant_profile_revoke_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class FailedLocalTenantProfileRevokeDTO(BaseModel): - """ - FailedLocalTenantProfileRevokeDTO - """ # noqa: E501 - message: Optional[StrictStr] = Field(default=None, description="The details about the error.") - user_id: Optional[StrictStr] = Field(default=None, description="The impacted user ID.", alias="userId") - __properties: ClassVar[List[str]] = ["message", "userId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FailedLocalTenantProfileRevokeDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FailedLocalTenantProfileRevokeDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "message": obj.get("message"), - "userId": obj.get("userId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/generate_key_request_dto.py b/src/visier_api_administration/visier_api_administration/models/generate_key_request_dto.py deleted file mode 100644 index c99d776b97..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/generate_key_request_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GenerateKeyRequestDTO(BaseModel): - """ - The settings to define for an encryption key. - """ # noqa: E501 - algorithm: Optional[StrictStr] = Field(default=None, description="The hash-based message authentication code and cryptographic hash function associated with the encryption key. Must be one of `HmacSHA224`, `HmacSHA256`, `HmacSHA384`, or `HmacSHA512`.") - expiry_date: Optional[StrictStr] = Field(default=None, description="The UTC expiration date of the key in ISO-8601 format. Must be between 2 and 10 years. Default is 2 years.", alias="expiryDate") - key_name: Optional[StrictStr] = Field(default=None, description="The encryption key's display name. The name may only contain alphanumeric or dash (-) characters and must be between 6 and 36 characters long.", alias="keyName") - __properties: ClassVar[List[str]] = ["algorithm", "expiryDate", "keyName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GenerateKeyRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GenerateKeyRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "algorithm": obj.get("algorithm"), - "expiryDate": obj.get("expiryDate"), - "keyName": obj.get("keyName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/get_capabilities_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/get_capabilities_api_response_dto.py deleted file mode 100644 index f4a01d2780..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/get_capabilities_api_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.capability_dto import CapabilityDTO -from typing import Optional, Set -from typing_extensions import Self - -class GetCapabilitiesAPIResponseDTO(BaseModel): - """ - GetCapabilitiesAPIResponseDTO - """ # noqa: E501 - capabilities: Optional[List[CapabilityDTO]] = Field(default=None, description="A list of objects representing the available capabilities.") - __properties: ClassVar[List[str]] = ["capabilities"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetCapabilitiesAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in capabilities (list) - _items = [] - if self.capabilities: - for _item_capabilities in self.capabilities: - if _item_capabilities: - _items.append(_item_capabilities.to_dict()) - _dict['capabilities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetCapabilitiesAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "capabilities": [CapabilityDTO.from_dict(_item) for _item in obj["capabilities"]] if obj.get("capabilities") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/get_content_packages_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/get_content_packages_api_response_dto.py deleted file mode 100644 index 0d834ce8fd..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/get_content_packages_api_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.content_package_dto import ContentPackageDTO -from typing import Optional, Set -from typing_extensions import Self - -class GetContentPackagesAPIResponseDTO(BaseModel): - """ - GetContentPackagesAPIResponseDTO - """ # noqa: E501 - content_packages: Optional[List[ContentPackageDTO]] = Field(default=None, description="A list of objects representing the available content packages.", alias="contentPackages") - __properties: ClassVar[List[str]] = ["contentPackages"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetContentPackagesAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in content_packages (list) - _items = [] - if self.content_packages: - for _item_content_packages in self.content_packages: - if _item_content_packages: - _items.append(_item_content_packages.to_dict()) - _dict['contentPackages'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetContentPackagesAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "contentPackages": [ContentPackageDTO.from_dict(_item) for _item in obj["contentPackages"]] if obj.get("contentPackages") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/get_data_access_sets_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/get_data_access_sets_api_response_dto.py deleted file mode 100644 index bd971ea7f2..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/get_data_access_sets_api_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.data_access_set_dto import DataAccessSetDTO -from typing import Optional, Set -from typing_extensions import Self - -class GetDataAccessSetsAPIResponseDTO(BaseModel): - """ - GetDataAccessSetsAPIResponseDTO - """ # noqa: E501 - data_access_sets: Optional[List[DataAccessSetDTO]] = Field(default=None, description="A list of objects representing the shareable data access sets.", alias="dataAccessSets") - __properties: ClassVar[List[str]] = ["dataAccessSets"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetDataAccessSetsAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data_access_sets (list) - _items = [] - if self.data_access_sets: - for _item_data_access_sets in self.data_access_sets: - if _item_data_access_sets: - _items.append(_item_data_access_sets.to_dict()) - _dict['dataAccessSets'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetDataAccessSetsAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataAccessSets": [DataAccessSetDTO.from_dict(_item) for _item in obj["dataAccessSets"]] if obj.get("dataAccessSets") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/get_data_security_objects_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/get_data_security_objects_api_response_dto.py deleted file mode 100644 index d448072bfc..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/get_data_security_objects_api_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.analytic_object_dto import AnalyticObjectDTO -from typing import Optional, Set -from typing_extensions import Self - -class GetDataSecurityObjectsAPIResponseDTO(BaseModel): - """ - GetDataSecurityObjectsAPIResponseDTO - """ # noqa: E501 - analytic_objects: Optional[List[AnalyticObjectDTO]] = Field(default=None, description="A list of analytic objects and their related objects that are available to define data access to.", alias="analyticObjects") - __properties: ClassVar[List[str]] = ["analyticObjects"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetDataSecurityObjectsAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in analytic_objects (list) - _items = [] - if self.analytic_objects: - for _item_analytic_objects in self.analytic_objects: - if _item_analytic_objects: - _items.append(_item_analytic_objects.to_dict()) - _dict['analyticObjects'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetDataSecurityObjectsAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObjects": [AnalyticObjectDTO.from_dict(_item) for _item in obj["analyticObjects"]] if obj.get("analyticObjects") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/get_permissions_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/get_permissions_api_response_dto.py deleted file mode 100644 index a35cb7c92b..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/get_permissions_api_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.permission_dto import PermissionDTO -from typing import Optional, Set -from typing_extensions import Self - -class GetPermissionsAPIResponseDTO(BaseModel): - """ - List of available permissions - """ # noqa: E501 - permissions: Optional[List[PermissionDTO]] = Field(default=None, description="A list of objects representing the available permissions.") - __properties: ClassVar[List[str]] = ["permissions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetPermissionsAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in permissions (list) - _items = [] - if self.permissions: - for _item_permissions in self.permissions: - if _item_permissions: - _items.append(_item_permissions.to_dict()) - _dict['permissions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetPermissionsAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "permissions": [PermissionDTO.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/get_production_versions_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/get_production_versions_api_response_dto.py deleted file mode 100644 index bb57778233..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/get_production_versions_api_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.project_dto import ProjectDTO -from typing import Optional, Set -from typing_extensions import Self - -class GetProductionVersionsAPIResponseDTO(BaseModel): - """ - GetProductionVersionsAPIResponseDTO - """ # noqa: E501 - published_versions: Optional[List[ProjectDTO]] = Field(default=None, description="A list of projects that were published to production.", alias="publishedVersions") - __properties: ClassVar[List[str]] = ["publishedVersions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetProductionVersionsAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in published_versions (list) - _items = [] - if self.published_versions: - for _item_published_versions in self.published_versions: - if _item_published_versions: - _items.append(_item_published_versions.to_dict()) - _dict['publishedVersions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetProductionVersionsAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "publishedVersions": [ProjectDTO.from_dict(_item) for _item in obj["publishedVersions"]] if obj.get("publishedVersions") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/get_projects_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/get_projects_api_response_dto.py deleted file mode 100644 index 128342978e..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/get_projects_api_response_dto.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.project_dto import ProjectDTO -from typing import Optional, Set -from typing_extensions import Self - -class GetProjectsAPIResponseDTO(BaseModel): - """ - GetProjectsAPIResponseDTO - """ # noqa: E501 - approval_projects: Optional[List[ProjectDTO]] = Field(default=None, description="A list of objects representing the accessible approval projects for the user.", alias="approvalProjects") - archived_projects: Optional[List[ProjectDTO]] = Field(default=None, description="A list of objects representing the accessible archived projects for the user.", alias="archivedProjects") - open_projects: Optional[List[ProjectDTO]] = Field(default=None, description="A list of objects representing the accessible open projects for the user.", alias="openProjects") - rejected_projects: Optional[List[ProjectDTO]] = Field(default=None, description="A list of objects representing the accessible rejected projects for the user.", alias="rejectedProjects") - __properties: ClassVar[List[str]] = ["approvalProjects", "archivedProjects", "openProjects", "rejectedProjects"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetProjectsAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in approval_projects (list) - _items = [] - if self.approval_projects: - for _item_approval_projects in self.approval_projects: - if _item_approval_projects: - _items.append(_item_approval_projects.to_dict()) - _dict['approvalProjects'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in archived_projects (list) - _items = [] - if self.archived_projects: - for _item_archived_projects in self.archived_projects: - if _item_archived_projects: - _items.append(_item_archived_projects.to_dict()) - _dict['archivedProjects'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in open_projects (list) - _items = [] - if self.open_projects: - for _item_open_projects in self.open_projects: - if _item_open_projects: - _items.append(_item_open_projects.to_dict()) - _dict['openProjects'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in rejected_projects (list) - _items = [] - if self.rejected_projects: - for _item_rejected_projects in self.rejected_projects: - if _item_rejected_projects: - _items.append(_item_rejected_projects.to_dict()) - _dict['rejectedProjects'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetProjectsAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "approvalProjects": [ProjectDTO.from_dict(_item) for _item in obj["approvalProjects"]] if obj.get("approvalProjects") is not None else None, - "archivedProjects": [ProjectDTO.from_dict(_item) for _item in obj["archivedProjects"]] if obj.get("archivedProjects") is not None else None, - "openProjects": [ProjectDTO.from_dict(_item) for _item in obj["openProjects"]] if obj.get("openProjects") is not None else None, - "rejectedProjects": [ProjectDTO.from_dict(_item) for _item in obj["rejectedProjects"]] if obj.get("rejectedProjects") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/google_protobuf_any.py b/src/visier_api_administration/visier_api_administration/models/google_protobuf_any.py deleted file mode 100644 index a0265de6b3..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/google_protobuf_any.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GoogleProtobufAny(BaseModel): - """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. - """ # noqa: E501 - type: Optional[StrictStr] = Field(default=None, description="The type of the serialized message.", alias="@type") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["@type"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GoogleProtobufAny from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - * Fields in `self.additional_properties` are added to the output dict. - """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GoogleProtobufAny from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "@type": obj.get("@type") - }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/hierarchy_property_dto.py b/src/visier_api_administration/visier_api_administration/models/hierarchy_property_dto.py deleted file mode 100644 index 03dbb5e865..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/hierarchy_property_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class HierarchyPropertyDTO(BaseModel): - """ - HierarchyPropertyDTO - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable property name to display in Visier, such as \"Name Property\".", alias="displayName") - hierarchy_property_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the property.", alias="hierarchyPropertyId") - __properties: ClassVar[List[str]] = ["displayName", "hierarchyPropertyId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of HierarchyPropertyDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of HierarchyPropertyDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "hierarchyPropertyId": obj.get("hierarchyPropertyId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/home_analysis_by_user_group_dto.py b/src/visier_api_administration/visier_api_administration/models/home_analysis_by_user_group_dto.py deleted file mode 100644 index fc6d10cc1c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/home_analysis_by_user_group_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class HomeAnalysisByUserGroupDTO(BaseModel): - """ - HomeAnalysisByUserGroupDTO - """ # noqa: E501 - home_analysis_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analysis to show for this user group when a user logs in.", alias="homeAnalysisId") - user_group_id: Optional[StrictStr] = Field(default=None, description="The user group ID.", alias="userGroupId") - __properties: ClassVar[List[str]] = ["homeAnalysisId", "userGroupId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of HomeAnalysisByUserGroupDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of HomeAnalysisByUserGroupDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "homeAnalysisId": obj.get("homeAnalysisId"), - "userGroupId": obj.get("userGroupId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/inherited_access_config_dto.py b/src/visier_api_administration/visier_api_administration/models/inherited_access_config_dto.py deleted file mode 100644 index 80776d2a3c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/inherited_access_config_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.member_filter_config_dto import MemberFilterConfigDTO -from typing import Optional, Set -from typing_extensions import Self - -class InheritedAccessConfigDTO(BaseModel): - """ - InheritedAccessConfigDTO - """ # noqa: E501 - analytic_object_id: Optional[StrictStr] = Field(default=None, description="The analytic object ID associated with the inherited access configuration.", alias="analyticObjectId") - member_filter_configs: Optional[List[MemberFilterConfigDTO]] = Field(default=None, description="Custom filters that define population access for an inherited analytic object in the permission.", alias="memberFilterConfigs") - remove_access: Optional[StrictBool] = Field(default=None, description="The flag for removing access to the inherited analytic object.", alias="removeAccess") - __properties: ClassVar[List[str]] = ["analyticObjectId", "memberFilterConfigs", "removeAccess"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of InheritedAccessConfigDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in member_filter_configs (list) - _items = [] - if self.member_filter_configs: - for _item_member_filter_configs in self.member_filter_configs: - if _item_member_filter_configs: - _items.append(_item_member_filter_configs.to_dict()) - _dict['memberFilterConfigs'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of InheritedAccessConfigDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObjectId": obj.get("analyticObjectId"), - "memberFilterConfigs": [MemberFilterConfigDTO.from_dict(_item) for _item in obj["memberFilterConfigs"]] if obj.get("memberFilterConfigs") is not None else None, - "removeAccess": obj.get("removeAccess") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/inherited_reference_member_filter_config_dto.py b/src/visier_api_administration/visier_api_administration/models/inherited_reference_member_filter_config_dto.py deleted file mode 100644 index 7474199f86..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/inherited_reference_member_filter_config_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class InheritedReferenceMemberFilterConfigDTO(BaseModel): - """ - InheritedReferenceMemberFilterConfigDTO - """ # noqa: E501 - analytic_object_reference: Optional[StrictStr] = Field(default=None, description="The optional object name of a binding (strong) reference to the target analytic object. If not specified, uses the first binding reference from the source to the target analytic object.", alias="analyticObjectReference") - target_analytic_object_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analytic object that the source analytic object should inherit filters from. The target analytic object must have a binding (strong) reference from the source analytic object.", alias="targetAnalyticObjectId") - __properties: ClassVar[List[str]] = ["analyticObjectReference", "targetAnalyticObjectId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of InheritedReferenceMemberFilterConfigDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of InheritedReferenceMemberFilterConfigDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObjectReference": obj.get("analyticObjectReference"), - "targetAnalyticObjectId": obj.get("targetAnalyticObjectId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/key_name.py b/src/visier_api_administration/visier_api_administration/models/key_name.py deleted file mode 100644 index 5df3ef53a1..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/key_name.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class KeyName(BaseModel): - """ - KeyName - """ # noqa: E501 - key_name: Optional[StrictStr] = Field(default=None, description="The encryption key's display name. The name may only contain alphanumeric or dash (-) characters and must be between 3 and 36 characters long.", alias="keyName") - __properties: ClassVar[List[str]] = ["keyName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of KeyName from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of KeyName from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "keyName": obj.get("keyName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/last_login_dto.py b/src/visier_api_administration/visier_api_administration/models/last_login_dto.py deleted file mode 100644 index 359451e08f..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/last_login_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class LastLoginDTO(BaseModel): - """ - LastLoginDTO - """ # noqa: E501 - timestamp: Optional[StrictStr] = Field(default=None, description="The time that the user last logged into Visier.") - __properties: ClassVar[List[str]] = ["timestamp"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of LastLoginDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of LastLoginDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "timestamp": obj.get("timestamp") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/local_tenant_profile_assignment_request_dto.py b/src/visier_api_administration/visier_api_administration/models/local_tenant_profile_assignment_request_dto.py deleted file mode 100644 index a86b5270ae..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/local_tenant_profile_assignment_request_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class LocalTenantProfileAssignmentRequestDTO(BaseModel): - """ - LocalTenantProfileAssignmentRequestDTO - """ # noqa: E501 - target_user_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of users to assign this profile.", alias="targetUserIds") - validity_end_time: Optional[StrictStr] = Field(default=None, description="An exclusive date-time when this profile is no longer active.", alias="validityEndTime") - validity_start_time: Optional[StrictStr] = Field(default=None, description="An inclusive date-time when this profile is active.", alias="validityStartTime") - __properties: ClassVar[List[str]] = ["targetUserIds", "validityEndTime", "validityStartTime"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of LocalTenantProfileAssignmentRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of LocalTenantProfileAssignmentRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "targetUserIds": obj.get("targetUserIds"), - "validityEndTime": obj.get("validityEndTime"), - "validityStartTime": obj.get("validityStartTime") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/local_tenant_profile_assignment_response_dto.py b/src/visier_api_administration/visier_api_administration/models/local_tenant_profile_assignment_response_dto.py deleted file mode 100644 index 7e69cc0622..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/local_tenant_profile_assignment_response_dto.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.failed_local_tenant_profile_assignment_dto import FailedLocalTenantProfileAssignmentDTO -from visier_api_administration.models.successful_local_tenant_profile_assignment_dto import SuccessfulLocalTenantProfileAssignmentDTO -from visier_api_administration.models.user_id_error_dto import UserIdErrorDTO -from typing import Optional, Set -from typing_extensions import Self - -class LocalTenantProfileAssignmentResponseDTO(BaseModel): - """ - LocalTenantProfileAssignmentResponseDTO - """ # noqa: E501 - bad_user_ids: Optional[List[UserIdErrorDTO]] = Field(default=None, description="A list of objects representing the user IDs that may not be valid.", alias="badUserIds") - errors: Optional[StrictBool] = Field(default=None, description="If true, an error was generated by the request.") - failed_assignments: Optional[List[FailedLocalTenantProfileAssignmentDTO]] = Field(default=None, description="A list of objects representing any errors that occurred during the assignment operation.", alias="failedAssignments") - successful_assignments: Optional[List[SuccessfulLocalTenantProfileAssignmentDTO]] = Field(default=None, description="A list of the user IDs that were successfully assigned the profile.", alias="successfulAssignments") - __properties: ClassVar[List[str]] = ["badUserIds", "errors", "failedAssignments", "successfulAssignments"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of LocalTenantProfileAssignmentResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in bad_user_ids (list) - _items = [] - if self.bad_user_ids: - for _item_bad_user_ids in self.bad_user_ids: - if _item_bad_user_ids: - _items.append(_item_bad_user_ids.to_dict()) - _dict['badUserIds'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in failed_assignments (list) - _items = [] - if self.failed_assignments: - for _item_failed_assignments in self.failed_assignments: - if _item_failed_assignments: - _items.append(_item_failed_assignments.to_dict()) - _dict['failedAssignments'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in successful_assignments (list) - _items = [] - if self.successful_assignments: - for _item_successful_assignments in self.successful_assignments: - if _item_successful_assignments: - _items.append(_item_successful_assignments.to_dict()) - _dict['successfulAssignments'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of LocalTenantProfileAssignmentResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "badUserIds": [UserIdErrorDTO.from_dict(_item) for _item in obj["badUserIds"]] if obj.get("badUserIds") is not None else None, - "errors": obj.get("errors"), - "failedAssignments": [FailedLocalTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["failedAssignments"]] if obj.get("failedAssignments") is not None else None, - "successfulAssignments": [SuccessfulLocalTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["successfulAssignments"]] if obj.get("successfulAssignments") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/local_tenant_profile_revoke_request_dto.py b/src/visier_api_administration/visier_api_administration/models/local_tenant_profile_revoke_request_dto.py deleted file mode 100644 index 9eb4c661cf..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/local_tenant_profile_revoke_request_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class LocalTenantProfileRevokeRequestDTO(BaseModel): - """ - LocalTenantProfileRevokeRequestDTO - """ # noqa: E501 - target_user_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of users to remove this profile from.", alias="targetUserIds") - __properties: ClassVar[List[str]] = ["targetUserIds"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of LocalTenantProfileRevokeRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of LocalTenantProfileRevokeRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "targetUserIds": obj.get("targetUserIds") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/local_tenant_profile_revoke_response_dto.py b/src/visier_api_administration/visier_api_administration/models/local_tenant_profile_revoke_response_dto.py deleted file mode 100644 index ca2d7b0c8d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/local_tenant_profile_revoke_response_dto.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.failed_local_tenant_profile_revoke_dto import FailedLocalTenantProfileRevokeDTO -from visier_api_administration.models.successful_local_tenant_profile_assignment_dto import SuccessfulLocalTenantProfileAssignmentDTO -from typing import Optional, Set -from typing_extensions import Self - -class LocalTenantProfileRevokeResponseDTO(BaseModel): - """ - LocalTenantProfileRevokeResponseDTO - """ # noqa: E501 - failed: Optional[List[FailedLocalTenantProfileRevokeDTO]] = Field(default=None, description="A list of objects representing any errors that occurred during the assignment operation.") - succeeded: Optional[List[SuccessfulLocalTenantProfileAssignmentDTO]] = Field(default=None, description="A list of the user IDs that successfully had a profile removed.") - __properties: ClassVar[List[str]] = ["failed", "succeeded"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of LocalTenantProfileRevokeResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in failed (list) - _items = [] - if self.failed: - for _item_failed in self.failed: - if _item_failed: - _items.append(_item_failed.to_dict()) - _dict['failed'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in succeeded (list) - _items = [] - if self.succeeded: - for _item_succeeded in self.succeeded: - if _item_succeeded: - _items.append(_item_succeeded.to_dict()) - _dict['succeeded'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of LocalTenantProfileRevokeResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "failed": [FailedLocalTenantProfileRevokeDTO.from_dict(_item) for _item in obj["failed"]] if obj.get("failed") is not None else None, - "succeeded": [SuccessfulLocalTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["succeeded"]] if obj.get("succeeded") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/mask_message.py b/src/visier_api_administration/visier_api_administration/models/mask_message.py deleted file mode 100644 index 5c03b6fff2..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/mask_message.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class MaskMessage(BaseModel): - """ - MaskMessage - """ # noqa: E501 - mask: Optional[StrictStr] = Field(default=None, description="A comma-separated list of strings that specifies which fields to include in the response.") - __properties: ClassVar[List[str]] = ["mask"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MaskMessage from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MaskMessage from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "mask": obj.get("mask") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/member_filter_config_dto.py b/src/visier_api_administration/visier_api_administration/models/member_filter_config_dto.py deleted file mode 100644 index 31b8091832..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/member_filter_config_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.dimension_filter_dto import DimensionFilterDTO -from typing import Optional, Set -from typing_extensions import Self - -class MemberFilterConfigDTO(BaseModel): - """ - MemberFilterConfigDTO - """ # noqa: E501 - dimension_filters: Optional[List[DimensionFilterDTO]] = Field(default=None, description="A list of objects representing the custom filters that define population access for the item. A custom filter can be a \"member filter\" (`staticDimensionFilter`) or a \"dynamic filter\" (`dynamicDimensionFilter`).", alias="dimensionFilters") - __properties: ClassVar[List[str]] = ["dimensionFilters"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MemberFilterConfigDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in dimension_filters (list) - _items = [] - if self.dimension_filters: - for _item_dimension_filters in self.dimension_filters: - if _item_dimension_filters: - _items.append(_item_dimension_filters.to_dict()) - _dict['dimensionFilters'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MemberFilterConfigDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimensionFilters": [DimensionFilterDTO.from_dict(_item) for _item in obj["dimensionFilters"]] if obj.get("dimensionFilters") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/member_selection_dto.py b/src/visier_api_administration/visier_api_administration/models/member_selection_dto.py deleted file mode 100644 index ddbb96ee34..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/member_selection_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class MemberSelectionDTO(BaseModel): - """ - MemberSelectionDTO - """ # noqa: E501 - dimension_member_status: Optional[StrictStr] = Field(default=None, description="The dimension member's validity status. Valid values: Valid, NotFound. * **Valid**: The object exists and has loaded data. * **NotFound**: The object doesn't exist.", alias="dimensionMemberStatus") - excluded: Optional[StrictBool] = Field(default=None, description="If `true`, population access is granted for all members except this member.") - name_path: Optional[List[StrictStr]] = Field(default=None, description="The member name path.", alias="namePath") - __properties: ClassVar[List[str]] = ["dimensionMemberStatus", "excluded", "namePath"] - - @field_validator('dimension_member_status') - def dimension_member_status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['Unset', 'Valid', 'NoData', 'NotFound']): - raise ValueError("must be one of enum values ('Unset', 'Valid', 'NoData', 'NotFound')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MemberSelectionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MemberSelectionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimensionMemberStatus": obj.get("dimensionMemberStatus"), - "excluded": obj.get("excluded"), - "namePath": obj.get("namePath") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/metric_validation_summary_dto.py b/src/visier_api_administration/visier_api_administration/models/metric_validation_summary_dto.py deleted file mode 100644 index f4594c8c43..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/metric_validation_summary_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class MetricValidationSummaryDTO(BaseModel): - """ - MetricValidationSummaryDTO - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name that is displayed within Visier. For example, \"Headcount\".", alias="displayName") - symbol_name: Optional[StrictStr] = Field(default=None, description="The symbol name of the metric. For example, \"employeeCount\".", alias="symbolName") - value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The current value of the metric expressed as an integer.") - __properties: ClassVar[List[str]] = ["displayName", "symbolName", "value"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MetricValidationSummaryDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MetricValidationSummaryDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "symbolName": obj.get("symbolName"), - "value": obj.get("value") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/module_settings_dto.py b/src/visier_api_administration/visier_api_administration/models/module_settings_dto.py deleted file mode 100644 index 3c564b9481..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/module_settings_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ModuleSettingsDTO(BaseModel): - """ - ModuleSettingsDTO - """ # noqa: E501 - locale: Optional[StrictStr] = Field(default=None, description="The language of the module. For example, a module that is in English will have the locale \"en\".") - special_handling_instruction: Optional[StrictStr] = Field(default=None, description="An instruction message in the module selection dialog. This can be a note for administrators such as \"Don't assign this module\" or \"Assign Module B instead\".", alias="specialHandlingInstruction") - unavailable_for_assignment: Optional[StrictBool] = Field(default=None, description="If true, the module cannot be assigned to tenants.", alias="unavailableForAssignment") - __properties: ClassVar[List[str]] = ["locale", "specialHandlingInstruction", "unavailableForAssignment"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ModuleSettingsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ModuleSettingsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "locale": obj.get("locale"), - "specialHandlingInstruction": obj.get("specialHandlingInstruction"), - "unavailableForAssignment": obj.get("unavailableForAssignment") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/permission_assigned_by_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/permission_assigned_by_tenant_dto.py deleted file mode 100644 index 9988d24bb3..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/permission_assigned_by_tenant_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.permission_assigned_user_dto import PermissionAssignedUserDTO -from typing import Optional, Set -from typing_extensions import Self - -class PermissionAssignedByTenantDTO(BaseModel): - """ - The users assigned a specific permission, grouped by tenant. - """ # noqa: E501 - tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") - users: Optional[List[PermissionAssignedUserDTO]] = Field(default=None, description="A list of objects representing the users that the permission is assigned to.") - __properties: ClassVar[List[str]] = ["tenantCode", "users"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionAssignedByTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in users (list) - _items = [] - if self.users: - for _item_users in self.users: - if _item_users: - _items.append(_item_users.to_dict()) - _dict['users'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionAssignedByTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tenantCode": obj.get("tenantCode"), - "users": [PermissionAssignedUserDTO.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/permission_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/permission_assigned_for_local_tenant_dto.py deleted file mode 100644 index 56be320613..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/permission_assigned_for_local_tenant_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PermissionAssignedForLocalTenantDTO(BaseModel): - """ - PermissionAssignedForLocalTenantDTO - """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="A user-defined description of the permission.") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable permission name to display in Visier, such as \"Diversity Access\".", alias="displayName") - permission_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the permission.", alias="permissionId") - __properties: ClassVar[List[str]] = ["description", "displayName", "permissionId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionAssignedForLocalTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionAssignedForLocalTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "permissionId": obj.get("permissionId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/permission_assigned_user_dto.py b/src/visier_api_administration/visier_api_administration/models/permission_assigned_user_dto.py deleted file mode 100644 index 885105330d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/permission_assigned_user_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PermissionAssignedUserDTO(BaseModel): - """ - The user and the method through which the user was assigned the permission. - """ # noqa: E501 - permission_from: Optional[StrictStr] = Field(default=None, description="The method through which the user was assigned the permission. The permission may be assigned through the following options: - User: The permission was directly assigned to the user. - UserGroup: The permission was assigned because the user belongs to a user group that is assigned the permission. - UserAndUserGroup: The permission was directly assigned to the user and assigned because the user belongs to a user group that is assigned the permission.", alias="permissionFrom") - user_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="userId") - username: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@visier.com.") - __properties: ClassVar[List[str]] = ["permissionFrom", "userId", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionAssignedUserDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionAssignedUserDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "permissionFrom": obj.get("permissionFrom"), - "userId": obj.get("userId"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/permission_assigned_users_dto.py b/src/visier_api_administration/visier_api_administration/models/permission_assigned_users_dto.py deleted file mode 100644 index c430603e9a..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/permission_assigned_users_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.permission_assigned_by_tenant_dto import PermissionAssignedByTenantDTO -from typing import Optional, Set -from typing_extensions import Self - -class PermissionAssignedUsersDTO(BaseModel): - """ - Users that are assigned a specific permission. - """ # noqa: E501 - limit: Optional[StrictInt] = Field(default=None, description="The number of results to return. The maximum number of tenants to retrieve is 100.") - start: Optional[StrictInt] = Field(default=None, description="The index of the tenant to start retrieving results from, also known as offset. The index begins at 0.") - tenants: Optional[List[PermissionAssignedByTenantDTO]] = Field(default=None, description="A list of objects representing the users that are assigned the specific permission, organized by the tenants the users belong to.") - __properties: ClassVar[List[str]] = ["limit", "start", "tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionAssignedUsersDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionAssignedUsersDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "limit": obj.get("limit"), - "start": obj.get("start"), - "tenants": [PermissionAssignedByTenantDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/permission_bulk_operation_response_dto.py b/src/visier_api_administration/visier_api_administration/models/permission_bulk_operation_response_dto.py deleted file mode 100644 index 88516eb73e..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/permission_bulk_operation_response_dto.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.permission_failure_dto import PermissionFailureDTO -from visier_api_administration.models.permission_success_dto import PermissionSuccessDTO -from typing import Optional, Set -from typing_extensions import Self - -class PermissionBulkOperationResponseDTO(BaseModel): - """ - PermissionBulkOperationResponseDTO - """ # noqa: E501 - failures: Optional[List[PermissionFailureDTO]] = Field(default=None, description="The permissions that did not process and any relevant error information.") - successes: Optional[List[PermissionSuccessDTO]] = Field(default=None, description="The successfully processed permissions.") - __properties: ClassVar[List[str]] = ["failures", "successes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionBulkOperationResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in failures (list) - _items = [] - if self.failures: - for _item_failures in self.failures: - if _item_failures: - _items.append(_item_failures.to_dict()) - _dict['failures'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in successes (list) - _items = [] - if self.successes: - for _item_successes in self.successes: - if _item_successes: - _items.append(_item_successes.to_dict()) - _dict['successes'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionBulkOperationResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "failures": [PermissionFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, - "successes": [PermissionSuccessDTO.from_dict(_item) for _item in obj["successes"]] if obj.get("successes") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/permission_dto.py b/src/visier_api_administration/visier_api_administration/models/permission_dto.py deleted file mode 100644 index 0d5b3b7656..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/permission_dto.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.admin_capability_config_dto import AdminCapabilityConfigDTO -from visier_api_administration.models.data_security_profile_dto import DataSecurityProfileDTO -from visier_api_administration.models.role_modules_config_dto import RoleModulesConfigDTO -from typing import Optional, Set -from typing_extensions import Self - -class PermissionDTO(BaseModel): - """ - PermissionDTO - """ # noqa: E501 - admin_capability_config: Optional[AdminCapabilityConfigDTO] = Field(default=None, description="The capabilities assigned in the permission.", alias="adminCapabilityConfig") - data_security_profiles: Optional[List[DataSecurityProfileDTO]] = Field(default=None, description="A list of objects representing the data security for each item in a permission.", alias="dataSecurityProfiles") - description: Optional[StrictStr] = Field(default=None, description="A user-defined description of the permission.") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable permission name to display in Visier, such as \"Diversity Access\".", alias="displayName") - permission_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the permission.", alias="permissionId") - role_modules_config: Optional[RoleModulesConfigDTO] = Field(default=None, description="A list of content packages assigned to the permission.", alias="roleModulesConfig") - __properties: ClassVar[List[str]] = ["adminCapabilityConfig", "dataSecurityProfiles", "description", "displayName", "permissionId", "roleModulesConfig"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of admin_capability_config - if self.admin_capability_config: - _dict['adminCapabilityConfig'] = self.admin_capability_config.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in data_security_profiles (list) - _items = [] - if self.data_security_profiles: - for _item_data_security_profiles in self.data_security_profiles: - if _item_data_security_profiles: - _items.append(_item_data_security_profiles.to_dict()) - _dict['dataSecurityProfiles'] = _items - # override the default output from pydantic by calling `to_dict()` of role_modules_config - if self.role_modules_config: - _dict['roleModulesConfig'] = self.role_modules_config.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "adminCapabilityConfig": AdminCapabilityConfigDTO.from_dict(obj["adminCapabilityConfig"]) if obj.get("adminCapabilityConfig") is not None else None, - "dataSecurityProfiles": [DataSecurityProfileDTO.from_dict(_item) for _item in obj["dataSecurityProfiles"]] if obj.get("dataSecurityProfiles") is not None else None, - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "permissionId": obj.get("permissionId"), - "roleModulesConfig": RoleModulesConfigDTO.from_dict(obj["roleModulesConfig"]) if obj.get("roleModulesConfig") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/permission_error_dto.py b/src/visier_api_administration/visier_api_administration/models/permission_error_dto.py deleted file mode 100644 index 137c783689..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/permission_error_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PermissionErrorDTO(BaseModel): - """ - PermissionErrorDTO - """ # noqa: E501 - message: Optional[StrictStr] = Field(default=None, description="Error message") - rci: Optional[StrictStr] = Field(default=None, description="A root cause identifier that allows Visier to determine the source of the problem.") - __properties: ClassVar[List[str]] = ["message", "rci"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionErrorDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionErrorDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "message": obj.get("message"), - "rci": obj.get("rci") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/permission_failure_dto.py b/src/visier_api_administration/visier_api_administration/models/permission_failure_dto.py deleted file mode 100644 index 1ecc55b118..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/permission_failure_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.permission_error_dto import PermissionErrorDTO -from typing import Optional, Set -from typing_extensions import Self - -class PermissionFailureDTO(BaseModel): - """ - PermissionFailureDTO - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable permission name to display in Visier, such as \"Diversity Access\".", alias="displayName") - error: Optional[PermissionErrorDTO] = Field(default=None, description="The error associated with the failure.") - permission_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the permission.", alias="permissionId") - __properties: ClassVar[List[str]] = ["displayName", "error", "permissionId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionFailureDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionFailureDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "error": PermissionErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, - "permissionId": obj.get("permissionId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/permission_response_dto.py b/src/visier_api_administration/visier_api_administration/models/permission_response_dto.py deleted file mode 100644 index fc8a2277ab..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/permission_response_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PermissionResponseDTO(BaseModel): - """ - PermissionResponseDTO - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable permission name to display in Visier, such as \"Diversity Access\".", alias="displayName") - permission_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the permission.", alias="permissionId") - __properties: ClassVar[List[str]] = ["displayName", "permissionId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "permissionId": obj.get("permissionId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/permission_success_dto.py b/src/visier_api_administration/visier_api_administration/models/permission_success_dto.py deleted file mode 100644 index 2c8542054e..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/permission_success_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PermissionSuccessDTO(BaseModel): - """ - PermissionSuccessDTO - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable permission name to display in Visier, such as \"Diversity Access\".", alias="displayName") - permission_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the permission.", alias="permissionId") - __properties: ClassVar[List[str]] = ["displayName", "permissionId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionSuccessDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionSuccessDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "permissionId": obj.get("permissionId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/permissions_list_dto.py b/src/visier_api_administration/visier_api_administration/models/permissions_list_dto.py deleted file mode 100644 index cd7c7ea172..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/permissions_list_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.permission_dto import PermissionDTO -from typing import Optional, Set -from typing_extensions import Self - -class PermissionsListDTO(BaseModel): - """ - PermissionsListDTO - """ # noqa: E501 - permissions: Optional[List[PermissionDTO]] = Field(default=None, description="The list of permissions that will be created or updated") - __properties: ClassVar[List[str]] = ["permissions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionsListDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in permissions (list) - _items = [] - if self.permissions: - for _item_permissions in self.permissions: - if _item_permissions: - _items.append(_item_permissions.to_dict()) - _dict['permissions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionsListDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "permissions": [PermissionDTO.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/permissions_to_user_group_for_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/permissions_to_user_group_for_tenant_dto.py deleted file mode 100644 index c0919c58e0..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/permissions_to_user_group_for_tenant_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.user_group_get_api_response_dto import UserGroupGetAPIResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class PermissionsToUserGroupForTenantDTO(BaseModel): - """ - PermissionsToUserGroupForTenantDTO - """ # noqa: E501 - message: Optional[StrictStr] = Field(default=None, description="A detailed description of the request outcome, if available.") - status: Optional[StrictStr] = Field(default=None, description="The state of the permission assignment or removal. Valid values are Succeed or Failed.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") - user_groups: Optional[List[UserGroupGetAPIResponseDTO]] = Field(default=None, description="A list of objects representing user groups and the permissions to assign to or remove from them.", alias="userGroups") - __properties: ClassVar[List[str]] = ["message", "status", "tenantCode", "userGroups"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionsToUserGroupForTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in user_groups (list) - _items = [] - if self.user_groups: - for _item_user_groups in self.user_groups: - if _item_user_groups: - _items.append(_item_user_groups.to_dict()) - _dict['userGroups'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionsToUserGroupForTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "message": obj.get("message"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode"), - "userGroups": [UserGroupGetAPIResponseDTO.from_dict(_item) for _item in obj["userGroups"]] if obj.get("userGroups") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/permissions_to_user_group_request_dto.py b/src/visier_api_administration/visier_api_administration/models/permissions_to_user_group_request_dto.py deleted file mode 100644 index 00e9c0712d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/permissions_to_user_group_request_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PermissionsToUserGroupRequestDTO(BaseModel): - """ - PermissionsToUserGroupRequestDTO - """ # noqa: E501 - permissions_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing the unique permission IDs to assign.", alias="permissionsIds") - user_group_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user group.", alias="userGroupId") - __properties: ClassVar[List[str]] = ["permissionsIds", "userGroupId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionsToUserGroupRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionsToUserGroupRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "permissionsIds": obj.get("permissionsIds"), - "userGroupId": obj.get("userGroupId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/permissions_to_user_groups_request_dto.py b/src/visier_api_administration/visier_api_administration/models/permissions_to_user_groups_request_dto.py deleted file mode 100644 index 36b2a3b1ea..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/permissions_to_user_groups_request_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.permissions_to_user_group_request_dto import PermissionsToUserGroupRequestDTO -from typing import Optional, Set -from typing_extensions import Self - -class PermissionsToUserGroupsRequestDTO(BaseModel): - """ - PermissionsToUserGroupsRequestDTO - """ # noqa: E501 - user_groups: Optional[List[PermissionsToUserGroupRequestDTO]] = Field(default=None, description="A list of objects representing the user groups and permissions to assign or remove.", alias="userGroups") - __properties: ClassVar[List[str]] = ["userGroups"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionsToUserGroupsRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in user_groups (list) - _items = [] - if self.user_groups: - for _item_user_groups in self.user_groups: - if _item_user_groups: - _items.append(_item_user_groups.to_dict()) - _dict['userGroups'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionsToUserGroupsRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "userGroups": [PermissionsToUserGroupRequestDTO.from_dict(_item) for _item in obj["userGroups"]] if obj.get("userGroups") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/production_version_api_operation_request_dto.py b/src/visier_api_administration/visier_api_administration/models/production_version_api_operation_request_dto.py deleted file mode 100644 index 711d227d17..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/production_version_api_operation_request_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ProductionVersionAPIOperationRequestDTO(BaseModel): - """ - ProductionVersionAPIOperationRequestDTO - """ # noqa: E501 - operation: Optional[StrictStr] = Field(default=None, description="The operation to perform. Valid values: * `rollBackTo`: Create a project that rolls back the production version to the specified version. The project contains uncommitted changes that reverse the published versions after the target production version.") - __properties: ClassVar[List[str]] = ["operation"] - - @field_validator('operation') - def operation_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['unknownProductionVersionAPIOperation', 'rollBackTo']): - raise ValueError("must be one of enum values ('unknownProductionVersionAPIOperation', 'rollBackTo')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProductionVersionAPIOperationRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProductionVersionAPIOperationRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "operation": obj.get("operation") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/production_version_api_operation_response_dto.py b/src/visier_api_administration/visier_api_administration/models/production_version_api_operation_response_dto.py deleted file mode 100644 index ba0b099067..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/production_version_api_operation_response_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.project_dto import ProjectDTO -from typing import Optional, Set -from typing_extensions import Self - -class ProductionVersionAPIOperationResponseDTO(BaseModel): - """ - ProductionVersionAPIOperationResponseDTO - """ # noqa: E501 - roll_back_to: Optional[ProjectDTO] = Field(default=None, description="The project created by the `rollBackTo` operation.", alias="rollBackTo") - __properties: ClassVar[List[str]] = ["rollBackTo"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProductionVersionAPIOperationResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of roll_back_to - if self.roll_back_to: - _dict['rollBackTo'] = self.roll_back_to.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProductionVersionAPIOperationResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "rollBackTo": ProjectDTO.from_dict(obj["rollBackTo"]) if obj.get("rollBackTo") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/production_versions_api_operation_request_dto.py b/src/visier_api_administration/visier_api_administration/models/production_versions_api_operation_request_dto.py deleted file mode 100644 index 2c029b7aa2..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/production_versions_api_operation_request_dto.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.export_production_versions_api_operation_parameters_dto import ExportProductionVersionsAPIOperationParametersDTO -from typing import Optional, Set -from typing_extensions import Self - -class ProductionVersionsAPIOperationRequestDTO(BaseModel): - """ - ProductionVersionsAPIOperationRequestDTO - """ # noqa: E501 - export_parameters: Optional[ExportProductionVersionsAPIOperationParametersDTO] = Field(default=None, description="The parameters for the `export` option, such as the production version to start exporting versions from. Required for `export` operations.", alias="exportParameters") - operation: Optional[StrictStr] = Field(default=None, description="The operation to perform. Valid values: * `export`: Export the project changes of the requested production versions and their related files, such as any Guidebook images. If successful, a ZIP file is returned containing any relevant image files and a JSON file with the production project changes.") - __properties: ClassVar[List[str]] = ["exportParameters", "operation"] - - @field_validator('operation') - def operation_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['unknownProductionVersionsAPIOperation', 'export']): - raise ValueError("must be one of enum values ('unknownProductionVersionsAPIOperation', 'export')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProductionVersionsAPIOperationRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of export_parameters - if self.export_parameters: - _dict['exportParameters'] = self.export_parameters.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProductionVersionsAPIOperationRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "exportParameters": ExportProductionVersionsAPIOperationParametersDTO.from_dict(obj["exportParameters"]) if obj.get("exportParameters") is not None else None, - "operation": obj.get("operation") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/production_versions_api_operation_response_dto.py b/src/visier_api_administration/visier_api_administration/models/production_versions_api_operation_response_dto.py deleted file mode 100644 index 09fbf81381..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/production_versions_api_operation_response_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ProductionVersionsAPIOperationResponseDTO(BaseModel): - """ - ProductionVersionsAPIOperationResponseDTO - """ # noqa: E501 - export: Optional[Dict[str, Any]] = Field(default=None, description="The result of the `export` operation.") - __properties: ClassVar[List[str]] = ["export"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProductionVersionsAPIOperationResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProductionVersionsAPIOperationResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "export": obj.get("export") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/profile_assigned_for_accessible_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/profile_assigned_for_accessible_tenant_dto.py deleted file mode 100644 index 26d13331bc..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/profile_assigned_for_accessible_tenant_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ProfileAssignedForAccessibleTenantDTO(BaseModel): - """ - ProfileAssignedForAccessibleTenantDTO - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable profile name to display in Visier such as \"Partner Service Manager\".", alias="displayName") - for_all_children: Optional[StrictBool] = Field(default=None, description="If true, the profile is assigned for all the analytic tenants of the administrating tenant.", alias="forAllChildren") - profile_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the profile.", alias="profileId") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant on which this profile is assigned.", alias="tenantCode") - validity_end_time: Optional[StrictStr] = Field(default=None, description="An exclusive date-time when this profile is no longer active. Note: Long.Max_Value means that endTime is undefined and is equivalent to permanent access.", alias="validityEndTime") - validity_start_time: Optional[StrictStr] = Field(default=None, description="An inclusive date-time when this profile is active. Note: Long.Min_Value means that startTime is undefined.", alias="validityStartTime") - __properties: ClassVar[List[str]] = ["displayName", "forAllChildren", "profileId", "tenantCode", "validityEndTime", "validityStartTime"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProfileAssignedForAccessibleTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProfileAssignedForAccessibleTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "forAllChildren": obj.get("forAllChildren"), - "profileId": obj.get("profileId"), - "tenantCode": obj.get("tenantCode"), - "validityEndTime": obj.get("validityEndTime"), - "validityStartTime": obj.get("validityStartTime") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/profile_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/profile_assigned_for_local_tenant_dto.py deleted file mode 100644 index 6335df5f1d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/profile_assigned_for_local_tenant_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.additional_capabilities_dto import AdditionalCapabilitiesDTO -from visier_api_administration.models.capabilities_dto import CapabilitiesDTO -from typing import Optional, Set -from typing_extensions import Self - -class ProfileAssignedForLocalTenantDTO(BaseModel): - """ - ProfileAssignedForLocalTenantDTO - """ # noqa: E501 - additional_capabilities: Optional[AdditionalCapabilitiesDTO] = Field(default=None, description="A list of the additional capabilities that are assigned to this profile.", alias="additionalCapabilities") - capabilities: Optional[List[CapabilitiesDTO]] = Field(default=None, description="A list of objects representing the access that this profile has for the capabilities of this profile.") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable profile name to display in Visier, such as \"Partner Service Manager\".", alias="displayName") - profile_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the profile.", alias="profileId") - validity_end_time: Optional[StrictStr] = Field(default=None, description="An exclusive date-time when this profile is no longer active.", alias="validityEndTime") - validity_start_time: Optional[StrictStr] = Field(default=None, description="An inclusive date-time when this profile is active.", alias="validityStartTime") - __properties: ClassVar[List[str]] = ["additionalCapabilities", "capabilities", "displayName", "profileId", "validityEndTime", "validityStartTime"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProfileAssignedForLocalTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of additional_capabilities - if self.additional_capabilities: - _dict['additionalCapabilities'] = self.additional_capabilities.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in capabilities (list) - _items = [] - if self.capabilities: - for _item_capabilities in self.capabilities: - if _item_capabilities: - _items.append(_item_capabilities.to_dict()) - _dict['capabilities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProfileAssignedForLocalTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "additionalCapabilities": AdditionalCapabilitiesDTO.from_dict(obj["additionalCapabilities"]) if obj.get("additionalCapabilities") is not None else None, - "capabilities": [CapabilitiesDTO.from_dict(_item) for _item in obj["capabilities"]] if obj.get("capabilities") is not None else None, - "displayName": obj.get("displayName"), - "profileId": obj.get("profileId"), - "validityEndTime": obj.get("validityEndTime"), - "validityStartTime": obj.get("validityStartTime") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/profile_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/profile_get_api_response_dto.py deleted file mode 100644 index f932a39758..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/profile_get_api_response_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.capabilities_dto import CapabilitiesDTO -from typing import Optional, Set -from typing_extensions import Self - -class ProfileGetAPIResponseDTO(BaseModel): - """ - ProfileGetAPIResponseDTO - """ # noqa: E501 - additional_capabilities: Optional[List[StrictStr]] = Field(default=None, description="A list of the additional capabilities that are assigned to this profile.", alias="additionalCapabilities") - capabilities: Optional[List[CapabilitiesDTO]] = Field(default=None, description="A list of objects representing the access that this profile has for the capabilities of this profile.") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable profile name to display in Visier. For example, \"Partner Service Manager\".", alias="displayName") - profile_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the profile.", alias="profileId") - __properties: ClassVar[List[str]] = ["additionalCapabilities", "capabilities", "displayName", "profileId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProfileGetAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in capabilities (list) - _items = [] - if self.capabilities: - for _item_capabilities in self.capabilities: - if _item_capabilities: - _items.append(_item_capabilities.to_dict()) - _dict['capabilities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProfileGetAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "additionalCapabilities": obj.get("additionalCapabilities"), - "capabilities": [CapabilitiesDTO.from_dict(_item) for _item in obj["capabilities"]] if obj.get("capabilities") is not None else None, - "displayName": obj.get("displayName"), - "profileId": obj.get("profileId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/profiles_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/profiles_get_api_response_dto.py deleted file mode 100644 index 1dec6883ef..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/profiles_get_api_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.profile_get_api_response_dto import ProfileGetAPIResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class ProfilesGetAPIResponseDTO(BaseModel): - """ - ProfilesGetAPIResponseDTO - """ # noqa: E501 - profiles: Optional[List[ProfileGetAPIResponseDTO]] = Field(default=None, description="A list of objects representing the available profiles.") - __properties: ClassVar[List[str]] = ["profiles"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProfilesGetAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in profiles (list) - _items = [] - if self.profiles: - for _item_profiles in self.profiles: - if _item_profiles: - _items.append(_item_profiles.to_dict()) - _dict['profiles'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProfilesGetAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "profiles": [ProfileGetAPIResponseDTO.from_dict(_item) for _item in obj["profiles"]] if obj.get("profiles") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/project_commits_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/project_commits_api_response_dto.py deleted file mode 100644 index 66216d255a..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/project_commits_api_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.commit_dto import CommitDTO -from typing import Optional, Set -from typing_extensions import Self - -class ProjectCommitsAPIResponseDTO(BaseModel): - """ - ProjectCommitsAPIResponseDTO - """ # noqa: E501 - commits: Optional[List[CommitDTO]] = Field(default=None, description="A list of committed changes in the project.") - __properties: ClassVar[List[str]] = ["commits"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProjectCommitsAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in commits (list) - _items = [] - if self.commits: - for _item_commits in self.commits: - if _item_commits: - _items.append(_item_commits.to_dict()) - _dict['commits'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProjectCommitsAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "commits": [CommitDTO.from_dict(_item) for _item in obj["commits"]] if obj.get("commits") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/project_dto.py b/src/visier_api_administration/visier_api_administration/models/project_dto.py deleted file mode 100644 index 55bf8c8ec1..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/project_dto.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ProjectDTO(BaseModel): - """ - ProjectDTO - """ # noqa: E501 - capabilities: Optional[List[StrictStr]] = Field(default=None, description="The current user's capabilities for the project. Users with `canWrite`, `canShare`, or `owner` capabilities can add and commit changes to the project. **canRead**: The project has been shared to the user with `View` access. **canWrite**: The project has been shared to the user with `Edit` access. **canShare**: The project has been shared to the user with `Share` access. **owner**: The user is the owner of the project. Omit when creating a new project.") - description: Optional[StrictStr] = Field(default=None, description="A description of the project.") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the project. Omit when creating a new project.") - name: Optional[StrictStr] = Field(default=None, description="An identifiable project name to display in Visier.") - release_version: Optional[StrictStr] = Field(default=None, description="The release version of the project.", alias="releaseVersion") - ticket_number: Optional[StrictStr] = Field(default=None, description="The change management ticket number of the project.", alias="ticketNumber") - version_number: Optional[StrictInt] = Field(default=None, description="The version number of the project.", alias="versionNumber") - __properties: ClassVar[List[str]] = ["capabilities", "description", "id", "name", "releaseVersion", "ticketNumber", "versionNumber"] - - @field_validator('capabilities') - def capabilities_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - for i in value: - if i not in set(['canRead', 'canWrite', 'canShare', 'owner']): - raise ValueError("each list item must be one of ('canRead', 'canWrite', 'canShare', 'owner')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProjectDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProjectDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "capabilities": obj.get("capabilities"), - "description": obj.get("description"), - "id": obj.get("id"), - "name": obj.get("name"), - "releaseVersion": obj.get("releaseVersion"), - "ticketNumber": obj.get("ticketNumber"), - "versionNumber": obj.get("versionNumber") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/project_operation_request_dto.py b/src/visier_api_administration/visier_api_administration/models/project_operation_request_dto.py deleted file mode 100644 index f981e41418..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/project_operation_request_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ProjectOperationRequestDTO(BaseModel): - """ - ProjectOperationRequestDTO - """ # noqa: E501 - operation: Optional[StrictStr] = Field(default=None, description="The operation to perform on a draft project. Valid values: * `commitAndPublish`: Commits the requesting user's changes and publishes the draft project to production.") - __properties: ClassVar[List[str]] = ["operation"] - - @field_validator('operation') - def operation_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['unknown', 'commitAndPublish']): - raise ValueError("must be one of enum values ('unknown', 'commitAndPublish')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProjectOperationRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProjectOperationRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "operation": obj.get("operation") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/project_operation_response_dto.py b/src/visier_api_administration/visier_api_administration/models/project_operation_response_dto.py deleted file mode 100644 index 91ab3bc5d5..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/project_operation_response_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.commit_and_publish_operation_response_dto import CommitAndPublishOperationResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class ProjectOperationResponseDTO(BaseModel): - """ - ProjectOperationResponseDTO - """ # noqa: E501 - commit_and_publish: Optional[CommitAndPublishOperationResponseDTO] = Field(default=None, description="The result of the `commitAndPublish` operation.", alias="commitAndPublish") - __properties: ClassVar[List[str]] = ["commitAndPublish"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProjectOperationResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of commit_and_publish - if self.commit_and_publish: - _dict['commitAndPublish'] = self.commit_and_publish.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProjectOperationResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "commitAndPublish": CommitAndPublishOperationResponseDTO.from_dict(obj["commitAndPublish"]) if obj.get("commitAndPublish") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/property_access_config_dto.py b/src/visier_api_administration/visier_api_administration/models/property_access_config_dto.py deleted file mode 100644 index f715cabd86..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/property_access_config_dto.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PropertyAccessConfigDTO(BaseModel): - """ - PropertyAccessConfigDTO - """ # noqa: E501 - access_level: Optional[StrictStr] = Field(default=None, description="The access level of the property. Valid values are: `Aggregate`, `Detailed`. * **Aggregate**: The property can only be accessed as part of an aggregate. * **Detailed**: The property can be accessed at a detailed level.", alias="accessLevel") - analytic_object_id: Optional[StrictStr] = Field(default=None, description="The analytic object ID of the property.", alias="analyticObjectId") - analytic_object_reference_paths: Optional[List[StrictStr]] = Field(default=None, description="The path to the analytic object reference. Empty if the configuration is not a reference.", alias="analyticObjectReferencePaths") - property_id: Optional[StrictStr] = Field(default=None, description="The property ID associated with the property access configuration.", alias="propertyId") - property_status: Optional[StrictStr] = Field(default=None, description="The property's validity status. Valid values: `Valid`, `NoData`, `NotFound`. * **Valid**: The object exists and has loaded data. * **NoData**: The object exists but doesn't have loaded data. * **NotFound**: The object doesn't exist.", alias="propertyStatus") - __properties: ClassVar[List[str]] = ["accessLevel", "analyticObjectId", "analyticObjectReferencePaths", "propertyId", "propertyStatus"] - - @field_validator('access_level') - def access_level_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['None', 'Aggregate', 'Detailed']): - raise ValueError("must be one of enum values ('None', 'Aggregate', 'Detailed')") - return value - - @field_validator('property_status') - def property_status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['Unset', 'Valid', 'NoData', 'NotFound']): - raise ValueError("must be one of enum values ('Unset', 'Valid', 'NoData', 'NotFound')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertyAccessConfigDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertyAccessConfigDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "accessLevel": obj.get("accessLevel"), - "analyticObjectId": obj.get("analyticObjectId"), - "analyticObjectReferencePaths": obj.get("analyticObjectReferencePaths"), - "propertyId": obj.get("propertyId"), - "propertyStatus": obj.get("propertyStatus") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/property_set_config_dto.py b/src/visier_api_administration/visier_api_administration/models/property_set_config_dto.py deleted file mode 100644 index 7cb1f7b011..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/property_set_config_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.property_access_config_dto import PropertyAccessConfigDTO -from visier_api_administration.models.shareable_data_access_set import ShareableDataAccessSet -from typing import Optional, Set -from typing_extensions import Self - -class PropertySetConfigDTO(BaseModel): - """ - PropertySetConfigDTO - """ # noqa: E501 - property_access_configs: Optional[List[PropertyAccessConfigDTO]] = Field(default=None, description="The data access for a property.", alias="propertyAccessConfigs") - shareable_data_access_set: Optional[ShareableDataAccessSet] = Field(default=None, description="A shareable data access set. Shareable data access sets may be linked in multiple permissions.", alias="shareableDataAccessSet") - __properties: ClassVar[List[str]] = ["propertyAccessConfigs", "shareableDataAccessSet"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertySetConfigDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in property_access_configs (list) - _items = [] - if self.property_access_configs: - for _item_property_access_configs in self.property_access_configs: - if _item_property_access_configs: - _items.append(_item_property_access_configs.to_dict()) - _dict['propertyAccessConfigs'] = _items - # override the default output from pydantic by calling `to_dict()` of shareable_data_access_set - if self.shareable_data_access_set: - _dict['shareableDataAccessSet'] = self.shareable_data_access_set.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertySetConfigDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "propertyAccessConfigs": [PropertyAccessConfigDTO.from_dict(_item) for _item in obj["propertyAccessConfigs"]] if obj.get("propertyAccessConfigs") is not None else None, - "shareableDataAccessSet": ShareableDataAccessSet.from_dict(obj["shareableDataAccessSet"]) if obj.get("shareableDataAccessSet") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/put_project_commits_request.py b/src/visier_api_administration/visier_api_administration/models/put_project_commits_request.py deleted file mode 100644 index 1f5d051e1a..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/put_project_commits_request.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PutProjectCommitsRequest(BaseModel): - """ - PutProjectCommitsRequest - """ # noqa: E501 - project_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the draft project you want to import committed changes into.", alias="projectId") - __properties: ClassVar[List[str]] = ["projectId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PutProjectCommitsRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PutProjectCommitsRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "projectId": obj.get("projectId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/reduced_error_dto.py b/src/visier_api_administration/visier_api_administration/models/reduced_error_dto.py deleted file mode 100644 index 943d5adf9a..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/reduced_error_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ReducedErrorDTO(BaseModel): - """ - ReducedErrorDTO - """ # noqa: E501 - error_message: Optional[StrictStr] = Field(default=None, description="A meaningful message for the end user.", alias="errorMessage") - __properties: ClassVar[List[str]] = ["errorMessage"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ReducedErrorDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ReducedErrorDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "errorMessage": obj.get("errorMessage") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/reduced_tenant_code_error_dto.py b/src/visier_api_administration/visier_api_administration/models/reduced_tenant_code_error_dto.py deleted file mode 100644 index d1a58eafa6..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/reduced_tenant_code_error_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.reduced_error_dto import ReducedErrorDTO -from typing import Optional, Set -from typing_extensions import Self - -class ReducedTenantCodeErrorDTO(BaseModel): - """ - ReducedTenantCodeErrorDTO - """ # noqa: E501 - error: Optional[ReducedErrorDTO] = Field(default=None, description="The details about the error.") - for_all_children: Optional[StrictBool] = Field(default=None, description="If true, the assignment is for all the analytic tenants of the specified tenant.", alias="forAllChildren") - tenant_code: Optional[StrictStr] = Field(default=None, description="The bad tenant code.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["error", "forAllChildren", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ReducedTenantCodeErrorDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ReducedTenantCodeErrorDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "error": ReducedErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, - "forAllChildren": obj.get("forAllChildren"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/reduced_user_id_error_dto.py b/src/visier_api_administration/visier_api_administration/models/reduced_user_id_error_dto.py deleted file mode 100644 index 68c5cc1a1b..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/reduced_user_id_error_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.reduced_error_dto import ReducedErrorDTO -from typing import Optional, Set -from typing_extensions import Self - -class ReducedUserIdErrorDTO(BaseModel): - """ - ReducedUserIdErrorDTO - """ # noqa: E501 - error: Optional[ReducedErrorDTO] = Field(default=None, description="The details about the error.") - user_id: Optional[StrictStr] = Field(default=None, description="The bad user ID.", alias="userId") - __properties: ClassVar[List[str]] = ["error", "userId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ReducedUserIdErrorDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ReducedUserIdErrorDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "error": ReducedErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, - "userId": obj.get("userId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/related_analytic_object_dto.py b/src/visier_api_administration/visier_api_administration/models/related_analytic_object_dto.py deleted file mode 100644 index 78a7476827..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/related_analytic_object_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class RelatedAnalyticObjectDTO(BaseModel): - """ - RelatedAnalyticObjectDTO - """ # noqa: E501 - analytic_object_id: Optional[StrictStr] = Field(default=None, description="The analytic object ID.", alias="analyticObjectId") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable analytic object name to display in Visier, such as \"Recognition\".", alias="displayName") - __properties: ClassVar[List[str]] = ["analyticObjectId", "displayName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RelatedAnalyticObjectDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RelatedAnalyticObjectDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObjectId": obj.get("analyticObjectId"), - "displayName": obj.get("displayName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/role_modules_config_dto.py b/src/visier_api_administration/visier_api_administration/models/role_modules_config_dto.py deleted file mode 100644 index 1c88c94b98..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/role_modules_config_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class RoleModulesConfigDTO(BaseModel): - """ - RoleModulesConfigDTO - """ # noqa: E501 - content_package_ids: Optional[List[StrictStr]] = Field(default=None, description="The unique IDs of the content packages assigned to the permission.", alias="contentPackageIds") - __properties: ClassVar[List[str]] = ["contentPackageIds"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RoleModulesConfigDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RoleModulesConfigDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "contentPackageIds": obj.get("contentPackageIds") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/securable_dimension_dto.py b/src/visier_api_administration/visier_api_administration/models/securable_dimension_dto.py deleted file mode 100644 index 21959a47f4..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/securable_dimension_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.hierarchy_property_dto import HierarchyPropertyDTO -from typing import Optional, Set -from typing_extensions import Self - -class SecurableDimensionDTO(BaseModel): - """ - SecurableDimensionDTO - """ # noqa: E501 - analytic_object_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of analytic object IDs.", alias="analyticObjectIds") - dimension_id: Optional[StrictStr] = Field(default=None, description="The dimension ID.", alias="dimensionId") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable dimension name to display in Visier, such as \"Contract Type\".", alias="displayName") - hierarchy_properties: Optional[List[HierarchyPropertyDTO]] = Field(default=None, description="The list of hierarchies you can map to a user in a permission's dynamic filter.", alias="hierarchyProperties") - __properties: ClassVar[List[str]] = ["analyticObjectIds", "dimensionId", "displayName", "hierarchyProperties"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SecurableDimensionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in hierarchy_properties (list) - _items = [] - if self.hierarchy_properties: - for _item_hierarchy_properties in self.hierarchy_properties: - if _item_hierarchy_properties: - _items.append(_item_hierarchy_properties.to_dict()) - _dict['hierarchyProperties'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SecurableDimensionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObjectIds": obj.get("analyticObjectIds"), - "dimensionId": obj.get("dimensionId"), - "displayName": obj.get("displayName"), - "hierarchyProperties": [HierarchyPropertyDTO.from_dict(_item) for _item in obj["hierarchyProperties"]] if obj.get("hierarchyProperties") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/securable_property_dto.py b/src/visier_api_administration/visier_api_administration/models/securable_property_dto.py deleted file mode 100644 index 4bc135520a..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/securable_property_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SecurablePropertyDTO(BaseModel): - """ - SecurablePropertyDTO - """ # noqa: E501 - analytic_object_id: Optional[StrictStr] = Field(default=None, description="The property's analytic object ID.", alias="analyticObjectId") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable property name to display in Visier, such as \"Job Pay Level\".", alias="displayName") - is_primary_key: Optional[StrictBool] = Field(default=None, description="If true, this property is the analytic object's primary key.", alias="isPrimaryKey") - property_id: Optional[StrictStr] = Field(default=None, description="The property ID.", alias="propertyId") - reference_symbol_name: Optional[StrictStr] = Field(default=None, description="The reference symbol name.", alias="referenceSymbolName") - __properties: ClassVar[List[str]] = ["analyticObjectId", "displayName", "isPrimaryKey", "propertyId", "referenceSymbolName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SecurablePropertyDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SecurablePropertyDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObjectId": obj.get("analyticObjectId"), - "displayName": obj.get("displayName"), - "isPrimaryKey": obj.get("isPrimaryKey"), - "propertyId": obj.get("propertyId"), - "referenceSymbolName": obj.get("referenceSymbolName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/security_assignment_response_dto.py b/src/visier_api_administration/visier_api_administration/models/security_assignment_response_dto.py deleted file mode 100644 index 8232a51e57..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/security_assignment_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.tenant_assignments_dto import TenantAssignmentsDTO -from typing import Optional, Set -from typing_extensions import Self - -class SecurityAssignmentResponseDTO(BaseModel): - """ - SecurityAssignmentResponseDTO - """ # noqa: E501 - tenants: Optional[List[TenantAssignmentsDTO]] = Field(default=None, description="A list of objects representing the tenants and users that were assigned to or removed from user groups.") - __properties: ClassVar[List[str]] = ["tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SecurityAssignmentResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SecurityAssignmentResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tenants": [TenantAssignmentsDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto.py new file mode 100644 index 0000000000..fc67bcd101 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_target_tenant_code_dto import ServicingPublicapiTransfersTargetTenantCodeDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO(BaseModel): + """ + ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO + """ # noqa: E501 + target_tenant_codes: Optional[List[ServicingPublicapiTransfersTargetTenantCodeDTO]] = Field(default=None, description="A list of objects representing the analytic tenants for profiles assigned to the users.", alias="targetTenantCodes") + target_user_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of users to assign this profile.", alias="targetUserIds") + validity_end_time: Optional[StrictStr] = Field(default=None, description="An exclusive date-time when this profile is no longer active.", alias="validityEndTime") + validity_start_time: Optional[StrictStr] = Field(default=None, description="An inclusive date-time when this profile is active.", alias="validityStartTime") + __properties: ClassVar[List[str]] = ["targetTenantCodes", "targetUserIds", "validityEndTime", "validityStartTime"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in target_tenant_codes (list) + _items = [] + if self.target_tenant_codes: + for _item_target_tenant_codes in self.target_tenant_codes: + if _item_target_tenant_codes: + _items.append(_item_target_tenant_codes.to_dict()) + _dict['targetTenantCodes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "targetTenantCodes": [ServicingPublicapiTransfersTargetTenantCodeDTO.from_dict(_item) for _item in obj["targetTenantCodes"]] if obj.get("targetTenantCodes") is not None else None, + "targetUserIds": obj.get("targetUserIds"), + "validityEndTime": obj.get("validityEndTime"), + "validityStartTime": obj.get("validityStartTime") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_assignment_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_assignment_response_dto.py new file mode 100644 index 0000000000..a398aa2e2a --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_assignment_response_dto.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_failed_accessible_tenant_profile_assignment_dto import ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_publicapi_transfers_successful_accessible_tenant_profile_assignment_dto import ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_publicapi_transfers_tenant_code_error_dto import ServicingPublicapiTransfersTenantCodeErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_id_error_dto import ServicingPublicapiTransfersUserIdErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO + """ # noqa: E501 + bad_tenant_codes: Optional[List[ServicingPublicapiTransfersTenantCodeErrorDTO]] = Field(default=None, description="A list of objects representing any tenants that returned errors.", alias="badTenantCodes") + bad_user_ids: Optional[List[ServicingPublicapiTransfersUserIdErrorDTO]] = Field(default=None, description="A list of objects representing the user IDs that may not be valid.", alias="badUserIds") + errors: Optional[StrictBool] = Field(default=None, description="If true, an error is generated by the request.") + failed_assignments: Optional[List[ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO]] = Field(default=None, description="A list of objects representing any errors during the assignment operation.", alias="failedAssignments") + successful_assignments: Optional[List[ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO]] = Field(default=None, description="A list of user IDs that were successfully assigned the profiles.", alias="successfulAssignments") + __properties: ClassVar[List[str]] = ["badTenantCodes", "badUserIds", "errors", "failedAssignments", "successfulAssignments"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in bad_tenant_codes (list) + _items = [] + if self.bad_tenant_codes: + for _item_bad_tenant_codes in self.bad_tenant_codes: + if _item_bad_tenant_codes: + _items.append(_item_bad_tenant_codes.to_dict()) + _dict['badTenantCodes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in bad_user_ids (list) + _items = [] + if self.bad_user_ids: + for _item_bad_user_ids in self.bad_user_ids: + if _item_bad_user_ids: + _items.append(_item_bad_user_ids.to_dict()) + _dict['badUserIds'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in failed_assignments (list) + _items = [] + if self.failed_assignments: + for _item_failed_assignments in self.failed_assignments: + if _item_failed_assignments: + _items.append(_item_failed_assignments.to_dict()) + _dict['failedAssignments'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in successful_assignments (list) + _items = [] + if self.successful_assignments: + for _item_successful_assignments in self.successful_assignments: + if _item_successful_assignments: + _items.append(_item_successful_assignments.to_dict()) + _dict['successfulAssignments'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "badTenantCodes": [ServicingPublicapiTransfersTenantCodeErrorDTO.from_dict(_item) for _item in obj["badTenantCodes"]] if obj.get("badTenantCodes") is not None else None, + "badUserIds": [ServicingPublicapiTransfersUserIdErrorDTO.from_dict(_item) for _item in obj["badUserIds"]] if obj.get("badUserIds") is not None else None, + "errors": obj.get("errors"), + "failedAssignments": [ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["failedAssignments"]] if obj.get("failedAssignments") is not None else None, + "successfulAssignments": [ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["successfulAssignments"]] if obj.get("successfulAssignments") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto.py new file mode 100644 index 0000000000..28dfba5c30 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_target_tenant_code_dto import ServicingPublicapiTransfersTargetTenantCodeDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO(BaseModel): + """ + ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO + """ # noqa: E501 + target_tenant_codes: Optional[List[ServicingPublicapiTransfersTargetTenantCodeDTO]] = Field(default=None, description="A list of objects representing the analytic tenants for removing profiles from each target user ID.", alias="targetTenantCodes") + target_user_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of users to remove this profile from.", alias="targetUserIds") + __properties: ClassVar[List[str]] = ["targetTenantCodes", "targetUserIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in target_tenant_codes (list) + _items = [] + if self.target_tenant_codes: + for _item_target_tenant_codes in self.target_tenant_codes: + if _item_target_tenant_codes: + _items.append(_item_target_tenant_codes.to_dict()) + _dict['targetTenantCodes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "targetTenantCodes": [ServicingPublicapiTransfersTargetTenantCodeDTO.from_dict(_item) for _item in obj["targetTenantCodes"]] if obj.get("targetTenantCodes") is not None else None, + "targetUserIds": obj.get("targetUserIds") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_revoke_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_revoke_response_dto.py new file mode 100644 index 0000000000..f336b73754 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_accessible_tenant_profile_revoke_response_dto.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_reduced_tenant_code_error_dto import ServicingPublicapiTransfersReducedTenantCodeErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_reduced_user_id_error_dto import ServicingPublicapiTransfersReducedUserIdErrorDTO +from visier_api_administration.models.servicing_publicapi_transfers_successful_local_tenant_profile_assignment_dto import ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO + """ # noqa: E501 + bad_tenant_codes: Optional[List[ServicingPublicapiTransfersReducedTenantCodeErrorDTO]] = Field(default=None, description="A list of objects representing any tenants that returned errors.", alias="badTenantCodes") + bad_user_ids: Optional[List[ServicingPublicapiTransfersReducedUserIdErrorDTO]] = Field(default=None, description="A list of objects representing the user IDs that may not be valid.", alias="badUserIds") + succeeded: Optional[List[ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO]] = Field(default=None, description="A list of objects representing the valid user IDs that succeeded.") + unaffected_users: Optional[List[ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO]] = Field(default=None, description="A list of objects representing the valid user IDs that were not affected.", alias="unaffectedUsers") + __properties: ClassVar[List[str]] = ["badTenantCodes", "badUserIds", "succeeded", "unaffectedUsers"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in bad_tenant_codes (list) + _items = [] + if self.bad_tenant_codes: + for _item_bad_tenant_codes in self.bad_tenant_codes: + if _item_bad_tenant_codes: + _items.append(_item_bad_tenant_codes.to_dict()) + _dict['badTenantCodes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in bad_user_ids (list) + _items = [] + if self.bad_user_ids: + for _item_bad_user_ids in self.bad_user_ids: + if _item_bad_user_ids: + _items.append(_item_bad_user_ids.to_dict()) + _dict['badUserIds'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in succeeded (list) + _items = [] + if self.succeeded: + for _item_succeeded in self.succeeded: + if _item_succeeded: + _items.append(_item_succeeded.to_dict()) + _dict['succeeded'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in unaffected_users (list) + _items = [] + if self.unaffected_users: + for _item_unaffected_users in self.unaffected_users: + if _item_unaffected_users: + _items.append(_item_unaffected_users.to_dict()) + _dict['unaffectedUsers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "badTenantCodes": [ServicingPublicapiTransfersReducedTenantCodeErrorDTO.from_dict(_item) for _item in obj["badTenantCodes"]] if obj.get("badTenantCodes") is not None else None, + "badUserIds": [ServicingPublicapiTransfersReducedUserIdErrorDTO.from_dict(_item) for _item in obj["badUserIds"]] if obj.get("badUserIds") is not None else None, + "succeeded": [ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["succeeded"]] if obj.get("succeeded") is not None else None, + "unaffectedUsers": [ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["unaffectedUsers"]] if obj.get("unaffectedUsers") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_additional_capabilities_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_additional_capabilities_dto.py new file mode 100644 index 0000000000..055fa68d4d --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_additional_capabilities_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAdditionalCapabilitiesDTO(BaseModel): + """ + ServicingPublicapiTransfersAdditionalCapabilitiesDTO + """ # noqa: E501 + additional_capabilities: Optional[List[StrictStr]] = Field(default=None, description="The additional capabilities assigned to this profile.", alias="additionalCapabilities") + __properties: ClassVar[List[str]] = ["additionalCapabilities"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAdditionalCapabilitiesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAdditionalCapabilitiesDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "additionalCapabilities": obj.get("additionalCapabilities") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_admin_capability_config_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_admin_capability_config_dto.py new file mode 100644 index 0000000000..0926ff3485 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_admin_capability_config_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAdminCapabilityConfigDTO(BaseModel): + """ + ServicingPublicapiTransfersAdminCapabilityConfigDTO + """ # noqa: E501 + all_capabilities_access: Optional[StrictBool] = Field(default=None, description="If `true`, the permission has all possible capabilities.", alias="allCapabilitiesAccess") + capabilities: Optional[List[StrictStr]] = Field(default=None, description="A list of the capabilities assigned in the permission. Not required if `allCapabilitiesAccess` is true.") + __properties: ClassVar[List[str]] = ["allCapabilitiesAccess", "capabilities"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAdminCapabilityConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAdminCapabilityConfigDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allCapabilitiesAccess": obj.get("allCapabilitiesAccess"), + "capabilities": obj.get("capabilities") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_all_permissions_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_all_permissions_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..563b848124 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_all_permissions_assigned_for_local_tenant_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_for_local_tenant_dto import ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO(BaseModel): + """ + ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO + """ # noqa: E501 + assigned_permissions: Optional[List[ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO]] = Field(default=None, description="A list of objects representing the user's permissions.", alias="assignedPermissions") + __properties: ClassVar[List[str]] = ["assignedPermissions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in assigned_permissions (list) + _items = [] + if self.assigned_permissions: + for _item_assigned_permissions in self.assigned_permissions: + if _item_assigned_permissions: + _items.append(_item_assigned_permissions.to_dict()) + _dict['assignedPermissions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assignedPermissions": [ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO.from_dict(_item) for _item in obj["assignedPermissions"]] if obj.get("assignedPermissions") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_all_profile_assigned_for_accessible_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_all_profile_assigned_for_accessible_tenant_dto.py new file mode 100644 index 0000000000..28c7b9f4e6 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_all_profile_assigned_for_accessible_tenant_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_profile_assigned_for_accessible_tenant_dto import ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO(BaseModel): + """ + ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO + """ # noqa: E501 + assigned_profiles_for_accessible_tenant: Optional[List[ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO]] = Field(default=None, description="A list of objects representing the user profiles assigned to the user and their validity range.", alias="assignedProfilesForAccessibleTenant") + __properties: ClassVar[List[str]] = ["assignedProfilesForAccessibleTenant"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in assigned_profiles_for_accessible_tenant (list) + _items = [] + if self.assigned_profiles_for_accessible_tenant: + for _item_assigned_profiles_for_accessible_tenant in self.assigned_profiles_for_accessible_tenant: + if _item_assigned_profiles_for_accessible_tenant: + _items.append(_item_assigned_profiles_for_accessible_tenant.to_dict()) + _dict['assignedProfilesForAccessibleTenant'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assignedProfilesForAccessibleTenant": [ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO.from_dict(_item) for _item in obj["assignedProfilesForAccessibleTenant"]] if obj.get("assignedProfilesForAccessibleTenant") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_all_profile_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_all_profile_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..ad6eae29d6 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_all_profile_assigned_for_local_tenant_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_profile_assigned_for_local_tenant_dto import ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO(BaseModel): + """ + ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO + """ # noqa: E501 + assigned_profiles: Optional[List[ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO]] = Field(default=None, description="A list of objects representing the user profiles assigned to the user and their validity range.", alias="assignedProfiles") + __properties: ClassVar[List[str]] = ["assignedProfiles"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in assigned_profiles (list) + _items = [] + if self.assigned_profiles: + for _item_assigned_profiles in self.assigned_profiles: + if _item_assigned_profiles: + _items.append(_item_assigned_profiles.to_dict()) + _dict['assignedProfiles'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assignedProfiles": [ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO.from_dict(_item) for _item in obj["assignedProfiles"]] if obj.get("assignedProfiles") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_all_user_groups_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_all_user_groups_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..ed14a07217 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_all_user_groups_assigned_for_local_tenant_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_user_group_assigned_for_local_tenant_dto import ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO(BaseModel): + """ + ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO + """ # noqa: E501 + assigned_user_groups: Optional[List[ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO]] = Field(default=None, description="A list of objects representing the available user groups.", alias="assignedUserGroups") + __properties: ClassVar[List[str]] = ["assignedUserGroups"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in assigned_user_groups (list) + _items = [] + if self.assigned_user_groups: + for _item_assigned_user_groups in self.assigned_user_groups: + if _item_assigned_user_groups: + _items.append(_item_assigned_user_groups.to_dict()) + _dict['assignedUserGroups'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assignedUserGroups": [ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO.from_dict(_item) for _item in obj["assignedUserGroups"]] if obj.get("assignedUserGroups") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_all_users_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_all_users_get_api_response_dto.py new file mode 100644 index 0000000000..9ec0762571 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_all_users_get_api_response_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_user_get_api_response_dto import ServicingPublicapiTransfersUserGetAPIResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAllUsersGetAPIResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersAllUsersGetAPIResponseDTO + """ # noqa: E501 + limit: Optional[StrictInt] = Field(default=None, description="The number of results to return. The maximum number of users to retrieve is 1000.") + start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") + users: Optional[List[ServicingPublicapiTransfersUserGetAPIResponseDTO]] = Field(default=None, description="A list of available users.") + __properties: ClassVar[List[str]] = ["limit", "start", "users"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAllUsersGetAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAllUsersGetAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "start": obj.get("start"), + "users": [ServicingPublicapiTransfersUserGetAPIResponseDTO.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_analytic_object_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_analytic_object_dto.py new file mode 100644 index 0000000000..6231bf55d9 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_analytic_object_dto.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_related_analytic_object_dto import ServicingPublicapiTransfersRelatedAnalyticObjectDTO +from visier_api_administration.models.servicing_publicapi_transfers_securable_dimension_dto import ServicingPublicapiTransfersSecurableDimensionDTO +from visier_api_administration.models.servicing_publicapi_transfers_securable_property_dto import ServicingPublicapiTransfersSecurablePropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAnalyticObjectDTO(BaseModel): + """ + ServicingPublicapiTransfersAnalyticObjectDTO + """ # noqa: E501 + analytic_object_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analytic object.", alias="analyticObjectId") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name to display in Visier, such as \"Employee\".", alias="displayName") + object_type: Optional[StrictStr] = Field(default=None, description="The analytic object type.", alias="objectType") + related_objects: Optional[List[ServicingPublicapiTransfersRelatedAnalyticObjectDTO]] = Field(default=None, description="The analytic objects related to the data security object.", alias="relatedObjects") + securable_dimensions: Optional[List[ServicingPublicapiTransfersSecurableDimensionDTO]] = Field(default=None, description="A list of dimensions that are available to define population access filters in the permission.", alias="securableDimensions") + securable_properties: Optional[List[ServicingPublicapiTransfersSecurablePropertyDTO]] = Field(default=None, description="All available properties from the data security object and its related analytic objects that you can configure data access for.", alias="securableProperties") + __properties: ClassVar[List[str]] = ["analyticObjectId", "displayName", "objectType", "relatedObjects", "securableDimensions", "securableProperties"] + + @field_validator('object_type') + def object_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Event', 'Subject', 'BusinessOutcomeOverlay', 'PlanOrBudgetOverlay', 'ExternalBenchmark', 'VisierBenchmark', 'UsageOverlay', 'OtherOverlay', 'InternalComparison', 'PlanAnalyticObject']): + raise ValueError("must be one of enum values ('Event', 'Subject', 'BusinessOutcomeOverlay', 'PlanOrBudgetOverlay', 'ExternalBenchmark', 'VisierBenchmark', 'UsageOverlay', 'OtherOverlay', 'InternalComparison', 'PlanAnalyticObject')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAnalyticObjectDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in related_objects (list) + _items = [] + if self.related_objects: + for _item_related_objects in self.related_objects: + if _item_related_objects: + _items.append(_item_related_objects.to_dict()) + _dict['relatedObjects'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in securable_dimensions (list) + _items = [] + if self.securable_dimensions: + for _item_securable_dimensions in self.securable_dimensions: + if _item_securable_dimensions: + _items.append(_item_securable_dimensions.to_dict()) + _dict['securableDimensions'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in securable_properties (list) + _items = [] + if self.securable_properties: + for _item_securable_properties in self.securable_properties: + if _item_securable_properties: + _items.append(_item_securable_properties.to_dict()) + _dict['securableProperties'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAnalyticObjectDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectId": obj.get("analyticObjectId"), + "displayName": obj.get("displayName"), + "objectType": obj.get("objectType"), + "relatedObjects": [ServicingPublicapiTransfersRelatedAnalyticObjectDTO.from_dict(_item) for _item in obj["relatedObjects"]] if obj.get("relatedObjects") is not None else None, + "securableDimensions": [ServicingPublicapiTransfersSecurableDimensionDTO.from_dict(_item) for _item in obj["securableDimensions"]] if obj.get("securableDimensions") is not None else None, + "securableProperties": [ServicingPublicapiTransfersSecurablePropertyDTO.from_dict(_item) for _item in obj["securableProperties"]] if obj.get("securableProperties") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_by_permission_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_by_permission_dto.py new file mode 100644 index 0000000000..25041c4767 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_by_permission_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_by_user_dto import ServicingPublicapiTransfersAssignRevokePermissionByUserDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_for_local_tenant_dto import ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO(BaseModel): + """ + The results of the permission assignment or removal. + """ # noqa: E501 + permission: Optional[ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO] = None + users: Optional[List[ServicingPublicapiTransfersAssignRevokePermissionByUserDTO]] = Field(default=None, description="A list of objects representing the users that was permission was assigned to or removed from.") + __properties: ClassVar[List[str]] = ["permission", "users"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of permission + if self.permission: + _dict['permission'] = self.permission.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permission": ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO.from_dict(obj["permission"]) if obj.get("permission") is not None else None, + "users": [ServicingPublicapiTransfersAssignRevokePermissionByUserDTO.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_by_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_by_tenant_dto.py new file mode 100644 index 0000000000..c7822809f6 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_by_tenant_dto.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_by_permission_dto import ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO(BaseModel): + """ + The permissions organized by tenant. + """ # noqa: E501 + message: Optional[StrictStr] = Field(default=None, description="A detailed description of the request outcome, if available.") + permissions: Optional[List[ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO]] = Field(default=None, description="A list of objects representing the assigned or removed permissions.") + project_id: Optional[StrictStr] = Field(default=None, description="The ID of the project that the change was made in, if applicable.", alias="projectId") + status: Optional[StrictStr] = Field(default=None, description="The state of the permission assignment. Valid values are Succeed or Failed.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["message", "permissions", "projectId", "status", "tenantCode"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Unknown', 'Succeed', 'Failed']): + raise ValueError("must be one of enum values ('Unknown', 'Succeed', 'Failed')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in permissions (list) + _items = [] + if self.permissions: + for _item_permissions in self.permissions: + if _item_permissions: + _items.append(_item_permissions.to_dict()) + _dict['permissions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "permissions": [ServicingPublicapiTransfersAssignRevokePermissionByPermissionDTO.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None, + "projectId": obj.get("projectId"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_by_user_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_by_user_dto.py new file mode 100644 index 0000000000..2adcada7fd --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_by_user_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAssignRevokePermissionByUserDTO(BaseModel): + """ + The results of the permission assignment or removal by user. + """ # noqa: E501 + message: Optional[StrictStr] = Field(default=None, description="A meaningful message about the user permission.") + user_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="userId") + username: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@visier.com.") + __properties: ClassVar[List[str]] = ["message", "userId", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAssignRevokePermissionByUserDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAssignRevokePermissionByUserDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "userId": obj.get("userId"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_request_dto.py new file mode 100644 index 0000000000..2b6c779c3b --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permission_request_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAssignRevokePermissionRequestDTO(BaseModel): + """ + Set permission detail permissionId with assign to userIds + """ # noqa: E501 + permission_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with a permission.", alias="permissionId") + user_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing unique user IDs.", alias="userIds") + __properties: ClassVar[List[str]] = ["permissionId", "userIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAssignRevokePermissionRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAssignRevokePermissionRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permissionId": obj.get("permissionId"), + "userIds": obj.get("userIds") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permissions_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permissions_request_dto.py new file mode 100644 index 0000000000..5a5b9adaf3 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permissions_request_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.admin_transfers_target_project_for_tenants_list_dto import AdminTransfersTargetProjectForTenantsListDTO +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_request_dto import ServicingPublicapiTransfersAssignRevokePermissionRequestDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO(BaseModel): + """ + Set permissions request List of permissionId with assign to user Ids + """ # noqa: E501 + permissions: Optional[List[ServicingPublicapiTransfersAssignRevokePermissionRequestDTO]] = Field(default=None, description="A list of objects representing the permissions to assign to or remove from users.") + target_project_for_tenants_list: Optional[AdminTransfersTargetProjectForTenantsListDTO] = Field(default=None, description="Administrating tenants can specify the tenants and projects in which to assign permissions to users or remove permissions from users. Specify one `projectId` per `tenantCode`. If omitted, the request is immediately published to production or applied to the `ProjectID` in the request header, if available, for the administrating tenant or TargetTenantID, if available.", alias="targetProjectForTenantsList") + __properties: ClassVar[List[str]] = ["permissions", "targetProjectForTenantsList"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in permissions (list) + _items = [] + if self.permissions: + for _item_permissions in self.permissions: + if _item_permissions: + _items.append(_item_permissions.to_dict()) + _dict['permissions'] = _items + # override the default output from pydantic by calling `to_dict()` of target_project_for_tenants_list + if self.target_project_for_tenants_list: + _dict['targetProjectForTenantsList'] = self.target_project_for_tenants_list.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permissions": [ServicingPublicapiTransfersAssignRevokePermissionRequestDTO.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None, + "targetProjectForTenantsList": AdminTransfersTargetProjectForTenantsListDTO.from_dict(obj["targetProjectForTenantsList"]) if obj.get("targetProjectForTenantsList") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permissions_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permissions_response_dto.py new file mode 100644 index 0000000000..8c057c4d1e --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_assign_revoke_permissions_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_assign_revoke_permission_by_tenant_dto import ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO(BaseModel): + """ + The results of the permission assignment or removal. + """ # noqa: E501 + tenants: Optional[List[ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO]] = Field(default=None, description="A list of objects representing the users that were assigned permissions, organized by the tenants the users belong to.") + __properties: ClassVar[List[str]] = ["tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenants": [ServicingPublicapiTransfersAssignRevokePermissionByTenantDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_bulk_data_access_set_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_bulk_data_access_set_response_dto.py new file mode 100644 index 0000000000..eb9ca4559e --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_bulk_data_access_set_response_dto.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_failure_dto import ServicingPublicapiTransfersDataAccessSetFailureDTO +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_success_dto import ServicingPublicapiTransfersDataAccessSetSuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersBulkDataAccessSetResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersBulkDataAccessSetResponseDTO + """ # noqa: E501 + failures: Optional[List[ServicingPublicapiTransfersDataAccessSetFailureDTO]] = Field(default=None, description="The data access sets that failed to be created and any relevant error information.") + successes: Optional[List[ServicingPublicapiTransfersDataAccessSetSuccessDTO]] = Field(default=None, description="The successfully created data access sets.") + __properties: ClassVar[List[str]] = ["failures", "successes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersBulkDataAccessSetResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in failures (list) + _items = [] + if self.failures: + for _item_failures in self.failures: + if _item_failures: + _items.append(_item_failures.to_dict()) + _dict['failures'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in successes (list) + _items = [] + if self.successes: + for _item_successes in self.successes: + if _item_successes: + _items.append(_item_successes.to_dict()) + _dict['successes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersBulkDataAccessSetResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [ServicingPublicapiTransfersDataAccessSetFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [ServicingPublicapiTransfersDataAccessSetSuccessDTO.from_dict(_item) for _item in obj["successes"]] if obj.get("successes") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_capabilities_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_capabilities_dto.py new file mode 100644 index 0000000000..96531560ad --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_capabilities_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersCapabilitiesDTO(BaseModel): + """ + ServicingPublicapiTransfersCapabilitiesDTO + """ # noqa: E501 + access_level: Optional[StrictStr] = Field(default=None, description="The access level of the profile for the given capability.", alias="accessLevel") + capability: Optional[StrictStr] = Field(default=None, description="The name of the capability.") + view_level: Optional[StrictStr] = Field(default=None, description="The view level of the profile for the given capability.", alias="viewLevel") + __properties: ClassVar[List[str]] = ["accessLevel", "capability", "viewLevel"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersCapabilitiesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersCapabilitiesDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accessLevel": obj.get("accessLevel"), + "capability": obj.get("capability"), + "viewLevel": obj.get("viewLevel") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_capability_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_capability_dto.py new file mode 100644 index 0000000000..0a6facd136 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_capability_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersCapabilityDTO(BaseModel): + """ + ServicingPublicapiTransfersCapabilityDTO + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="A description of the capability.") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable capability name to display in Visier, such as \"Schedule Analysis\".", alias="displayName") + name: Optional[StrictStr] = Field(default=None, description="The unique name of the capability.") + __properties: ClassVar[List[str]] = ["description", "displayName", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersCapabilityDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersCapabilityDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "name": obj.get("name") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_commit_and_publish_operation_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_commit_and_publish_operation_response_dto.py new file mode 100644 index 0000000000..56fd3d5839 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_commit_and_publish_operation_response_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_project_dto import ServicingPublicapiTransfersProjectDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO + """ # noqa: E501 + published_version: Optional[ServicingPublicapiTransfersProjectDTO] = Field(default=None, description="The project version that was published to production.", alias="publishedVersion") + __properties: ClassVar[List[str]] = ["publishedVersion"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of published_version + if self.published_version: + _dict['publishedVersion'] = self.published_version.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "publishedVersion": ServicingPublicapiTransfersProjectDTO.from_dict(obj["publishedVersion"]) if obj.get("publishedVersion") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_commit_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_commit_dto.py new file mode 100644 index 0000000000..defe4c3a4c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_commit_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersCommitDTO(BaseModel): + """ + ServicingPublicapiTransfersCommitDTO + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="A description of the committed change.") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the committed change.") + name: Optional[StrictStr] = Field(default=None, description="An identifiable name of the committed change to display in Visier.") + __properties: ClassVar[List[str]] = ["description", "id", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersCommitDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersCommitDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "id": obj.get("id"), + "name": obj.get("name") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_content_package_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_content_package_dto.py new file mode 100644 index 0000000000..d07ef55ac3 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_content_package_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersContentPackageDTO(BaseModel): + """ + ServicingPublicapiTransfersContentPackageDTO + """ # noqa: E501 + content_package_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the content package.", alias="contentPackageId") + description: Optional[StrictStr] = Field(default=None, description="A description of the content package.") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable content package name to display in Visier, such as \"Talent Acquisition Core Content\".", alias="displayName") + __properties: ClassVar[List[str]] = ["contentPackageId", "description", "displayName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersContentPackageDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersContentPackageDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "contentPackageId": obj.get("contentPackageId"), + "description": obj.get("description"), + "displayName": obj.get("displayName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_create_data_access_set_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_create_data_access_set_request_dto.py new file mode 100644 index 0000000000..de1fca26c2 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_create_data_access_set_request_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_dto import ServicingPublicapiTransfersDataAccessSetDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersCreateDataAccessSetRequestDTO(BaseModel): + """ + ServicingPublicapiTransfersCreateDataAccessSetRequestDTO + """ # noqa: E501 + shareable_property_access_configs: Optional[List[ServicingPublicapiTransfersDataAccessSetDTO]] = Field(default=None, description="The data access sets to be created.", alias="shareablePropertyAccessConfigs") + __properties: ClassVar[List[str]] = ["shareablePropertyAccessConfigs"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersCreateDataAccessSetRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in shareable_property_access_configs (list) + _items = [] + if self.shareable_property_access_configs: + for _item_shareable_property_access_configs in self.shareable_property_access_configs: + if _item_shareable_property_access_configs: + _items.append(_item_shareable_property_access_configs.to_dict()) + _dict['shareablePropertyAccessConfigs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersCreateDataAccessSetRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "shareablePropertyAccessConfigs": [ServicingPublicapiTransfersDataAccessSetDTO.from_dict(_item) for _item in obj["shareablePropertyAccessConfigs"]] if obj.get("shareablePropertyAccessConfigs") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_data_access_set_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_data_access_set_dto.py new file mode 100644 index 0000000000..358676f7d1 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_data_access_set_dto.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_property_access_config_dto import ServicingPublicapiTransfersPropertyAccessConfigDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDataAccessSetDTO(BaseModel): + """ + ServicingPublicapiTransfersDataAccessSetDTO + """ # noqa: E501 + analytic_object_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analytic object that the data access set is for.", alias="analyticObjectId") + description: Optional[StrictStr] = Field(default=None, description="A description of the data access set.") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable data access set name to display in Visier, such as \"Aggregate(Employee)\".", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the data access set.") + property_access_configs: Optional[List[ServicingPublicapiTransfersPropertyAccessConfigDTO]] = Field(default=None, description="The data access assigned to properties in the data access set.", alias="propertyAccessConfigs") + __properties: ClassVar[List[str]] = ["analyticObjectId", "description", "displayName", "id", "propertyAccessConfigs"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDataAccessSetDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in property_access_configs (list) + _items = [] + if self.property_access_configs: + for _item_property_access_configs in self.property_access_configs: + if _item_property_access_configs: + _items.append(_item_property_access_configs.to_dict()) + _dict['propertyAccessConfigs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDataAccessSetDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectId": obj.get("analyticObjectId"), + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "propertyAccessConfigs": [ServicingPublicapiTransfersPropertyAccessConfigDTO.from_dict(_item) for _item in obj["propertyAccessConfigs"]] if obj.get("propertyAccessConfigs") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_data_access_set_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_data_access_set_error_dto.py new file mode 100644 index 0000000000..c9c0c0b928 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_data_access_set_error_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDataAccessSetErrorDTO(BaseModel): + """ + ServicingPublicapiTransfersDataAccessSetErrorDTO + """ # noqa: E501 + message: Optional[StrictStr] = Field(default=None, description="Error message") + rci: Optional[StrictStr] = Field(default=None, description="A root cause identifier that allows Visier to determine the source of the problem.") + __properties: ClassVar[List[str]] = ["message", "rci"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDataAccessSetErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDataAccessSetErrorDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "rci": obj.get("rci") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_data_access_set_failure_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_data_access_set_failure_dto.py new file mode 100644 index 0000000000..d4bffe1e98 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_data_access_set_failure_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_error_dto import ServicingPublicapiTransfersDataAccessSetErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDataAccessSetFailureDTO(BaseModel): + """ + ServicingPublicapiTransfersDataAccessSetFailureDTO + """ # noqa: E501 + data_access_set_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the data access set.", alias="dataAccessSetId") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable data access set name to display in Visier, such as \"Detailed(Employee)\".", alias="displayName") + error: Optional[ServicingPublicapiTransfersDataAccessSetErrorDTO] = Field(default=None, description="The error associated with the failure.") + __properties: ClassVar[List[str]] = ["dataAccessSetId", "displayName", "error"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDataAccessSetFailureDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDataAccessSetFailureDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataAccessSetId": obj.get("dataAccessSetId"), + "displayName": obj.get("displayName"), + "error": ServicingPublicapiTransfersDataAccessSetErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_data_access_set_success_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_data_access_set_success_dto.py new file mode 100644 index 0000000000..c33679d9fd --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_data_access_set_success_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDataAccessSetSuccessDTO(BaseModel): + """ + ServicingPublicapiTransfersDataAccessSetSuccessDTO + """ # noqa: E501 + data_access_set_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the created data access set.", alias="dataAccessSetId") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable data access set name to display in Visier, such as \"Detailed(Employee)\".", alias="displayName") + __properties: ClassVar[List[str]] = ["dataAccessSetId", "displayName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDataAccessSetSuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDataAccessSetSuccessDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataAccessSetId": obj.get("dataAccessSetId"), + "displayName": obj.get("displayName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_data_security_profile_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_data_security_profile_dto.py new file mode 100644 index 0000000000..799b1901d2 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_data_security_profile_dto.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_inherited_access_config_dto import ServicingPublicapiTransfersInheritedAccessConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_inherited_reference_member_filter_config_dto import ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_member_filter_config_dto import ServicingPublicapiTransfersMemberFilterConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_property_set_config_dto import ServicingPublicapiTransfersPropertySetConfigDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDataSecurityProfileDTO(BaseModel): + """ + ServicingPublicapiTransfersDataSecurityProfileDTO + """ # noqa: E501 + all_data_point_access: Optional[StrictBool] = Field(default=None, description="If `true`, the permission grants access to the entire population. If `false`, define `memberFilterConfigs` to set custom population access.", alias="allDataPointAccess") + analytic_object_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analytic object assigned data security in this permission.", alias="analyticObjectId") + analytic_object_status: Optional[StrictStr] = Field(default=None, description="The analytic object's validity status. Valid values: Valid, NoData, NotFound. * **Valid**: The object exists and has loaded data. * **NoData**: The object exists but doesn't have loaded data. * **NotFound**: The object doesn't exist.", alias="analyticObjectStatus") + inherited_access_configs: Optional[List[ServicingPublicapiTransfersInheritedAccessConfigDTO]] = Field(default=None, description="The events and related objects inherited from the analytic object. By default, all events and related objects associated with the analytic object will be inherited from the analytic object in a permission. For example, if you assign access to Employee, then access to the Employee Exit event is inherited in the permission. To remove access to an event or related object, add the object to `inheritedAccessConfigs` with `removeAccess`: true. To add custom filters to an event or related object, add the object to `inheritedAccessConfigs` and define `memberFilterConfigs`.", alias="inheritedAccessConfigs") + inherited_reference_member_filter_config: Optional[ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO] = Field(default=None, description="Configures the analytic object to inherit population access filters from. The target analytic object must be assigned population access in the permission and have a binding (strong) reference from the source analytic object. * For example, assume `Applicant` -> `Requisition` is configured to be a binding (strong) reference. For `Applicant` (source analytic object) to inherit population access filters from `Requisition` (target analytic object), in the Applicant `dataSecurityProfile`, set `inheritedReferenceMemberFilterConfig` to `Requisition`. In this example, Applicant will inherit filters from Requisition because Requsition is assigned data security in this permission and there is a binding (strong) reference from Applicant to Requisition.", alias="inheritedReferenceMemberFilterConfig") + member_filter_configs: Optional[List[ServicingPublicapiTransfersMemberFilterConfigDTO]] = Field(default=None, description="Custom filters that define population access for an item in the permission.", alias="memberFilterConfigs") + property_set_config: Optional[ServicingPublicapiTransfersPropertySetConfigDTO] = Field(default=None, description="A list of objects representing the data access for an analytic object’s properties.", alias="propertySetConfig") + __properties: ClassVar[List[str]] = ["allDataPointAccess", "analyticObjectId", "analyticObjectStatus", "inheritedAccessConfigs", "inheritedReferenceMemberFilterConfig", "memberFilterConfigs", "propertySetConfig"] + + @field_validator('analytic_object_status') + def analytic_object_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Unset', 'Valid', 'NoData', 'NotFound']): + raise ValueError("must be one of enum values ('Unset', 'Valid', 'NoData', 'NotFound')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDataSecurityProfileDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in inherited_access_configs (list) + _items = [] + if self.inherited_access_configs: + for _item_inherited_access_configs in self.inherited_access_configs: + if _item_inherited_access_configs: + _items.append(_item_inherited_access_configs.to_dict()) + _dict['inheritedAccessConfigs'] = _items + # override the default output from pydantic by calling `to_dict()` of inherited_reference_member_filter_config + if self.inherited_reference_member_filter_config: + _dict['inheritedReferenceMemberFilterConfig'] = self.inherited_reference_member_filter_config.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in member_filter_configs (list) + _items = [] + if self.member_filter_configs: + for _item_member_filter_configs in self.member_filter_configs: + if _item_member_filter_configs: + _items.append(_item_member_filter_configs.to_dict()) + _dict['memberFilterConfigs'] = _items + # override the default output from pydantic by calling `to_dict()` of property_set_config + if self.property_set_config: + _dict['propertySetConfig'] = self.property_set_config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDataSecurityProfileDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allDataPointAccess": obj.get("allDataPointAccess"), + "analyticObjectId": obj.get("analyticObjectId"), + "analyticObjectStatus": obj.get("analyticObjectStatus"), + "inheritedAccessConfigs": [ServicingPublicapiTransfersInheritedAccessConfigDTO.from_dict(_item) for _item in obj["inheritedAccessConfigs"]] if obj.get("inheritedAccessConfigs") is not None else None, + "inheritedReferenceMemberFilterConfig": ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO.from_dict(obj["inheritedReferenceMemberFilterConfig"]) if obj.get("inheritedReferenceMemberFilterConfig") is not None else None, + "memberFilterConfigs": [ServicingPublicapiTransfersMemberFilterConfigDTO.from_dict(_item) for _item in obj["memberFilterConfigs"]] if obj.get("memberFilterConfigs") is not None else None, + "propertySetConfig": ServicingPublicapiTransfersPropertySetConfigDTO.from_dict(obj["propertySetConfig"]) if obj.get("propertySetConfig") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_delete_permissions_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_delete_permissions_request_dto.py new file mode 100644 index 0000000000..b2de6c0aa4 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_delete_permissions_request_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDeletePermissionsRequestDTO(BaseModel): + """ + ServicingPublicapiTransfersDeletePermissionsRequestDTO + """ # noqa: E501 + permission_ids: Optional[List[StrictStr]] = Field(default=None, description="The identifiers of the permissions to delete.", alias="permissionIds") + __properties: ClassVar[List[str]] = ["permissionIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDeletePermissionsRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDeletePermissionsRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permissionIds": obj.get("permissionIds") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_dimension_filter_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_dimension_filter_dto.py new file mode 100644 index 0000000000..26c40c598c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_dimension_filter_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_dynamic_dimension_filter_dto import ServicingPublicapiTransfersDynamicDimensionFilterDTO +from visier_api_administration.models.servicing_publicapi_transfers_static_dimension_filter_dto import ServicingPublicapiTransfersStaticDimensionFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDimensionFilterDTO(BaseModel): + """ + ServicingPublicapiTransfersDimensionFilterDTO + """ # noqa: E501 + dynamic_dimension_filter: Optional[ServicingPublicapiTransfersDynamicDimensionFilterDTO] = Field(default=None, alias="dynamicDimensionFilter") + static_dimension_filter: Optional[ServicingPublicapiTransfersStaticDimensionFilterDTO] = Field(default=None, alias="staticDimensionFilter") + __properties: ClassVar[List[str]] = ["dynamicDimensionFilter", "staticDimensionFilter"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDimensionFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of dynamic_dimension_filter + if self.dynamic_dimension_filter: + _dict['dynamicDimensionFilter'] = self.dynamic_dimension_filter.to_dict() + # override the default output from pydantic by calling `to_dict()` of static_dimension_filter + if self.static_dimension_filter: + _dict['staticDimensionFilter'] = self.static_dimension_filter.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDimensionFilterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dynamicDimensionFilter": ServicingPublicapiTransfersDynamicDimensionFilterDTO.from_dict(obj["dynamicDimensionFilter"]) if obj.get("dynamicDimensionFilter") is not None else None, + "staticDimensionFilter": ServicingPublicapiTransfersStaticDimensionFilterDTO.from_dict(obj["staticDimensionFilter"]) if obj.get("staticDimensionFilter") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_dynamic_dimension_filter_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_dynamic_dimension_filter_dto.py new file mode 100644 index 0000000000..1f85ce6b0d --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_dynamic_dimension_filter_dto.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_dynamic_property_mapping_dto import ServicingPublicapiTransfersDynamicPropertyMappingDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDynamicDimensionFilterDTO(BaseModel): + """ + ServicingPublicapiTransfersDynamicDimensionFilterDTO + """ # noqa: E501 + dimension_id: Optional[StrictStr] = Field(default=None, description="The dimension ID associated with the filter.", alias="dimensionId") + dimension_status: Optional[StrictStr] = Field(default=None, description="The dimension's validity status. Valid values: Valid, NoData, NotFound. * **Valid**: The object exists and has loaded data. * **NoData**: The object exists but doesn't have loaded data. * **NotFound**: The object doesn't exist.", alias="dimensionStatus") + dynamic_property_mappings: Optional[List[ServicingPublicapiTransfersDynamicPropertyMappingDTO]] = Field(default=None, description="The properties assigned population access in the dynamic filter.", alias="dynamicPropertyMappings") + subject_reference_path: Optional[List[StrictStr]] = Field(default=None, description="The subject reference path.", alias="subjectReferencePath") + __properties: ClassVar[List[str]] = ["dimensionId", "dimensionStatus", "dynamicPropertyMappings", "subjectReferencePath"] + + @field_validator('dimension_status') + def dimension_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Unset', 'Valid', 'NoData', 'NotFound']): + raise ValueError("must be one of enum values ('Unset', 'Valid', 'NoData', 'NotFound')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDynamicDimensionFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in dynamic_property_mappings (list) + _items = [] + if self.dynamic_property_mappings: + for _item_dynamic_property_mappings in self.dynamic_property_mappings: + if _item_dynamic_property_mappings: + _items.append(_item_dynamic_property_mappings.to_dict()) + _dict['dynamicPropertyMappings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDynamicDimensionFilterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensionId": obj.get("dimensionId"), + "dimensionStatus": obj.get("dimensionStatus"), + "dynamicPropertyMappings": [ServicingPublicapiTransfersDynamicPropertyMappingDTO.from_dict(_item) for _item in obj["dynamicPropertyMappings"]] if obj.get("dynamicPropertyMappings") is not None else None, + "subjectReferencePath": obj.get("subjectReferencePath") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_dynamic_property_mapping_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_dynamic_property_mapping_dto.py new file mode 100644 index 0000000000..5219afe51c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_dynamic_property_mapping_dto.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_user_property_dto import ServicingPublicapiTransfersUserPropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDynamicPropertyMappingDTO(BaseModel): + """ + ServicingPublicapiTransfersDynamicPropertyMappingDTO + """ # noqa: E501 + hierarchy_property_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the property.", alias="hierarchyPropertyId") + hierarchy_property_status: Optional[StrictStr] = Field(default=None, description="The property's validity status. Valid values: `Valid`, `NotFound`. * **Valid**: The object exists and has loaded data. * **NotFound**: The object doesn't exist.", alias="hierarchyPropertyStatus") + user_property: Optional[ServicingPublicapiTransfersUserPropertyDTO] = Field(default=None, description="The user property that you want to link the name property or organization head to.", alias="userProperty") + __properties: ClassVar[List[str]] = ["hierarchyPropertyId", "hierarchyPropertyStatus", "userProperty"] + + @field_validator('hierarchy_property_status') + def hierarchy_property_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Unset', 'Valid', 'NoData', 'NotFound']): + raise ValueError("must be one of enum values ('Unset', 'Valid', 'NoData', 'NotFound')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDynamicPropertyMappingDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of user_property + if self.user_property: + _dict['userProperty'] = self.user_property.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDynamicPropertyMappingDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hierarchyPropertyId": obj.get("hierarchyPropertyId"), + "hierarchyPropertyStatus": obj.get("hierarchyPropertyStatus"), + "userProperty": ServicingPublicapiTransfersUserPropertyDTO.from_dict(obj["userProperty"]) if obj.get("userProperty") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_error_dto.py new file mode 100644 index 0000000000..7e28ae0b69 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_error_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersErrorDTO(BaseModel): + """ + ServicingPublicapiTransfersErrorDTO + """ # noqa: E501 + error_code: Optional[StrictStr] = Field(default=None, description="A brief identifier of the type of error.", alias="errorCode") + error_message: Optional[StrictStr] = Field(default=None, description="A description of the error that occurred.", alias="errorMessage") + root_cause_id: Optional[StrictStr] = Field(default=None, description="The root cause identifier that allows Visier to determine the source of the problem.", alias="rootCauseId") + __properties: ClassVar[List[str]] = ["errorCode", "errorMessage", "rootCauseId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersErrorDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "errorCode": obj.get("errorCode"), + "errorMessage": obj.get("errorMessage"), + "rootCauseId": obj.get("rootCauseId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_export_production_versions_api_operation_parameters_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_export_production_versions_api_operation_parameters_dto.py new file mode 100644 index 0000000000..cb100a4e95 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_export_production_versions_api_operation_parameters_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO(BaseModel): + """ + ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO + """ # noqa: E501 + end_version: Optional[StrictStr] = Field(default=None, description="The unique identifier of the version to stop exporting versions at. The range is inclusive.", alias="endVersion") + excluded_versions: Optional[List[StrictStr]] = Field(default=None, description="A list of versions between `startVersion` and `endVersion` to exclude.", alias="excludedVersions") + start_version: Optional[StrictStr] = Field(default=None, description="The unique identifier of the version to start exporting versions from. The range is inclusive.", alias="startVersion") + __properties: ClassVar[List[str]] = ["endVersion", "excludedVersions", "startVersion"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "endVersion": obj.get("endVersion"), + "excludedVersions": obj.get("excludedVersions"), + "startVersion": obj.get("startVersion") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_failed_accessible_tenant_profile_assignment_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_failed_accessible_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..6d9c558917 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_failed_accessible_tenant_profile_assignment_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_error_dto import ServicingPublicapiTransfersErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO(BaseModel): + """ + ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO + """ # noqa: E501 + error: Optional[ServicingPublicapiTransfersErrorDTO] = Field(default=None, description="The details about the error.") + for_all_children: Optional[StrictBool] = Field(default=None, description="If true, the target assignment is for all analytic tenants.", alias="forAllChildren") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code.", alias="tenantCode") + user_id: Optional[StrictStr] = Field(default=None, description="The impacted user ID.", alias="userId") + __properties: ClassVar[List[str]] = ["error", "forAllChildren", "tenantCode", "userId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersFailedAccessibleTenantProfileAssignmentDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": ServicingPublicapiTransfersErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, + "forAllChildren": obj.get("forAllChildren"), + "tenantCode": obj.get("tenantCode"), + "userId": obj.get("userId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_failed_local_tenant_profile_assignment_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_failed_local_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..742a9b969c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_failed_local_tenant_profile_assignment_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_error_dto import ServicingPublicapiTransfersErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO(BaseModel): + """ + ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO + """ # noqa: E501 + error: Optional[ServicingPublicapiTransfersErrorDTO] = Field(default=None, description="The details about the error.") + user_id: Optional[StrictStr] = Field(default=None, description="The impacted user ID.", alias="userId") + __properties: ClassVar[List[str]] = ["error", "userId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": ServicingPublicapiTransfersErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, + "userId": obj.get("userId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_failed_local_tenant_profile_revoke_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_failed_local_tenant_profile_revoke_dto.py new file mode 100644 index 0000000000..8e0997819e --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_failed_local_tenant_profile_revoke_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO(BaseModel): + """ + ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO + """ # noqa: E501 + message: Optional[StrictStr] = Field(default=None, description="The details about the error.") + user_id: Optional[StrictStr] = Field(default=None, description="The impacted user ID.", alias="userId") + __properties: ClassVar[List[str]] = ["message", "userId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "userId": obj.get("userId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_capabilities_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_capabilities_api_response_dto.py new file mode 100644 index 0000000000..08f1df3ecf --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_capabilities_api_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_capability_dto import ServicingPublicapiTransfersCapabilityDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO + """ # noqa: E501 + capabilities: Optional[List[ServicingPublicapiTransfersCapabilityDTO]] = Field(default=None, description="A list of objects representing the available capabilities.") + __properties: ClassVar[List[str]] = ["capabilities"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in capabilities (list) + _items = [] + if self.capabilities: + for _item_capabilities in self.capabilities: + if _item_capabilities: + _items.append(_item_capabilities.to_dict()) + _dict['capabilities'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "capabilities": [ServicingPublicapiTransfersCapabilityDTO.from_dict(_item) for _item in obj["capabilities"]] if obj.get("capabilities") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_content_packages_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_content_packages_api_response_dto.py new file mode 100644 index 0000000000..e70328b886 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_content_packages_api_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_content_package_dto import ServicingPublicapiTransfersContentPackageDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO + """ # noqa: E501 + content_packages: Optional[List[ServicingPublicapiTransfersContentPackageDTO]] = Field(default=None, description="A list of objects representing the available content packages.", alias="contentPackages") + __properties: ClassVar[List[str]] = ["contentPackages"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in content_packages (list) + _items = [] + if self.content_packages: + for _item_content_packages in self.content_packages: + if _item_content_packages: + _items.append(_item_content_packages.to_dict()) + _dict['contentPackages'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "contentPackages": [ServicingPublicapiTransfersContentPackageDTO.from_dict(_item) for _item in obj["contentPackages"]] if obj.get("contentPackages") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_data_access_sets_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_data_access_sets_api_response_dto.py new file mode 100644 index 0000000000..37fdb9e420 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_data_access_sets_api_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_data_access_set_dto import ServicingPublicapiTransfersDataAccessSetDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO + """ # noqa: E501 + data_access_sets: Optional[List[ServicingPublicapiTransfersDataAccessSetDTO]] = Field(default=None, description="A list of objects representing the shareable data access sets.", alias="dataAccessSets") + __properties: ClassVar[List[str]] = ["dataAccessSets"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data_access_sets (list) + _items = [] + if self.data_access_sets: + for _item_data_access_sets in self.data_access_sets: + if _item_data_access_sets: + _items.append(_item_data_access_sets.to_dict()) + _dict['dataAccessSets'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataAccessSets": [ServicingPublicapiTransfersDataAccessSetDTO.from_dict(_item) for _item in obj["dataAccessSets"]] if obj.get("dataAccessSets") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_data_security_objects_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_data_security_objects_api_response_dto.py new file mode 100644 index 0000000000..b365046556 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_data_security_objects_api_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_analytic_object_dto import ServicingPublicapiTransfersAnalyticObjectDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO + """ # noqa: E501 + analytic_objects: Optional[List[ServicingPublicapiTransfersAnalyticObjectDTO]] = Field(default=None, description="A list of analytic objects and their related objects that are available to define data access to.", alias="analyticObjects") + __properties: ClassVar[List[str]] = ["analyticObjects"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in analytic_objects (list) + _items = [] + if self.analytic_objects: + for _item_analytic_objects in self.analytic_objects: + if _item_analytic_objects: + _items.append(_item_analytic_objects.to_dict()) + _dict['analyticObjects'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjects": [ServicingPublicapiTransfersAnalyticObjectDTO.from_dict(_item) for _item in obj["analyticObjects"]] if obj.get("analyticObjects") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_permissions_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_permissions_api_response_dto.py new file mode 100644 index 0000000000..1b43d3642e --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_permissions_api_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_permission_dto import ServicingPublicapiTransfersPermissionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersGetPermissionsAPIResponseDTO(BaseModel): + """ + List of available permissions + """ # noqa: E501 + permissions: Optional[List[ServicingPublicapiTransfersPermissionDTO]] = Field(default=None, description="A list of objects representing the available permissions.") + __properties: ClassVar[List[str]] = ["permissions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersGetPermissionsAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in permissions (list) + _items = [] + if self.permissions: + for _item_permissions in self.permissions: + if _item_permissions: + _items.append(_item_permissions.to_dict()) + _dict['permissions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersGetPermissionsAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permissions": [ServicingPublicapiTransfersPermissionDTO.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_production_versions_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_production_versions_api_response_dto.py new file mode 100644 index 0000000000..baea784fa4 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_production_versions_api_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_project_dto import ServicingPublicapiTransfersProjectDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO + """ # noqa: E501 + published_versions: Optional[List[ServicingPublicapiTransfersProjectDTO]] = Field(default=None, description="A list of projects that were published to production.", alias="publishedVersions") + __properties: ClassVar[List[str]] = ["publishedVersions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in published_versions (list) + _items = [] + if self.published_versions: + for _item_published_versions in self.published_versions: + if _item_published_versions: + _items.append(_item_published_versions.to_dict()) + _dict['publishedVersions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "publishedVersions": [ServicingPublicapiTransfersProjectDTO.from_dict(_item) for _item in obj["publishedVersions"]] if obj.get("publishedVersions") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_projects_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_projects_api_response_dto.py new file mode 100644 index 0000000000..bcf904508c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_get_projects_api_response_dto.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_project_dto import ServicingPublicapiTransfersProjectDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersGetProjectsAPIResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersGetProjectsAPIResponseDTO + """ # noqa: E501 + approval_projects: Optional[List[ServicingPublicapiTransfersProjectDTO]] = Field(default=None, description="A list of objects representing the accessible approval projects for the user.", alias="approvalProjects") + archived_projects: Optional[List[ServicingPublicapiTransfersProjectDTO]] = Field(default=None, description="A list of objects representing the accessible archived projects for the user.", alias="archivedProjects") + open_projects: Optional[List[ServicingPublicapiTransfersProjectDTO]] = Field(default=None, description="A list of objects representing the accessible open projects for the user.", alias="openProjects") + rejected_projects: Optional[List[ServicingPublicapiTransfersProjectDTO]] = Field(default=None, description="A list of objects representing the accessible rejected projects for the user.", alias="rejectedProjects") + __properties: ClassVar[List[str]] = ["approvalProjects", "archivedProjects", "openProjects", "rejectedProjects"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersGetProjectsAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in approval_projects (list) + _items = [] + if self.approval_projects: + for _item_approval_projects in self.approval_projects: + if _item_approval_projects: + _items.append(_item_approval_projects.to_dict()) + _dict['approvalProjects'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in archived_projects (list) + _items = [] + if self.archived_projects: + for _item_archived_projects in self.archived_projects: + if _item_archived_projects: + _items.append(_item_archived_projects.to_dict()) + _dict['archivedProjects'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in open_projects (list) + _items = [] + if self.open_projects: + for _item_open_projects in self.open_projects: + if _item_open_projects: + _items.append(_item_open_projects.to_dict()) + _dict['openProjects'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in rejected_projects (list) + _items = [] + if self.rejected_projects: + for _item_rejected_projects in self.rejected_projects: + if _item_rejected_projects: + _items.append(_item_rejected_projects.to_dict()) + _dict['rejectedProjects'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersGetProjectsAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "approvalProjects": [ServicingPublicapiTransfersProjectDTO.from_dict(_item) for _item in obj["approvalProjects"]] if obj.get("approvalProjects") is not None else None, + "archivedProjects": [ServicingPublicapiTransfersProjectDTO.from_dict(_item) for _item in obj["archivedProjects"]] if obj.get("archivedProjects") is not None else None, + "openProjects": [ServicingPublicapiTransfersProjectDTO.from_dict(_item) for _item in obj["openProjects"]] if obj.get("openProjects") is not None else None, + "rejectedProjects": [ServicingPublicapiTransfersProjectDTO.from_dict(_item) for _item in obj["rejectedProjects"]] if obj.get("rejectedProjects") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_hierarchy_property_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_hierarchy_property_dto.py new file mode 100644 index 0000000000..3f2be7d496 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_hierarchy_property_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersHierarchyPropertyDTO(BaseModel): + """ + ServicingPublicapiTransfersHierarchyPropertyDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable property name to display in Visier, such as \"Name Property\".", alias="displayName") + hierarchy_property_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the property.", alias="hierarchyPropertyId") + __properties: ClassVar[List[str]] = ["displayName", "hierarchyPropertyId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersHierarchyPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersHierarchyPropertyDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "hierarchyPropertyId": obj.get("hierarchyPropertyId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_inherited_access_config_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_inherited_access_config_dto.py new file mode 100644 index 0000000000..f941cc2d27 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_inherited_access_config_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_member_filter_config_dto import ServicingPublicapiTransfersMemberFilterConfigDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersInheritedAccessConfigDTO(BaseModel): + """ + ServicingPublicapiTransfersInheritedAccessConfigDTO + """ # noqa: E501 + analytic_object_id: Optional[StrictStr] = Field(default=None, description="The analytic object ID associated with the inherited access configuration.", alias="analyticObjectId") + member_filter_configs: Optional[List[ServicingPublicapiTransfersMemberFilterConfigDTO]] = Field(default=None, description="Custom filters that define population access for an inherited analytic object in the permission.", alias="memberFilterConfigs") + remove_access: Optional[StrictBool] = Field(default=None, description="The flag for removing access to the inherited analytic object.", alias="removeAccess") + __properties: ClassVar[List[str]] = ["analyticObjectId", "memberFilterConfigs", "removeAccess"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersInheritedAccessConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in member_filter_configs (list) + _items = [] + if self.member_filter_configs: + for _item_member_filter_configs in self.member_filter_configs: + if _item_member_filter_configs: + _items.append(_item_member_filter_configs.to_dict()) + _dict['memberFilterConfigs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersInheritedAccessConfigDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectId": obj.get("analyticObjectId"), + "memberFilterConfigs": [ServicingPublicapiTransfersMemberFilterConfigDTO.from_dict(_item) for _item in obj["memberFilterConfigs"]] if obj.get("memberFilterConfigs") is not None else None, + "removeAccess": obj.get("removeAccess") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_inherited_reference_member_filter_config_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_inherited_reference_member_filter_config_dto.py new file mode 100644 index 0000000000..00fadbf4a0 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_inherited_reference_member_filter_config_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO(BaseModel): + """ + ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO + """ # noqa: E501 + analytic_object_reference: Optional[StrictStr] = Field(default=None, description="The optional object name of a binding (strong) reference to the target analytic object. If not specified, uses the first binding reference from the source to the target analytic object.", alias="analyticObjectReference") + target_analytic_object_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analytic object that the source analytic object should inherit filters from. The target analytic object must have a binding (strong) reference from the source analytic object.", alias="targetAnalyticObjectId") + __properties: ClassVar[List[str]] = ["analyticObjectReference", "targetAnalyticObjectId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersInheritedReferenceMemberFilterConfigDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectReference": obj.get("analyticObjectReference"), + "targetAnalyticObjectId": obj.get("targetAnalyticObjectId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_last_login_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_last_login_dto.py new file mode 100644 index 0000000000..6cbc40d910 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_last_login_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersLastLoginDTO(BaseModel): + """ + ServicingPublicapiTransfersLastLoginDTO + """ # noqa: E501 + timestamp: Optional[StrictStr] = Field(default=None, description="The time that the user last logged into Visier.") + __properties: ClassVar[List[str]] = ["timestamp"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersLastLoginDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersLastLoginDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "timestamp": obj.get("timestamp") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto.py new file mode 100644 index 0000000000..ee48897801 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO(BaseModel): + """ + ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO + """ # noqa: E501 + target_user_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of users to assign this profile.", alias="targetUserIds") + validity_end_time: Optional[StrictStr] = Field(default=None, description="An exclusive date-time when this profile is no longer active.", alias="validityEndTime") + validity_start_time: Optional[StrictStr] = Field(default=None, description="An inclusive date-time when this profile is active.", alias="validityStartTime") + __properties: ClassVar[List[str]] = ["targetUserIds", "validityEndTime", "validityStartTime"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "targetUserIds": obj.get("targetUserIds"), + "validityEndTime": obj.get("validityEndTime"), + "validityStartTime": obj.get("validityStartTime") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_assignment_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_assignment_response_dto.py new file mode 100644 index 0000000000..39e13f2d6b --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_assignment_response_dto.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_failed_local_tenant_profile_assignment_dto import ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_publicapi_transfers_successful_local_tenant_profile_assignment_dto import ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_publicapi_transfers_user_id_error_dto import ServicingPublicapiTransfersUserIdErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO + """ # noqa: E501 + bad_user_ids: Optional[List[ServicingPublicapiTransfersUserIdErrorDTO]] = Field(default=None, description="A list of objects representing the user IDs that may not be valid.", alias="badUserIds") + errors: Optional[StrictBool] = Field(default=None, description="If true, an error was generated by the request.") + failed_assignments: Optional[List[ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO]] = Field(default=None, description="A list of objects representing any errors that occurred during the assignment operation.", alias="failedAssignments") + successful_assignments: Optional[List[ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO]] = Field(default=None, description="A list of the user IDs that were successfully assigned the profile.", alias="successfulAssignments") + __properties: ClassVar[List[str]] = ["badUserIds", "errors", "failedAssignments", "successfulAssignments"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in bad_user_ids (list) + _items = [] + if self.bad_user_ids: + for _item_bad_user_ids in self.bad_user_ids: + if _item_bad_user_ids: + _items.append(_item_bad_user_ids.to_dict()) + _dict['badUserIds'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in failed_assignments (list) + _items = [] + if self.failed_assignments: + for _item_failed_assignments in self.failed_assignments: + if _item_failed_assignments: + _items.append(_item_failed_assignments.to_dict()) + _dict['failedAssignments'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in successful_assignments (list) + _items = [] + if self.successful_assignments: + for _item_successful_assignments in self.successful_assignments: + if _item_successful_assignments: + _items.append(_item_successful_assignments.to_dict()) + _dict['successfulAssignments'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "badUserIds": [ServicingPublicapiTransfersUserIdErrorDTO.from_dict(_item) for _item in obj["badUserIds"]] if obj.get("badUserIds") is not None else None, + "errors": obj.get("errors"), + "failedAssignments": [ServicingPublicapiTransfersFailedLocalTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["failedAssignments"]] if obj.get("failedAssignments") is not None else None, + "successfulAssignments": [ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["successfulAssignments"]] if obj.get("successfulAssignments") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto.py new file mode 100644 index 0000000000..72a59cee54 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO(BaseModel): + """ + ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO + """ # noqa: E501 + target_user_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of users to remove this profile from.", alias="targetUserIds") + __properties: ClassVar[List[str]] = ["targetUserIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "targetUserIds": obj.get("targetUserIds") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_revoke_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_revoke_response_dto.py new file mode 100644 index 0000000000..f28139721d --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_local_tenant_profile_revoke_response_dto.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_failed_local_tenant_profile_revoke_dto import ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO +from visier_api_administration.models.servicing_publicapi_transfers_successful_local_tenant_profile_assignment_dto import ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO + """ # noqa: E501 + failed: Optional[List[ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO]] = Field(default=None, description="A list of objects representing any errors that occurred during the assignment operation.") + succeeded: Optional[List[ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO]] = Field(default=None, description="A list of the user IDs that successfully had a profile removed.") + __properties: ClassVar[List[str]] = ["failed", "succeeded"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in failed (list) + _items = [] + if self.failed: + for _item_failed in self.failed: + if _item_failed: + _items.append(_item_failed.to_dict()) + _dict['failed'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in succeeded (list) + _items = [] + if self.succeeded: + for _item_succeeded in self.succeeded: + if _item_succeeded: + _items.append(_item_succeeded.to_dict()) + _dict['succeeded'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failed": [ServicingPublicapiTransfersFailedLocalTenantProfileRevokeDTO.from_dict(_item) for _item in obj["failed"]] if obj.get("failed") is not None else None, + "succeeded": [ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["succeeded"]] if obj.get("succeeded") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_member_filter_config_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_member_filter_config_dto.py new file mode 100644 index 0000000000..5c91861f27 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_member_filter_config_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_dimension_filter_dto import ServicingPublicapiTransfersDimensionFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersMemberFilterConfigDTO(BaseModel): + """ + ServicingPublicapiTransfersMemberFilterConfigDTO + """ # noqa: E501 + dimension_filters: Optional[List[ServicingPublicapiTransfersDimensionFilterDTO]] = Field(default=None, description="A list of objects representing the custom filters that define population access for the item. A custom filter can be a \"member filter\" (`staticDimensionFilter`) or a \"dynamic filter\" (`dynamicDimensionFilter`).", alias="dimensionFilters") + __properties: ClassVar[List[str]] = ["dimensionFilters"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersMemberFilterConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in dimension_filters (list) + _items = [] + if self.dimension_filters: + for _item_dimension_filters in self.dimension_filters: + if _item_dimension_filters: + _items.append(_item_dimension_filters.to_dict()) + _dict['dimensionFilters'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersMemberFilterConfigDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensionFilters": [ServicingPublicapiTransfersDimensionFilterDTO.from_dict(_item) for _item in obj["dimensionFilters"]] if obj.get("dimensionFilters") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_member_selection_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_member_selection_dto.py new file mode 100644 index 0000000000..dc8bd9fc87 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_member_selection_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersMemberSelectionDTO(BaseModel): + """ + ServicingPublicapiTransfersMemberSelectionDTO + """ # noqa: E501 + dimension_member_status: Optional[StrictStr] = Field(default=None, description="The dimension member's validity status. Valid values: Valid, NotFound. * **Valid**: The object exists and has loaded data. * **NotFound**: The object doesn't exist.", alias="dimensionMemberStatus") + excluded: Optional[StrictBool] = Field(default=None, description="If `true`, population access is granted for all members except this member.") + name_path: Optional[List[StrictStr]] = Field(default=None, description="The member name path.", alias="namePath") + __properties: ClassVar[List[str]] = ["dimensionMemberStatus", "excluded", "namePath"] + + @field_validator('dimension_member_status') + def dimension_member_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Unset', 'Valid', 'NoData', 'NotFound']): + raise ValueError("must be one of enum values ('Unset', 'Valid', 'NoData', 'NotFound')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersMemberSelectionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersMemberSelectionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensionMemberStatus": obj.get("dimensionMemberStatus"), + "excluded": obj.get("excluded"), + "namePath": obj.get("namePath") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_by_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_by_tenant_dto.py new file mode 100644 index 0000000000..89b7bfbb68 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_by_tenant_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_user_dto import ServicingPublicapiTransfersPermissionAssignedUserDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersPermissionAssignedByTenantDTO(BaseModel): + """ + The users assigned a specific permission, grouped by tenant. + """ # noqa: E501 + tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") + users: Optional[List[ServicingPublicapiTransfersPermissionAssignedUserDTO]] = Field(default=None, description="A list of objects representing the users that the permission is assigned to.") + __properties: ClassVar[List[str]] = ["tenantCode", "users"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionAssignedByTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionAssignedByTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenantCode": obj.get("tenantCode"), + "users": [ServicingPublicapiTransfersPermissionAssignedUserDTO.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..930540b3ed --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_for_local_tenant_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO(BaseModel): + """ + ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="A user-defined description of the permission.") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable permission name to display in Visier, such as \"Diversity Access\".", alias="displayName") + permission_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the permission.", alias="permissionId") + __properties: ClassVar[List[str]] = ["description", "displayName", "permissionId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionAssignedForLocalTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "permissionId": obj.get("permissionId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_user_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_user_dto.py new file mode 100644 index 0000000000..710053bc33 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_user_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersPermissionAssignedUserDTO(BaseModel): + """ + The user and the method through which the user was assigned the permission. + """ # noqa: E501 + permission_from: Optional[StrictStr] = Field(default=None, description="The method through which the user was assigned the permission. The permission may be assigned through the following options: - User: The permission was directly assigned to the user. - UserGroup: The permission was assigned because the user belongs to a user group that is assigned the permission. - UserAndUserGroup: The permission was directly assigned to the user and assigned because the user belongs to a user group that is assigned the permission.", alias="permissionFrom") + user_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="userId") + username: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@visier.com.") + __properties: ClassVar[List[str]] = ["permissionFrom", "userId", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionAssignedUserDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionAssignedUserDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permissionFrom": obj.get("permissionFrom"), + "userId": obj.get("userId"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_users_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_users_dto.py new file mode 100644 index 0000000000..3117d0b291 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_assigned_users_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_permission_assigned_by_tenant_dto import ServicingPublicapiTransfersPermissionAssignedByTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersPermissionAssignedUsersDTO(BaseModel): + """ + Users that are assigned a specific permission. + """ # noqa: E501 + limit: Optional[StrictInt] = Field(default=None, description="The number of results to return. The maximum number of tenants to retrieve is 100.") + start: Optional[StrictInt] = Field(default=None, description="The index of the tenant to start retrieving results from, also known as offset. The index begins at 0.") + tenants: Optional[List[ServicingPublicapiTransfersPermissionAssignedByTenantDTO]] = Field(default=None, description="A list of objects representing the users that are assigned the specific permission, organized by the tenants the users belong to.") + __properties: ClassVar[List[str]] = ["limit", "start", "tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionAssignedUsersDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionAssignedUsersDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "start": obj.get("start"), + "tenants": [ServicingPublicapiTransfersPermissionAssignedByTenantDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_bulk_operation_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_bulk_operation_response_dto.py new file mode 100644 index 0000000000..628952cb24 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_bulk_operation_response_dto.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_permission_failure_dto import ServicingPublicapiTransfersPermissionFailureDTO +from visier_api_administration.models.servicing_publicapi_transfers_permission_success_dto import ServicingPublicapiTransfersPermissionSuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersPermissionBulkOperationResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersPermissionBulkOperationResponseDTO + """ # noqa: E501 + failures: Optional[List[ServicingPublicapiTransfersPermissionFailureDTO]] = Field(default=None, description="The permissions that did not process and any relevant error information.") + successes: Optional[List[ServicingPublicapiTransfersPermissionSuccessDTO]] = Field(default=None, description="The successfully processed permissions.") + __properties: ClassVar[List[str]] = ["failures", "successes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionBulkOperationResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in failures (list) + _items = [] + if self.failures: + for _item_failures in self.failures: + if _item_failures: + _items.append(_item_failures.to_dict()) + _dict['failures'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in successes (list) + _items = [] + if self.successes: + for _item_successes in self.successes: + if _item_successes: + _items.append(_item_successes.to_dict()) + _dict['successes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionBulkOperationResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [ServicingPublicapiTransfersPermissionFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [ServicingPublicapiTransfersPermissionSuccessDTO.from_dict(_item) for _item in obj["successes"]] if obj.get("successes") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_dto.py new file mode 100644 index 0000000000..16c2a69bd8 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_dto.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_admin_capability_config_dto import ServicingPublicapiTransfersAdminCapabilityConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_data_security_profile_dto import ServicingPublicapiTransfersDataSecurityProfileDTO +from visier_api_administration.models.servicing_publicapi_transfers_role_modules_config_dto import ServicingPublicapiTransfersRoleModulesConfigDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersPermissionDTO(BaseModel): + """ + ServicingPublicapiTransfersPermissionDTO + """ # noqa: E501 + admin_capability_config: Optional[ServicingPublicapiTransfersAdminCapabilityConfigDTO] = Field(default=None, description="The capabilities assigned in the permission.", alias="adminCapabilityConfig") + data_security_profiles: Optional[List[ServicingPublicapiTransfersDataSecurityProfileDTO]] = Field(default=None, description="A list of objects representing the data security for each item in a permission.", alias="dataSecurityProfiles") + description: Optional[StrictStr] = Field(default=None, description="A user-defined description of the permission.") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable permission name to display in Visier, such as \"Diversity Access\".", alias="displayName") + permission_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the permission.", alias="permissionId") + role_modules_config: Optional[ServicingPublicapiTransfersRoleModulesConfigDTO] = Field(default=None, description="A list of content packages assigned to the permission.", alias="roleModulesConfig") + __properties: ClassVar[List[str]] = ["adminCapabilityConfig", "dataSecurityProfiles", "description", "displayName", "permissionId", "roleModulesConfig"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of admin_capability_config + if self.admin_capability_config: + _dict['adminCapabilityConfig'] = self.admin_capability_config.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in data_security_profiles (list) + _items = [] + if self.data_security_profiles: + for _item_data_security_profiles in self.data_security_profiles: + if _item_data_security_profiles: + _items.append(_item_data_security_profiles.to_dict()) + _dict['dataSecurityProfiles'] = _items + # override the default output from pydantic by calling `to_dict()` of role_modules_config + if self.role_modules_config: + _dict['roleModulesConfig'] = self.role_modules_config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adminCapabilityConfig": ServicingPublicapiTransfersAdminCapabilityConfigDTO.from_dict(obj["adminCapabilityConfig"]) if obj.get("adminCapabilityConfig") is not None else None, + "dataSecurityProfiles": [ServicingPublicapiTransfersDataSecurityProfileDTO.from_dict(_item) for _item in obj["dataSecurityProfiles"]] if obj.get("dataSecurityProfiles") is not None else None, + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "permissionId": obj.get("permissionId"), + "roleModulesConfig": ServicingPublicapiTransfersRoleModulesConfigDTO.from_dict(obj["roleModulesConfig"]) if obj.get("roleModulesConfig") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_error_dto.py new file mode 100644 index 0000000000..e777dffee1 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_error_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersPermissionErrorDTO(BaseModel): + """ + ServicingPublicapiTransfersPermissionErrorDTO + """ # noqa: E501 + message: Optional[StrictStr] = Field(default=None, description="Error message") + rci: Optional[StrictStr] = Field(default=None, description="A root cause identifier that allows Visier to determine the source of the problem.") + __properties: ClassVar[List[str]] = ["message", "rci"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionErrorDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "rci": obj.get("rci") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_failure_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_failure_dto.py new file mode 100644 index 0000000000..a58da5892d --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_failure_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_permission_error_dto import ServicingPublicapiTransfersPermissionErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersPermissionFailureDTO(BaseModel): + """ + ServicingPublicapiTransfersPermissionFailureDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable permission name to display in Visier, such as \"Diversity Access\".", alias="displayName") + error: Optional[ServicingPublicapiTransfersPermissionErrorDTO] = Field(default=None, description="The error associated with the failure.") + permission_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the permission.", alias="permissionId") + __properties: ClassVar[List[str]] = ["displayName", "error", "permissionId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionFailureDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionFailureDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "error": ServicingPublicapiTransfersPermissionErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, + "permissionId": obj.get("permissionId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_success_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_success_dto.py new file mode 100644 index 0000000000..2dd9579a85 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_permission_success_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersPermissionSuccessDTO(BaseModel): + """ + ServicingPublicapiTransfersPermissionSuccessDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable permission name to display in Visier, such as \"Diversity Access\".", alias="displayName") + permission_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the permission.", alias="permissionId") + __properties: ClassVar[List[str]] = ["displayName", "permissionId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionSuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPermissionSuccessDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "permissionId": obj.get("permissionId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_production_version_api_operation_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_production_version_api_operation_request_dto.py new file mode 100644 index 0000000000..d4d10d8214 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_production_version_api_operation_request_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO(BaseModel): + """ + ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO + """ # noqa: E501 + operation: Optional[StrictStr] = Field(default=None, description="The operation to perform. Valid values: * `rollBackTo`: Create a project that rolls back the production version to the specified version. The project contains uncommitted changes that reverse the published versions after the target production version.") + __properties: ClassVar[List[str]] = ["operation"] + + @field_validator('operation') + def operation_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['unknownProductionVersionAPIOperation', 'rollBackTo']): + raise ValueError("must be one of enum values ('unknownProductionVersionAPIOperation', 'rollBackTo')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operation": obj.get("operation") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_production_version_api_operation_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_production_version_api_operation_response_dto.py new file mode 100644 index 0000000000..7653a4546f --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_production_version_api_operation_response_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_project_dto import ServicingPublicapiTransfersProjectDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO + """ # noqa: E501 + roll_back_to: Optional[ServicingPublicapiTransfersProjectDTO] = Field(default=None, description="The project created by the `rollBackTo` operation.", alias="rollBackTo") + __properties: ClassVar[List[str]] = ["rollBackTo"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of roll_back_to + if self.roll_back_to: + _dict['rollBackTo'] = self.roll_back_to.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rollBackTo": ServicingPublicapiTransfersProjectDTO.from_dict(obj["rollBackTo"]) if obj.get("rollBackTo") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_production_versions_api_operation_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_production_versions_api_operation_request_dto.py new file mode 100644 index 0000000000..7d7eb70e01 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_production_versions_api_operation_request_dto.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_export_production_versions_api_operation_parameters_dto import ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO(BaseModel): + """ + ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO + """ # noqa: E501 + export_parameters: Optional[ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO] = Field(default=None, description="The parameters for the `export` option, such as the production version to start exporting versions from. Required for `export` operations.", alias="exportParameters") + operation: Optional[StrictStr] = Field(default=None, description="The operation to perform. Valid values: * `export`: Export the project changes of the requested production versions and their related files, such as any Guidebook images. If successful, a ZIP file is returned containing any relevant image files and a JSON file with the production project changes.") + __properties: ClassVar[List[str]] = ["exportParameters", "operation"] + + @field_validator('operation') + def operation_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['unknownProductionVersionsAPIOperation', 'export']): + raise ValueError("must be one of enum values ('unknownProductionVersionsAPIOperation', 'export')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of export_parameters + if self.export_parameters: + _dict['exportParameters'] = self.export_parameters.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "exportParameters": ServicingPublicapiTransfersExportProductionVersionsAPIOperationParametersDTO.from_dict(obj["exportParameters"]) if obj.get("exportParameters") is not None else None, + "operation": obj.get("operation") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_production_versions_api_operation_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_production_versions_api_operation_response_dto.py new file mode 100644 index 0000000000..2919a7c2c7 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_production_versions_api_operation_response_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO + """ # noqa: E501 + export: Optional[Dict[str, Any]] = Field(default=None, description="The result of the `export` operation.") + __properties: ClassVar[List[str]] = ["export"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "export": obj.get("export") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_profile_assigned_for_accessible_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_profile_assigned_for_accessible_tenant_dto.py new file mode 100644 index 0000000000..c872665c14 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_profile_assigned_for_accessible_tenant_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO(BaseModel): + """ + ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable profile name to display in Visier such as \"Partner Service Manager\".", alias="displayName") + for_all_children: Optional[StrictBool] = Field(default=None, description="If true, the profile is assigned for all the analytic tenants of the administrating tenant.", alias="forAllChildren") + profile_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the profile.", alias="profileId") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant on which this profile is assigned.", alias="tenantCode") + validity_end_time: Optional[StrictStr] = Field(default=None, description="An exclusive date-time when this profile is no longer active. Note: Long.Max_Value means that endTime is undefined and is equivalent to permanent access.", alias="validityEndTime") + validity_start_time: Optional[StrictStr] = Field(default=None, description="An inclusive date-time when this profile is active. Note: Long.Min_Value means that startTime is undefined.", alias="validityStartTime") + __properties: ClassVar[List[str]] = ["displayName", "forAllChildren", "profileId", "tenantCode", "validityEndTime", "validityStartTime"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProfileAssignedForAccessibleTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "forAllChildren": obj.get("forAllChildren"), + "profileId": obj.get("profileId"), + "tenantCode": obj.get("tenantCode"), + "validityEndTime": obj.get("validityEndTime"), + "validityStartTime": obj.get("validityStartTime") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_profile_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_profile_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..b2d4f2e664 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_profile_assigned_for_local_tenant_dto.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_additional_capabilities_dto import ServicingPublicapiTransfersAdditionalCapabilitiesDTO +from visier_api_administration.models.servicing_publicapi_transfers_capabilities_dto import ServicingPublicapiTransfersCapabilitiesDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO(BaseModel): + """ + ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO + """ # noqa: E501 + additional_capabilities: Optional[ServicingPublicapiTransfersAdditionalCapabilitiesDTO] = Field(default=None, description="A list of the additional capabilities that are assigned to this profile.", alias="additionalCapabilities") + capabilities: Optional[List[ServicingPublicapiTransfersCapabilitiesDTO]] = Field(default=None, description="A list of objects representing the access that this profile has for the capabilities of this profile.") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable profile name to display in Visier, such as \"Partner Service Manager\".", alias="displayName") + profile_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the profile.", alias="profileId") + validity_end_time: Optional[StrictStr] = Field(default=None, description="An exclusive date-time when this profile is no longer active.", alias="validityEndTime") + validity_start_time: Optional[StrictStr] = Field(default=None, description="An inclusive date-time when this profile is active.", alias="validityStartTime") + __properties: ClassVar[List[str]] = ["additionalCapabilities", "capabilities", "displayName", "profileId", "validityEndTime", "validityStartTime"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of additional_capabilities + if self.additional_capabilities: + _dict['additionalCapabilities'] = self.additional_capabilities.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in capabilities (list) + _items = [] + if self.capabilities: + for _item_capabilities in self.capabilities: + if _item_capabilities: + _items.append(_item_capabilities.to_dict()) + _dict['capabilities'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProfileAssignedForLocalTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "additionalCapabilities": ServicingPublicapiTransfersAdditionalCapabilitiesDTO.from_dict(obj["additionalCapabilities"]) if obj.get("additionalCapabilities") is not None else None, + "capabilities": [ServicingPublicapiTransfersCapabilitiesDTO.from_dict(_item) for _item in obj["capabilities"]] if obj.get("capabilities") is not None else None, + "displayName": obj.get("displayName"), + "profileId": obj.get("profileId"), + "validityEndTime": obj.get("validityEndTime"), + "validityStartTime": obj.get("validityStartTime") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_profile_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_profile_get_api_response_dto.py new file mode 100644 index 0000000000..4e266cab87 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_profile_get_api_response_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_capabilities_dto import ServicingPublicapiTransfersCapabilitiesDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersProfileGetAPIResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersProfileGetAPIResponseDTO + """ # noqa: E501 + additional_capabilities: Optional[List[StrictStr]] = Field(default=None, description="A list of the additional capabilities that are assigned to this profile.", alias="additionalCapabilities") + capabilities: Optional[List[ServicingPublicapiTransfersCapabilitiesDTO]] = Field(default=None, description="A list of objects representing the access that this profile has for the capabilities of this profile.") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable profile name to display in Visier. For example, \"Partner Service Manager\".", alias="displayName") + profile_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the profile.", alias="profileId") + __properties: ClassVar[List[str]] = ["additionalCapabilities", "capabilities", "displayName", "profileId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProfileGetAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in capabilities (list) + _items = [] + if self.capabilities: + for _item_capabilities in self.capabilities: + if _item_capabilities: + _items.append(_item_capabilities.to_dict()) + _dict['capabilities'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProfileGetAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "additionalCapabilities": obj.get("additionalCapabilities"), + "capabilities": [ServicingPublicapiTransfersCapabilitiesDTO.from_dict(_item) for _item in obj["capabilities"]] if obj.get("capabilities") is not None else None, + "displayName": obj.get("displayName"), + "profileId": obj.get("profileId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_profiles_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_profiles_get_api_response_dto.py new file mode 100644 index 0000000000..a24a41f420 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_profiles_get_api_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_profile_get_api_response_dto import ServicingPublicapiTransfersProfileGetAPIResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersProfilesGetAPIResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersProfilesGetAPIResponseDTO + """ # noqa: E501 + profiles: Optional[List[ServicingPublicapiTransfersProfileGetAPIResponseDTO]] = Field(default=None, description="A list of objects representing the available profiles.") + __properties: ClassVar[List[str]] = ["profiles"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProfilesGetAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in profiles (list) + _items = [] + if self.profiles: + for _item_profiles in self.profiles: + if _item_profiles: + _items.append(_item_profiles.to_dict()) + _dict['profiles'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProfilesGetAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "profiles": [ServicingPublicapiTransfersProfileGetAPIResponseDTO.from_dict(_item) for _item in obj["profiles"]] if obj.get("profiles") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_project_commits_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_project_commits_api_response_dto.py new file mode 100644 index 0000000000..058f8220e1 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_project_commits_api_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_commit_dto import ServicingPublicapiTransfersCommitDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersProjectCommitsAPIResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersProjectCommitsAPIResponseDTO + """ # noqa: E501 + commits: Optional[List[ServicingPublicapiTransfersCommitDTO]] = Field(default=None, description="A list of committed changes in the project.") + __properties: ClassVar[List[str]] = ["commits"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProjectCommitsAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in commits (list) + _items = [] + if self.commits: + for _item_commits in self.commits: + if _item_commits: + _items.append(_item_commits.to_dict()) + _dict['commits'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProjectCommitsAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "commits": [ServicingPublicapiTransfersCommitDTO.from_dict(_item) for _item in obj["commits"]] if obj.get("commits") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_project_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_project_dto.py new file mode 100644 index 0000000000..7391e80833 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_project_dto.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersProjectDTO(BaseModel): + """ + ServicingPublicapiTransfersProjectDTO + """ # noqa: E501 + capabilities: Optional[List[StrictStr]] = Field(default=None, description="The current user's capabilities for the project. Users with `canWrite`, `canShare`, or `owner` capabilities can add and commit changes to the project. **canRead**: The project has been shared to the user with `View` access. **canWrite**: The project has been shared to the user with `Edit` access. **canShare**: The project has been shared to the user with `Share` access. **owner**: The user is the owner of the project. Omit when creating a new project.") + description: Optional[StrictStr] = Field(default=None, description="A description of the project.") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the project. Omit when creating a new project.") + name: Optional[StrictStr] = Field(default=None, description="An identifiable project name to display in Visier.") + release_version: Optional[StrictStr] = Field(default=None, description="The release version of the project.", alias="releaseVersion") + ticket_number: Optional[StrictStr] = Field(default=None, description="The change management ticket number of the project.", alias="ticketNumber") + version_number: Optional[StrictInt] = Field(default=None, description="The version number of the project.", alias="versionNumber") + __properties: ClassVar[List[str]] = ["capabilities", "description", "id", "name", "releaseVersion", "ticketNumber", "versionNumber"] + + @field_validator('capabilities') + def capabilities_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['canRead', 'canWrite', 'canShare', 'owner']): + raise ValueError("each list item must be one of ('canRead', 'canWrite', 'canShare', 'owner')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProjectDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProjectDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "capabilities": obj.get("capabilities"), + "description": obj.get("description"), + "id": obj.get("id"), + "name": obj.get("name"), + "releaseVersion": obj.get("releaseVersion"), + "ticketNumber": obj.get("ticketNumber"), + "versionNumber": obj.get("versionNumber") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_project_operation_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_project_operation_request_dto.py new file mode 100644 index 0000000000..d8b6b942d4 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_project_operation_request_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersProjectOperationRequestDTO(BaseModel): + """ + ServicingPublicapiTransfersProjectOperationRequestDTO + """ # noqa: E501 + operation: Optional[StrictStr] = Field(default=None, description="The operation to perform on a draft project. Valid values: * `commitAndPublish`: Commits the requesting user's changes and publishes the draft project to production.") + __properties: ClassVar[List[str]] = ["operation"] + + @field_validator('operation') + def operation_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['unknown', 'commitAndPublish']): + raise ValueError("must be one of enum values ('unknown', 'commitAndPublish')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProjectOperationRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProjectOperationRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operation": obj.get("operation") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_project_operation_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_project_operation_response_dto.py new file mode 100644 index 0000000000..718ad81fec --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_project_operation_response_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_commit_and_publish_operation_response_dto import ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersProjectOperationResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersProjectOperationResponseDTO + """ # noqa: E501 + commit_and_publish: Optional[ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO] = Field(default=None, description="The result of the `commitAndPublish` operation.", alias="commitAndPublish") + __properties: ClassVar[List[str]] = ["commitAndPublish"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProjectOperationResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of commit_and_publish + if self.commit_and_publish: + _dict['commitAndPublish'] = self.commit_and_publish.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersProjectOperationResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "commitAndPublish": ServicingPublicapiTransfersCommitAndPublishOperationResponseDTO.from_dict(obj["commitAndPublish"]) if obj.get("commitAndPublish") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_property_access_config_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_property_access_config_dto.py new file mode 100644 index 0000000000..c00a520b29 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_property_access_config_dto.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersPropertyAccessConfigDTO(BaseModel): + """ + ServicingPublicapiTransfersPropertyAccessConfigDTO + """ # noqa: E501 + access_level: Optional[StrictStr] = Field(default=None, description="The access level of the property. Valid values are: `Aggregate`, `Detailed`. * **Aggregate**: The property can only be accessed as part of an aggregate. * **Detailed**: The property can be accessed at a detailed level.", alias="accessLevel") + analytic_object_id: Optional[StrictStr] = Field(default=None, description="The analytic object ID of the property.", alias="analyticObjectId") + analytic_object_reference_paths: Optional[List[StrictStr]] = Field(default=None, description="The path to the analytic object reference. Empty if the configuration is not a reference.", alias="analyticObjectReferencePaths") + property_id: Optional[StrictStr] = Field(default=None, description="The property ID associated with the property access configuration.", alias="propertyId") + property_status: Optional[StrictStr] = Field(default=None, description="The property's validity status. Valid values: `Valid`, `NoData`, `NotFound`. * **Valid**: The object exists and has loaded data. * **NoData**: The object exists but doesn't have loaded data. * **NotFound**: The object doesn't exist.", alias="propertyStatus") + __properties: ClassVar[List[str]] = ["accessLevel", "analyticObjectId", "analyticObjectReferencePaths", "propertyId", "propertyStatus"] + + @field_validator('access_level') + def access_level_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['None', 'Aggregate', 'Detailed']): + raise ValueError("must be one of enum values ('None', 'Aggregate', 'Detailed')") + return value + + @field_validator('property_status') + def property_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Unset', 'Valid', 'NoData', 'NotFound']): + raise ValueError("must be one of enum values ('Unset', 'Valid', 'NoData', 'NotFound')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPropertyAccessConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPropertyAccessConfigDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accessLevel": obj.get("accessLevel"), + "analyticObjectId": obj.get("analyticObjectId"), + "analyticObjectReferencePaths": obj.get("analyticObjectReferencePaths"), + "propertyId": obj.get("propertyId"), + "propertyStatus": obj.get("propertyStatus") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_property_set_config_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_property_set_config_dto.py new file mode 100644 index 0000000000..aa5fa5b382 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_property_set_config_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_property_access_config_dto import ServicingPublicapiTransfersPropertyAccessConfigDTO +from visier_api_administration.models.servicing_publicapi_transfers_shareable_data_access_set import ServicingPublicapiTransfersShareableDataAccessSet +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersPropertySetConfigDTO(BaseModel): + """ + ServicingPublicapiTransfersPropertySetConfigDTO + """ # noqa: E501 + property_access_configs: Optional[List[ServicingPublicapiTransfersPropertyAccessConfigDTO]] = Field(default=None, description="The data access for a property.", alias="propertyAccessConfigs") + shareable_data_access_set: Optional[ServicingPublicapiTransfersShareableDataAccessSet] = Field(default=None, description="A shareable data access set. Shareable data access sets may be linked in multiple permissions.", alias="shareableDataAccessSet") + __properties: ClassVar[List[str]] = ["propertyAccessConfigs", "shareableDataAccessSet"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPropertySetConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in property_access_configs (list) + _items = [] + if self.property_access_configs: + for _item_property_access_configs in self.property_access_configs: + if _item_property_access_configs: + _items.append(_item_property_access_configs.to_dict()) + _dict['propertyAccessConfigs'] = _items + # override the default output from pydantic by calling `to_dict()` of shareable_data_access_set + if self.shareable_data_access_set: + _dict['shareableDataAccessSet'] = self.shareable_data_access_set.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersPropertySetConfigDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyAccessConfigs": [ServicingPublicapiTransfersPropertyAccessConfigDTO.from_dict(_item) for _item in obj["propertyAccessConfigs"]] if obj.get("propertyAccessConfigs") is not None else None, + "shareableDataAccessSet": ServicingPublicapiTransfersShareableDataAccessSet.from_dict(obj["shareableDataAccessSet"]) if obj.get("shareableDataAccessSet") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_reduced_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_reduced_error_dto.py new file mode 100644 index 0000000000..3f3f17e468 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_reduced_error_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersReducedErrorDTO(BaseModel): + """ + ServicingPublicapiTransfersReducedErrorDTO + """ # noqa: E501 + error_message: Optional[StrictStr] = Field(default=None, description="A meaningful message for the end user.", alias="errorMessage") + __properties: ClassVar[List[str]] = ["errorMessage"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersReducedErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersReducedErrorDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "errorMessage": obj.get("errorMessage") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_reduced_tenant_code_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_reduced_tenant_code_error_dto.py new file mode 100644 index 0000000000..79fccf0cfe --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_reduced_tenant_code_error_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_reduced_error_dto import ServicingPublicapiTransfersReducedErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersReducedTenantCodeErrorDTO(BaseModel): + """ + ServicingPublicapiTransfersReducedTenantCodeErrorDTO + """ # noqa: E501 + error: Optional[ServicingPublicapiTransfersReducedErrorDTO] = Field(default=None, description="The details about the error.") + for_all_children: Optional[StrictBool] = Field(default=None, description="If true, the assignment is for all the analytic tenants of the specified tenant.", alias="forAllChildren") + tenant_code: Optional[StrictStr] = Field(default=None, description="The bad tenant code.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["error", "forAllChildren", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersReducedTenantCodeErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersReducedTenantCodeErrorDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": ServicingPublicapiTransfersReducedErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, + "forAllChildren": obj.get("forAllChildren"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_reduced_user_id_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_reduced_user_id_error_dto.py new file mode 100644 index 0000000000..6ef9ab43bc --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_reduced_user_id_error_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_reduced_error_dto import ServicingPublicapiTransfersReducedErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersReducedUserIdErrorDTO(BaseModel): + """ + ServicingPublicapiTransfersReducedUserIdErrorDTO + """ # noqa: E501 + error: Optional[ServicingPublicapiTransfersReducedErrorDTO] = Field(default=None, description="The details about the error.") + user_id: Optional[StrictStr] = Field(default=None, description="The bad user ID.", alias="userId") + __properties: ClassVar[List[str]] = ["error", "userId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersReducedUserIdErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersReducedUserIdErrorDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": ServicingPublicapiTransfersReducedErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, + "userId": obj.get("userId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_related_analytic_object_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_related_analytic_object_dto.py new file mode 100644 index 0000000000..229829c5e8 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_related_analytic_object_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersRelatedAnalyticObjectDTO(BaseModel): + """ + ServicingPublicapiTransfersRelatedAnalyticObjectDTO + """ # noqa: E501 + analytic_object_id: Optional[StrictStr] = Field(default=None, description="The analytic object ID.", alias="analyticObjectId") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable analytic object name to display in Visier, such as \"Recognition\".", alias="displayName") + __properties: ClassVar[List[str]] = ["analyticObjectId", "displayName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersRelatedAnalyticObjectDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersRelatedAnalyticObjectDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectId": obj.get("analyticObjectId"), + "displayName": obj.get("displayName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_role_modules_config_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_role_modules_config_dto.py new file mode 100644 index 0000000000..f4ed4355a5 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_role_modules_config_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersRoleModulesConfigDTO(BaseModel): + """ + ServicingPublicapiTransfersRoleModulesConfigDTO + """ # noqa: E501 + content_package_ids: Optional[List[StrictStr]] = Field(default=None, description="The unique IDs of the content packages assigned to the permission.", alias="contentPackageIds") + __properties: ClassVar[List[str]] = ["contentPackageIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersRoleModulesConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersRoleModulesConfigDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "contentPackageIds": obj.get("contentPackageIds") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_securable_dimension_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_securable_dimension_dto.py new file mode 100644 index 0000000000..6179ec7d3a --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_securable_dimension_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_hierarchy_property_dto import ServicingPublicapiTransfersHierarchyPropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersSecurableDimensionDTO(BaseModel): + """ + ServicingPublicapiTransfersSecurableDimensionDTO + """ # noqa: E501 + analytic_object_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of analytic object IDs.", alias="analyticObjectIds") + dimension_id: Optional[StrictStr] = Field(default=None, description="The dimension ID.", alias="dimensionId") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable dimension name to display in Visier, such as \"Contract Type\".", alias="displayName") + hierarchy_properties: Optional[List[ServicingPublicapiTransfersHierarchyPropertyDTO]] = Field(default=None, description="The list of hierarchies you can map to a user in a permission's dynamic filter.", alias="hierarchyProperties") + __properties: ClassVar[List[str]] = ["analyticObjectIds", "dimensionId", "displayName", "hierarchyProperties"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersSecurableDimensionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in hierarchy_properties (list) + _items = [] + if self.hierarchy_properties: + for _item_hierarchy_properties in self.hierarchy_properties: + if _item_hierarchy_properties: + _items.append(_item_hierarchy_properties.to_dict()) + _dict['hierarchyProperties'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersSecurableDimensionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectIds": obj.get("analyticObjectIds"), + "dimensionId": obj.get("dimensionId"), + "displayName": obj.get("displayName"), + "hierarchyProperties": [ServicingPublicapiTransfersHierarchyPropertyDTO.from_dict(_item) for _item in obj["hierarchyProperties"]] if obj.get("hierarchyProperties") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_securable_property_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_securable_property_dto.py new file mode 100644 index 0000000000..7136055ff9 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_securable_property_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersSecurablePropertyDTO(BaseModel): + """ + ServicingPublicapiTransfersSecurablePropertyDTO + """ # noqa: E501 + analytic_object_id: Optional[StrictStr] = Field(default=None, description="The property's analytic object ID.", alias="analyticObjectId") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable property name to display in Visier, such as \"Job Pay Level\".", alias="displayName") + is_primary_key: Optional[StrictBool] = Field(default=None, description="If true, this property is the analytic object's primary key.", alias="isPrimaryKey") + property_id: Optional[StrictStr] = Field(default=None, description="The property ID.", alias="propertyId") + reference_symbol_name: Optional[StrictStr] = Field(default=None, description="The reference symbol name.", alias="referenceSymbolName") + __properties: ClassVar[List[str]] = ["analyticObjectId", "displayName", "isPrimaryKey", "propertyId", "referenceSymbolName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersSecurablePropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersSecurablePropertyDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectId": obj.get("analyticObjectId"), + "displayName": obj.get("displayName"), + "isPrimaryKey": obj.get("isPrimaryKey"), + "propertyId": obj.get("propertyId"), + "referenceSymbolName": obj.get("referenceSymbolName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_shareable_data_access_set.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_shareable_data_access_set.py new file mode 100644 index 0000000000..b7d2bb5987 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_shareable_data_access_set.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersShareableDataAccessSet(BaseModel): + """ + ServicingPublicapiTransfersShareableDataAccessSet + """ # noqa: E501 + data_access_set_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the shareable data access set.", alias="dataAccessSetId") + __properties: ClassVar[List[str]] = ["dataAccessSetId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersShareableDataAccessSet from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersShareableDataAccessSet from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataAccessSetId": obj.get("dataAccessSetId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_sources_api_operation_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_sources_api_operation_request_dto.py new file mode 100644 index 0000000000..ba9d3f6908 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_sources_api_operation_request_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersSourcesAPIOperationRequestDTO(BaseModel): + """ + ServicingPublicapiTransfersSourcesAPIOperationRequestDTO + """ # noqa: E501 + operation: Optional[StrictStr] = Field(default=None, description="The operation to perform. Valid values: * `exportSources`: Export all sources from the tenant. If successful, a ZIP file is returned containing a compressed JSON file with the sources.") + __properties: ClassVar[List[str]] = ["operation"] + + @field_validator('operation') + def operation_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['unknownSourcesAPIOperation', 'exportSources']): + raise ValueError("must be one of enum values ('unknownSourcesAPIOperation', 'exportSources')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersSourcesAPIOperationRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersSourcesAPIOperationRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operation": obj.get("operation") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_static_dimension_filter_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_static_dimension_filter_dto.py new file mode 100644 index 0000000000..cc53dd1065 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_static_dimension_filter_dto.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_member_selection_dto import ServicingPublicapiTransfersMemberSelectionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersStaticDimensionFilterDTO(BaseModel): + """ + ServicingPublicapiTransfersStaticDimensionFilterDTO + """ # noqa: E501 + dimension_id: Optional[StrictStr] = Field(default=None, description="The dimension ID associated with the filter.", alias="dimensionId") + dimension_status: Optional[StrictStr] = Field(default=None, description="The dimension's validity status. Valid values: Valid, NoData, NotFound. * **Valid**: The object exists and has loaded data. * **NoData**: The object exists but doesn't have loaded data. * **NotFound**: The object doesn't exist.", alias="dimensionStatus") + member_selections: Optional[List[ServicingPublicapiTransfersMemberSelectionDTO]] = Field(default=None, description="A list of objects representing the dimension members assigned population access in the member filter.", alias="memberSelections") + subject_reference_path: Optional[List[StrictStr]] = Field(default=None, description="The subject reference path.", alias="subjectReferencePath") + __properties: ClassVar[List[str]] = ["dimensionId", "dimensionStatus", "memberSelections", "subjectReferencePath"] + + @field_validator('dimension_status') + def dimension_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Unset', 'Valid', 'NoData', 'NotFound']): + raise ValueError("must be one of enum values ('Unset', 'Valid', 'NoData', 'NotFound')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersStaticDimensionFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in member_selections (list) + _items = [] + if self.member_selections: + for _item_member_selections in self.member_selections: + if _item_member_selections: + _items.append(_item_member_selections.to_dict()) + _dict['memberSelections'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersStaticDimensionFilterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensionId": obj.get("dimensionId"), + "dimensionStatus": obj.get("dimensionStatus"), + "memberSelections": [ServicingPublicapiTransfersMemberSelectionDTO.from_dict(_item) for _item in obj["memberSelections"]] if obj.get("memberSelections") is not None else None, + "subjectReferencePath": obj.get("subjectReferencePath") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_successful_accessible_tenant_profile_assignment_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_successful_accessible_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..5f25f2cc11 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_successful_accessible_tenant_profile_assignment_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO(BaseModel): + """ + ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO + """ # noqa: E501 + for_all_children: Optional[StrictBool] = Field(default=None, description="If true, the target assignment is for all analytic tenants.", alias="forAllChildren") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code.", alias="tenantCode") + user_id: Optional[StrictStr] = Field(default=None, description="The user ID.", alias="userId") + __properties: ClassVar[List[str]] = ["forAllChildren", "tenantCode", "userId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersSuccessfulAccessibleTenantProfileAssignmentDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "forAllChildren": obj.get("forAllChildren"), + "tenantCode": obj.get("tenantCode"), + "userId": obj.get("userId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_successful_local_tenant_profile_assignment_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_successful_local_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..9e96db3b84 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_successful_local_tenant_profile_assignment_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO(BaseModel): + """ + ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO + """ # noqa: E501 + user_id: Optional[StrictStr] = Field(default=None, description="The user ID.", alias="userId") + __properties: ClassVar[List[str]] = ["userId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersSuccessfulLocalTenantProfileAssignmentDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userId": obj.get("userId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_target_tenant_code_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_target_tenant_code_dto.py new file mode 100644 index 0000000000..babd55c382 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_target_tenant_code_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersTargetTenantCodeDTO(BaseModel): + """ + ServicingPublicapiTransfersTargetTenantCodeDTO + """ # noqa: E501 + for_all_children: Optional[StrictBool] = Field(default=None, description="If true, the assignment is for all the analytic tenants of the specified tenant.", alias="forAllChildren") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["forAllChildren", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersTargetTenantCodeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersTargetTenantCodeDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "forAllChildren": obj.get("forAllChildren"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_tenant_code_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_tenant_code_error_dto.py new file mode 100644 index 0000000000..a578eadbfc --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_tenant_code_error_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_error_dto import ServicingPublicapiTransfersErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersTenantCodeErrorDTO(BaseModel): + """ + ServicingPublicapiTransfersTenantCodeErrorDTO + """ # noqa: E501 + error: Optional[ServicingPublicapiTransfersErrorDTO] = Field(default=None, description="The details about the error.") + for_all_children: Optional[StrictBool] = Field(default=None, description="If true, the target assignment is for all analytic tenants.", alias="forAllChildren") + tenant_code: Optional[StrictStr] = Field(default=None, description="The bad tenant code.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["error", "forAllChildren", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersTenantCodeErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersTenantCodeErrorDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": ServicingPublicapiTransfersErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, + "forAllChildren": obj.get("forAllChildren"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_creation_api_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_creation_api_request_dto.py new file mode 100644 index 0000000000..ae6f0c9644 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_creation_api_request_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersUserCreationAPIRequestDTO(BaseModel): + """ + ServicingPublicapiTransfersUserCreationAPIRequestDTO + """ # noqa: E501 + account_enabled: Optional[StrictStr] = Field(default=None, description="If false, the user account is disabled.", alias="accountEnabled") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name to display within Visier. For example, \"John Smith\".", alias="displayName") + email: Optional[StrictStr] = Field(default=None, description="The user's email. This is used if the user's email is different from their username. For example, \"john.doe@visier.com\".") + employee_id: Optional[StrictStr] = Field(default=None, description="If applicable, and if available, the user employee ID in the data.", alias="employeeId") + username: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@visier.com.") + __properties: ClassVar[List[str]] = ["accountEnabled", "displayName", "email", "employeeId", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUserCreationAPIRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUserCreationAPIRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accountEnabled": obj.get("accountEnabled"), + "displayName": obj.get("displayName"), + "email": obj.get("email"), + "employeeId": obj.get("employeeId"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_get_api_response_dto.py new file mode 100644 index 0000000000..2a7375f2bb --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_get_api_response_dto.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_all_permissions_assigned_for_local_tenant_dto import ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_all_profile_assigned_for_local_tenant_dto import ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_all_user_groups_assigned_for_local_tenant_dto import ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_publicapi_transfers_last_login_dto import ServicingPublicapiTransfersLastLoginDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersUserGetAPIResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersUserGetAPIResponseDTO + """ # noqa: E501 + account_enabled: Optional[StrictBool] = Field(default=None, description="If false, the user account is disabled.", alias="accountEnabled") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name to display within Visier. For example, \"John Smith\".", alias="displayName") + email: Optional[StrictStr] = Field(default=None, description="The user's email address.") + employee_id: Optional[StrictStr] = Field(default=None, description="If applicable, and if available, the user employee ID in the data.", alias="employeeId") + last_login: Optional[ServicingPublicapiTransfersLastLoginDTO] = Field(default=None, description="An object that represents the time that the user last logged into Visier.", alias="lastLogin") + permissions: Optional[ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO] = Field(default=None, description="A list of objects representing the user's permissions.") + profiles: Optional[ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO] = Field(default=None, description="A list of objects representing the list of available profiles. Not returned if the user has no profiles.") + user_groups: Optional[ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO] = Field(default=None, description="A list of objects representing the available user groups.", alias="userGroups") + user_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="userId") + username: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@jupiter.com.") + __properties: ClassVar[List[str]] = ["accountEnabled", "displayName", "email", "employeeId", "lastLogin", "permissions", "profiles", "userGroups", "userId", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUserGetAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of last_login + if self.last_login: + _dict['lastLogin'] = self.last_login.to_dict() + # override the default output from pydantic by calling `to_dict()` of permissions + if self.permissions: + _dict['permissions'] = self.permissions.to_dict() + # override the default output from pydantic by calling `to_dict()` of profiles + if self.profiles: + _dict['profiles'] = self.profiles.to_dict() + # override the default output from pydantic by calling `to_dict()` of user_groups + if self.user_groups: + _dict['userGroups'] = self.user_groups.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUserGetAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accountEnabled": obj.get("accountEnabled"), + "displayName": obj.get("displayName"), + "email": obj.get("email"), + "employeeId": obj.get("employeeId"), + "lastLogin": ServicingPublicapiTransfersLastLoginDTO.from_dict(obj["lastLogin"]) if obj.get("lastLogin") is not None else None, + "permissions": ServicingPublicapiTransfersAllPermissionsAssignedForLocalTenantDTO.from_dict(obj["permissions"]) if obj.get("permissions") is not None else None, + "profiles": ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO.from_dict(obj["profiles"]) if obj.get("profiles") is not None else None, + "userGroups": ServicingPublicapiTransfersAllUserGroupsAssignedForLocalTenantDTO.from_dict(obj["userGroups"]) if obj.get("userGroups") is not None else None, + "userId": obj.get("userId"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_group_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_group_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..24e70c76e9 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_group_assigned_for_local_tenant_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO(BaseModel): + """ + ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable user group name to display in Visier, such as \"Leadership User Group\".", alias="displayName") + user_group_id: Optional[StrictStr] = Field(default=None, description="The user group ID.", alias="userGroupId") + __properties: ClassVar[List[str]] = ["displayName", "userGroupId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUserGroupAssignedForLocalTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "userGroupId": obj.get("userGroupId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_id_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_id_error_dto.py new file mode 100644 index 0000000000..b84c95528a --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_id_error_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_error_dto import ServicingPublicapiTransfersErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersUserIdErrorDTO(BaseModel): + """ + ServicingPublicapiTransfersUserIdErrorDTO + """ # noqa: E501 + error: Optional[ServicingPublicapiTransfersErrorDTO] = Field(default=None, description="The details about the error.") + user_id: Optional[StrictStr] = Field(default=None, description="The bad user ID.", alias="userId") + __properties: ClassVar[List[str]] = ["error", "userId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUserIdErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUserIdErrorDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": ServicingPublicapiTransfersErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, + "userId": obj.get("userId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_property_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_property_dto.py new file mode 100644 index 0000000000..8732971e8e --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_property_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersUserPropertyDTO(BaseModel): + """ + ServicingPublicapiTransfersUserPropertyDTO + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="The name property to map to in the dynamic filter. Valid values are one of `username`, `email`, `employeeId`.") + __properties: ClassVar[List[str]] = ["name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUserPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUserPropertyDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_update_api_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_update_api_request_dto.py new file mode 100644 index 0000000000..c59151087d --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_user_update_api_request_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersUserUpdateAPIRequestDTO(BaseModel): + """ + ServicingPublicapiTransfersUserUpdateAPIRequestDTO + """ # noqa: E501 + account_enabled: Optional[StrictStr] = Field(default=None, description="If true, the user account is enabled.", alias="accountEnabled") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name to display within Visier. For example, \"John Smith\".", alias="displayName") + email: Optional[StrictStr] = Field(default=None, description="The user's email address.") + employee_id: Optional[StrictStr] = Field(default=None, description="If applicable, and if available, the user employee ID in the data.", alias="employeeId") + __properties: ClassVar[List[str]] = ["accountEnabled", "displayName", "email", "employeeId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUserUpdateAPIRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUserUpdateAPIRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accountEnabled": obj.get("accountEnabled"), + "displayName": obj.get("displayName"), + "email": obj.get("email"), + "employeeId": obj.get("employeeId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_api_error_message_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_api_error_message_dto.py new file mode 100644 index 0000000000..3765c13ab8 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_api_error_message_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersUsersAPIErrorMessageDTO(BaseModel): + """ + ServicingPublicapiTransfersUsersAPIErrorMessageDTO + """ # noqa: E501 + message: Optional[StrictStr] = Field(default=None, description="Error message") + rci: Optional[StrictStr] = Field(default=None, description="The unique identifier associated to this error") + __properties: ClassVar[List[str]] = ["message", "rci"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersAPIErrorMessageDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersAPIErrorMessageDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "rci": obj.get("rci") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_api_failure_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_api_failure_dto.py new file mode 100644 index 0000000000..7bf76e7ca4 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_api_failure_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_users_api_error_message_dto import ServicingPublicapiTransfersUsersAPIErrorMessageDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersUsersAPIFailureDTO(BaseModel): + """ + ServicingPublicapiTransfersUsersAPIFailureDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name to display within Visier. For example, \"John Smith\".", alias="displayName") + error: Optional[ServicingPublicapiTransfersUsersAPIErrorMessageDTO] = Field(default=None, description="The error thrown during creation.") + user_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="userId") + user_name: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@jupiter.com.", alias="userName") + __properties: ClassVar[List[str]] = ["displayName", "error", "userId", "userName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersAPIFailureDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersAPIFailureDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "error": ServicingPublicapiTransfersUsersAPIErrorMessageDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, + "userId": obj.get("userId"), + "userName": obj.get("userName") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_api_response_dto.py new file mode 100644 index 0000000000..1c967e6d79 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_api_response_dto.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_users_api_failure_dto import ServicingPublicapiTransfersUsersAPIFailureDTO +from visier_api_administration.models.servicing_publicapi_transfers_users_api_success_dto import ServicingPublicapiTransfersUsersAPISuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersUsersAPIResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersUsersAPIResponseDTO + """ # noqa: E501 + failures: Optional[List[ServicingPublicapiTransfersUsersAPIFailureDTO]] = Field(default=None, description="The users for which the request failed.") + successes: Optional[List[ServicingPublicapiTransfersUsersAPISuccessDTO]] = Field(default=None, description="The users for which the request succeeded.") + __properties: ClassVar[List[str]] = ["failures", "successes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in failures (list) + _items = [] + if self.failures: + for _item_failures in self.failures: + if _item_failures: + _items.append(_item_failures.to_dict()) + _dict['failures'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in successes (list) + _items = [] + if self.successes: + for _item_successes in self.successes: + if _item_successes: + _items.append(_item_successes.to_dict()) + _dict['successes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [ServicingPublicapiTransfersUsersAPIFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [ServicingPublicapiTransfersUsersAPISuccessDTO.from_dict(_item) for _item in obj["successes"]] if obj.get("successes") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_api_success_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_api_success_dto.py new file mode 100644 index 0000000000..41e35b7502 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_api_success_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersUsersAPISuccessDTO(BaseModel): + """ + ServicingPublicapiTransfersUsersAPISuccessDTO + """ # noqa: E501 + account_enabled: Optional[StrictStr] = Field(default=None, description="If true, the user account is enabled.", alias="accountEnabled") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name to display within Visier. For example, \"John Smith\".", alias="displayName") + email: Optional[StrictStr] = Field(default=None, description="The user's email address.") + employee_id: Optional[StrictStr] = Field(default=None, description="If applicable, and if available, the user employee ID in the data.", alias="employeeId") + user_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="userId") + username: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@jupiter.com.") + __properties: ClassVar[List[str]] = ["accountEnabled", "displayName", "email", "employeeId", "userId", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersAPISuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersAPISuccessDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accountEnabled": obj.get("accountEnabled"), + "displayName": obj.get("displayName"), + "email": obj.get("email"), + "employeeId": obj.get("employeeId"), + "userId": obj.get("userId"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_creation_api_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_creation_api_request_dto.py new file mode 100644 index 0000000000..87e5afba9e --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_creation_api_request_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_user_creation_api_request_dto import ServicingPublicapiTransfersUserCreationAPIRequestDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersUsersCreationAPIRequestDTO(BaseModel): + """ + ServicingPublicapiTransfersUsersCreationAPIRequestDTO + """ # noqa: E501 + users: Optional[List[ServicingPublicapiTransfersUserCreationAPIRequestDTO]] = Field(default=None, description="A list of objects representing users to create. Maximum 100 users can be created in a single request.") + __properties: ClassVar[List[str]] = ["users"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersCreationAPIRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersCreationAPIRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [ServicingPublicapiTransfersUserCreationAPIRequestDTO.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_delete_api_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_delete_api_request_dto.py new file mode 100644 index 0000000000..acc0d2dd9c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_delete_api_request_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersUsersDeleteAPIRequestDTO(BaseModel): + """ + ServicingPublicapiTransfersUsersDeleteAPIRequestDTO + """ # noqa: E501 + user_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of objects representing users to delete. Maximum 100 users can be deleted in a single request.", alias="userIds") + __properties: ClassVar[List[str]] = ["userIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersDeleteAPIRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersDeleteAPIRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userIds": obj.get("userIds") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_update_api_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_update_api_request_dto.py new file mode 100644 index 0000000000..1cd752a59d --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_update_api_request_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_administration.models.servicing_publicapi_transfers_users_update_api_user_dto import ServicingPublicapiTransfersUsersUpdateAPIUserDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersUsersUpdateAPIRequestDTO(BaseModel): + """ + ServicingPublicapiTransfersUsersUpdateAPIRequestDTO + """ # noqa: E501 + users: Optional[List[ServicingPublicapiTransfersUsersUpdateAPIUserDTO]] = Field(default=None, description="A list of objects representing users to update. Maximum 100 users can be updated in a single request.") + __properties: ClassVar[List[str]] = ["users"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersUpdateAPIRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersUpdateAPIRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [ServicingPublicapiTransfersUsersUpdateAPIUserDTO.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_update_api_user_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_update_api_user_dto.py new file mode 100644 index 0000000000..d3fb133525 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_users_update_api_user_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersUsersUpdateAPIUserDTO(BaseModel): + """ + ServicingPublicapiTransfersUsersUpdateAPIUserDTO + """ # noqa: E501 + account_enabled: Optional[StrictStr] = Field(default=None, description="If true, the user account is enabled.", alias="accountEnabled") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name to display within Visier. For example, \"John Smith\".", alias="displayName") + email: Optional[StrictStr] = Field(default=None, description="The user's email address.") + employee_id: Optional[StrictStr] = Field(default=None, description="If applicable, and if available, the user employee ID in the data.", alias="employeeId") + user_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="userId") + __properties: ClassVar[List[str]] = ["accountEnabled", "displayName", "email", "employeeId", "userId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersUpdateAPIUserDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersUsersUpdateAPIUserDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accountEnabled": obj.get("accountEnabled"), + "displayName": obj.get("displayName"), + "email": obj.get("email"), + "employeeId": obj.get("employeeId"), + "userId": obj.get("userId") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/shareable_data_access_set.py b/src/visier_api_administration/visier_api_administration/models/shareable_data_access_set.py deleted file mode 100644 index 99042c82bd..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/shareable_data_access_set.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ShareableDataAccessSet(BaseModel): - """ - ShareableDataAccessSet - """ # noqa: E501 - data_access_set_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the shareable data access set.", alias="dataAccessSetId") - __properties: ClassVar[List[str]] = ["dataAccessSetId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ShareableDataAccessSet from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ShareableDataAccessSet from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataAccessSetId": obj.get("dataAccessSetId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/simple_user_dto.py b/src/visier_api_administration/visier_api_administration/models/simple_user_dto.py deleted file mode 100644 index d61e37693f..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/simple_user_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SimpleUserDTO(BaseModel): - """ - SimpleUserDTO - """ # noqa: E501 - user_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="userId") - username: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@visier.com.") - __properties: ClassVar[List[str]] = ["userId", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SimpleUserDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SimpleUserDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "userId": obj.get("userId"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/source_import_result_summary_dto.py b/src/visier_api_administration/visier_api_administration/models/source_import_result_summary_dto.py index 005522d198..cb580bc77e 100644 --- a/src/visier_api_administration/visier_api_administration/models/source_import_result_summary_dto.py +++ b/src/visier_api_administration/visier_api_administration/models/source_import_result_summary_dto.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/visier_api_administration/models/sources_api_operation_request_dto.py b/src/visier_api_administration/visier_api_administration/models/sources_api_operation_request_dto.py deleted file mode 100644 index 2fe691286b..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/sources_api_operation_request_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SourcesAPIOperationRequestDTO(BaseModel): - """ - SourcesAPIOperationRequestDTO - """ # noqa: E501 - operation: Optional[StrictStr] = Field(default=None, description="The operation to perform. Valid values: * `exportSources`: Export all sources from the tenant. If successful, a ZIP file is returned containing a compressed JSON file with the sources.") - __properties: ClassVar[List[str]] = ["operation"] - - @field_validator('operation') - def operation_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['unknownSourcesAPIOperation', 'exportSources']): - raise ValueError("must be one of enum values ('unknownSourcesAPIOperation', 'exportSources')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SourcesAPIOperationRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SourcesAPIOperationRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "operation": obj.get("operation") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/sources_api_put_response_dto.py b/src/visier_api_administration/visier_api_administration/models/sources_api_put_response_dto.py index e7b3635014..0fd233f378 100644 --- a/src/visier_api_administration/visier_api_administration/models/sources_api_put_response_dto.py +++ b/src/visier_api_administration/visier_api_administration/models/sources_api_put_response_dto.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/visier_api_administration/models/static_dimension_filter_dto.py b/src/visier_api_administration/visier_api_administration/models/static_dimension_filter_dto.py deleted file mode 100644 index 7421b82553..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/static_dimension_filter_dto.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.member_selection_dto import MemberSelectionDTO -from typing import Optional, Set -from typing_extensions import Self - -class StaticDimensionFilterDTO(BaseModel): - """ - StaticDimensionFilterDTO - """ # noqa: E501 - dimension_id: Optional[StrictStr] = Field(default=None, description="The dimension ID associated with the filter.", alias="dimensionId") - dimension_status: Optional[StrictStr] = Field(default=None, description="The dimension's validity status. Valid values: Valid, NoData, NotFound. * **Valid**: The object exists and has loaded data. * **NoData**: The object exists but doesn't have loaded data. * **NotFound**: The object doesn't exist.", alias="dimensionStatus") - member_selections: Optional[List[MemberSelectionDTO]] = Field(default=None, description="A list of objects representing the dimension members assigned population access in the member filter.", alias="memberSelections") - subject_reference_path: Optional[List[StrictStr]] = Field(default=None, description="The subject reference path.", alias="subjectReferencePath") - __properties: ClassVar[List[str]] = ["dimensionId", "dimensionStatus", "memberSelections", "subjectReferencePath"] - - @field_validator('dimension_status') - def dimension_status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['Unset', 'Valid', 'NoData', 'NotFound']): - raise ValueError("must be one of enum values ('Unset', 'Valid', 'NoData', 'NotFound')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of StaticDimensionFilterDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in member_selections (list) - _items = [] - if self.member_selections: - for _item_member_selections in self.member_selections: - if _item_member_selections: - _items.append(_item_member_selections.to_dict()) - _dict['memberSelections'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of StaticDimensionFilterDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimensionId": obj.get("dimensionId"), - "dimensionStatus": obj.get("dimensionStatus"), - "memberSelections": [MemberSelectionDTO.from_dict(_item) for _item in obj["memberSelections"]] if obj.get("memberSelections") is not None else None, - "subjectReferencePath": obj.get("subjectReferencePath") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/status.py b/src/visier_api_administration/visier_api_administration/models/status.py index b6fc65d6bd..f2cd1dc632 100644 --- a/src/visier_api_administration/visier_api_administration/models/status.py +++ b/src/visier_api_administration/visier_api_administration/models/status.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -19,7 +19,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -28,10 +28,12 @@ class Status(BaseModel): """ The response structure for errors. """ # noqa: E501 - error_code: Optional[StrictStr] = Field(default=None, description="Error classification.", alias="errorCode") - message: Optional[StrictStr] = Field(default=None, description="Error message describing the root cause of the error.") + code: Optional[StrictStr] = Field(default=None, description="Error classification.") + localized_message: Optional[StrictStr] = Field(default=None, description="Localized error message describing the root cause of the error.", alias="localizedMessage") + message: Optional[StrictStr] = Field(default=None, description="Not used.") rci: Optional[StrictStr] = Field(default=None, description="Optional root cause identifier.") - __properties: ClassVar[List[str]] = ["errorCode", "message", "rci"] + user_error: Optional[StrictBool] = Field(default=None, description="Indicates whether the error is a user error.", alias="userError") + __properties: ClassVar[List[str]] = ["code", "localizedMessage", "message", "rci", "userError"] model_config = ConfigDict( populate_by_name=True, @@ -84,9 +86,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "errorCode": obj.get("errorCode"), + "code": obj.get("code"), + "localizedMessage": obj.get("localizedMessage"), "message": obj.get("message"), - "rci": obj.get("rci") + "rci": obj.get("rci"), + "userError": obj.get("userError") }) return _obj diff --git a/src/visier_api_administration/visier_api_administration/models/successful_accessible_tenant_profile_assignment_dto.py b/src/visier_api_administration/visier_api_administration/models/successful_accessible_tenant_profile_assignment_dto.py deleted file mode 100644 index 2b353e937b..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/successful_accessible_tenant_profile_assignment_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SuccessfulAccessibleTenantProfileAssignmentDTO(BaseModel): - """ - SuccessfulAccessibleTenantProfileAssignmentDTO - """ # noqa: E501 - for_all_children: Optional[StrictBool] = Field(default=None, description="If true, the target assignment is for all analytic tenants.", alias="forAllChildren") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code.", alias="tenantCode") - user_id: Optional[StrictStr] = Field(default=None, description="The user ID.", alias="userId") - __properties: ClassVar[List[str]] = ["forAllChildren", "tenantCode", "userId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessfulAccessibleTenantProfileAssignmentDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessfulAccessibleTenantProfileAssignmentDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "forAllChildren": obj.get("forAllChildren"), - "tenantCode": obj.get("tenantCode"), - "userId": obj.get("userId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/successful_local_tenant_profile_assignment_dto.py b/src/visier_api_administration/visier_api_administration/models/successful_local_tenant_profile_assignment_dto.py deleted file mode 100644 index b50a721642..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/successful_local_tenant_profile_assignment_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SuccessfulLocalTenantProfileAssignmentDTO(BaseModel): - """ - SuccessfulLocalTenantProfileAssignmentDTO - """ # noqa: E501 - user_id: Optional[StrictStr] = Field(default=None, description="The user ID.", alias="userId") - __properties: ClassVar[List[str]] = ["userId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessfulLocalTenantProfileAssignmentDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessfulLocalTenantProfileAssignmentDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "userId": obj.get("userId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/system_status_dto.py b/src/visier_api_administration/visier_api_administration/models/system_status_dto.py deleted file mode 100644 index cd0bd34cc0..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/system_status_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SystemStatusDTO(BaseModel): - """ - SystemStatusDTO - """ # noqa: E501 - overall: Optional[StrictStr] = Field(default=None, description="The overall status of Visier's platform and services.") - __properties: ClassVar[List[str]] = ["overall"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SystemStatusDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SystemStatusDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "overall": obj.get("overall") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/systemstatus_publicapi_transfers_system_status_dto.py b/src/visier_api_administration/visier_api_administration/models/systemstatus_publicapi_transfers_system_status_dto.py new file mode 100644 index 0000000000..92fe119051 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/systemstatus_publicapi_transfers_system_status_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SystemstatusPublicapiTransfersSystemStatusDTO(BaseModel): + """ + SystemstatusPublicapiTransfersSystemStatusDTO + """ # noqa: E501 + overall: Optional[StrictStr] = Field(default=None, description="The overall status of Visier's platform and services.") + __properties: ClassVar[List[str]] = ["overall"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SystemstatusPublicapiTransfersSystemStatusDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SystemstatusPublicapiTransfersSystemStatusDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "overall": obj.get("overall") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/target_project_for_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/target_project_for_tenant_dto.py deleted file mode 100644 index dfbd64e68b..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/target_project_for_tenant_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class TargetProjectForTenantDTO(BaseModel): - """ - TargetProjectForTenantDTO - """ # noqa: E501 - project_id: Optional[StrictStr] = Field(default=None, description="The project in which to make changes for the tenant.", alias="projectId") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["projectId", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TargetProjectForTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TargetProjectForTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "projectId": obj.get("projectId"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/target_project_for_tenants_list_dto.py b/src/visier_api_administration/visier_api_administration/models/target_project_for_tenants_list_dto.py deleted file mode 100644 index f87cc18f83..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/target_project_for_tenants_list_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.target_project_for_tenant_dto import TargetProjectForTenantDTO -from typing import Optional, Set -from typing_extensions import Self - -class TargetProjectForTenantsListDTO(BaseModel): - """ - TargetProjectForTenantsListDTO - """ # noqa: E501 - target_project_for_tenants: Optional[List[TargetProjectForTenantDTO]] = Field(default=None, description="Administrating tenants can specify the tenants and projects in which to make assignments to users. Specify one `projectId` per `tenantCode`. If omitted, the request is immediately published to production or applied to the `ProjectID` in the request header, if available, for the administrating tenant or TargetTenantID, if available.", alias="targetProjectForTenants") - __properties: ClassVar[List[str]] = ["targetProjectForTenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TargetProjectForTenantsListDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in target_project_for_tenants (list) - _items = [] - if self.target_project_for_tenants: - for _item_target_project_for_tenants in self.target_project_for_tenants: - if _item_target_project_for_tenants: - _items.append(_item_target_project_for_tenants.to_dict()) - _dict['targetProjectForTenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TargetProjectForTenantsListDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "targetProjectForTenants": [TargetProjectForTenantDTO.from_dict(_item) for _item in obj["targetProjectForTenants"]] if obj.get("targetProjectForTenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/target_tenant_code_dto.py b/src/visier_api_administration/visier_api_administration/models/target_tenant_code_dto.py deleted file mode 100644 index dbfef4caee..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/target_tenant_code_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class TargetTenantCodeDTO(BaseModel): - """ - TargetTenantCodeDTO - """ # noqa: E501 - for_all_children: Optional[StrictBool] = Field(default=None, description="If true, the assignment is for all the analytic tenants of the specified tenant.", alias="forAllChildren") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["forAllChildren", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TargetTenantCodeDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TargetTenantCodeDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "forAllChildren": obj.get("forAllChildren"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/tenant_assignments_dto.py b/src/visier_api_administration/visier_api_administration/models/tenant_assignments_dto.py deleted file mode 100644 index ee4a1f2188..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/tenant_assignments_dto.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.user_security_assignments_dto import UserSecurityAssignmentsDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantAssignmentsDTO(BaseModel): - """ - TenantAssignmentsDTO - """ # noqa: E501 - assignments: Optional[List[UserSecurityAssignmentsDTO]] = Field(default=None, description="A list of objects representing the user group and user assignments.") - message: Optional[StrictStr] = Field(default=None, description="A detailed description of the request outcome, if available.") - project_id: Optional[StrictStr] = Field(default=None, description="The ID of the project that the change was made in, if applicable.", alias="projectId") - status: Optional[StrictStr] = Field(default=None, description="The state of the user group assignment. Valid values are Succeed or Failed.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["assignments", "message", "projectId", "status", "tenantCode"] - - @field_validator('status') - def status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['Unknown', 'Succeed', 'Failed']): - raise ValueError("must be one of enum values ('Unknown', 'Succeed', 'Failed')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantAssignmentsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in assignments (list) - _items = [] - if self.assignments: - for _item_assignments in self.assignments: - if _item_assignments: - _items.append(_item_assignments.to_dict()) - _dict['assignments'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantAssignmentsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "assignments": [UserSecurityAssignmentsDTO.from_dict(_item) for _item in obj["assignments"]] if obj.get("assignments") is not None else None, - "message": obj.get("message"), - "projectId": obj.get("projectId"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/tenant_code_body.py b/src/visier_api_administration/visier_api_administration/models/tenant_code_body.py deleted file mode 100644 index 63516e9a74..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/tenant_code_body.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class TenantCodeBody(BaseModel): - """ - TenantCodeBody - """ # noqa: E501 - tenant_codes: Optional[List[StrictStr]] = Field(default=None, description="A list of a CA tenant's source tenants codes. The maximum length is 1000.", alias="tenantCodes") - __properties: ClassVar[List[str]] = ["tenantCodes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantCodeBody from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantCodeBody from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tenantCodes": obj.get("tenantCodes") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/tenant_code_error_dto.py b/src/visier_api_administration/visier_api_administration/models/tenant_code_error_dto.py deleted file mode 100644 index dfa04e1471..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/tenant_code_error_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.error_dto import ErrorDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantCodeErrorDTO(BaseModel): - """ - TenantCodeErrorDTO - """ # noqa: E501 - error: Optional[ErrorDTO] = Field(default=None, description="The details about the error.") - for_all_children: Optional[StrictBool] = Field(default=None, description="If true, the target assignment is for all analytic tenants.", alias="forAllChildren") - tenant_code: Optional[StrictStr] = Field(default=None, description="The bad tenant code.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["error", "forAllChildren", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantCodeErrorDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantCodeErrorDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "error": ErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, - "forAllChildren": obj.get("forAllChildren"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/tenant_detail_apidto.py b/src/visier_api_administration/visier_api_administration/models/tenant_detail_apidto.py deleted file mode 100644 index bee6ae9457..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/tenant_detail_apidto.py +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.custom_tenant_property_dto import CustomTenantPropertyDTO -from visier_api_administration.models.tenant_module_dto import TenantModuleDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantDetailAPIDTO(BaseModel): - """ - TenantDetailAPIDTO - """ # noqa: E501 - allowed_o_auth_idp_url_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, which can be used as values for the idp_url parameter", alias="allowedOAuthIdpUrlDomains") - can_administer_other_tenants: Optional[StrictBool] = Field(default=None, description="If true, the tenant is an administrating tenant.", alias="canAdministerOtherTenants") - current_data_version: Optional[StrictStr] = Field(default=None, description="The data version ID that the tenant is using.", alias="currentDataVersion") - custom_properties: Optional[List[CustomTenantPropertyDTO]] = Field(default=None, description="A set of key-value pairs that represent different customizable properties for the analytic tenant.", alias="customProperties") - data_version_date: Optional[StrictStr] = Field(default=None, description="The date that the data version was published to production.", alias="dataVersionDate") - embeddable_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, in which Visier can be embedded.", alias="embeddableDomains") - industry_code: Optional[StrictInt] = Field(default=None, description="The 6-digit NAICS code for the industry to which the analytic tenant belongs.", alias="industryCode") - modules: Optional[List[TenantModuleDTO]] = Field(default=None, description="The modules assigned to the analytic tenant.") - provision_date: Optional[StrictStr] = Field(default=None, description="The date that the tenant was created.", alias="provisionDate") - sso_instance_issuers: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the issuers for the SSO providers that can authenticate this tenant.", alias="ssoInstanceIssuers") - status: Optional[StrictStr] = Field(default=None, description="Whether the tenant is enabled or disabled.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant. For example, \"WFF_j1r~i1o\".", alias="tenantCode") - tenant_display_name: Optional[StrictStr] = Field(default=None, description="An identifiable tenant name that is displayed within Visier. For example, \"Callisto\".", alias="tenantDisplayName") - vanity_url_name: Optional[StrictStr] = Field(default=None, description="The name of the administrating tenant used in Visier URLs.", alias="vanityUrlName") - __properties: ClassVar[List[str]] = ["allowedOAuthIdpUrlDomains", "canAdministerOtherTenants", "currentDataVersion", "customProperties", "dataVersionDate", "embeddableDomains", "industryCode", "modules", "provisionDate", "ssoInstanceIssuers", "status", "tenantCode", "tenantDisplayName", "vanityUrlName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantDetailAPIDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in custom_properties (list) - _items = [] - if self.custom_properties: - for _item_custom_properties in self.custom_properties: - if _item_custom_properties: - _items.append(_item_custom_properties.to_dict()) - _dict['customProperties'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in modules (list) - _items = [] - if self.modules: - for _item_modules in self.modules: - if _item_modules: - _items.append(_item_modules.to_dict()) - _dict['modules'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantDetailAPIDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "allowedOAuthIdpUrlDomains": obj.get("allowedOAuthIdpUrlDomains"), - "canAdministerOtherTenants": obj.get("canAdministerOtherTenants"), - "currentDataVersion": obj.get("currentDataVersion"), - "customProperties": [CustomTenantPropertyDTO.from_dict(_item) for _item in obj["customProperties"]] if obj.get("customProperties") is not None else None, - "dataVersionDate": obj.get("dataVersionDate"), - "embeddableDomains": obj.get("embeddableDomains"), - "industryCode": obj.get("industryCode"), - "modules": [TenantModuleDTO.from_dict(_item) for _item in obj["modules"]] if obj.get("modules") is not None else None, - "provisionDate": obj.get("provisionDate"), - "ssoInstanceIssuers": obj.get("ssoInstanceIssuers"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode"), - "tenantDisplayName": obj.get("tenantDisplayName"), - "vanityUrlName": obj.get("vanityUrlName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/tenant_encryption_key_details_dto.py b/src/visier_api_administration/visier_api_administration/models/tenant_encryption_key_details_dto.py deleted file mode 100644 index 6745912314..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/tenant_encryption_key_details_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class TenantEncryptionKeyDetailsDTO(BaseModel): - """ - Information about who generated an encryption key, its key name, algorithm, generation date, and expiration date. - """ # noqa: E501 - algorithm: Optional[StrictStr] = Field(default=None, description="The hash-based message authentication code and cryptographic hash function associated with the encryption key.") - date_generated: Optional[StrictStr] = Field(default=None, description="The UTC date that the key was generated in milliseconds since the Unix epoch.", alias="dateGenerated") - expiry_date: Optional[StrictStr] = Field(default=None, description="The UTC expiration date of the key in milliseconds since the Unix epoch.", alias="expiryDate") - generated_by: Optional[StrictStr] = Field(default=None, description="The user who generated the key.", alias="generatedBy") - key_name: Optional[StrictStr] = Field(default=None, description="The encryption key's display name. The name may only contain alphanumeric or dash (-) characters and must be between 6 and 36 characters long.", alias="keyName") - __properties: ClassVar[List[str]] = ["algorithm", "dateGenerated", "expiryDate", "generatedBy", "keyName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantEncryptionKeyDetailsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantEncryptionKeyDetailsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "algorithm": obj.get("algorithm"), - "dateGenerated": obj.get("dateGenerated"), - "expiryDate": obj.get("expiryDate"), - "generatedBy": obj.get("generatedBy"), - "keyName": obj.get("keyName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/tenant_encryption_key_dto.py b/src/visier_api_administration/visier_api_administration/models/tenant_encryption_key_dto.py deleted file mode 100644 index 6bc348ad36..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/tenant_encryption_key_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.tenant_encryption_key_details_dto import TenantEncryptionKeyDetailsDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantEncryptionKeyDTO(BaseModel): - """ - The details of an encryption key. - """ # noqa: E501 - detail: Optional[TenantEncryptionKeyDetailsDTO] = Field(default=None, description="Information about an encryption key.") - key: Optional[StrictStr] = Field(default=None, description="The encryption key value.") - __properties: ClassVar[List[str]] = ["detail", "key"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantEncryptionKeyDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantEncryptionKeyDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "detail": TenantEncryptionKeyDetailsDTO.from_dict(obj["detail"]) if obj.get("detail") is not None else None, - "key": obj.get("key") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/tenant_management_api_get_response_dto.py b/src/visier_api_administration/visier_api_administration/models/tenant_management_api_get_response_dto.py deleted file mode 100644 index 5795f7d186..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/tenant_management_api_get_response_dto.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.business_location_dto import BusinessLocationDTO -from visier_api_administration.models.custom_property_dto import CustomPropertyDTO -from visier_api_administration.models.home_analysis_by_user_group_dto import HomeAnalysisByUserGroupDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantManagementAPIGetResponseDTO(BaseModel): - """ - TenantManagementAPIGetResponseDTO - """ # noqa: E501 - allowed_o_auth_idp_url_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, that are allowed in the idp_url OAuth parameter.", alias="allowedOAuthIdpUrlDomains") - can_administer_other_tenants: Optional[StrictBool] = Field(default=None, description="If true, the tenant is an administrating tenant.", alias="canAdministerOtherTenants") - click_through_link: Optional[StrictStr] = Field(default=None, description="The custom URL to redirect users into your portal to see the relevant content. This URL is used for links that are shared by and with your users through the sharing capability or email content.", alias="clickThroughLink") - click_through_link_enabled: Optional[StrictStr] = Field(default=None, description="Whether the click-through link is enabled or disabled.", alias="clickThroughLinkEnabled") - current_data_version: Optional[StrictStr] = Field(default=None, description="The data version ID that the tenant is using.", alias="currentDataVersion") - custom_properties: Optional[List[CustomPropertyDTO]] = Field(default=None, description="A set of key-value pairs that represent different customizable properties for the analytic tenant.", alias="customProperties") - data_version_date: Optional[StrictStr] = Field(default=None, description="The date that the data version was published to production.", alias="dataVersionDate") - default_currency: Optional[StrictStr] = Field(default=None, description="The default currency to show in the application for the tenant.", alias="defaultCurrency") - embeddable_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, in which Visier can be embedded.", alias="embeddableDomains") - home_analysis_by_user_group: Optional[List[HomeAnalysisByUserGroupDTO]] = Field(default=None, description="A list of objects representing the analysis displayed to specific user groups when users log in.", alias="homeAnalysisByUserGroup") - home_analysis_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analysis that's displayed for this tenant when a user logs in.", alias="homeAnalysisId") - industry_code: Optional[StrictInt] = Field(default=None, description="The 6-digit NAICS code for the industry to which the analytic tenant belongs.", alias="industryCode") - primary_business_location: Optional[BusinessLocationDTO] = Field(default=None, description="The primary location of operations or where business is performed. If undefined, it is omitted from the response.", alias="primaryBusinessLocation") - provision_date: Optional[StrictStr] = Field(default=None, description="The date that the tenant was created.", alias="provisionDate") - purchased_modules: Optional[List[StrictStr]] = Field(default=None, description="The modules assigned to the analytic tenant.", alias="purchasedModules") - sso_instance_issuers: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the issuers for the SSO providers that can authenticate this tenant.", alias="ssoInstanceIssuers") - status: Optional[StrictStr] = Field(default=None, description="Whether the tenant is enabled or disabled.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant. For example, \"WFF_j1r~i1o\"", alias="tenantCode") - tenant_display_name: Optional[StrictStr] = Field(default=None, description="An identifiable tenant name that is displayed within Visier. For example, \"Callisto\".", alias="tenantDisplayName") - vanity_url_name: Optional[StrictStr] = Field(default=None, description="The name of the administrating tenant used in Visier URLs.", alias="vanityUrlName") - __properties: ClassVar[List[str]] = ["allowedOAuthIdpUrlDomains", "canAdministerOtherTenants", "clickThroughLink", "clickThroughLinkEnabled", "currentDataVersion", "customProperties", "dataVersionDate", "defaultCurrency", "embeddableDomains", "homeAnalysisByUserGroup", "homeAnalysisId", "industryCode", "primaryBusinessLocation", "provisionDate", "purchasedModules", "ssoInstanceIssuers", "status", "tenantCode", "tenantDisplayName", "vanityUrlName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantManagementAPIGetResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in custom_properties (list) - _items = [] - if self.custom_properties: - for _item_custom_properties in self.custom_properties: - if _item_custom_properties: - _items.append(_item_custom_properties.to_dict()) - _dict['customProperties'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in home_analysis_by_user_group (list) - _items = [] - if self.home_analysis_by_user_group: - for _item_home_analysis_by_user_group in self.home_analysis_by_user_group: - if _item_home_analysis_by_user_group: - _items.append(_item_home_analysis_by_user_group.to_dict()) - _dict['homeAnalysisByUserGroup'] = _items - # override the default output from pydantic by calling `to_dict()` of primary_business_location - if self.primary_business_location: - _dict['primaryBusinessLocation'] = self.primary_business_location.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantManagementAPIGetResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "allowedOAuthIdpUrlDomains": obj.get("allowedOAuthIdpUrlDomains"), - "canAdministerOtherTenants": obj.get("canAdministerOtherTenants"), - "clickThroughLink": obj.get("clickThroughLink"), - "clickThroughLinkEnabled": obj.get("clickThroughLinkEnabled"), - "currentDataVersion": obj.get("currentDataVersion"), - "customProperties": [CustomPropertyDTO.from_dict(_item) for _item in obj["customProperties"]] if obj.get("customProperties") is not None else None, - "dataVersionDate": obj.get("dataVersionDate"), - "defaultCurrency": obj.get("defaultCurrency"), - "embeddableDomains": obj.get("embeddableDomains"), - "homeAnalysisByUserGroup": [HomeAnalysisByUserGroupDTO.from_dict(_item) for _item in obj["homeAnalysisByUserGroup"]] if obj.get("homeAnalysisByUserGroup") is not None else None, - "homeAnalysisId": obj.get("homeAnalysisId"), - "industryCode": obj.get("industryCode"), - "primaryBusinessLocation": BusinessLocationDTO.from_dict(obj["primaryBusinessLocation"]) if obj.get("primaryBusinessLocation") is not None else None, - "provisionDate": obj.get("provisionDate"), - "purchasedModules": obj.get("purchasedModules"), - "ssoInstanceIssuers": obj.get("ssoInstanceIssuers"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode"), - "tenantDisplayName": obj.get("tenantDisplayName"), - "vanityUrlName": obj.get("vanityUrlName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/tenant_management_api_list_response_dto.py b/src/visier_api_administration/visier_api_administration/models/tenant_management_api_list_response_dto.py deleted file mode 100644 index de05f67c25..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/tenant_management_api_list_response_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.tenant_management_api_get_response_dto import TenantManagementAPIGetResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantManagementAPIListResponseDTO(BaseModel): - """ - TenantManagementAPIListResponseDTO - """ # noqa: E501 - limit: Optional[StrictInt] = Field(default=None, description="The limit of analytic tenants to return. The maximum value is 1000. The default is 150.") - start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving values from, also known as offset. The index begins at 0.") - tenants: Optional[List[TenantManagementAPIGetResponseDTO]] = Field(default=None, description="A list of objects representing all the analytic tenants.") - __properties: ClassVar[List[str]] = ["limit", "start", "tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantManagementAPIListResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantManagementAPIListResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "limit": obj.get("limit"), - "start": obj.get("start"), - "tenants": [TenantManagementAPIGetResponseDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/tenant_management_api_update_request_dto.py b/src/visier_api_administration/visier_api_administration/models/tenant_management_api_update_request_dto.py deleted file mode 100644 index 2d1772cec2..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/tenant_management_api_update_request_dto.py +++ /dev/null @@ -1,151 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.business_location_dto import BusinessLocationDTO -from visier_api_administration.models.custom_property_dto import CustomPropertyDTO -from visier_api_administration.models.home_analysis_by_user_group_dto import HomeAnalysisByUserGroupDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantManagementAPIUpdateRequestDTO(BaseModel): - """ - TenantManagementAPIUpdateRequestDTO - """ # noqa: E501 - allowed_o_auth_idp_url_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, that are allowed in the idp_url OAuth parameter. This is optional.", alias="allowedOAuthIdpUrlDomains") - click_through_link: Optional[StrictStr] = Field(default=None, description="A custom URL to redirect users into your portal to see the relevant content. This URL is used for links that are shared by and with your users through the sharing capability or email content. This is optional. Causes the API request to take longer because it must publish a project to production.", alias="clickThroughLink") - custom_properties: Optional[List[CustomPropertyDTO]] = Field(default=None, description="A list of objects that represent different customizable properties for the analytic tenant. This is optional.", alias="customProperties") - default_currency: Optional[StrictStr] = Field(default=None, description="The default currency to show in the application for the tenant.", alias="defaultCurrency") - embeddable_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, in which Visier can be embedded. If domains at the administrating tenant level match the domains at the analytic tenant level, you do not need to include a domain for each analytic tenant. This is optional.", alias="embeddableDomains") - enabled: Optional[StrictBool] = Field(default=None, description="If true, the tenant is enabled. Enabled tenants have access to Visier visualizations.") - home_analysis_by_user_group: Optional[List[HomeAnalysisByUserGroupDTO]] = Field(default=None, description="A list of objects representing the analysis to display to specific user groups when users log in. This is optional. Causes the API request to take longer because it must publish a project to production.", alias="homeAnalysisByUserGroup") - home_analysis_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analysis to display for this tenant when a user logs in. This is optional. Causes the API request to take longer because it must publish a project to production. Retrieve the ID by opening an analysis in the production version of a tenant and copying the string after the last forward slash (/) in the URL. For example: https://jupiter.visier.com/hr/prod/appcontainer?previewId=-eZPm8xvo3SUMpD4Q5pdE-6mCj9CQ9K699XgqRGwtOxagH5x2IzDFawlWn3hYqFEfU7nP0YK9ASEzmrNfAihGg..&previewType=Production#/analytics/myanalyses/`8a4c1d4f-eb61-4da0-9e5b-55bef757c30e`. The `homeAnalysisID` is `8a4c1d4f-eb61-4da0-9e5b-55bef757c30e`. Alternatively, retrieve the ID by copying the `Analysis ID` or `contentId` found by following the `Embed a Visualization` documentation.", alias="homeAnalysisId") - industry_code: Optional[StrictInt] = Field(default=None, description="The 6-digit NAICS code for the industry to which the analytic tenant belongs. If the code is unknown, type 0. For 2-digit codes, add trailing zeros at the end to reach 6 digits, such as 620000. Required if creating new tenants.", alias="industryCode") - primary_business_location: Optional[BusinessLocationDTO] = Field(default=None, description="The primary location of operations or where business is performed. This field is optional.", alias="primaryBusinessLocation") - purchased_modules: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated collection of strings that represent the Visier modules assigned to the new analytic tenant. Required if creating new tenants. To get the module name: 1. In Visier, open a project and navigate to **Model > Modules**. 2. Select a module. 3. In **Basic Information**, copy the **Object name**. This is the module name.", alias="purchasedModules") - sso_instance_issuers: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the issuers for the SSO providers that can authenticate this tenant. This is optional.", alias="ssoInstanceIssuers") - tenant_code: Optional[StrictStr] = Field(default=None, description="A unique identifier for the newly created analytic tenant. Required if creating new tenants.", alias="tenantCode") - tenant_display_name: Optional[StrictStr] = Field(default=None, description="A new display name to assign to the analytic tenant. Required if creating new tenants.", alias="tenantDisplayName") - tenant_short_name: Optional[StrictStr] = Field(default=None, description="A new short name to assign to the tenant. Required for analytic tenants.", alias="tenantShortName") - update_action: Optional[StrictStr] = Field(default=None, description="Specifies the way you want to update values. Default is MERGE. Valid values: - `MERGE`: Combine the existing values with the new values. - `REPLACE`: Remove existing values and let the new values take their place.", alias="updateAction") - vanity_url_name: Optional[StrictStr] = Field(default=None, description="A new vanity name to assign to the tenant. Omit for new Embedded analytic tenants.", alias="vanityUrlName") - __properties: ClassVar[List[str]] = ["allowedOAuthIdpUrlDomains", "clickThroughLink", "customProperties", "defaultCurrency", "embeddableDomains", "enabled", "homeAnalysisByUserGroup", "homeAnalysisId", "industryCode", "primaryBusinessLocation", "purchasedModules", "ssoInstanceIssuers", "tenantCode", "tenantDisplayName", "tenantShortName", "updateAction", "vanityUrlName"] - - @field_validator('update_action') - def update_action_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['MERGE', 'REPLACE']): - raise ValueError("must be one of enum values ('MERGE', 'REPLACE')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantManagementAPIUpdateRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in custom_properties (list) - _items = [] - if self.custom_properties: - for _item_custom_properties in self.custom_properties: - if _item_custom_properties: - _items.append(_item_custom_properties.to_dict()) - _dict['customProperties'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in home_analysis_by_user_group (list) - _items = [] - if self.home_analysis_by_user_group: - for _item_home_analysis_by_user_group in self.home_analysis_by_user_group: - if _item_home_analysis_by_user_group: - _items.append(_item_home_analysis_by_user_group.to_dict()) - _dict['homeAnalysisByUserGroup'] = _items - # override the default output from pydantic by calling `to_dict()` of primary_business_location - if self.primary_business_location: - _dict['primaryBusinessLocation'] = self.primary_business_location.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantManagementAPIUpdateRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "allowedOAuthIdpUrlDomains": obj.get("allowedOAuthIdpUrlDomains"), - "clickThroughLink": obj.get("clickThroughLink"), - "customProperties": [CustomPropertyDTO.from_dict(_item) for _item in obj["customProperties"]] if obj.get("customProperties") is not None else None, - "defaultCurrency": obj.get("defaultCurrency"), - "embeddableDomains": obj.get("embeddableDomains"), - "enabled": obj.get("enabled"), - "homeAnalysisByUserGroup": [HomeAnalysisByUserGroupDTO.from_dict(_item) for _item in obj["homeAnalysisByUserGroup"]] if obj.get("homeAnalysisByUserGroup") is not None else None, - "homeAnalysisId": obj.get("homeAnalysisId"), - "industryCode": obj.get("industryCode"), - "primaryBusinessLocation": BusinessLocationDTO.from_dict(obj["primaryBusinessLocation"]) if obj.get("primaryBusinessLocation") is not None else None, - "purchasedModules": obj.get("purchasedModules"), - "ssoInstanceIssuers": obj.get("ssoInstanceIssuers"), - "tenantCode": obj.get("tenantCode"), - "tenantDisplayName": obj.get("tenantDisplayName"), - "tenantShortName": obj.get("tenantShortName"), - "updateAction": obj.get("updateAction"), - "vanityUrlName": obj.get("vanityUrlName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/tenant_management_api_update_response_dto.py b/src/visier_api_administration/visier_api_administration/models/tenant_management_api_update_response_dto.py deleted file mode 100644 index 45e40338c2..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/tenant_management_api_update_response_dto.py +++ /dev/null @@ -1,137 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.business_location_dto import BusinessLocationDTO -from visier_api_administration.models.custom_property_dto import CustomPropertyDTO -from visier_api_administration.models.home_analysis_by_user_group_dto import HomeAnalysisByUserGroupDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantManagementAPIUpdateResponseDTO(BaseModel): - """ - TenantManagementAPIUpdateResponseDTO - """ # noqa: E501 - allowed_o_auth_idp_url_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, that are allowed in the idp_url OAuth parameter. This is optional.", alias="allowedOAuthIdpUrlDomains") - click_through_link: Optional[StrictStr] = Field(default=None, description="A custom URL to redirect users into your portal to see the relevant content. This URL is used for links that are shared by and with your users through the sharing capability or email content.", alias="clickThroughLink") - custom_properties: Optional[List[CustomPropertyDTO]] = Field(default=None, description="A list of objects that represent different customizable properties for the analytic tenant.", alias="customProperties") - default_currency: Optional[StrictStr] = Field(default=None, description="The default currency to show in the application for the tenant.", alias="defaultCurrency") - embeddable_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, in which Visier can be embedded. If domains at the administrating tenant level match the domains at the analytic tenant level, you do not need to include a domain for each analytic tenant.", alias="embeddableDomains") - home_analysis_by_user_group: Optional[List[HomeAnalysisByUserGroupDTO]] = Field(default=None, description="A list of objects representing the analysis to display to specific user groups when users log in.", alias="homeAnalysisByUserGroup") - home_analysis_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analysis to display for this tenant when a user logs in. This is optional. Retrieve the ID by opening an analysis in the production version of a tenant and copying the string after the last forward slash (/) in the URL. For example: https://jupiter.visier.com/hr/prod/appcontainer?previewId=-eZPm8xvo3SUMpD4Q5pdE-6mCj9CQ9K699XgqRGwtOxagH5x2IzDFawlWn3hYqFEfU7nP0YK9ASEzmrNfAihGg..&previewType=Production#/analytics/myanalyses/`8a4c1d4f-eb61-4da0-9e5b-55bef757c30e`. The `homeAnalysisID` is `8a4c1d4f-eb61-4da0-9e5b-55bef757c30e`. Alternatively, retrieve the ID by copying the `Analysis ID` or `contentId` found by following the `Embed a Visualization` documentation.", alias="homeAnalysisId") - industry_code: Optional[StrictInt] = Field(default=None, description="The 6-digit NAICS code for the industry to which the analytic tenant belongs.", alias="industryCode") - primary_business_location: Optional[BusinessLocationDTO] = Field(default=None, description="The primary location of operations or where business is performed. If undefined, it is omitted from the response.", alias="primaryBusinessLocation") - purchased_modules: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated collection of strings that represent the Visier modules assigned to the new analytic tenant.", alias="purchasedModules") - sso_instance_issuers: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the issuers for the SSO providers that can authenticate this tenant.", alias="ssoInstanceIssuers") - status: Optional[StrictStr] = Field(default=None, description="Whether the tenant is enabled or disabled. Enabled tenants have access to Visier visualizations.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier of the newly created analytic tenant.", alias="tenantCode") - tenant_display_name: Optional[StrictStr] = Field(default=None, description="A comma-separated collection of strings that represent the Visier modules assigned to the new analytic tenant.", alias="tenantDisplayName") - vanity_url_name: Optional[StrictStr] = Field(default=None, description="The name of the administrating tenant used in Visier URLs.", alias="vanityUrlName") - __properties: ClassVar[List[str]] = ["allowedOAuthIdpUrlDomains", "clickThroughLink", "customProperties", "defaultCurrency", "embeddableDomains", "homeAnalysisByUserGroup", "homeAnalysisId", "industryCode", "primaryBusinessLocation", "purchasedModules", "ssoInstanceIssuers", "status", "tenantCode", "tenantDisplayName", "vanityUrlName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantManagementAPIUpdateResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in custom_properties (list) - _items = [] - if self.custom_properties: - for _item_custom_properties in self.custom_properties: - if _item_custom_properties: - _items.append(_item_custom_properties.to_dict()) - _dict['customProperties'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in home_analysis_by_user_group (list) - _items = [] - if self.home_analysis_by_user_group: - for _item_home_analysis_by_user_group in self.home_analysis_by_user_group: - if _item_home_analysis_by_user_group: - _items.append(_item_home_analysis_by_user_group.to_dict()) - _dict['homeAnalysisByUserGroup'] = _items - # override the default output from pydantic by calling `to_dict()` of primary_business_location - if self.primary_business_location: - _dict['primaryBusinessLocation'] = self.primary_business_location.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantManagementAPIUpdateResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "allowedOAuthIdpUrlDomains": obj.get("allowedOAuthIdpUrlDomains"), - "clickThroughLink": obj.get("clickThroughLink"), - "customProperties": [CustomPropertyDTO.from_dict(_item) for _item in obj["customProperties"]] if obj.get("customProperties") is not None else None, - "defaultCurrency": obj.get("defaultCurrency"), - "embeddableDomains": obj.get("embeddableDomains"), - "homeAnalysisByUserGroup": [HomeAnalysisByUserGroupDTO.from_dict(_item) for _item in obj["homeAnalysisByUserGroup"]] if obj.get("homeAnalysisByUserGroup") is not None else None, - "homeAnalysisId": obj.get("homeAnalysisId"), - "industryCode": obj.get("industryCode"), - "primaryBusinessLocation": BusinessLocationDTO.from_dict(obj["primaryBusinessLocation"]) if obj.get("primaryBusinessLocation") is not None else None, - "purchasedModules": obj.get("purchasedModules"), - "ssoInstanceIssuers": obj.get("ssoInstanceIssuers"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode"), - "tenantDisplayName": obj.get("tenantDisplayName"), - "vanityUrlName": obj.get("vanityUrlName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/tenant_module_dto.py b/src/visier_api_administration/visier_api_administration/models/tenant_module_dto.py deleted file mode 100644 index 8990c980dd..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/tenant_module_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.module_settings_dto import ModuleSettingsDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantModuleDTO(BaseModel): - """ - TenantModuleDTO - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name that is displayed within Visier. For example, \"TALENT\".", alias="displayName") - module_settings: Optional[ModuleSettingsDTO] = Field(default=None, description="The settings associated with the module.", alias="moduleSettings") - symbol_name: Optional[StrictStr] = Field(default=None, description="The symbol name of the module. For example, \"Talent_Management\".", alias="symbolName") - __properties: ClassVar[List[str]] = ["displayName", "moduleSettings", "symbolName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantModuleDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of module_settings - if self.module_settings: - _dict['moduleSettings'] = self.module_settings.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantModuleDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "moduleSettings": ModuleSettingsDTO.from_dict(obj["moduleSettings"]) if obj.get("moduleSettings") is not None else None, - "symbolName": obj.get("symbolName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/tenant_preview_entries_summary_dto.py b/src/visier_api_administration/visier_api_administration/models/tenant_preview_entries_summary_dto.py deleted file mode 100644 index 83d88f0614..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/tenant_preview_entries_summary_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.metric_validation_summary_dto import MetricValidationSummaryDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantPreviewEntriesSummaryDTO(BaseModel): - """ - TenantPreviewEntriesSummaryDTO - """ # noqa: E501 - data_version: Optional[StrictStr] = Field(default=None, description="The data version ID.", alias="dataVersion") - data_version_date: Optional[StrictStr] = Field(default=None, description="The date that the data version was created.", alias="dataVersionDate") - metrics: Optional[List[MetricValidationSummaryDTO]] = Field(default=None, description="A list of metrics and their values.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant. For example, \"WFF_j1r~i1o\".", alias="tenantCode") - __properties: ClassVar[List[str]] = ["dataVersion", "dataVersionDate", "metrics", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantPreviewEntriesSummaryDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in metrics (list) - _items = [] - if self.metrics: - for _item_metrics in self.metrics: - if _item_metrics: - _items.append(_item_metrics.to_dict()) - _dict['metrics'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantPreviewEntriesSummaryDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataVersion": obj.get("dataVersion"), - "dataVersionDate": obj.get("dataVersionDate"), - "metrics": [MetricValidationSummaryDTO.from_dict(_item) for _item in obj["metrics"]] if obj.get("metrics") is not None else None, - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/tenant_preview_entries_summary_list_dto.py b/src/visier_api_administration/visier_api_administration/models/tenant_preview_entries_summary_list_dto.py deleted file mode 100644 index 72494c7ddc..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/tenant_preview_entries_summary_list_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.tenant_preview_entries_summary_dto import TenantPreviewEntriesSummaryDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantPreviewEntriesSummaryListDTO(BaseModel): - """ - TenantPreviewEntriesSummaryListDTO - """ # noqa: E501 - limit: Optional[StrictInt] = Field(default=None, description="The number of analytic tenants to retrieve. The maximum number to retrieve is 1000.") - start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") - tenants: Optional[List[TenantPreviewEntriesSummaryDTO]] = Field(default=None, description="A list of objects representing all the analytic tenants.") - __properties: ClassVar[List[str]] = ["limit", "start", "tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantPreviewEntriesSummaryListDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantPreviewEntriesSummaryListDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "limit": obj.get("limit"), - "start": obj.get("start"), - "tenants": [TenantPreviewEntriesSummaryDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/tenant_provision_apidto.py b/src/visier_api_administration/visier_api_administration/models/tenant_provision_apidto.py deleted file mode 100644 index 1d155c4d69..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/tenant_provision_apidto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.custom_tenant_property_dto import CustomTenantPropertyDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantProvisionAPIDTO(BaseModel): - """ - TenantProvisionAPIDTO - """ # noqa: E501 - allowed_o_auth_idp_url_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, which can be used as values for the idp_url OAuth parameter.", alias="allowedOAuthIdpUrlDomains") - custom_properties: Optional[List[CustomTenantPropertyDTO]] = Field(default=None, description="A set of key-value pairs that represent different customizable properties for the analytic tenant.", alias="customProperties") - embeddable_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, in which Visier can be embedded. If domains at the administrating tenant level match the domains at the analytic tenant level, you do not need to include a domain for each analytic tenant.", alias="embeddableDomains") - industry_code: Optional[StrictInt] = Field(default=None, description="The 6-digit NAICS code for the industry to which the analytic tenant belongs. If the code is unknown, type 0. For 2-digit codes, add trailing zeros at the end to reach 6 digits, such as 620000.", alias="industryCode") - purchased_modules: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the Visier modules assigned to the analytic tenant.", alias="purchasedModules") - sso_instance_issuers: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the issuers for the SSO providers that can authenticate this tenant.", alias="ssoInstanceIssuers") - tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier of the analytic tenant.", alias="tenantCode") - tenant_display_name: Optional[StrictStr] = Field(default=None, description="The display name that is assigned to the analytic tenant.", alias="tenantDisplayName") - __properties: ClassVar[List[str]] = ["allowedOAuthIdpUrlDomains", "customProperties", "embeddableDomains", "industryCode", "purchasedModules", "ssoInstanceIssuers", "tenantCode", "tenantDisplayName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantProvisionAPIDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in custom_properties (list) - _items = [] - if self.custom_properties: - for _item_custom_properties in self.custom_properties: - if _item_custom_properties: - _items.append(_item_custom_properties.to_dict()) - _dict['customProperties'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantProvisionAPIDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "allowedOAuthIdpUrlDomains": obj.get("allowedOAuthIdpUrlDomains"), - "customProperties": [CustomTenantPropertyDTO.from_dict(_item) for _item in obj["customProperties"]] if obj.get("customProperties") is not None else None, - "embeddableDomains": obj.get("embeddableDomains"), - "industryCode": obj.get("industryCode"), - "purchasedModules": obj.get("purchasedModules"), - "ssoInstanceIssuers": obj.get("ssoInstanceIssuers"), - "tenantCode": obj.get("tenantCode"), - "tenantDisplayName": obj.get("tenantDisplayName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/tenant_status_apidto.py b/src/visier_api_administration/visier_api_administration/models/tenant_status_apidto.py deleted file mode 100644 index 1fdca0b3ce..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/tenant_status_apidto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class TenantStatusAPIDTO(BaseModel): - """ - TenantStatusAPIDTO - """ # noqa: E501 - can_administer_other_tenants: Optional[StrictBool] = Field(default=None, description="If true, the tenant is an administrating tenant.", alias="canAdministerOtherTenants") - status: Optional[StrictStr] = Field(default=None, description="Whether the tenant is enabled or disabled.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier for the analytic tenant.", alias="tenantCode") - tenant_display_name: Optional[StrictStr] = Field(default=None, description="The identifiable tenant name that is displayed within Visier. For example, \"Callisto\".", alias="tenantDisplayName") - __properties: ClassVar[List[str]] = ["canAdministerOtherTenants", "status", "tenantCode", "tenantDisplayName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantStatusAPIDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantStatusAPIDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "canAdministerOtherTenants": obj.get("canAdministerOtherTenants"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode"), - "tenantDisplayName": obj.get("tenantDisplayName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/update_tenant_model.py b/src/visier_api_administration/visier_api_administration/models/update_tenant_model.py deleted file mode 100644 index a4fcb85703..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/update_tenant_model.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UpdateTenantModel(BaseModel): - """ - UpdateTenantModel - """ # noqa: E501 - custom_properties: Optional[Dict[str, StrictStr]] = Field(default=None, description="A set of key-value pairs that represent different customizable properties for the analytic tenant.", alias="customProperties") - embeddable_domains: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the URLs, or domains, in which Visier can be embedded. If domains at the administrating tenant level match the domains at the analytic tenant level, you do not need to include a domain for each analytic tenant.", alias="embeddableDomains") - industry_code: Optional[StrictInt] = Field(default=None, description="The 6-digit NAICS code for the industry to which the analytic tenant belongs. If the code is unknown, type 0. For 2-digit codes, add trailing zeros at the end to reach 6 digits, such as 620000.", alias="industryCode") - purchased_modules: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated collection of strings that represent the Visier modules assigned to the new analytic tenant.", alias="purchasedModules") - sso_instance_issuers: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings that represent the issuers for the SSO providers that can authenticate this tenant.", alias="ssoInstanceIssuers") - tenant_display_name: Optional[StrictStr] = Field(default=None, description="A display name that is assigned to the new analytic tenant.", alias="tenantDisplayName") - __properties: ClassVar[List[str]] = ["customProperties", "embeddableDomains", "industryCode", "purchasedModules", "ssoInstanceIssuers", "tenantDisplayName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UpdateTenantModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UpdateTenantModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "customProperties": obj.get("customProperties"), - "embeddableDomains": obj.get("embeddableDomains"), - "industryCode": obj.get("industryCode"), - "purchasedModules": obj.get("purchasedModules"), - "ssoInstanceIssuers": obj.get("ssoInstanceIssuers"), - "tenantDisplayName": obj.get("tenantDisplayName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_creation_api_request_dto.py b/src/visier_api_administration/visier_api_administration/models/user_creation_api_request_dto.py deleted file mode 100644 index ea1ee507d9..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_creation_api_request_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UserCreationAPIRequestDTO(BaseModel): - """ - UserCreationAPIRequestDTO - """ # noqa: E501 - account_enabled: Optional[StrictStr] = Field(default=None, description="If false, the user account is disabled.", alias="accountEnabled") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name to display within Visier. For example, \"John Smith\".", alias="displayName") - email: Optional[StrictStr] = Field(default=None, description="The user's email. This is used if the user's email is different from their username. For example, \"john.doe@visier.com\".") - employee_id: Optional[StrictStr] = Field(default=None, description="If applicable, and if available, the user employee ID in the data.", alias="employeeId") - username: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@visier.com.") - __properties: ClassVar[List[str]] = ["accountEnabled", "displayName", "email", "employeeId", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserCreationAPIRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserCreationAPIRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "accountEnabled": obj.get("accountEnabled"), - "displayName": obj.get("displayName"), - "email": obj.get("email"), - "employeeId": obj.get("employeeId"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_creation_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/user_creation_api_response_dto.py index f4b3b3a4e8..c1d46e4f3d 100644 --- a/src/visier_api_administration/visier_api_administration/models/user_creation_api_response_dto.py +++ b/src/visier_api_administration/visier_api_administration/models/user_creation_api_response_dto.py @@ -5,7 +5,7 @@ Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/visier_api_administration/models/user_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/user_get_api_response_dto.py deleted file mode 100644 index 5b177ca0af..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_get_api_response_dto.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.all_permissions_assigned_for_local_tenant_dto import AllPermissionsAssignedForLocalTenantDTO -from visier_api_administration.models.all_profile_assigned_for_local_tenant_dto import AllProfileAssignedForLocalTenantDTO -from visier_api_administration.models.all_user_groups_assigned_for_local_tenant_dto import AllUserGroupsAssignedForLocalTenantDTO -from visier_api_administration.models.last_login_dto import LastLoginDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserGetAPIResponseDTO(BaseModel): - """ - UserGetAPIResponseDTO - """ # noqa: E501 - account_enabled: Optional[StrictBool] = Field(default=None, description="If false, the user account is disabled.", alias="accountEnabled") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name to display within Visier. For example, \"John Smith\".", alias="displayName") - email: Optional[StrictStr] = Field(default=None, description="The user's email address.") - employee_id: Optional[StrictStr] = Field(default=None, description="If applicable, and if available, the user employee ID in the data.", alias="employeeId") - last_login: Optional[LastLoginDTO] = Field(default=None, description="An object that represents the time that the user last logged into Visier.", alias="lastLogin") - permissions: Optional[AllPermissionsAssignedForLocalTenantDTO] = Field(default=None, description="A list of objects representing the user's permissions.") - profiles: Optional[AllProfileAssignedForLocalTenantDTO] = Field(default=None, description="A list of objects representing the list of available profiles. Not returned if the user has no profiles.") - user_groups: Optional[AllUserGroupsAssignedForLocalTenantDTO] = Field(default=None, description="A list of objects representing the available user groups.", alias="userGroups") - user_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="userId") - username: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@jupiter.com.") - __properties: ClassVar[List[str]] = ["accountEnabled", "displayName", "email", "employeeId", "lastLogin", "permissions", "profiles", "userGroups", "userId", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGetAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of last_login - if self.last_login: - _dict['lastLogin'] = self.last_login.to_dict() - # override the default output from pydantic by calling `to_dict()` of permissions - if self.permissions: - _dict['permissions'] = self.permissions.to_dict() - # override the default output from pydantic by calling `to_dict()` of profiles - if self.profiles: - _dict['profiles'] = self.profiles.to_dict() - # override the default output from pydantic by calling `to_dict()` of user_groups - if self.user_groups: - _dict['userGroups'] = self.user_groups.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGetAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "accountEnabled": obj.get("accountEnabled"), - "displayName": obj.get("displayName"), - "email": obj.get("email"), - "employeeId": obj.get("employeeId"), - "lastLogin": LastLoginDTO.from_dict(obj["lastLogin"]) if obj.get("lastLogin") is not None else None, - "permissions": AllPermissionsAssignedForLocalTenantDTO.from_dict(obj["permissions"]) if obj.get("permissions") is not None else None, - "profiles": AllProfileAssignedForLocalTenantDTO.from_dict(obj["profiles"]) if obj.get("profiles") is not None else None, - "userGroups": AllUserGroupsAssignedForLocalTenantDTO.from_dict(obj["userGroups"]) if obj.get("userGroups") is not None else None, - "userId": obj.get("userId"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_assigned_for_local_tenant_dto.py deleted file mode 100644 index e8861c980d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_assigned_for_local_tenant_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupAssignedForLocalTenantDTO(BaseModel): - """ - UserGroupAssignedForLocalTenantDTO - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable user group name to display in Visier, such as \"Leadership User Group\".", alias="displayName") - user_group_id: Optional[StrictStr] = Field(default=None, description="The user group ID.", alias="userGroupId") - __properties: ClassVar[List[str]] = ["displayName", "userGroupId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupAssignedForLocalTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupAssignedForLocalTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "userGroupId": obj.get("userGroupId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_change_definition_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_change_definition_dto.py deleted file mode 100644 index 474276386d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_change_definition_dto.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.element_ids_dto import ElementIDsDTO -from visier_api_administration.models.user_group_change_users_dto import UserGroupChangeUsersDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupChangeDefinitionDTO(BaseModel): - """ - UserGroupChangeDefinitionDTO - """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="A detailed description of the population and purpose of the user group.") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable user group name to display in Visier, such as \"Leadership User Group\".", alias="displayName") - permission_ids: Optional[ElementIDsDTO] = Field(default=None, description="The unique identifiers of permissions assigned to members of this user group.", alias="permissionIds") - project_id: Optional[StrictStr] = Field(default=None, description="The project ID in which to update or create the user group. If omitted and the ProjectID request header is not defined, the change is published to production immediately.", alias="projectId") - tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant to which the user group belongs or should be created in. Omit if creating or updating user groups in the current tenant.", alias="tenantCode") - user_group_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the user group. Omit if creating a new user group.", alias="userGroupId") - users: Optional[UserGroupChangeUsersDTO] = Field(default=None, description="The users assigned to the user group. You can define user group members dynamically with `dynamicFilterDefinition` or manually with `includeAllUsers` or `manuallyIncludedIds`.") - __properties: ClassVar[List[str]] = ["description", "displayName", "permissionIds", "projectId", "tenantCode", "userGroupId", "users"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupChangeDefinitionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of permission_ids - if self.permission_ids: - _dict['permissionIds'] = self.permission_ids.to_dict() - # override the default output from pydantic by calling `to_dict()` of users - if self.users: - _dict['users'] = self.users.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupChangeDefinitionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "permissionIds": ElementIDsDTO.from_dict(obj["permissionIds"]) if obj.get("permissionIds") is not None else None, - "projectId": obj.get("projectId"), - "tenantCode": obj.get("tenantCode"), - "userGroupId": obj.get("userGroupId"), - "users": UserGroupChangeUsersDTO.from_dict(obj["users"]) if obj.get("users") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_change_dimension_filter_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_change_dimension_filter_dto.py deleted file mode 100644 index be4faff72d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_change_dimension_filter_dto.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.element_ids_dto import ElementIDsDTO -from visier_api_administration.models.user_group_change_member_selection_dto import UserGroupChangeMemberSelectionDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupChangeDimensionFilterDTO(BaseModel): - """ - UserGroupChangeDimensionFilterDTO - """ # noqa: E501 - dimension_id: Optional[StrictStr] = Field(default=None, description="The object name of the dimension.", alias="dimensionId") - member_selections: Optional[List[UserGroupChangeMemberSelectionDTO]] = Field(default=None, description="The dimension members to select in the dynamic filter.", alias="memberSelections") - subject_reference_path: Optional[ElementIDsDTO] = Field(default=None, description="A qualifying path if the dimension is from an analytic object that references Employee. For example, use `subjectReferencePath` to create a filter on the `Employment_Start_Type` dimension from the `Employment_Start` object, which references `Employee`: `{ \"ids\": [ \"Employee\", \"Employment_Start\" ] }`.", alias="subjectReferencePath") - __properties: ClassVar[List[str]] = ["dimensionId", "memberSelections", "subjectReferencePath"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupChangeDimensionFilterDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in member_selections (list) - _items = [] - if self.member_selections: - for _item_member_selections in self.member_selections: - if _item_member_selections: - _items.append(_item_member_selections.to_dict()) - _dict['memberSelections'] = _items - # override the default output from pydantic by calling `to_dict()` of subject_reference_path - if self.subject_reference_path: - _dict['subjectReferencePath'] = self.subject_reference_path.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupChangeDimensionFilterDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimensionId": obj.get("dimensionId"), - "memberSelections": [UserGroupChangeMemberSelectionDTO.from_dict(_item) for _item in obj["memberSelections"]] if obj.get("memberSelections") is not None else None, - "subjectReferencePath": ElementIDsDTO.from_dict(obj["subjectReferencePath"]) if obj.get("subjectReferencePath") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_change_failure_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_change_failure_dto.py deleted file mode 100644 index 0462a64325..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_change_failure_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupChangeFailureDTO(BaseModel): - """ - UserGroupChangeFailureDTO - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="The display name of the user group that couldn't be created.", alias="displayName") - message: Optional[StrictStr] = Field(default=None, description="The error message containing the cause of the failure.") - project_id: Optional[StrictStr] = Field(default=None, description="The ID of the project in which the user group could not be created or updated.", alias="projectId") - rci: Optional[StrictStr] = Field(default=None, description="The root cause identifier to provide to Visier Technical Support if you require further troubleshooting.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant for which the user group could not be created or updated.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["displayName", "message", "projectId", "rci", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupChangeFailureDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupChangeFailureDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "message": obj.get("message"), - "projectId": obj.get("projectId"), - "rci": obj.get("rci"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_change_filter_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_change_filter_dto.py deleted file mode 100644 index ffd7fa803d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_change_filter_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.user_group_change_dimension_filter_dto import UserGroupChangeDimensionFilterDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupChangeFilterDTO(BaseModel): - """ - UserGroupChangeFilterDTO - """ # noqa: E501 - analytic_object_id: Optional[StrictStr] = Field(default=None, description="The analytic object the filter applies to. Currently, the only supported analytic object is `Employee`. Default is `Employee`.", alias="analyticObjectId") - dimension_filters: Optional[List[UserGroupChangeDimensionFilterDTO]] = Field(default=None, description="The dimensions in the dynamic filter.", alias="dimensionFilters") - filter_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the filter. Omit if creating a new filter.", alias="filterId") - __properties: ClassVar[List[str]] = ["analyticObjectId", "dimensionFilters", "filterId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupChangeFilterDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in dimension_filters (list) - _items = [] - if self.dimension_filters: - for _item_dimension_filters in self.dimension_filters: - if _item_dimension_filters: - _items.append(_item_dimension_filters.to_dict()) - _dict['dimensionFilters'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupChangeFilterDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObjectId": obj.get("analyticObjectId"), - "dimensionFilters": [UserGroupChangeDimensionFilterDTO.from_dict(_item) for _item in obj["dimensionFilters"]] if obj.get("dimensionFilters") is not None else None, - "filterId": obj.get("filterId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_change_member_selection_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_change_member_selection_dto.py deleted file mode 100644 index b7a4a65c68..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_change_member_selection_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupChangeMemberSelectionDTO(BaseModel): - """ - UserGroupChangeMemberSelectionDTO - """ # noqa: E501 - is_excluded: Optional[StrictBool] = Field(default=None, description="If `true`, the specified member must not be defined for members of the user group.", alias="isExcluded") - name_path: Optional[List[StrictStr]] = Field(default=None, description="The name path for dimension members; for example, `[ \"North America\", \"US\", \"CA\" ]`.", alias="namePath") - __properties: ClassVar[List[str]] = ["isExcluded", "namePath"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupChangeMemberSelectionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupChangeMemberSelectionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "isExcluded": obj.get("isExcluded"), - "namePath": obj.get("namePath") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_change_response_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_change_response_dto.py deleted file mode 100644 index 845614ce9c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_change_response_dto.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.user_group_change_failure_dto import UserGroupChangeFailureDTO -from visier_api_administration.models.user_group_change_success_dto import UserGroupChangeSuccessDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupChangeResponseDTO(BaseModel): - """ - UserGroupChangeResponseDTO - """ # noqa: E501 - failures: Optional[List[UserGroupChangeFailureDTO]] = Field(default=None, description="The user groups that were not created.") - successes: Optional[List[UserGroupChangeSuccessDTO]] = Field(default=None, description="The user groups that were created.") - __properties: ClassVar[List[str]] = ["failures", "successes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupChangeResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in failures (list) - _items = [] - if self.failures: - for _item_failures in self.failures: - if _item_failures: - _items.append(_item_failures.to_dict()) - _dict['failures'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in successes (list) - _items = [] - if self.successes: - for _item_successes in self.successes: - if _item_successes: - _items.append(_item_successes.to_dict()) - _dict['successes'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupChangeResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "failures": [UserGroupChangeFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, - "successes": [UserGroupChangeSuccessDTO.from_dict(_item) for _item in obj["successes"]] if obj.get("successes") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_change_success_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_change_success_dto.py deleted file mode 100644 index 1421ce4590..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_change_success_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupChangeSuccessDTO(BaseModel): - """ - UserGroupChangeSuccessDTO - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="The display name of the created user group.", alias="displayName") - project_id: Optional[StrictStr] = Field(default=None, description="The ID of the project the user group was created or updated in.", alias="projectId") - tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant the user group was created or updated in.", alias="tenantCode") - user_group_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the user group.", alias="userGroupId") - __properties: ClassVar[List[str]] = ["displayName", "projectId", "tenantCode", "userGroupId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupChangeSuccessDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupChangeSuccessDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "projectId": obj.get("projectId"), - "tenantCode": obj.get("tenantCode"), - "userGroupId": obj.get("userGroupId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_change_users_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_change_users_dto.py deleted file mode 100644 index f47b5e574b..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_change_users_dto.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.element_ids_dto import ElementIDsDTO -from visier_api_administration.models.user_group_filters_dto import UserGroupFiltersDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupChangeUsersDTO(BaseModel): - """ - UserGroupChangeUsersDTO - """ # noqa: E501 - dynamic_filter_definition: Optional[UserGroupFiltersDTO] = Field(default=None, description="The filters that dynamically define a population through dimensions or dimensions accessible through references from the analytic object. * Omit if `includeAllUsers` is `true`. * You can combine dynamic filters with manually-assigned users.", alias="dynamicFilterDefinition") - include_all_users: Optional[StrictBool] = Field(default=None, description="If `true`, all users are included in the user group. If `true`: * You can manually exclude users with `manuallyExcludedIds`. * Cannot be combined with `manuallyIncludedIds` or `dynamicFilterDefinition`.", alias="includeAllUsers") - manually_excluded_ids: Optional[ElementIDsDTO] = Field(default=None, description="Excludes specified user IDs from the user group. * You can manually exclude users if `includeAllUsers` is `true` or if `dynamicFilterDefinition` is defined. * Excluded IDs must not overlap with user IDs in `manuallyIncludedIds`.", alias="manuallyExcludedIds") - manually_included_ids: Optional[ElementIDsDTO] = Field(default=None, description="Includes specified user IDs in the user group. * May be combined with `dynamicFilterDefinition`. * Omit if `includeAllUsers` is `true`.", alias="manuallyIncludedIds") - __properties: ClassVar[List[str]] = ["dynamicFilterDefinition", "includeAllUsers", "manuallyExcludedIds", "manuallyIncludedIds"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupChangeUsersDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of dynamic_filter_definition - if self.dynamic_filter_definition: - _dict['dynamicFilterDefinition'] = self.dynamic_filter_definition.to_dict() - # override the default output from pydantic by calling `to_dict()` of manually_excluded_ids - if self.manually_excluded_ids: - _dict['manuallyExcludedIds'] = self.manually_excluded_ids.to_dict() - # override the default output from pydantic by calling `to_dict()` of manually_included_ids - if self.manually_included_ids: - _dict['manuallyIncludedIds'] = self.manually_included_ids.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupChangeUsersDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dynamicFilterDefinition": UserGroupFiltersDTO.from_dict(obj["dynamicFilterDefinition"]) if obj.get("dynamicFilterDefinition") is not None else None, - "includeAllUsers": obj.get("includeAllUsers"), - "manuallyExcludedIds": ElementIDsDTO.from_dict(obj["manuallyExcludedIds"]) if obj.get("manuallyExcludedIds") is not None else None, - "manuallyIncludedIds": ElementIDsDTO.from_dict(obj["manuallyIncludedIds"]) if obj.get("manuallyIncludedIds") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_delete_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_delete_dto.py deleted file mode 100644 index ba95da253b..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_delete_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupDeleteDTO(BaseModel): - """ - UserGroupDeleteDTO - """ # noqa: E501 - project_id: Optional[StrictStr] = Field(default=None, description="The project ID in which to delete the user group. If omitted and the `ProjectID` request header is not defined, the change is published to production immediately.", alias="projectId") - tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant from which to delete the user group. Omit if deleting user groups in the current tenant.", alias="tenantCode") - user_group_id: Optional[StrictStr] = Field(default=None, description="Unique identifier for the user group.", alias="userGroupId") - __properties: ClassVar[List[str]] = ["projectId", "tenantCode", "userGroupId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupDeleteDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupDeleteDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "projectId": obj.get("projectId"), - "tenantCode": obj.get("tenantCode"), - "userGroupId": obj.get("userGroupId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_delete_failure_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_delete_failure_dto.py deleted file mode 100644 index 4f425b26a8..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_delete_failure_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupDeleteFailureDTO(BaseModel): - """ - UserGroupDeleteFailureDTO - """ # noqa: E501 - message: Optional[StrictStr] = Field(default=None, description="The error message containing the cause of the failure.") - project_id: Optional[StrictStr] = Field(default=None, description="The ID of the project in which the user group could not be deleted.", alias="projectId") - rci: Optional[StrictStr] = Field(default=None, description="The root cause identifier to provide to Visier Technical Support if you require further troubleshooting.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant from which the user group could not be deleted.", alias="tenantCode") - user_group_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the user group that could not be deleted.", alias="userGroupId") - __properties: ClassVar[List[str]] = ["message", "projectId", "rci", "tenantCode", "userGroupId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupDeleteFailureDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupDeleteFailureDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "message": obj.get("message"), - "projectId": obj.get("projectId"), - "rci": obj.get("rci"), - "tenantCode": obj.get("tenantCode"), - "userGroupId": obj.get("userGroupId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_delete_response_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_delete_response_dto.py deleted file mode 100644 index 6603d3c00d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_delete_response_dto.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.user_group_delete_failure_dto import UserGroupDeleteFailureDTO -from visier_api_administration.models.user_group_delete_success_dto import UserGroupDeleteSuccessDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupDeleteResponseDTO(BaseModel): - """ - UserGroupDeleteResponseDTO - """ # noqa: E501 - failures: Optional[List[UserGroupDeleteFailureDTO]] = Field(default=None, description="The user groups that were not deleted successfully.") - successes: Optional[List[UserGroupDeleteSuccessDTO]] = Field(default=None, description="The user groups that were successfully deleted.") - __properties: ClassVar[List[str]] = ["failures", "successes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupDeleteResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in failures (list) - _items = [] - if self.failures: - for _item_failures in self.failures: - if _item_failures: - _items.append(_item_failures.to_dict()) - _dict['failures'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in successes (list) - _items = [] - if self.successes: - for _item_successes in self.successes: - if _item_successes: - _items.append(_item_successes.to_dict()) - _dict['successes'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupDeleteResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "failures": [UserGroupDeleteFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, - "successes": [UserGroupDeleteSuccessDTO.from_dict(_item) for _item in obj["successes"]] if obj.get("successes") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_delete_success_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_delete_success_dto.py deleted file mode 100644 index 3d2b5297c0..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_delete_success_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupDeleteSuccessDTO(BaseModel): - """ - UserGroupDeleteSuccessDTO - """ # noqa: E501 - project_id: Optional[StrictStr] = Field(default=None, description="The ID of the project in which user group was deleted.", alias="projectId") - tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant the user group was deleted from.", alias="tenantCode") - user_group_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the user group that was deleted.", alias="userGroupId") - __properties: ClassVar[List[str]] = ["projectId", "tenantCode", "userGroupId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupDeleteSuccessDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupDeleteSuccessDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "projectId": obj.get("projectId"), - "tenantCode": obj.get("tenantCode"), - "userGroupId": obj.get("userGroupId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_filters_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_filters_dto.py deleted file mode 100644 index c7e17008e1..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_filters_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.user_group_change_filter_dto import UserGroupChangeFilterDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupFiltersDTO(BaseModel): - """ - UserGroupFiltersDTO - """ # noqa: E501 - filters: Optional[List[UserGroupChangeFilterDTO]] = Field(default=None, description="The filters that define user group membership.") - __properties: ClassVar[List[str]] = ["filters"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupFiltersDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in filters (list) - _items = [] - if self.filters: - for _item_filters in self.filters: - if _item_filters: - _items.append(_item_filters.to_dict()) - _dict['filters'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupFiltersDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "filters": [UserGroupChangeFilterDTO.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_get_api_response_dto.py deleted file mode 100644 index afe650ef21..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_get_api_response_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.permission_response_dto import PermissionResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupGetAPIResponseDTO(BaseModel): - """ - UserGroupGetAPIResponseDTO - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable user group name to display in Visier, such as \"Leadership User Group\".", alias="displayName") - permissions: Optional[List[PermissionResponseDTO]] = Field(default=None, description="A list of objects representing the user's permissions.") - user_group_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user group.", alias="userGroupId") - __properties: ClassVar[List[str]] = ["displayName", "permissions", "userGroupId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupGetAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in permissions (list) - _items = [] - if self.permissions: - for _item_permissions in self.permissions: - if _item_permissions: - _items.append(_item_permissions.to_dict()) - _dict['permissions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupGetAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "permissions": [PermissionResponseDTO.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None, - "userGroupId": obj.get("userGroupId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_group_single_delete_response_dto.py b/src/visier_api_administration/visier_api_administration/models/user_group_single_delete_response_dto.py deleted file mode 100644 index e54b92411a..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_group_single_delete_response_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.user_group_delete_failure_dto import UserGroupDeleteFailureDTO -from visier_api_administration.models.user_group_delete_success_dto import UserGroupDeleteSuccessDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupSingleDeleteResponseDTO(BaseModel): - """ - UserGroupSingleDeleteResponseDTO - """ # noqa: E501 - failure: Optional[UserGroupDeleteFailureDTO] = Field(default=None, description="The user group was not successfully deleted.") - success: Optional[UserGroupDeleteSuccessDTO] = Field(default=None, description="The user group was successfully deleted.") - __properties: ClassVar[List[str]] = ["failure", "success"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupSingleDeleteResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of failure - if self.failure: - _dict['failure'] = self.failure.to_dict() - # override the default output from pydantic by calling `to_dict()` of success - if self.success: - _dict['success'] = self.success.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupSingleDeleteResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "failure": UserGroupDeleteFailureDTO.from_dict(obj["failure"]) if obj.get("failure") is not None else None, - "success": UserGroupDeleteSuccessDTO.from_dict(obj["success"]) if obj.get("success") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_groups_change_dto.py b/src/visier_api_administration/visier_api_administration/models/user_groups_change_dto.py deleted file mode 100644 index 91ddf104fc..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_groups_change_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.user_group_change_definition_dto import UserGroupChangeDefinitionDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupsChangeDTO(BaseModel): - """ - UserGroupsChangeDTO - """ # noqa: E501 - user_groups: Optional[List[UserGroupChangeDefinitionDTO]] = Field(default=None, description="The user groups and their definitions.", alias="userGroups") - __properties: ClassVar[List[str]] = ["userGroups"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupsChangeDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in user_groups (list) - _items = [] - if self.user_groups: - for _item_user_groups in self.user_groups: - if _item_user_groups: - _items.append(_item_user_groups.to_dict()) - _dict['userGroups'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupsChangeDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "userGroups": [UserGroupChangeDefinitionDTO.from_dict(_item) for _item in obj["userGroups"]] if obj.get("userGroups") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_groups_delete_request_dto.py b/src/visier_api_administration/visier_api_administration/models/user_groups_delete_request_dto.py deleted file mode 100644 index 4b5791bfd7..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_groups_delete_request_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.user_group_delete_dto import UserGroupDeleteDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupsDeleteRequestDTO(BaseModel): - """ - UserGroupsDeleteRequestDTO - """ # noqa: E501 - user_groups: Optional[List[UserGroupDeleteDTO]] = Field(default=None, description="The user groups to delete.", alias="userGroups") - __properties: ClassVar[List[str]] = ["userGroups"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupsDeleteRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in user_groups (list) - _items = [] - if self.user_groups: - for _item_user_groups in self.user_groups: - if _item_user_groups: - _items.append(_item_user_groups.to_dict()) - _dict['userGroups'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupsDeleteRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "userGroups": [UserGroupDeleteDTO.from_dict(_item) for _item in obj["userGroups"]] if obj.get("userGroups") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_groups_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/user_groups_get_api_response_dto.py deleted file mode 100644 index 5de45d9406..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_groups_get_api_response_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.user_group_get_api_response_dto import UserGroupGetAPIResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupsGetAPIResponseDTO(BaseModel): - """ - UserGroupsGetAPIResponseDTO - """ # noqa: E501 - limit: Optional[StrictInt] = Field(default=None, description="The number of results to return. The maximum number of users to retrieve is 1000.") - start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset.") - user_groups: Optional[List[UserGroupGetAPIResponseDTO]] = Field(default=None, description="A list of user groups.", alias="userGroups") - __properties: ClassVar[List[str]] = ["limit", "start", "userGroups"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupsGetAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in user_groups (list) - _items = [] - if self.user_groups: - for _item_user_groups in self.user_groups: - if _item_user_groups: - _items.append(_item_user_groups.to_dict()) - _dict['userGroups'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupsGetAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "limit": obj.get("limit"), - "start": obj.get("start"), - "userGroups": [UserGroupGetAPIResponseDTO.from_dict(_item) for _item in obj["userGroups"]] if obj.get("userGroups") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_groups_users_dto.py b/src/visier_api_administration/visier_api_administration/models/user_groups_users_dto.py deleted file mode 100644 index 1d1a756a95..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_groups_users_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.user_groups_users_for_tenant_dto import UserGroupsUsersForTenantDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupsUsersDTO(BaseModel): - """ - UserGroupsUsersDTO - """ # noqa: E501 - limit: Optional[StrictInt] = Field(default=None, description="The limit of results to return. The maximum value is 1000.") - start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving values from, also known as offset. The index begins at 0.") - tenants: Optional[List[UserGroupsUsersForTenantDTO]] = Field(default=None, description="A list of objects representing the users that are explicitly assigned to the user group, organized by the tenants the users belong to.") - __properties: ClassVar[List[str]] = ["limit", "start", "tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupsUsersDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupsUsersDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "limit": obj.get("limit"), - "start": obj.get("start"), - "tenants": [UserGroupsUsersForTenantDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_groups_users_for_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/user_groups_users_for_tenant_dto.py deleted file mode 100644 index 922fa7a0a7..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_groups_users_for_tenant_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.simple_user_dto import SimpleUserDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserGroupsUsersForTenantDTO(BaseModel): - """ - UserGroupsUsersForTenantDTO - """ # noqa: E501 - tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") - users: Optional[List[SimpleUserDTO]] = Field(default=None, description="A list of objects representing the users in the user group.") - __properties: ClassVar[List[str]] = ["tenantCode", "users"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserGroupsUsersForTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in users (list) - _items = [] - if self.users: - for _item_users in self.users: - if _item_users: - _items.append(_item_users.to_dict()) - _dict['users'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserGroupsUsersForTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tenantCode": obj.get("tenantCode"), - "users": [SimpleUserDTO.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_id_error_dto.py b/src/visier_api_administration/visier_api_administration/models/user_id_error_dto.py deleted file mode 100644 index d1d07a9ae0..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_id_error_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.error_dto import ErrorDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserIdErrorDTO(BaseModel): - """ - UserIdErrorDTO - """ # noqa: E501 - error: Optional[ErrorDTO] = Field(default=None, description="The details about the error.") - user_id: Optional[StrictStr] = Field(default=None, description="The bad user ID.", alias="userId") - __properties: ClassVar[List[str]] = ["error", "userId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserIdErrorDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserIdErrorDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "error": ErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, - "userId": obj.get("userId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_property_dto.py b/src/visier_api_administration/visier_api_administration/models/user_property_dto.py deleted file mode 100644 index 3e175e614e..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_property_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UserPropertyDTO(BaseModel): - """ - UserPropertyDTO - """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, description="The name property to map to in the dynamic filter. Valid values are one of `username`, `email`, `employeeId`.") - __properties: ClassVar[List[str]] = ["name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserPropertyDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserPropertyDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_security_assignments_dto.py b/src/visier_api_administration/visier_api_administration/models/user_security_assignments_dto.py deleted file mode 100644 index 12e1f117d0..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_security_assignments_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.simple_user_dto import SimpleUserDTO -from typing import Optional, Set -from typing_extensions import Self - -class UserSecurityAssignmentsDTO(BaseModel): - """ - UserSecurityAssignmentsDTO - """ # noqa: E501 - id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user group.") - name: Optional[StrictStr] = Field(default=None, description="The name of the user group.") - users: Optional[List[SimpleUserDTO]] = Field(default=None, description="A list of objects representing the users assigned to or removed from the user group.") - __properties: ClassVar[List[str]] = ["id", "name", "users"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserSecurityAssignmentsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in users (list) - _items = [] - if self.users: - for _item_users in self.users: - if _item_users: - _items.append(_item_users.to_dict()) - _dict['users'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserSecurityAssignmentsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name"), - "users": [SimpleUserDTO.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/user_update_api_request_dto.py b/src/visier_api_administration/visier_api_administration/models/user_update_api_request_dto.py deleted file mode 100644 index 322833dd20..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/user_update_api_request_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UserUpdateAPIRequestDTO(BaseModel): - """ - UserUpdateAPIRequestDTO - """ # noqa: E501 - account_enabled: Optional[StrictStr] = Field(default=None, description="If true, the user account is enabled.", alias="accountEnabled") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name to display within Visier. For example, \"John Smith\".", alias="displayName") - email: Optional[StrictStr] = Field(default=None, description="The user's email address.") - employee_id: Optional[StrictStr] = Field(default=None, description="If applicable, and if available, the user employee ID in the data.", alias="employeeId") - __properties: ClassVar[List[str]] = ["accountEnabled", "displayName", "email", "employeeId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserUpdateAPIRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserUpdateAPIRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "accountEnabled": obj.get("accountEnabled"), - "displayName": obj.get("displayName"), - "email": obj.get("email"), - "employeeId": obj.get("employeeId") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/users_api_error_message_dto.py b/src/visier_api_administration/visier_api_administration/models/users_api_error_message_dto.py deleted file mode 100644 index 74a502464e..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/users_api_error_message_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UsersAPIErrorMessageDTO(BaseModel): - """ - UsersAPIErrorMessageDTO - """ # noqa: E501 - message: Optional[StrictStr] = Field(default=None, description="Error message") - rci: Optional[StrictStr] = Field(default=None, description="The unique identifier associated to this error") - __properties: ClassVar[List[str]] = ["message", "rci"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UsersAPIErrorMessageDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UsersAPIErrorMessageDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "message": obj.get("message"), - "rci": obj.get("rci") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/users_api_failure_dto.py b/src/visier_api_administration/visier_api_administration/models/users_api_failure_dto.py deleted file mode 100644 index b998443870..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/users_api_failure_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.users_api_error_message_dto import UsersAPIErrorMessageDTO -from typing import Optional, Set -from typing_extensions import Self - -class UsersAPIFailureDTO(BaseModel): - """ - UsersAPIFailureDTO - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name to display within Visier. For example, \"John Smith\".", alias="displayName") - error: Optional[UsersAPIErrorMessageDTO] = Field(default=None, description="The error thrown during creation.") - user_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="userId") - user_name: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@jupiter.com.", alias="userName") - __properties: ClassVar[List[str]] = ["displayName", "error", "userId", "userName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UsersAPIFailureDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UsersAPIFailureDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "error": UsersAPIErrorMessageDTO.from_dict(obj["error"]) if obj.get("error") is not None else None, - "userId": obj.get("userId"), - "userName": obj.get("userName") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/users_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/users_api_response_dto.py deleted file mode 100644 index c0b3fd8a91..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/users_api_response_dto.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.users_api_failure_dto import UsersAPIFailureDTO -from visier_api_administration.models.users_api_success_dto import UsersAPISuccessDTO -from typing import Optional, Set -from typing_extensions import Self - -class UsersAPIResponseDTO(BaseModel): - """ - UsersAPIResponseDTO - """ # noqa: E501 - failures: Optional[List[UsersAPIFailureDTO]] = Field(default=None, description="The users for which the request failed.") - successes: Optional[List[UsersAPISuccessDTO]] = Field(default=None, description="The users for which the request succeeded.") - __properties: ClassVar[List[str]] = ["failures", "successes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UsersAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in failures (list) - _items = [] - if self.failures: - for _item_failures in self.failures: - if _item_failures: - _items.append(_item_failures.to_dict()) - _dict['failures'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in successes (list) - _items = [] - if self.successes: - for _item_successes in self.successes: - if _item_successes: - _items.append(_item_successes.to_dict()) - _dict['successes'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UsersAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "failures": [UsersAPIFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, - "successes": [UsersAPISuccessDTO.from_dict(_item) for _item in obj["successes"]] if obj.get("successes") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/users_api_success_dto.py b/src/visier_api_administration/visier_api_administration/models/users_api_success_dto.py deleted file mode 100644 index 0fb428ab71..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/users_api_success_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UsersAPISuccessDTO(BaseModel): - """ - UsersAPISuccessDTO - """ # noqa: E501 - account_enabled: Optional[StrictStr] = Field(default=None, description="If true, the user account is enabled.", alias="accountEnabled") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name to display within Visier. For example, \"John Smith\".", alias="displayName") - email: Optional[StrictStr] = Field(default=None, description="The user's email address.") - employee_id: Optional[StrictStr] = Field(default=None, description="If applicable, and if available, the user employee ID in the data.", alias="employeeId") - user_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="userId") - username: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@jupiter.com.") - __properties: ClassVar[List[str]] = ["accountEnabled", "displayName", "email", "employeeId", "userId", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UsersAPISuccessDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UsersAPISuccessDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "accountEnabled": obj.get("accountEnabled"), - "displayName": obj.get("displayName"), - "email": obj.get("email"), - "employeeId": obj.get("employeeId"), - "userId": obj.get("userId"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/users_creation_api_request_dto.py b/src/visier_api_administration/visier_api_administration/models/users_creation_api_request_dto.py deleted file mode 100644 index e3bf41f96d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/users_creation_api_request_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.user_creation_api_request_dto import UserCreationAPIRequestDTO -from typing import Optional, Set -from typing_extensions import Self - -class UsersCreationAPIRequestDTO(BaseModel): - """ - UsersCreationAPIRequestDTO - """ # noqa: E501 - users: Optional[List[UserCreationAPIRequestDTO]] = Field(default=None, description="A list of objects representing users to create. Maximum 100 users can be created in a single request.") - __properties: ClassVar[List[str]] = ["users"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UsersCreationAPIRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in users (list) - _items = [] - if self.users: - for _item_users in self.users: - if _item_users: - _items.append(_item_users.to_dict()) - _dict['users'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UsersCreationAPIRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "users": [UserCreationAPIRequestDTO.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/users_delete_api_request_dto.py b/src/visier_api_administration/visier_api_administration/models/users_delete_api_request_dto.py deleted file mode 100644 index a50c9a684c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/users_delete_api_request_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UsersDeleteAPIRequestDTO(BaseModel): - """ - UsersDeleteAPIRequestDTO - """ # noqa: E501 - user_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of objects representing users to delete. Maximum 100 users can be deleted in a single request.", alias="userIds") - __properties: ClassVar[List[str]] = ["userIds"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UsersDeleteAPIRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UsersDeleteAPIRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "userIds": obj.get("userIds") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/users_to_user_group_request_dto.py b/src/visier_api_administration/visier_api_administration/models/users_to_user_group_request_dto.py deleted file mode 100644 index 5bbe1774ea..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/users_to_user_group_request_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UsersToUserGroupRequestDTO(BaseModel): - """ - UsersToUserGroupRequestDTO - """ # noqa: E501 - user_group_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user group.", alias="userGroupId") - user_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing unique user IDs to assign to or remove from the user group. The maximum number of `userIds` per user group is 100.", alias="userIds") - __properties: ClassVar[List[str]] = ["userGroupId", "userIds"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UsersToUserGroupRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UsersToUserGroupRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "userGroupId": obj.get("userGroupId"), - "userIds": obj.get("userIds") - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/users_to_user_groups_request_dto.py b/src/visier_api_administration/visier_api_administration/models/users_to_user_groups_request_dto.py deleted file mode 100644 index c47c45193d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/users_to_user_groups_request_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.target_project_for_tenants_list_dto import TargetProjectForTenantsListDTO -from visier_api_administration.models.users_to_user_group_request_dto import UsersToUserGroupRequestDTO -from typing import Optional, Set -from typing_extensions import Self - -class UsersToUserGroupsRequestDTO(BaseModel): - """ - UsersToUserGroupsRequestDTO - """ # noqa: E501 - target_project_for_tenants_list: Optional[TargetProjectForTenantsListDTO] = Field(default=None, description="Administrating tenants can specify the tenants and projects in which to assign users to user groups or remove users from user groups. Specify one `projectId` per `tenantCode`. If omitted, the request is immediately published to production or applied to the ProjectID in the request header, if available, for the administrating tenant or TargetTenantID, if available.", alias="targetProjectForTenantsList") - user_groups: Optional[List[UsersToUserGroupRequestDTO]] = Field(default=None, description="A list of objects representing the user groups and users to assign or remove.", alias="userGroups") - __properties: ClassVar[List[str]] = ["targetProjectForTenantsList", "userGroups"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UsersToUserGroupsRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of target_project_for_tenants_list - if self.target_project_for_tenants_list: - _dict['targetProjectForTenantsList'] = self.target_project_for_tenants_list.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in user_groups (list) - _items = [] - if self.user_groups: - for _item_user_groups in self.user_groups: - if _item_user_groups: - _items.append(_item_user_groups.to_dict()) - _dict['userGroups'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UsersToUserGroupsRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "targetProjectForTenantsList": TargetProjectForTenantsListDTO.from_dict(obj["targetProjectForTenantsList"]) if obj.get("targetProjectForTenantsList") is not None else None, - "userGroups": [UsersToUserGroupRequestDTO.from_dict(_item) for _item in obj["userGroups"]] if obj.get("userGroups") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/users_update_api_request_dto.py b/src/visier_api_administration/visier_api_administration/models/users_update_api_request_dto.py deleted file mode 100644 index 5182841e9f..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/users_update_api_request_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_administration.models.users_update_api_user_dto import UsersUpdateAPIUserDTO -from typing import Optional, Set -from typing_extensions import Self - -class UsersUpdateAPIRequestDTO(BaseModel): - """ - UsersUpdateAPIRequestDTO - """ # noqa: E501 - users: Optional[List[UsersUpdateAPIUserDTO]] = Field(default=None, description="A list of objects representing users to update. Maximum 100 users can be updated in a single request.") - __properties: ClassVar[List[str]] = ["users"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UsersUpdateAPIRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in users (list) - _items = [] - if self.users: - for _item_users in self.users: - if _item_users: - _items.append(_item_users.to_dict()) - _dict['users'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UsersUpdateAPIRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "users": [UsersUpdateAPIUserDTO.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None - }) - return _obj - - diff --git a/src/visier_api_administration/visier_api_administration/models/users_update_api_user_dto.py b/src/visier_api_administration/visier_api_administration/models/users_update_api_user_dto.py deleted file mode 100644 index 5af4f32ece..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/users_update_api_user_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Administration APIs - - Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UsersUpdateAPIUserDTO(BaseModel): - """ - UsersUpdateAPIUserDTO - """ # noqa: E501 - account_enabled: Optional[StrictStr] = Field(default=None, description="If true, the user account is enabled.", alias="accountEnabled") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name to display within Visier. For example, \"John Smith\".", alias="displayName") - email: Optional[StrictStr] = Field(default=None, description="The user's email address.") - employee_id: Optional[StrictStr] = Field(default=None, description="If applicable, and if available, the user employee ID in the data.", alias="employeeId") - user_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="userId") - __properties: ClassVar[List[str]] = ["accountEnabled", "displayName", "email", "employeeId", "userId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UsersUpdateAPIUserDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UsersUpdateAPIUserDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "accountEnabled": obj.get("accountEnabled"), - "displayName": obj.get("displayName"), - "email": obj.get("email"), - "employeeId": obj.get("employeeId"), - "userId": obj.get("userId") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/.openapi-generator/FILES b/src/visier_api_analytic_model/.openapi-generator/FILES index 212e55427a..51f062ceaa 100644 --- a/src/visier_api_analytic_model/.openapi-generator/FILES +++ b/src/visier_api_analytic_model/.openapi-generator/FILES @@ -4,186 +4,188 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_aggregation_type_option_dto.py -test/test_aggregation_type_parameter_dto.py -test/test_analytic_object_dto.py -test/test_analytic_object_filter_dto.py -test/test_analytic_objects_dto.py -test/test_calculated_property_type_dto.py -test/test_calculation_concept_configuration_dto.py -test/test_calculation_concept_configuration_map_dto.py -test/test_calculation_concept_dto.py -test/test_calculation_concept_list_dto.py -test/test_concept_configuration_result_dto.py -test/test_currencies_dto.py -test/test_currency_dto.py -test/test_currency_rate_dto.py -test/test_currency_rates_dto.py test/test_data_model_api.py -test/test_dependent_dto.py -test/test_dimension_change_definition_dto.py -test/test_dimension_change_definitions_by_tenant_dto.py -test/test_dimension_dto.py -test/test_dimension_filter_dto.py -test/test_dimension_mapping_validation_dto.py -test/test_dimension_mapping_validation_execution_dto.py -test/test_dimension_member_dto.py -test/test_dimension_member_reference_dto.py -test/test_dimension_reference_dto.py -test/test_dimensions_change_definitions_dto.py -test/test_dimensions_dto.py -test/test_get_plan_list_response_dto.py -test/test_google_protobuf_any.py -test/test_level_dto.py -test/test_member_dto.py -test/test_member_parameter_definition_dto.py -test/test_member_values_dto.py -test/test_members_dto.py -test/test_metric_dto.py -test/test_metrics_dto.py -test/test_numeric_parameter_definition_dto.py -test/test_object_change_failure_dto.py -test/test_object_change_success_dto.py +test/test_dataservices_common_dimension_member_reference_dto.py +test/test_dataservices_common_member_values_dto.py +test/test_dataservices_datamodel_transfers_aggregation_type_option_dto.py +test/test_dataservices_datamodel_transfers_aggregation_type_parameter_dto.py +test/test_dataservices_datamodel_transfers_analytic_object_dto.py +test/test_dataservices_datamodel_transfers_analytic_objects_dto.py +test/test_dataservices_datamodel_transfers_currencies_dto.py +test/test_dataservices_datamodel_transfers_currency_dto.py +test/test_dataservices_datamodel_transfers_currency_rate_dto.py +test/test_dataservices_datamodel_transfers_currency_rates_dto.py +test/test_dataservices_datamodel_transfers_dimension_dto.py +test/test_dataservices_datamodel_transfers_dimension_mapping_validation_dto.py +test/test_dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto.py +test/test_dataservices_datamodel_transfers_dimension_reference_dto.py +test/test_dataservices_datamodel_transfers_dimensions_dto.py +test/test_dataservices_datamodel_transfers_level_dto.py +test/test_dataservices_datamodel_transfers_member_dto.py +test/test_dataservices_datamodel_transfers_member_parameter_definition_dto.py +test/test_dataservices_datamodel_transfers_members_dto.py +test/test_dataservices_datamodel_transfers_metric_dto.py +test/test_dataservices_datamodel_transfers_metrics_dto.py +test/test_dataservices_datamodel_transfers_numeric_parameter_definition_dto.py +test/test_dataservices_datamodel_transfers_object_reference_dto.py +test/test_dataservices_datamodel_transfers_parameter_definition_dto.py +test/test_dataservices_datamodel_transfers_plan_parameter_definition_dto.py +test/test_dataservices_datamodel_transfers_planning_concept_filter_context_dto.py +test/test_dataservices_datamodel_transfers_planning_hierarchy_filter_context_dto.py +test/test_dataservices_datamodel_transfers_planning_model_dto.py +test/test_dataservices_datamodel_transfers_planning_models_dto.py +test/test_dataservices_datamodel_transfers_planning_plan_context_dto.py +test/test_dataservices_datamodel_transfers_planning_plan_dto.py +test/test_dataservices_datamodel_transfers_planning_plans_dto.py +test/test_dataservices_datamodel_transfers_population_configuration_dto.py +test/test_dataservices_datamodel_transfers_prediction_dto.py +test/test_dataservices_datamodel_transfers_predictions_dto.py +test/test_dataservices_datamodel_transfers_properties_dto.py +test/test_dataservices_datamodel_transfers_property_dto.py +test/test_dataservices_datamodel_transfers_property_reference_dto.py +test/test_dataservices_datamodel_transfers_scenario_or_snapshot_dto.py +test/test_dataservices_datamodel_transfers_selection_concept_dto.py +test/test_dataservices_datamodel_transfers_selection_concepts_dto.py +test/test_dataservices_datamodel_transfers_tag_map_element_dto.py +test/test_dataservices_datamodel_transfers_validity_range_dto.py +test/test_designer_api_transfers_analytic_object_filter_dto.py +test/test_designer_api_transfers_calculation_concept_configuration_dto.py +test/test_designer_api_transfers_calculation_concept_configuration_map_dto.py +test/test_designer_api_transfers_calculation_concept_dto.py +test/test_designer_api_transfers_calculation_concept_list_dto.py +test/test_designer_api_transfers_concept_configuration_result_dto.py +test/test_designer_api_transfers_dimension_filter_dto.py +test/test_designer_api_transfers_dimension_member_dto.py +test/test_designer_api_transfers_perspective_configuration_dto.py +test/test_designer_api_transfers_perspective_node_dto.py +test/test_designer_api_transfers_selection_concept_configuration_dto.py +test/test_designer_api_transfers_selection_concept_configuration_map_dto.py +test/test_designer_api_transfers_selection_concept_dto.py +test/test_designer_api_transfers_selection_concept_list_dto.py test/test_object_configuration_api.py -test/test_object_reference_dto.py -test/test_objects_bulk_change_response_dto.py -test/test_parameter_definition_dto.py -test/test_perspective_configuration_dto.py -test/test_perspective_node_dto.py -test/test_plan_data_load_error_dto.py -test/test_plan_info_dto.py -test/test_plan_item_dto.py -test/test_plan_parameter_definition_dto.py -test/test_plan_schema_dto.py -test/test_plan_segment_level_dto.py -test/test_plan_segment_level_member_dto.py -test/test_plan_segment_level_member_list_dto.py -test/test_plan_time_period_dto.py -test/test_plan_with_schema_dto.py -test/test_planning_concept_filter_context_dto.py -test/test_planning_hierarchy_filter_context_dto.py -test/test_planning_model_dto.py -test/test_planning_models_dto.py -test/test_planning_plan_context_dto.py -test/test_planning_plan_dto.py -test/test_planning_plans_dto.py -test/test_population_configuration_dto.py -test/test_prediction_dto.py -test/test_predictions_dto.py -test/test_properties_change_definitions_dto.py -test/test_properties_delete_definitions_dto.py -test/test_properties_dto.py -test/test_property_bulk_delete_response_dto.py -test/test_property_change_definition_dto.py -test/test_property_change_definitions_by_tenant_dto.py -test/test_property_delete_definitions_by_tenant_dto.py -test/test_property_delete_failure_dto.py -test/test_property_delete_success_dto.py -test/test_property_dto.py -test/test_property_reference_dto.py -test/test_property_type_dto.py -test/test_scenario_info_dto.py -test/test_scenario_or_snapshot_dto.py -test/test_selection_concept_configuration_map_dto.py -test/test_selection_concept_dto.py -test/test_selection_concept_list_dto.py -test/test_selection_concepts_dto.py -test/test_simple_property_type_dto.py +test/test_planning_transfers_get_plan_list_response_dto.py +test/test_planning_transfers_plan_data_load_error_dto.py +test/test_planning_transfers_plan_info_dto.py +test/test_planning_transfers_plan_item_dto.py +test/test_planning_transfers_plan_schema_dto.py +test/test_planning_transfers_plan_segment_level_dto.py +test/test_planning_transfers_plan_segment_level_member_dto.py +test/test_planning_transfers_plan_segment_level_member_list_dto.py +test/test_planning_transfers_plan_time_period_dto.py +test/test_planning_transfers_plan_with_schema_dto.py +test/test_planning_transfers_scenario_info_dto.py +test/test_servicing_publicapi_objectconfiguration_calculated_property_type_dto.py +test/test_servicing_publicapi_objectconfiguration_dependent_dto.py +test/test_servicing_publicapi_objectconfiguration_dimension_change_definition_dto.py +test/test_servicing_publicapi_objectconfiguration_dimension_change_definitions_by_tenant_dto.py +test/test_servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto.py +test/test_servicing_publicapi_objectconfiguration_object_change_failure_dto.py +test/test_servicing_publicapi_objectconfiguration_object_change_success_dto.py +test/test_servicing_publicapi_objectconfiguration_objects_bulk_change_response_dto.py +test/test_servicing_publicapi_objectconfiguration_properties_change_definitions_dto.py +test/test_servicing_publicapi_objectconfiguration_properties_delete_definitions_dto.py +test/test_servicing_publicapi_objectconfiguration_property_bulk_delete_response_dto.py +test/test_servicing_publicapi_objectconfiguration_property_change_definition_dto.py +test/test_servicing_publicapi_objectconfiguration_property_change_definitions_by_tenant_dto.py +test/test_servicing_publicapi_objectconfiguration_property_delete_definitions_by_tenant_dto.py +test/test_servicing_publicapi_objectconfiguration_property_delete_failure_dto.py +test/test_servicing_publicapi_objectconfiguration_property_delete_success_dto.py +test/test_servicing_publicapi_objectconfiguration_property_type_dto.py +test/test_servicing_publicapi_objectconfiguration_simple_property_type_dto.py +test/test_servicing_publicapi_objectconfiguration_tags_dto.py test/test_status.py -test/test_tag_map_element_dto.py -test/test_tags_dto.py -test/test_validity_range_dto.py tox.ini visier_api_analytic_model/__init__.py visier_api_analytic_model/api/__init__.py visier_api_analytic_model/api/data_model_api.py visier_api_analytic_model/api/object_configuration_api.py visier_api_analytic_model/models/__init__.py -visier_api_analytic_model/models/aggregation_type_option_dto.py -visier_api_analytic_model/models/aggregation_type_parameter_dto.py -visier_api_analytic_model/models/analytic_object_dto.py -visier_api_analytic_model/models/analytic_object_filter_dto.py -visier_api_analytic_model/models/analytic_objects_dto.py -visier_api_analytic_model/models/calculated_property_type_dto.py -visier_api_analytic_model/models/calculation_concept_configuration_dto.py -visier_api_analytic_model/models/calculation_concept_configuration_map_dto.py -visier_api_analytic_model/models/calculation_concept_dto.py -visier_api_analytic_model/models/calculation_concept_list_dto.py -visier_api_analytic_model/models/concept_configuration_result_dto.py -visier_api_analytic_model/models/currencies_dto.py -visier_api_analytic_model/models/currency_dto.py -visier_api_analytic_model/models/currency_rate_dto.py -visier_api_analytic_model/models/currency_rates_dto.py -visier_api_analytic_model/models/dependent_dto.py -visier_api_analytic_model/models/dimension_change_definition_dto.py -visier_api_analytic_model/models/dimension_change_definitions_by_tenant_dto.py -visier_api_analytic_model/models/dimension_dto.py -visier_api_analytic_model/models/dimension_filter_dto.py -visier_api_analytic_model/models/dimension_mapping_validation_dto.py -visier_api_analytic_model/models/dimension_mapping_validation_execution_dto.py -visier_api_analytic_model/models/dimension_member_dto.py -visier_api_analytic_model/models/dimension_member_reference_dto.py -visier_api_analytic_model/models/dimension_reference_dto.py -visier_api_analytic_model/models/dimensions_change_definitions_dto.py -visier_api_analytic_model/models/dimensions_dto.py -visier_api_analytic_model/models/get_plan_list_response_dto.py -visier_api_analytic_model/models/google_protobuf_any.py -visier_api_analytic_model/models/level_dto.py -visier_api_analytic_model/models/member_dto.py -visier_api_analytic_model/models/member_parameter_definition_dto.py -visier_api_analytic_model/models/member_values_dto.py -visier_api_analytic_model/models/members_dto.py -visier_api_analytic_model/models/metric_dto.py -visier_api_analytic_model/models/metrics_dto.py -visier_api_analytic_model/models/numeric_parameter_definition_dto.py -visier_api_analytic_model/models/object_change_failure_dto.py -visier_api_analytic_model/models/object_change_success_dto.py -visier_api_analytic_model/models/object_reference_dto.py -visier_api_analytic_model/models/objects_bulk_change_response_dto.py -visier_api_analytic_model/models/parameter_definition_dto.py -visier_api_analytic_model/models/perspective_configuration_dto.py -visier_api_analytic_model/models/perspective_node_dto.py -visier_api_analytic_model/models/plan_data_load_error_dto.py -visier_api_analytic_model/models/plan_info_dto.py -visier_api_analytic_model/models/plan_item_dto.py -visier_api_analytic_model/models/plan_parameter_definition_dto.py -visier_api_analytic_model/models/plan_schema_dto.py -visier_api_analytic_model/models/plan_segment_level_dto.py -visier_api_analytic_model/models/plan_segment_level_member_dto.py -visier_api_analytic_model/models/plan_segment_level_member_list_dto.py -visier_api_analytic_model/models/plan_time_period_dto.py -visier_api_analytic_model/models/plan_with_schema_dto.py -visier_api_analytic_model/models/planning_concept_filter_context_dto.py -visier_api_analytic_model/models/planning_hierarchy_filter_context_dto.py -visier_api_analytic_model/models/planning_model_dto.py -visier_api_analytic_model/models/planning_models_dto.py -visier_api_analytic_model/models/planning_plan_context_dto.py -visier_api_analytic_model/models/planning_plan_dto.py -visier_api_analytic_model/models/planning_plans_dto.py -visier_api_analytic_model/models/population_configuration_dto.py -visier_api_analytic_model/models/prediction_dto.py -visier_api_analytic_model/models/predictions_dto.py -visier_api_analytic_model/models/properties_change_definitions_dto.py -visier_api_analytic_model/models/properties_delete_definitions_dto.py -visier_api_analytic_model/models/properties_dto.py -visier_api_analytic_model/models/property_bulk_delete_response_dto.py -visier_api_analytic_model/models/property_change_definition_dto.py -visier_api_analytic_model/models/property_change_definitions_by_tenant_dto.py -visier_api_analytic_model/models/property_delete_definitions_by_tenant_dto.py -visier_api_analytic_model/models/property_delete_failure_dto.py -visier_api_analytic_model/models/property_delete_success_dto.py -visier_api_analytic_model/models/property_dto.py -visier_api_analytic_model/models/property_reference_dto.py -visier_api_analytic_model/models/property_type_dto.py -visier_api_analytic_model/models/scenario_info_dto.py -visier_api_analytic_model/models/scenario_or_snapshot_dto.py -visier_api_analytic_model/models/selection_concept_configuration_map_dto.py -visier_api_analytic_model/models/selection_concept_dto.py -visier_api_analytic_model/models/selection_concept_list_dto.py -visier_api_analytic_model/models/selection_concepts_dto.py -visier_api_analytic_model/models/simple_property_type_dto.py +visier_api_analytic_model/models/dataservices_common_dimension_member_reference_dto.py +visier_api_analytic_model/models/dataservices_common_member_values_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_aggregation_type_option_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_aggregation_type_parameter_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_analytic_object_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_analytic_objects_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_currencies_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_currency_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_currency_rate_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_currency_rates_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_mapping_validation_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_reference_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_dimensions_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_level_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_member_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_member_parameter_definition_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_members_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_metric_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_metrics_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_numeric_parameter_definition_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_object_reference_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_parameter_definition_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_plan_parameter_definition_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_concept_filter_context_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_hierarchy_filter_context_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_model_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_models_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_plan_context_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_plan_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_plans_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_population_configuration_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_prediction_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_predictions_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_properties_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_property_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_property_reference_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_scenario_or_snapshot_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_selection_concept_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_selection_concepts_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_tag_map_element_dto.py +visier_api_analytic_model/models/dataservices_datamodel_transfers_validity_range_dto.py +visier_api_analytic_model/models/designer_api_transfers_analytic_object_filter_dto.py +visier_api_analytic_model/models/designer_api_transfers_calculation_concept_configuration_dto.py +visier_api_analytic_model/models/designer_api_transfers_calculation_concept_configuration_map_dto.py +visier_api_analytic_model/models/designer_api_transfers_calculation_concept_dto.py +visier_api_analytic_model/models/designer_api_transfers_calculation_concept_list_dto.py +visier_api_analytic_model/models/designer_api_transfers_concept_configuration_result_dto.py +visier_api_analytic_model/models/designer_api_transfers_dimension_filter_dto.py +visier_api_analytic_model/models/designer_api_transfers_dimension_member_dto.py +visier_api_analytic_model/models/designer_api_transfers_perspective_configuration_dto.py +visier_api_analytic_model/models/designer_api_transfers_perspective_node_dto.py +visier_api_analytic_model/models/designer_api_transfers_selection_concept_configuration_dto.py +visier_api_analytic_model/models/designer_api_transfers_selection_concept_configuration_map_dto.py +visier_api_analytic_model/models/designer_api_transfers_selection_concept_dto.py +visier_api_analytic_model/models/designer_api_transfers_selection_concept_list_dto.py +visier_api_analytic_model/models/planning_transfers_get_plan_list_response_dto.py +visier_api_analytic_model/models/planning_transfers_plan_data_load_error_dto.py +visier_api_analytic_model/models/planning_transfers_plan_info_dto.py +visier_api_analytic_model/models/planning_transfers_plan_item_dto.py +visier_api_analytic_model/models/planning_transfers_plan_schema_dto.py +visier_api_analytic_model/models/planning_transfers_plan_segment_level_dto.py +visier_api_analytic_model/models/planning_transfers_plan_segment_level_member_dto.py +visier_api_analytic_model/models/planning_transfers_plan_segment_level_member_list_dto.py +visier_api_analytic_model/models/planning_transfers_plan_time_period_dto.py +visier_api_analytic_model/models/planning_transfers_plan_with_schema_dto.py +visier_api_analytic_model/models/planning_transfers_scenario_info_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_calculated_property_type_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dependent_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dimension_change_definition_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dimension_change_definitions_by_tenant_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_object_change_failure_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_object_change_success_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_objects_bulk_change_response_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_properties_change_definitions_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_properties_delete_definitions_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_bulk_delete_response_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_change_definition_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_change_definitions_by_tenant_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_delete_definitions_by_tenant_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_delete_failure_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_delete_success_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_type_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_simple_property_type_dto.py +visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_tags_dto.py visier_api_analytic_model/models/status.py -visier_api_analytic_model/models/tag_map_element_dto.py -visier_api_analytic_model/models/tags_dto.py -visier_api_analytic_model/models/validity_range_dto.py visier_api_analytic_model/py.typed diff --git a/src/visier_api_analytic_model/pyproject.toml b/src/visier_api_analytic_model/pyproject.toml index d326ffd22e..c6aa7efbb5 100644 --- a/src/visier_api_analytic_model/pyproject.toml +++ b/src/visier_api_analytic_model/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "visier_api_analytic_model" -version = "0.99201.1772" +version = "0.99201.1793" description = "Visier Analytic Model APIs" authors = ["Visier "] license = "Apache License, Version 2.0" @@ -12,7 +12,7 @@ include = ["visier_api_analytic_model/py.typed"] [tool.poetry.dependencies] python = "^3.8" -visier-api-core = "~= 0.99201.1772" +visier-api-core = "~= 0.99201.1793" [tool.poetry.dev-dependencies] pytest = ">=7.2.1" diff --git a/src/visier_api_analytic_model/requirements.txt b/src/visier_api_analytic_model/requirements.txt index abc44fc65a..ebf9a91559 100644 --- a/src/visier_api_analytic_model/requirements.txt +++ b/src/visier_api_analytic_model/requirements.txt @@ -1 +1 @@ -visier-api-core ~= 0.99201.1772 \ No newline at end of file +visier-api-core ~= 0.99201.1793 \ No newline at end of file diff --git a/src/visier_api_analytic_model/setup.py b/src/visier_api_analytic_model/setup.py index 7d97486f17..cedcaa04b5 100644 --- a/src/visier_api_analytic_model/setup.py +++ b/src/visier_api_analytic_model/setup.py @@ -5,7 +5,7 @@ Visier APIs for retrieving and configuring your analytic model in Visier. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,10 +23,10 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "visier-api-analytic-model" -VERSION = "0.99201.1772" +VERSION = "0.99201.1793" PYTHON_REQUIRES = ">=3.8" REQUIRES = [ - "visier-api-core ~= 0.99201.1772", + "visier-api-core ~= 0.99201.1793", ] setup( diff --git a/src/visier_api_analytic_model/test/test_aggregation_type_option_dto.py b/src/visier_api_analytic_model/test/test_aggregation_type_option_dto.py deleted file mode 100644 index 156ba0f54b..0000000000 --- a/src/visier_api_analytic_model/test/test_aggregation_type_option_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.aggregation_type_option_dto import AggregationTypeOptionDTO - -class TestAggregationTypeOptionDTO(unittest.TestCase): - """AggregationTypeOptionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AggregationTypeOptionDTO: - """Test AggregationTypeOptionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AggregationTypeOptionDTO( - aggregation_function = '', - display_name = '', - id = '', - is_default = True, - property_name = '' - ) - else: - return AggregationTypeOptionDTO( - ) - - def testAggregationTypeOptionDTO(self): - """Test AggregationTypeOptionDTO""" - def validate_instance(instance): - AggregationTypeOptionDTO.model_validate(inst_req_only) - instance_deserialized = AggregationTypeOptionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_aggregation_type_parameter_dto.py b/src/visier_api_analytic_model/test/test_aggregation_type_parameter_dto.py deleted file mode 100644 index 806d43b721..0000000000 --- a/src/visier_api_analytic_model/test/test_aggregation_type_parameter_dto.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.aggregation_type_parameter_dto import AggregationTypeParameterDTO - -class TestAggregationTypeParameterDTO(unittest.TestCase): - """AggregationTypeParameterDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AggregationTypeParameterDTO: - """Test AggregationTypeParameterDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AggregationTypeParameterDTO( - description = '', - display_name = '', - id = '', - parameter_options = [ - visier_api_analytic_model.models.aggregation_type_option_dto.AggregationTypeOptionDTO( - aggregation_function = '', - display_name = '', - id = '', - is_default = True, - property_name = '', ) - ] - ) - else: - return AggregationTypeParameterDTO( - ) - - def testAggregationTypeParameterDTO(self): - """Test AggregationTypeParameterDTO""" - def validate_instance(instance): - AggregationTypeParameterDTO.model_validate(inst_req_only) - instance_deserialized = AggregationTypeParameterDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_analytic_object_dto.py b/src/visier_api_analytic_model/test/test_analytic_object_dto.py deleted file mode 100644 index 9b75ecd10c..0000000000 --- a/src/visier_api_analytic_model/test/test_analytic_object_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.analytic_object_dto import AnalyticObjectDTO - -class TestAnalyticObjectDTO(unittest.TestCase): - """AnalyticObjectDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalyticObjectDTO: - """Test AnalyticObjectDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AnalyticObjectDTO( - data_end_date = '', - data_start_date = '', - description = '', - dimension_ids = [ - '' - ], - display_name = '', - id = '', - object_references = [ - visier_api_analytic_model.models.object_reference_dto.ObjectReferenceDTO( - description = '', - display_name = '', - from_object = '', - id = '', - is_strong_reference = True, - to_object = '', - type = 'SUBJECT_REFERENCE', ) - ], - population_configuration = visier_api_analytic_model.models.population_configuration_dto.PopulationConfigurationDTO( - change_history_properties = [ - visier_api_analytic_model.models.property_reference_dto.PropertyReferenceDTO( - name = '', - qualifying_path = '', ) - ], - distinguishing_properties = [ - visier_api_analytic_model.models.property_reference_dto.PropertyReferenceDTO( - name = '', - qualifying_path = '', ) - ], - grouping_dimensions = [ - visier_api_analytic_model.models.dimension_reference_dto.DimensionReferenceDTO( - name = '', - qualifying_path = '', ) - ], ), - property_ids = [ - '' - ], - selection_concept_ids = [ - '' - ], - type = 'SUBJECT' - ) - else: - return AnalyticObjectDTO( - ) - - def testAnalyticObjectDTO(self): - """Test AnalyticObjectDTO""" - def validate_instance(instance): - AnalyticObjectDTO.model_validate(inst_req_only) - instance_deserialized = AnalyticObjectDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_analytic_object_filter_dto.py b/src/visier_api_analytic_model/test/test_analytic_object_filter_dto.py deleted file mode 100644 index e64c6d72f7..0000000000 --- a/src/visier_api_analytic_model/test/test_analytic_object_filter_dto.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.analytic_object_filter_dto import AnalyticObjectFilterDTO - -class TestAnalyticObjectFilterDTO(unittest.TestCase): - """AnalyticObjectFilterDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalyticObjectFilterDTO: - """Test AnalyticObjectFilterDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AnalyticObjectFilterDTO( - analytic_object_uuid = '', - dimensions = [ - visier_api_analytic_model.models.dimension_filter_dto.DimensionFilterDTO( - dimension_id = '', - dimension_members = [ - visier_api_analytic_model.models.dimension_member_dto.DimensionMemberDTO( - dimension_member = [ - '' - ], ) - ], - symbol_name = '', ) - ], - symbol_name = '' - ) - else: - return AnalyticObjectFilterDTO( - ) - - def testAnalyticObjectFilterDTO(self): - """Test AnalyticObjectFilterDTO""" - def validate_instance(instance): - AnalyticObjectFilterDTO.model_validate(inst_req_only) - instance_deserialized = AnalyticObjectFilterDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_analytic_objects_dto.py b/src/visier_api_analytic_model/test/test_analytic_objects_dto.py deleted file mode 100644 index 1ef3e4a71a..0000000000 --- a/src/visier_api_analytic_model/test/test_analytic_objects_dto.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.analytic_objects_dto import AnalyticObjectsDTO - -class TestAnalyticObjectsDTO(unittest.TestCase): - """AnalyticObjectsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalyticObjectsDTO: - """Test AnalyticObjectsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AnalyticObjectsDTO( - analytic_objects = [ - visier_api_analytic_model.models.analytic_object_dto.AnalyticObjectDTO( - data_end_date = '', - data_start_date = '', - description = '', - dimension_ids = [ - '' - ], - display_name = '', - id = '', - object_references = [ - visier_api_analytic_model.models.object_reference_dto.ObjectReferenceDTO( - description = '', - display_name = '', - from_object = '', - id = '', - is_strong_reference = True, - to_object = '', - type = 'SUBJECT_REFERENCE', ) - ], - population_configuration = None, - property_ids = [ - '' - ], - selection_concept_ids = [ - '' - ], - type = 'SUBJECT', ) - ] - ) - else: - return AnalyticObjectsDTO( - ) - - def testAnalyticObjectsDTO(self): - """Test AnalyticObjectsDTO""" - def validate_instance(instance): - AnalyticObjectsDTO.model_validate(inst_req_only) - instance_deserialized = AnalyticObjectsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_calculated_property_type_dto.py b/src/visier_api_analytic_model/test/test_calculated_property_type_dto.py deleted file mode 100644 index 410f4780ed..0000000000 --- a/src/visier_api_analytic_model/test/test_calculated_property_type_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.calculated_property_type_dto import CalculatedPropertyTypeDTO - -class TestCalculatedPropertyTypeDTO(unittest.TestCase): - """CalculatedPropertyTypeDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CalculatedPropertyTypeDTO: - """Test CalculatedPropertyTypeDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CalculatedPropertyTypeDTO( - data_type = '', - formula = '' - ) - else: - return CalculatedPropertyTypeDTO( - ) - - def testCalculatedPropertyTypeDTO(self): - """Test CalculatedPropertyTypeDTO""" - def validate_instance(instance): - CalculatedPropertyTypeDTO.model_validate(inst_req_only) - instance_deserialized = CalculatedPropertyTypeDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_calculation_concept_configuration_dto.py b/src/visier_api_analytic_model/test/test_calculation_concept_configuration_dto.py deleted file mode 100644 index 8975a5e781..0000000000 --- a/src/visier_api_analytic_model/test/test_calculation_concept_configuration_dto.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.calculation_concept_configuration_dto import CalculationConceptConfigurationDTO - -class TestCalculationConceptConfigurationDTO(unittest.TestCase): - """CalculationConceptConfigurationDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CalculationConceptConfigurationDTO: - """Test CalculationConceptConfigurationDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CalculationConceptConfigurationDTO( - perspectives = [ - visier_api_analytic_model.models.perspective_configuration_dto.PerspectiveConfigurationDTO( - perspective_id = '', - perspective_name = '', - perspective_nodes = [ - visier_api_analytic_model.models.perspective_node_dto.PerspectiveNodeDTO( - analytic_object_filters = [ - visier_api_analytic_model.models.analytic_object_filter_dto.AnalyticObjectFilterDTO( - analytic_object_uuid = '', - dimensions = [ - visier_api_analytic_model.models.dimension_filter_dto.DimensionFilterDTO( - dimension_id = '', - dimension_members = [ - visier_api_analytic_model.models.dimension_member_dto.DimensionMemberDTO( - dimension_member = [ - '' - ], ) - ], - symbol_name = '', ) - ], - symbol_name = '', ) - ], - selection_concept_uuid = '', - symbol_name = '', ) - ], ) - ] - ) - else: - return CalculationConceptConfigurationDTO( - ) - - def testCalculationConceptConfigurationDTO(self): - """Test CalculationConceptConfigurationDTO""" - def validate_instance(instance): - CalculationConceptConfigurationDTO.model_validate(inst_req_only) - instance_deserialized = CalculationConceptConfigurationDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_calculation_concept_configuration_map_dto.py b/src/visier_api_analytic_model/test/test_calculation_concept_configuration_map_dto.py deleted file mode 100644 index a31d81bf60..0000000000 --- a/src/visier_api_analytic_model/test/test_calculation_concept_configuration_map_dto.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.calculation_concept_configuration_map_dto import CalculationConceptConfigurationMapDTO - -class TestCalculationConceptConfigurationMapDTO(unittest.TestCase): - """CalculationConceptConfigurationMapDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CalculationConceptConfigurationMapDTO: - """Test CalculationConceptConfigurationMapDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CalculationConceptConfigurationMapDTO( - perspectives_to_map = [ - visier_api_analytic_model.models.perspective_configuration_dto.PerspectiveConfigurationDTO( - perspective_id = '', - perspective_name = '', - perspective_nodes = [ - visier_api_analytic_model.models.perspective_node_dto.PerspectiveNodeDTO( - analytic_object_filters = [ - visier_api_analytic_model.models.analytic_object_filter_dto.AnalyticObjectFilterDTO( - analytic_object_uuid = '', - dimensions = [ - visier_api_analytic_model.models.dimension_filter_dto.DimensionFilterDTO( - dimension_id = '', - dimension_members = [ - visier_api_analytic_model.models.dimension_member_dto.DimensionMemberDTO( - dimension_member = [ - '' - ], ) - ], - symbol_name = '', ) - ], - symbol_name = '', ) - ], - selection_concept_uuid = '', - symbol_name = '', ) - ], ) - ] - ) - else: - return CalculationConceptConfigurationMapDTO( - ) - - def testCalculationConceptConfigurationMapDTO(self): - """Test CalculationConceptConfigurationMapDTO""" - def validate_instance(instance): - CalculationConceptConfigurationMapDTO.model_validate(inst_req_only) - instance_deserialized = CalculationConceptConfigurationMapDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_calculation_concept_dto.py b/src/visier_api_analytic_model/test/test_calculation_concept_dto.py deleted file mode 100644 index c7bc18a48e..0000000000 --- a/src/visier_api_analytic_model/test/test_calculation_concept_dto.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.calculation_concept_dto import CalculationConceptDTO - -class TestCalculationConceptDTO(unittest.TestCase): - """CalculationConceptDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CalculationConceptDTO: - """Test CalculationConceptDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CalculationConceptDTO( - configuration = visier_api_analytic_model.models.calculation_concept_configuration_dto.CalculationConceptConfigurationDTO( - perspectives = [ - visier_api_analytic_model.models.perspective_configuration_dto.PerspectiveConfigurationDTO( - perspective_id = '', - perspective_name = '', - perspective_nodes = [ - visier_api_analytic_model.models.perspective_node_dto.PerspectiveNodeDTO( - analytic_object_filters = [ - visier_api_analytic_model.models.analytic_object_filter_dto.AnalyticObjectFilterDTO( - analytic_object_uuid = '', - dimensions = [ - visier_api_analytic_model.models.dimension_filter_dto.DimensionFilterDTO( - dimension_id = '', - dimension_members = [ - visier_api_analytic_model.models.dimension_member_dto.DimensionMemberDTO( - dimension_member = [ - '' - ], ) - ], - symbol_name = '', ) - ], - symbol_name = '', ) - ], - selection_concept_uuid = '', - symbol_name = '', ) - ], ) - ], ), - name = '', - uuid = '' - ) - else: - return CalculationConceptDTO( - ) - - def testCalculationConceptDTO(self): - """Test CalculationConceptDTO""" - def validate_instance(instance): - CalculationConceptDTO.model_validate(inst_req_only) - instance_deserialized = CalculationConceptDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_calculation_concept_list_dto.py b/src/visier_api_analytic_model/test/test_calculation_concept_list_dto.py deleted file mode 100644 index 9bed5a8271..0000000000 --- a/src/visier_api_analytic_model/test/test_calculation_concept_list_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.calculation_concept_list_dto import CalculationConceptListDTO - -class TestCalculationConceptListDTO(unittest.TestCase): - """CalculationConceptListDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CalculationConceptListDTO: - """Test CalculationConceptListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CalculationConceptListDTO( - concepts = [ - visier_api_analytic_model.models.calculation_concept_dto.CalculationConceptDTO( - configuration = None, - name = '', - uuid = '', ) - ] - ) - else: - return CalculationConceptListDTO( - ) - - def testCalculationConceptListDTO(self): - """Test CalculationConceptListDTO""" - def validate_instance(instance): - CalculationConceptListDTO.model_validate(inst_req_only) - instance_deserialized = CalculationConceptListDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_concept_configuration_result_dto.py b/src/visier_api_analytic_model/test/test_concept_configuration_result_dto.py deleted file mode 100644 index 2148748082..0000000000 --- a/src/visier_api_analytic_model/test/test_concept_configuration_result_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.concept_configuration_result_dto import ConceptConfigurationResultDTO - -class TestConceptConfigurationResultDTO(unittest.TestCase): - """ConceptConfigurationResultDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConceptConfigurationResultDTO: - """Test ConceptConfigurationResultDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ConceptConfigurationResultDTO( - concept_id = '', - message = '', - project_id = '' - ) - else: - return ConceptConfigurationResultDTO( - ) - - def testConceptConfigurationResultDTO(self): - """Test ConceptConfigurationResultDTO""" - def validate_instance(instance): - ConceptConfigurationResultDTO.model_validate(inst_req_only) - instance_deserialized = ConceptConfigurationResultDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_currencies_dto.py b/src/visier_api_analytic_model/test/test_currencies_dto.py deleted file mode 100644 index f13dd10244..0000000000 --- a/src/visier_api_analytic_model/test/test_currencies_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.currencies_dto import CurrenciesDTO - -class TestCurrenciesDTO(unittest.TestCase): - """CurrenciesDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CurrenciesDTO: - """Test CurrenciesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CurrenciesDTO( - currencies = [ - visier_api_analytic_model.models.currency_dto.CurrencyDTO( - currency_code = '', - display_name = '', - short_symbol = '', - symbol = '', ) - ] - ) - else: - return CurrenciesDTO( - ) - - def testCurrenciesDTO(self): - """Test CurrenciesDTO""" - def validate_instance(instance): - CurrenciesDTO.model_validate(inst_req_only) - instance_deserialized = CurrenciesDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_currency_dto.py b/src/visier_api_analytic_model/test/test_currency_dto.py deleted file mode 100644 index 7e8529b3ca..0000000000 --- a/src/visier_api_analytic_model/test/test_currency_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.currency_dto import CurrencyDTO - -class TestCurrencyDTO(unittest.TestCase): - """CurrencyDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CurrencyDTO: - """Test CurrencyDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CurrencyDTO( - currency_code = '', - display_name = '', - short_symbol = '', - symbol = '' - ) - else: - return CurrencyDTO( - ) - - def testCurrencyDTO(self): - """Test CurrencyDTO""" - def validate_instance(instance): - CurrencyDTO.model_validate(inst_req_only) - instance_deserialized = CurrencyDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_currency_rate_dto.py b/src/visier_api_analytic_model/test/test_currency_rate_dto.py deleted file mode 100644 index 3c9418ff2e..0000000000 --- a/src/visier_api_analytic_model/test/test_currency_rate_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.currency_rate_dto import CurrencyRateDTO - -class TestCurrencyRateDTO(unittest.TestCase): - """CurrencyRateDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CurrencyRateDTO: - """Test CurrencyRateDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CurrencyRateDTO( - end_time = '', - from_currency_code = '', - rate = 1.337, - start_time = '', - to_currency_code = '' - ) - else: - return CurrencyRateDTO( - ) - - def testCurrencyRateDTO(self): - """Test CurrencyRateDTO""" - def validate_instance(instance): - CurrencyRateDTO.model_validate(inst_req_only) - instance_deserialized = CurrencyRateDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_currency_rates_dto.py b/src/visier_api_analytic_model/test/test_currency_rates_dto.py deleted file mode 100644 index d4ec0b5fea..0000000000 --- a/src/visier_api_analytic_model/test/test_currency_rates_dto.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.currency_rates_dto import CurrencyRatesDTO - -class TestCurrencyRatesDTO(unittest.TestCase): - """CurrencyRatesDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CurrencyRatesDTO: - """Test CurrencyRatesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CurrencyRatesDTO( - currency_rates = [ - visier_api_analytic_model.models.currency_rate_dto.CurrencyRateDTO( - end_time = '', - from_currency_code = '', - rate = 1.337, - start_time = '', - to_currency_code = '', ) - ] - ) - else: - return CurrencyRatesDTO( - ) - - def testCurrencyRatesDTO(self): - """Test CurrencyRatesDTO""" - def validate_instance(instance): - CurrencyRatesDTO.model_validate(inst_req_only) - instance_deserialized = CurrencyRatesDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_data_model_api.py b/src/visier_api_analytic_model/test/test_data_model_api.py index f86e7fb7ae..61b57d8661 100644 --- a/src/visier_api_analytic_model/test/test_data_model_api.py +++ b/src/visier_api_analytic_model/test/test_data_model_api.py @@ -5,7 +5,7 @@ Visier APIs for retrieving and configuring your analytic model in Visier. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_analytic_model/test/test_dataservices_common_dimension_member_reference_dto.py b/src/visier_api_analytic_model/test/test_dataservices_common_dimension_member_reference_dto.py new file mode 100644 index 0000000000..53980778c1 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_common_dimension_member_reference_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_common_dimension_member_reference_dto import DataservicesCommonDimensionMemberReferenceDTO + +class TestDataservicesCommonDimensionMemberReferenceDTO(unittest.TestCase): + """DataservicesCommonDimensionMemberReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesCommonDimensionMemberReferenceDTO: + """Test DataservicesCommonDimensionMemberReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesCommonDimensionMemberReferenceDTO( + path = [ + '' + ] + ) + else: + return DataservicesCommonDimensionMemberReferenceDTO( + ) + + def testDataservicesCommonDimensionMemberReferenceDTO(self): + """Test DataservicesCommonDimensionMemberReferenceDTO""" + def validate_instance(instance): + DataservicesCommonDimensionMemberReferenceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesCommonDimensionMemberReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_common_member_values_dto.py b/src/visier_api_analytic_model/test/test_dataservices_common_member_values_dto.py new file mode 100644 index 0000000000..1c48789eb6 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_common_member_values_dto.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_common_member_values_dto import DataservicesCommonMemberValuesDTO + +class TestDataservicesCommonMemberValuesDTO(unittest.TestCase): + """DataservicesCommonMemberValuesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesCommonMemberValuesDTO: + """Test DataservicesCommonMemberValuesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesCommonMemberValuesDTO( + excluded = [ + visier_api_analytic_model.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO( + path = [ + '' + ], ) + ], + included = [ + visier_api_analytic_model.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO( + path = [ + '' + ], ) + ] + ) + else: + return DataservicesCommonMemberValuesDTO( + ) + + def testDataservicesCommonMemberValuesDTO(self): + """Test DataservicesCommonMemberValuesDTO""" + def validate_instance(instance): + DataservicesCommonMemberValuesDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesCommonMemberValuesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_aggregation_type_option_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_aggregation_type_option_dto.py new file mode 100644 index 0000000000..78305a8ff2 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_aggregation_type_option_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_aggregation_type_option_dto import DataservicesDatamodelTransfersAggregationTypeOptionDTO + +class TestDataservicesDatamodelTransfersAggregationTypeOptionDTO(unittest.TestCase): + """DataservicesDatamodelTransfersAggregationTypeOptionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersAggregationTypeOptionDTO: + """Test DataservicesDatamodelTransfersAggregationTypeOptionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersAggregationTypeOptionDTO( + aggregation_function = '', + display_name = '', + id = '', + is_default = True, + property_name = '' + ) + else: + return DataservicesDatamodelTransfersAggregationTypeOptionDTO( + ) + + def testDataservicesDatamodelTransfersAggregationTypeOptionDTO(self): + """Test DataservicesDatamodelTransfersAggregationTypeOptionDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersAggregationTypeOptionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersAggregationTypeOptionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_aggregation_type_parameter_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_aggregation_type_parameter_dto.py new file mode 100644 index 0000000000..e8ad26df85 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_aggregation_type_parameter_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_aggregation_type_parameter_dto import DataservicesDatamodelTransfersAggregationTypeParameterDTO + +class TestDataservicesDatamodelTransfersAggregationTypeParameterDTO(unittest.TestCase): + """DataservicesDatamodelTransfersAggregationTypeParameterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersAggregationTypeParameterDTO: + """Test DataservicesDatamodelTransfersAggregationTypeParameterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersAggregationTypeParameterDTO( + description = '', + display_name = '', + id = '', + parameter_options = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/aggregation_type_option_dto.dataservices.datamodel.transfers.AggregationTypeOptionDTO( + aggregation_function = '', + display_name = '', + id = '', + is_default = True, + property_name = '', ) + ] + ) + else: + return DataservicesDatamodelTransfersAggregationTypeParameterDTO( + ) + + def testDataservicesDatamodelTransfersAggregationTypeParameterDTO(self): + """Test DataservicesDatamodelTransfersAggregationTypeParameterDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersAggregationTypeParameterDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersAggregationTypeParameterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_analytic_object_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_analytic_object_dto.py new file mode 100644 index 0000000000..c256e221fb --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_analytic_object_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_analytic_object_dto import DataservicesDatamodelTransfersAnalyticObjectDTO + +class TestDataservicesDatamodelTransfersAnalyticObjectDTO(unittest.TestCase): + """DataservicesDatamodelTransfersAnalyticObjectDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersAnalyticObjectDTO: + """Test DataservicesDatamodelTransfersAnalyticObjectDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersAnalyticObjectDTO( + data_end_date = '', + data_start_date = '', + description = '', + dimension_ids = [ + '' + ], + display_name = '', + id = '', + object_references = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/object_reference_dto.dataservices.datamodel.transfers.ObjectReferenceDTO( + description = '', + display_name = '', + from_object = '', + id = '', + is_strong_reference = True, + to_object = '', + type = 'SUBJECT_REFERENCE', ) + ], + population_configuration = visier_api_analytic_model.models.dataservices/datamodel/transfers/population_configuration_dto.dataservices.datamodel.transfers.PopulationConfigurationDTO( + change_history_properties = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/property_reference_dto.dataservices.datamodel.transfers.PropertyReferenceDTO( + name = '', + qualifying_path = '', ) + ], + distinguishing_properties = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/property_reference_dto.dataservices.datamodel.transfers.PropertyReferenceDTO( + name = '', + qualifying_path = '', ) + ], + grouping_dimensions = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/dimension_reference_dto.dataservices.datamodel.transfers.DimensionReferenceDTO( + name = '', + qualifying_path = '', ) + ], ), + property_ids = [ + '' + ], + selection_concept_ids = [ + '' + ], + type = 'SUBJECT' + ) + else: + return DataservicesDatamodelTransfersAnalyticObjectDTO( + ) + + def testDataservicesDatamodelTransfersAnalyticObjectDTO(self): + """Test DataservicesDatamodelTransfersAnalyticObjectDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersAnalyticObjectDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersAnalyticObjectDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_analytic_objects_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_analytic_objects_dto.py new file mode 100644 index 0000000000..7548e42f1a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_analytic_objects_dto.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_analytic_objects_dto import DataservicesDatamodelTransfersAnalyticObjectsDTO + +class TestDataservicesDatamodelTransfersAnalyticObjectsDTO(unittest.TestCase): + """DataservicesDatamodelTransfersAnalyticObjectsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersAnalyticObjectsDTO: + """Test DataservicesDatamodelTransfersAnalyticObjectsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersAnalyticObjectsDTO( + analytic_objects = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/analytic_object_dto.dataservices.datamodel.transfers.AnalyticObjectDTO( + data_end_date = '', + data_start_date = '', + description = '', + dimension_ids = [ + '' + ], + display_name = '', + id = '', + object_references = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/object_reference_dto.dataservices.datamodel.transfers.ObjectReferenceDTO( + description = '', + display_name = '', + from_object = '', + id = '', + is_strong_reference = True, + to_object = '', + type = 'SUBJECT_REFERENCE', ) + ], + population_configuration = None, + property_ids = [ + '' + ], + selection_concept_ids = [ + '' + ], + type = 'SUBJECT', ) + ] + ) + else: + return DataservicesDatamodelTransfersAnalyticObjectsDTO( + ) + + def testDataservicesDatamodelTransfersAnalyticObjectsDTO(self): + """Test DataservicesDatamodelTransfersAnalyticObjectsDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersAnalyticObjectsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersAnalyticObjectsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_currencies_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_currencies_dto.py new file mode 100644 index 0000000000..33534f622d --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_currencies_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currencies_dto import DataservicesDatamodelTransfersCurrenciesDTO + +class TestDataservicesDatamodelTransfersCurrenciesDTO(unittest.TestCase): + """DataservicesDatamodelTransfersCurrenciesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersCurrenciesDTO: + """Test DataservicesDatamodelTransfersCurrenciesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersCurrenciesDTO( + currencies = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/currency_dto.dataservices.datamodel.transfers.CurrencyDTO( + currency_code = '', + display_name = '', + short_symbol = '', + symbol = '', ) + ] + ) + else: + return DataservicesDatamodelTransfersCurrenciesDTO( + ) + + def testDataservicesDatamodelTransfersCurrenciesDTO(self): + """Test DataservicesDatamodelTransfersCurrenciesDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersCurrenciesDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersCurrenciesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_currency_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_currency_dto.py new file mode 100644 index 0000000000..b7ac6a2dce --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_currency_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currency_dto import DataservicesDatamodelTransfersCurrencyDTO + +class TestDataservicesDatamodelTransfersCurrencyDTO(unittest.TestCase): + """DataservicesDatamodelTransfersCurrencyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersCurrencyDTO: + """Test DataservicesDatamodelTransfersCurrencyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersCurrencyDTO( + currency_code = '', + display_name = '', + short_symbol = '', + symbol = '' + ) + else: + return DataservicesDatamodelTransfersCurrencyDTO( + ) + + def testDataservicesDatamodelTransfersCurrencyDTO(self): + """Test DataservicesDatamodelTransfersCurrencyDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersCurrencyDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersCurrencyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_currency_rate_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_currency_rate_dto.py new file mode 100644 index 0000000000..9894944056 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_currency_rate_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currency_rate_dto import DataservicesDatamodelTransfersCurrencyRateDTO + +class TestDataservicesDatamodelTransfersCurrencyRateDTO(unittest.TestCase): + """DataservicesDatamodelTransfersCurrencyRateDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersCurrencyRateDTO: + """Test DataservicesDatamodelTransfersCurrencyRateDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersCurrencyRateDTO( + end_time = '', + from_currency_code = '', + rate = 1.337, + start_time = '', + to_currency_code = '' + ) + else: + return DataservicesDatamodelTransfersCurrencyRateDTO( + ) + + def testDataservicesDatamodelTransfersCurrencyRateDTO(self): + """Test DataservicesDatamodelTransfersCurrencyRateDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersCurrencyRateDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersCurrencyRateDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_currency_rates_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_currency_rates_dto.py new file mode 100644 index 0000000000..1996be7d21 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_currency_rates_dto.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currency_rates_dto import DataservicesDatamodelTransfersCurrencyRatesDTO + +class TestDataservicesDatamodelTransfersCurrencyRatesDTO(unittest.TestCase): + """DataservicesDatamodelTransfersCurrencyRatesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersCurrencyRatesDTO: + """Test DataservicesDatamodelTransfersCurrencyRatesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersCurrencyRatesDTO( + currency_rates = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/currency_rate_dto.dataservices.datamodel.transfers.CurrencyRateDTO( + end_time = '', + from_currency_code = '', + rate = 1.337, + start_time = '', + to_currency_code = '', ) + ] + ) + else: + return DataservicesDatamodelTransfersCurrencyRatesDTO( + ) + + def testDataservicesDatamodelTransfersCurrencyRatesDTO(self): + """Test DataservicesDatamodelTransfersCurrencyRatesDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersCurrencyRatesDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersCurrencyRatesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_dimension_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_dimension_dto.py new file mode 100644 index 0000000000..d5c4afe4b6 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_dimension_dto.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_dto import DataservicesDatamodelTransfersDimensionDTO + +class TestDataservicesDatamodelTransfersDimensionDTO(unittest.TestCase): + """DataservicesDatamodelTransfersDimensionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersDimensionDTO: + """Test DataservicesDatamodelTransfersDimensionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersDimensionDTO( + description = '', + display_name = '', + explanation = '', + id = '', + levels = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/level_dto.dataservices.datamodel.transfers.LevelDTO( + depth = 56, + display_name = '', + id = '', ) + ], + member_count = 56, + tags = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/tag_map_element_dto.dataservices.datamodel.transfers.TagMapElementDTO( + display_name = '', + id = '', ) + ], + unknown_member = [ + '' + ], + visible_in_app = True + ) + else: + return DataservicesDatamodelTransfersDimensionDTO( + ) + + def testDataservicesDatamodelTransfersDimensionDTO(self): + """Test DataservicesDatamodelTransfersDimensionDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersDimensionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersDimensionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_dimension_mapping_validation_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_dimension_mapping_validation_dto.py new file mode 100644 index 0000000000..842b0ec8e3 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_dimension_mapping_validation_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_mapping_validation_dto import DataservicesDatamodelTransfersDimensionMappingValidationDTO + +class TestDataservicesDatamodelTransfersDimensionMappingValidationDTO(unittest.TestCase): + """DataservicesDatamodelTransfersDimensionMappingValidationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersDimensionMappingValidationDTO: + """Test DataservicesDatamodelTransfersDimensionMappingValidationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersDimensionMappingValidationDTO( + dimension_id = '', + dimension_map_id = '', + failures = [ + '' + ], + unmapped_members = [ + visier_api_analytic_model.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO( + path = [ + '' + ], ) + ] + ) + else: + return DataservicesDatamodelTransfersDimensionMappingValidationDTO( + ) + + def testDataservicesDatamodelTransfersDimensionMappingValidationDTO(self): + """Test DataservicesDatamodelTransfersDimensionMappingValidationDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersDimensionMappingValidationDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersDimensionMappingValidationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto.py new file mode 100644 index 0000000000..b96f37903a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto import DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO + +class TestDataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO(unittest.TestCase): + """DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO: + """Test DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO( + analytic_object = '', + member_map_id = '' + ) + else: + return DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO( + ) + + def testDataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO(self): + """Test DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_dimension_reference_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_dimension_reference_dto.py new file mode 100644 index 0000000000..12b1d59b95 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_dimension_reference_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO + +class TestDataservicesDatamodelTransfersDimensionReferenceDTO(unittest.TestCase): + """DataservicesDatamodelTransfersDimensionReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersDimensionReferenceDTO: + """Test DataservicesDatamodelTransfersDimensionReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersDimensionReferenceDTO( + name = '', + qualifying_path = '' + ) + else: + return DataservicesDatamodelTransfersDimensionReferenceDTO( + ) + + def testDataservicesDatamodelTransfersDimensionReferenceDTO(self): + """Test DataservicesDatamodelTransfersDimensionReferenceDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersDimensionReferenceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersDimensionReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_dimensions_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_dimensions_dto.py new file mode 100644 index 0000000000..3cd874a6f6 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_dimensions_dto.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimensions_dto import DataservicesDatamodelTransfersDimensionsDTO + +class TestDataservicesDatamodelTransfersDimensionsDTO(unittest.TestCase): + """DataservicesDatamodelTransfersDimensionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersDimensionsDTO: + """Test DataservicesDatamodelTransfersDimensionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersDimensionsDTO( + dimensions = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/dimension_dto.dataservices.datamodel.transfers.DimensionDTO( + description = '', + display_name = '', + explanation = '', + id = '', + levels = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/level_dto.dataservices.datamodel.transfers.LevelDTO( + depth = 56, + display_name = '', + id = '', ) + ], + member_count = 56, + tags = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/tag_map_element_dto.dataservices.datamodel.transfers.TagMapElementDTO( + display_name = '', + id = '', ) + ], + unknown_member = [ + '' + ], + visible_in_app = True, ) + ] + ) + else: + return DataservicesDatamodelTransfersDimensionsDTO( + ) + + def testDataservicesDatamodelTransfersDimensionsDTO(self): + """Test DataservicesDatamodelTransfersDimensionsDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersDimensionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersDimensionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_level_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_level_dto.py new file mode 100644 index 0000000000..05189809bf --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_level_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_level_dto import DataservicesDatamodelTransfersLevelDTO + +class TestDataservicesDatamodelTransfersLevelDTO(unittest.TestCase): + """DataservicesDatamodelTransfersLevelDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersLevelDTO: + """Test DataservicesDatamodelTransfersLevelDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersLevelDTO( + depth = 56, + display_name = '', + id = '' + ) + else: + return DataservicesDatamodelTransfersLevelDTO( + ) + + def testDataservicesDatamodelTransfersLevelDTO(self): + """Test DataservicesDatamodelTransfersLevelDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersLevelDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersLevelDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_member_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_member_dto.py new file mode 100644 index 0000000000..272b70b3b8 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_member_dto.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_member_dto import DataservicesDatamodelTransfersMemberDTO + +class TestDataservicesDatamodelTransfersMemberDTO(unittest.TestCase): + """DataservicesDatamodelTransfersMemberDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersMemberDTO: + """Test DataservicesDatamodelTransfersMemberDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersMemberDTO( + display_name = '', + display_name_path = [ + '' + ], + full_name = '', + level = 56, + path = [ + '' + ], + validity_ranges = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/validity_range_dto.dataservices.datamodel.transfers.ValidityRangeDTO( + end = '', + start = '', ) + ] + ) + else: + return DataservicesDatamodelTransfersMemberDTO( + ) + + def testDataservicesDatamodelTransfersMemberDTO(self): + """Test DataservicesDatamodelTransfersMemberDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersMemberDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersMemberDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_member_parameter_definition_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_member_parameter_definition_dto.py new file mode 100644 index 0000000000..2baec01caa --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_member_parameter_definition_dto.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_member_parameter_definition_dto import DataservicesDatamodelTransfersMemberParameterDefinitionDTO + +class TestDataservicesDatamodelTransfersMemberParameterDefinitionDTO(unittest.TestCase): + """DataservicesDatamodelTransfersMemberParameterDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersMemberParameterDefinitionDTO: + """Test DataservicesDatamodelTransfersMemberParameterDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersMemberParameterDefinitionDTO( + default = visier_api_analytic_model.models.dataservices/common/member_values_dto.dataservices.common.MemberValuesDTO( + excluded = [ + visier_api_analytic_model.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO( + path = [ + '' + ], ) + ], + included = [ + visier_api_analytic_model.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO() + ], ), + description = '', + dimension_id = '', + display_name = '', + id = '', + reference_path = [ + '' + ] + ) + else: + return DataservicesDatamodelTransfersMemberParameterDefinitionDTO( + ) + + def testDataservicesDatamodelTransfersMemberParameterDefinitionDTO(self): + """Test DataservicesDatamodelTransfersMemberParameterDefinitionDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersMemberParameterDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersMemberParameterDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_members_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_members_dto.py new file mode 100644 index 0000000000..9799fc8f3b --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_members_dto.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_members_dto import DataservicesDatamodelTransfersMembersDTO + +class TestDataservicesDatamodelTransfersMembersDTO(unittest.TestCase): + """DataservicesDatamodelTransfersMembersDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersMembersDTO: + """Test DataservicesDatamodelTransfersMembersDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersMembersDTO( + members = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/member_dto.dataservices.datamodel.transfers.MemberDTO( + display_name = '', + display_name_path = [ + '' + ], + full_name = '', + level = 56, + path = [ + '' + ], + validity_ranges = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/validity_range_dto.dataservices.datamodel.transfers.ValidityRangeDTO( + end = '', + start = '', ) + ], ) + ] + ) + else: + return DataservicesDatamodelTransfersMembersDTO( + ) + + def testDataservicesDatamodelTransfersMembersDTO(self): + """Test DataservicesDatamodelTransfersMembersDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersMembersDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersMembersDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_metric_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_metric_dto.py new file mode 100644 index 0000000000..0430416f93 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_metric_dto.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_metric_dto import DataservicesDatamodelTransfersMetricDTO + +class TestDataservicesDatamodelTransfersMetricDTO(unittest.TestCase): + """DataservicesDatamodelTransfersMetricDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersMetricDTO: + """Test DataservicesDatamodelTransfersMetricDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersMetricDTO( + analytic_object_id = '', + category = 'REGULAR', + data_end_date = '', + data_start_date = '', + description = '', + display_name = '', + id = '', + parameters = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/parameter_definition_dto.dataservices.datamodel.transfers.ParameterDefinitionDTO( + aggregation_type_parameter = None, + member_parameter = None, + numeric_parameter = None, + plan_parameter = None, ) + ], + visible_in_app = True + ) + else: + return DataservicesDatamodelTransfersMetricDTO( + ) + + def testDataservicesDatamodelTransfersMetricDTO(self): + """Test DataservicesDatamodelTransfersMetricDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersMetricDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersMetricDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_metrics_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_metrics_dto.py new file mode 100644 index 0000000000..1a2ebceac9 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_metrics_dto.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_metrics_dto import DataservicesDatamodelTransfersMetricsDTO + +class TestDataservicesDatamodelTransfersMetricsDTO(unittest.TestCase): + """DataservicesDatamodelTransfersMetricsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersMetricsDTO: + """Test DataservicesDatamodelTransfersMetricsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersMetricsDTO( + metrics = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/metric_dto.dataservices.datamodel.transfers.MetricDTO( + analytic_object_id = '', + category = 'REGULAR', + data_end_date = '', + data_start_date = '', + description = '', + display_name = '', + id = '', + parameters = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/parameter_definition_dto.dataservices.datamodel.transfers.ParameterDefinitionDTO( + aggregation_type_parameter = None, + member_parameter = None, + numeric_parameter = None, + plan_parameter = None, ) + ], + visible_in_app = True, ) + ] + ) + else: + return DataservicesDatamodelTransfersMetricsDTO( + ) + + def testDataservicesDatamodelTransfersMetricsDTO(self): + """Test DataservicesDatamodelTransfersMetricsDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersMetricsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersMetricsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_numeric_parameter_definition_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_numeric_parameter_definition_dto.py new file mode 100644 index 0000000000..30b7cd765f --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_numeric_parameter_definition_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_numeric_parameter_definition_dto import DataservicesDatamodelTransfersNumericParameterDefinitionDTO + +class TestDataservicesDatamodelTransfersNumericParameterDefinitionDTO(unittest.TestCase): + """DataservicesDatamodelTransfersNumericParameterDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersNumericParameterDefinitionDTO: + """Test DataservicesDatamodelTransfersNumericParameterDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersNumericParameterDefinitionDTO( + default = 1.337, + description = '', + display_name = '', + id = '', + lower_bound = 1.337, + upper_bound = 1.337 + ) + else: + return DataservicesDatamodelTransfersNumericParameterDefinitionDTO( + ) + + def testDataservicesDatamodelTransfersNumericParameterDefinitionDTO(self): + """Test DataservicesDatamodelTransfersNumericParameterDefinitionDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersNumericParameterDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersNumericParameterDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_object_reference_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_object_reference_dto.py new file mode 100644 index 0000000000..4e65c867dd --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_object_reference_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_object_reference_dto import DataservicesDatamodelTransfersObjectReferenceDTO + +class TestDataservicesDatamodelTransfersObjectReferenceDTO(unittest.TestCase): + """DataservicesDatamodelTransfersObjectReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersObjectReferenceDTO: + """Test DataservicesDatamodelTransfersObjectReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersObjectReferenceDTO( + description = '', + display_name = '', + from_object = '', + id = '', + is_strong_reference = True, + to_object = '', + type = 'SUBJECT_REFERENCE' + ) + else: + return DataservicesDatamodelTransfersObjectReferenceDTO( + ) + + def testDataservicesDatamodelTransfersObjectReferenceDTO(self): + """Test DataservicesDatamodelTransfersObjectReferenceDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersObjectReferenceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersObjectReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_parameter_definition_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_parameter_definition_dto.py new file mode 100644 index 0000000000..fbb725268a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_parameter_definition_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_parameter_definition_dto import DataservicesDatamodelTransfersParameterDefinitionDTO + +class TestDataservicesDatamodelTransfersParameterDefinitionDTO(unittest.TestCase): + """DataservicesDatamodelTransfersParameterDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersParameterDefinitionDTO: + """Test DataservicesDatamodelTransfersParameterDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersParameterDefinitionDTO( + aggregation_type_parameter = visier_api_analytic_model.models.dataservices/datamodel/transfers/aggregation_type_parameter_dto.dataservices.datamodel.transfers.AggregationTypeParameterDTO( + description = '', + display_name = '', + id = '', + parameter_options = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/aggregation_type_option_dto.dataservices.datamodel.transfers.AggregationTypeOptionDTO( + aggregation_function = '', + display_name = '', + id = '', + is_default = True, + property_name = '', ) + ], ), + member_parameter = visier_api_analytic_model.models.dataservices/datamodel/transfers/member_parameter_definition_dto.dataservices.datamodel.transfers.MemberParameterDefinitionDTO( + default = None, + description = '', + dimension_id = '', + display_name = '', + id = '', + reference_path = [ + '' + ], ), + numeric_parameter = visier_api_analytic_model.models.dataservices/datamodel/transfers/numeric_parameter_definition_dto.dataservices.datamodel.transfers.NumericParameterDefinitionDTO( + default = 1.337, + description = '', + display_name = '', + id = '', + lower_bound = 1.337, + upper_bound = 1.337, ), + plan_parameter = visier_api_analytic_model.models.dataservices/datamodel/transfers/plan_parameter_definition_dto.dataservices.datamodel.transfers.PlanParameterDefinitionDTO( + description = '', + display_name = '', + id = '', + model_name = '', ) + ) + else: + return DataservicesDatamodelTransfersParameterDefinitionDTO( + ) + + def testDataservicesDatamodelTransfersParameterDefinitionDTO(self): + """Test DataservicesDatamodelTransfersParameterDefinitionDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersParameterDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersParameterDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_plan_parameter_definition_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_plan_parameter_definition_dto.py new file mode 100644 index 0000000000..99d8d5a63d --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_plan_parameter_definition_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_plan_parameter_definition_dto import DataservicesDatamodelTransfersPlanParameterDefinitionDTO + +class TestDataservicesDatamodelTransfersPlanParameterDefinitionDTO(unittest.TestCase): + """DataservicesDatamodelTransfersPlanParameterDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersPlanParameterDefinitionDTO: + """Test DataservicesDatamodelTransfersPlanParameterDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersPlanParameterDefinitionDTO( + description = '', + display_name = '', + id = '', + model_name = '' + ) + else: + return DataservicesDatamodelTransfersPlanParameterDefinitionDTO( + ) + + def testDataservicesDatamodelTransfersPlanParameterDefinitionDTO(self): + """Test DataservicesDatamodelTransfersPlanParameterDefinitionDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersPlanParameterDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersPlanParameterDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_concept_filter_context_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_concept_filter_context_dto.py new file mode 100644 index 0000000000..7ff96e0340 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_concept_filter_context_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_concept_filter_context_dto import DataservicesDatamodelTransfersPlanningConceptFilterContextDTO + +class TestDataservicesDatamodelTransfersPlanningConceptFilterContextDTO(unittest.TestCase): + """DataservicesDatamodelTransfersPlanningConceptFilterContextDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersPlanningConceptFilterContextDTO: + """Test DataservicesDatamodelTransfersPlanningConceptFilterContextDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersPlanningConceptFilterContextDTO( + name = '' + ) + else: + return DataservicesDatamodelTransfersPlanningConceptFilterContextDTO( + ) + + def testDataservicesDatamodelTransfersPlanningConceptFilterContextDTO(self): + """Test DataservicesDatamodelTransfersPlanningConceptFilterContextDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersPlanningConceptFilterContextDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersPlanningConceptFilterContextDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_hierarchy_filter_context_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_hierarchy_filter_context_dto.py new file mode 100644 index 0000000000..6edd7d4d23 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_hierarchy_filter_context_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_hierarchy_filter_context_dto import DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO + +class TestDataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO(unittest.TestCase): + """DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO: + """Test DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO( + excluded_members = [ + '' + ], + hierarchy_name = '', + included_members = [ + '' + ] + ) + else: + return DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO( + ) + + def testDataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO(self): + """Test DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_model_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_model_dto.py new file mode 100644 index 0000000000..4c31ad4479 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_model_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_model_dto import DataservicesDatamodelTransfersPlanningModelDTO + +class TestDataservicesDatamodelTransfersPlanningModelDTO(unittest.TestCase): + """DataservicesDatamodelTransfersPlanningModelDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersPlanningModelDTO: + """Test DataservicesDatamodelTransfersPlanningModelDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersPlanningModelDTO( + description = '', + display_name = '', + id = '' + ) + else: + return DataservicesDatamodelTransfersPlanningModelDTO( + ) + + def testDataservicesDatamodelTransfersPlanningModelDTO(self): + """Test DataservicesDatamodelTransfersPlanningModelDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersPlanningModelDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersPlanningModelDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_models_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_models_dto.py new file mode 100644 index 0000000000..0199859061 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_models_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_models_dto import DataservicesDatamodelTransfersPlanningModelsDTO + +class TestDataservicesDatamodelTransfersPlanningModelsDTO(unittest.TestCase): + """DataservicesDatamodelTransfersPlanningModelsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersPlanningModelsDTO: + """Test DataservicesDatamodelTransfersPlanningModelsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersPlanningModelsDTO( + models = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/planning_model_dto.dataservices.datamodel.transfers.PlanningModelDTO( + description = '', + display_name = '', + id = '', ) + ] + ) + else: + return DataservicesDatamodelTransfersPlanningModelsDTO( + ) + + def testDataservicesDatamodelTransfersPlanningModelsDTO(self): + """Test DataservicesDatamodelTransfersPlanningModelsDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersPlanningModelsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersPlanningModelsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_plan_context_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_plan_context_dto.py new file mode 100644 index 0000000000..2b2429985a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_plan_context_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_plan_context_dto import DataservicesDatamodelTransfersPlanningPlanContextDTO + +class TestDataservicesDatamodelTransfersPlanningPlanContextDTO(unittest.TestCase): + """DataservicesDatamodelTransfersPlanningPlanContextDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersPlanningPlanContextDTO: + """Test DataservicesDatamodelTransfersPlanningPlanContextDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersPlanningPlanContextDTO( + concept_filter_context = visier_api_analytic_model.models.dataservices/datamodel/transfers/planning_concept_filter_context_dto.dataservices.datamodel.transfers.PlanningConceptFilterContextDTO( + name = '', ), + hierarchy_filter_context = visier_api_analytic_model.models.dataservices/datamodel/transfers/planning_hierarchy_filter_context_dto.dataservices.datamodel.transfers.PlanningHierarchyFilterContextDTO( + excluded_members = [ + '' + ], + hierarchy_name = '', + included_members = [ + '' + ], ) + ) + else: + return DataservicesDatamodelTransfersPlanningPlanContextDTO( + ) + + def testDataservicesDatamodelTransfersPlanningPlanContextDTO(self): + """Test DataservicesDatamodelTransfersPlanningPlanContextDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersPlanningPlanContextDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersPlanningPlanContextDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_plan_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_plan_dto.py new file mode 100644 index 0000000000..42bb5b7eac --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_plan_dto.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_plan_dto import DataservicesDatamodelTransfersPlanningPlanDTO + +class TestDataservicesDatamodelTransfersPlanningPlanDTO(unittest.TestCase): + """DataservicesDatamodelTransfersPlanningPlanDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersPlanningPlanDTO: + """Test DataservicesDatamodelTransfersPlanningPlanDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersPlanningPlanDTO( + default_contexts = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/planning_plan_context_dto.dataservices.datamodel.transfers.PlanningPlanContextDTO( + concept_filter_context = None, + hierarchy_filter_context = None, ) + ], + id = '', + name = '', + plan_dimension_ids = [ + '' + ], + scenarios = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/scenario_or_snapshot_dto.dataservices.datamodel.transfers.ScenarioOrSnapshotDTO( + display_name = '', + id = '', ) + ], + snapshots = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/scenario_or_snapshot_dto.dataservices.datamodel.transfers.ScenarioOrSnapshotDTO( + display_name = '', + id = '', ) + ], + subject_id = '' + ) + else: + return DataservicesDatamodelTransfersPlanningPlanDTO( + ) + + def testDataservicesDatamodelTransfersPlanningPlanDTO(self): + """Test DataservicesDatamodelTransfersPlanningPlanDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersPlanningPlanDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersPlanningPlanDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_plans_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_plans_dto.py new file mode 100644 index 0000000000..530db0c626 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_planning_plans_dto.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_plans_dto import DataservicesDatamodelTransfersPlanningPlansDTO + +class TestDataservicesDatamodelTransfersPlanningPlansDTO(unittest.TestCase): + """DataservicesDatamodelTransfersPlanningPlansDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersPlanningPlansDTO: + """Test DataservicesDatamodelTransfersPlanningPlansDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersPlanningPlansDTO( + plans = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/planning_plan_dto.dataservices.datamodel.transfers.PlanningPlanDTO( + default_contexts = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/planning_plan_context_dto.dataservices.datamodel.transfers.PlanningPlanContextDTO( + concept_filter_context = None, + hierarchy_filter_context = None, ) + ], + id = '', + name = '', + plan_dimension_ids = [ + '' + ], + scenarios = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/scenario_or_snapshot_dto.dataservices.datamodel.transfers.ScenarioOrSnapshotDTO( + display_name = '', + id = '', ) + ], + snapshots = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/scenario_or_snapshot_dto.dataservices.datamodel.transfers.ScenarioOrSnapshotDTO( + display_name = '', + id = '', ) + ], + subject_id = '', ) + ] + ) + else: + return DataservicesDatamodelTransfersPlanningPlansDTO( + ) + + def testDataservicesDatamodelTransfersPlanningPlansDTO(self): + """Test DataservicesDatamodelTransfersPlanningPlansDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersPlanningPlansDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersPlanningPlansDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_population_configuration_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_population_configuration_dto.py new file mode 100644 index 0000000000..c85de06b6f --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_population_configuration_dto.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_population_configuration_dto import DataservicesDatamodelTransfersPopulationConfigurationDTO + +class TestDataservicesDatamodelTransfersPopulationConfigurationDTO(unittest.TestCase): + """DataservicesDatamodelTransfersPopulationConfigurationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersPopulationConfigurationDTO: + """Test DataservicesDatamodelTransfersPopulationConfigurationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersPopulationConfigurationDTO( + change_history_properties = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/property_reference_dto.dataservices.datamodel.transfers.PropertyReferenceDTO( + name = '', + qualifying_path = '', ) + ], + distinguishing_properties = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/property_reference_dto.dataservices.datamodel.transfers.PropertyReferenceDTO( + name = '', + qualifying_path = '', ) + ], + grouping_dimensions = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/dimension_reference_dto.dataservices.datamodel.transfers.DimensionReferenceDTO( + name = '', + qualifying_path = '', ) + ] + ) + else: + return DataservicesDatamodelTransfersPopulationConfigurationDTO( + ) + + def testDataservicesDatamodelTransfersPopulationConfigurationDTO(self): + """Test DataservicesDatamodelTransfersPopulationConfigurationDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersPopulationConfigurationDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersPopulationConfigurationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_prediction_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_prediction_dto.py new file mode 100644 index 0000000000..03e789b311 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_prediction_dto.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_prediction_dto import DataservicesDatamodelTransfersPredictionDTO + +class TestDataservicesDatamodelTransfersPredictionDTO(unittest.TestCase): + """DataservicesDatamodelTransfersPredictionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersPredictionDTO: + """Test DataservicesDatamodelTransfersPredictionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersPredictionDTO( + data_end_date = '', + data_start_date = '', + description = '', + display_name = '', + event = '', + event_filter = '', + factor_concepts = [ + '' + ], + factor_dimensions = [ + '' + ], + factor_properties = [ + '' + ], + factors_name = '', + id = '', + is_multi_tenant = True, + label_property = '', + minimum_training_months = '', + score_name = '', + subject = '', + subject_filter = '', + subject_key = '', + subject_parent_key = '' + ) + else: + return DataservicesDatamodelTransfersPredictionDTO( + ) + + def testDataservicesDatamodelTransfersPredictionDTO(self): + """Test DataservicesDatamodelTransfersPredictionDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersPredictionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersPredictionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_predictions_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_predictions_dto.py new file mode 100644 index 0000000000..d7eb3c8dfd --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_predictions_dto.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_predictions_dto import DataservicesDatamodelTransfersPredictionsDTO + +class TestDataservicesDatamodelTransfersPredictionsDTO(unittest.TestCase): + """DataservicesDatamodelTransfersPredictionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersPredictionsDTO: + """Test DataservicesDatamodelTransfersPredictionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersPredictionsDTO( + predictions = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/prediction_dto.dataservices.datamodel.transfers.PredictionDTO( + data_end_date = '', + data_start_date = '', + description = '', + display_name = '', + event = '', + event_filter = '', + factor_concepts = [ + '' + ], + factor_dimensions = [ + '' + ], + factor_properties = [ + '' + ], + factors_name = '', + id = '', + is_multi_tenant = True, + label_property = '', + minimum_training_months = '', + score_name = '', + subject = '', + subject_filter = '', + subject_key = '', + subject_parent_key = '', ) + ] + ) + else: + return DataservicesDatamodelTransfersPredictionsDTO( + ) + + def testDataservicesDatamodelTransfersPredictionsDTO(self): + """Test DataservicesDatamodelTransfersPredictionsDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersPredictionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersPredictionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_properties_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_properties_dto.py new file mode 100644 index 0000000000..92fc800303 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_properties_dto.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_properties_dto import DataservicesDatamodelTransfersPropertiesDTO + +class TestDataservicesDatamodelTransfersPropertiesDTO(unittest.TestCase): + """DataservicesDatamodelTransfersPropertiesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersPropertiesDTO: + """Test DataservicesDatamodelTransfersPropertiesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersPropertiesDTO( + properties = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/property_dto.dataservices.datamodel.transfers.PropertyDTO( + data_type = '', + description = '', + display_name = '', + explanation = '', + id = '', + parameters = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/parameter_definition_dto.dataservices.datamodel.transfers.ParameterDefinitionDTO( + aggregation_type_parameter = None, + member_parameter = None, + numeric_parameter = None, + plan_parameter = None, ) + ], + primitive_data_type = '', + tags = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/tag_map_element_dto.dataservices.datamodel.transfers.TagMapElementDTO( + display_name = '', + id = '', ) + ], ) + ] + ) + else: + return DataservicesDatamodelTransfersPropertiesDTO( + ) + + def testDataservicesDatamodelTransfersPropertiesDTO(self): + """Test DataservicesDatamodelTransfersPropertiesDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersPropertiesDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersPropertiesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_property_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_property_dto.py new file mode 100644 index 0000000000..d364f92141 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_property_dto.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_property_dto import DataservicesDatamodelTransfersPropertyDTO + +class TestDataservicesDatamodelTransfersPropertyDTO(unittest.TestCase): + """DataservicesDatamodelTransfersPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersPropertyDTO: + """Test DataservicesDatamodelTransfersPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersPropertyDTO( + data_type = '', + description = '', + display_name = '', + explanation = '', + id = '', + parameters = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/parameter_definition_dto.dataservices.datamodel.transfers.ParameterDefinitionDTO( + aggregation_type_parameter = None, + member_parameter = None, + numeric_parameter = None, + plan_parameter = None, ) + ], + primitive_data_type = '', + tags = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/tag_map_element_dto.dataservices.datamodel.transfers.TagMapElementDTO( + display_name = '', + id = '', ) + ] + ) + else: + return DataservicesDatamodelTransfersPropertyDTO( + ) + + def testDataservicesDatamodelTransfersPropertyDTO(self): + """Test DataservicesDatamodelTransfersPropertyDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersPropertyDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_property_reference_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_property_reference_dto.py new file mode 100644 index 0000000000..3c745cc81b --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_property_reference_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_property_reference_dto import DataservicesDatamodelTransfersPropertyReferenceDTO + +class TestDataservicesDatamodelTransfersPropertyReferenceDTO(unittest.TestCase): + """DataservicesDatamodelTransfersPropertyReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersPropertyReferenceDTO: + """Test DataservicesDatamodelTransfersPropertyReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersPropertyReferenceDTO( + name = '', + qualifying_path = '' + ) + else: + return DataservicesDatamodelTransfersPropertyReferenceDTO( + ) + + def testDataservicesDatamodelTransfersPropertyReferenceDTO(self): + """Test DataservicesDatamodelTransfersPropertyReferenceDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersPropertyReferenceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersPropertyReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_scenario_or_snapshot_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_scenario_or_snapshot_dto.py new file mode 100644 index 0000000000..864e3994e6 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_scenario_or_snapshot_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_scenario_or_snapshot_dto import DataservicesDatamodelTransfersScenarioOrSnapshotDTO + +class TestDataservicesDatamodelTransfersScenarioOrSnapshotDTO(unittest.TestCase): + """DataservicesDatamodelTransfersScenarioOrSnapshotDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersScenarioOrSnapshotDTO: + """Test DataservicesDatamodelTransfersScenarioOrSnapshotDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersScenarioOrSnapshotDTO( + display_name = '', + id = '' + ) + else: + return DataservicesDatamodelTransfersScenarioOrSnapshotDTO( + ) + + def testDataservicesDatamodelTransfersScenarioOrSnapshotDTO(self): + """Test DataservicesDatamodelTransfersScenarioOrSnapshotDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersScenarioOrSnapshotDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersScenarioOrSnapshotDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_selection_concept_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_selection_concept_dto.py new file mode 100644 index 0000000000..50444458a1 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_selection_concept_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_selection_concept_dto import DataservicesDatamodelTransfersSelectionConceptDTO + +class TestDataservicesDatamodelTransfersSelectionConceptDTO(unittest.TestCase): + """DataservicesDatamodelTransfersSelectionConceptDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersSelectionConceptDTO: + """Test DataservicesDatamodelTransfersSelectionConceptDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersSelectionConceptDTO( + description = '', + display_name = '', + explanation = '', + id = '', + tags = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/tag_map_element_dto.dataservices.datamodel.transfers.TagMapElementDTO( + display_name = '', + id = '', ) + ], + visible_in_app = True + ) + else: + return DataservicesDatamodelTransfersSelectionConceptDTO( + ) + + def testDataservicesDatamodelTransfersSelectionConceptDTO(self): + """Test DataservicesDatamodelTransfersSelectionConceptDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersSelectionConceptDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersSelectionConceptDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_selection_concepts_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_selection_concepts_dto.py new file mode 100644 index 0000000000..9b75e70e3b --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_selection_concepts_dto.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_selection_concepts_dto import DataservicesDatamodelTransfersSelectionConceptsDTO + +class TestDataservicesDatamodelTransfersSelectionConceptsDTO(unittest.TestCase): + """DataservicesDatamodelTransfersSelectionConceptsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersSelectionConceptsDTO: + """Test DataservicesDatamodelTransfersSelectionConceptsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersSelectionConceptsDTO( + selection_concepts = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/selection_concept_dto.dataservices.datamodel.transfers.SelectionConceptDTO( + description = '', + display_name = '', + explanation = '', + id = '', + tags = [ + visier_api_analytic_model.models.dataservices/datamodel/transfers/tag_map_element_dto.dataservices.datamodel.transfers.TagMapElementDTO( + display_name = '', + id = '', ) + ], + visible_in_app = True, ) + ] + ) + else: + return DataservicesDatamodelTransfersSelectionConceptsDTO( + ) + + def testDataservicesDatamodelTransfersSelectionConceptsDTO(self): + """Test DataservicesDatamodelTransfersSelectionConceptsDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersSelectionConceptsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersSelectionConceptsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_tag_map_element_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_tag_map_element_dto.py new file mode 100644 index 0000000000..50c041f38b --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_tag_map_element_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_tag_map_element_dto import DataservicesDatamodelTransfersTagMapElementDTO + +class TestDataservicesDatamodelTransfersTagMapElementDTO(unittest.TestCase): + """DataservicesDatamodelTransfersTagMapElementDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersTagMapElementDTO: + """Test DataservicesDatamodelTransfersTagMapElementDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersTagMapElementDTO( + display_name = '', + id = '' + ) + else: + return DataservicesDatamodelTransfersTagMapElementDTO( + ) + + def testDataservicesDatamodelTransfersTagMapElementDTO(self): + """Test DataservicesDatamodelTransfersTagMapElementDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersTagMapElementDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersTagMapElementDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_validity_range_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_validity_range_dto.py new file mode 100644 index 0000000000..1714e1ac14 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_validity_range_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.dataservices_datamodel_transfers_validity_range_dto import DataservicesDatamodelTransfersValidityRangeDTO + +class TestDataservicesDatamodelTransfersValidityRangeDTO(unittest.TestCase): + """DataservicesDatamodelTransfersValidityRangeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersValidityRangeDTO: + """Test DataservicesDatamodelTransfersValidityRangeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersValidityRangeDTO( + end = '', + start = '' + ) + else: + return DataservicesDatamodelTransfersValidityRangeDTO( + ) + + def testDataservicesDatamodelTransfersValidityRangeDTO(self): + """Test DataservicesDatamodelTransfersValidityRangeDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersValidityRangeDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersValidityRangeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dependent_dto.py b/src/visier_api_analytic_model/test/test_dependent_dto.py deleted file mode 100644 index ab014a4ecc..0000000000 --- a/src/visier_api_analytic_model/test/test_dependent_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.dependent_dto import DependentDTO - -class TestDependentDTO(unittest.TestCase): - """DependentDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DependentDTO: - """Test DependentDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DependentDTO( - display_name = '', - id = '', - object_type = '' - ) - else: - return DependentDTO( - ) - - def testDependentDTO(self): - """Test DependentDTO""" - def validate_instance(instance): - DependentDTO.model_validate(inst_req_only) - instance_deserialized = DependentDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_designer_api_transfers_analytic_object_filter_dto.py b/src/visier_api_analytic_model/test/test_designer_api_transfers_analytic_object_filter_dto.py new file mode 100644 index 0000000000..81567c60a1 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_transfers_analytic_object_filter_dto.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.designer_api_transfers_analytic_object_filter_dto import DesignerApiTransfersAnalyticObjectFilterDTO + +class TestDesignerApiTransfersAnalyticObjectFilterDTO(unittest.TestCase): + """DesignerApiTransfersAnalyticObjectFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiTransfersAnalyticObjectFilterDTO: + """Test DesignerApiTransfersAnalyticObjectFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiTransfersAnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_filter_dto.designer.api.transfers.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_member_dto.designer.api.transfers.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '' + ) + else: + return DesignerApiTransfersAnalyticObjectFilterDTO( + ) + + def testDesignerApiTransfersAnalyticObjectFilterDTO(self): + """Test DesignerApiTransfersAnalyticObjectFilterDTO""" + def validate_instance(instance): + DesignerApiTransfersAnalyticObjectFilterDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiTransfersAnalyticObjectFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_designer_api_transfers_calculation_concept_configuration_dto.py b/src/visier_api_analytic_model/test/test_designer_api_transfers_calculation_concept_configuration_dto.py new file mode 100644 index 0000000000..ac7de3306f --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_transfers_calculation_concept_configuration_dto.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_configuration_dto import DesignerApiTransfersCalculationConceptConfigurationDTO + +class TestDesignerApiTransfersCalculationConceptConfigurationDTO(unittest.TestCase): + """DesignerApiTransfersCalculationConceptConfigurationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiTransfersCalculationConceptConfigurationDTO: + """Test DesignerApiTransfersCalculationConceptConfigurationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiTransfersCalculationConceptConfigurationDTO( + perspectives = [ + visier_api_analytic_model.models.designer/api/transfers/perspective_configuration_dto.designer.api.transfers.PerspectiveConfigurationDTO( + perspective_id = '', + perspective_name = '', + perspective_nodes = [ + visier_api_analytic_model.models.designer/api/transfers/perspective_node_dto.designer.api.transfers.PerspectiveNodeDTO( + analytic_object_filters = [ + visier_api_analytic_model.models.designer/api/transfers/analytic_object_filter_dto.designer.api.transfers.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_filter_dto.designer.api.transfers.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_member_dto.designer.api.transfers.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ], + selection_concept_uuid = '', + symbol_name = '', ) + ], ) + ] + ) + else: + return DesignerApiTransfersCalculationConceptConfigurationDTO( + ) + + def testDesignerApiTransfersCalculationConceptConfigurationDTO(self): + """Test DesignerApiTransfersCalculationConceptConfigurationDTO""" + def validate_instance(instance): + DesignerApiTransfersCalculationConceptConfigurationDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiTransfersCalculationConceptConfigurationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_designer_api_transfers_calculation_concept_configuration_map_dto.py b/src/visier_api_analytic_model/test/test_designer_api_transfers_calculation_concept_configuration_map_dto.py new file mode 100644 index 0000000000..59b5f9318f --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_transfers_calculation_concept_configuration_map_dto.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_configuration_map_dto import DesignerApiTransfersCalculationConceptConfigurationMapDTO + +class TestDesignerApiTransfersCalculationConceptConfigurationMapDTO(unittest.TestCase): + """DesignerApiTransfersCalculationConceptConfigurationMapDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiTransfersCalculationConceptConfigurationMapDTO: + """Test DesignerApiTransfersCalculationConceptConfigurationMapDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiTransfersCalculationConceptConfigurationMapDTO( + perspectives_to_map = [ + visier_api_analytic_model.models.designer/api/transfers/perspective_configuration_dto.designer.api.transfers.PerspectiveConfigurationDTO( + perspective_id = '', + perspective_name = '', + perspective_nodes = [ + visier_api_analytic_model.models.designer/api/transfers/perspective_node_dto.designer.api.transfers.PerspectiveNodeDTO( + analytic_object_filters = [ + visier_api_analytic_model.models.designer/api/transfers/analytic_object_filter_dto.designer.api.transfers.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_filter_dto.designer.api.transfers.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_member_dto.designer.api.transfers.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ], + selection_concept_uuid = '', + symbol_name = '', ) + ], ) + ] + ) + else: + return DesignerApiTransfersCalculationConceptConfigurationMapDTO( + ) + + def testDesignerApiTransfersCalculationConceptConfigurationMapDTO(self): + """Test DesignerApiTransfersCalculationConceptConfigurationMapDTO""" + def validate_instance(instance): + DesignerApiTransfersCalculationConceptConfigurationMapDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiTransfersCalculationConceptConfigurationMapDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_designer_api_transfers_calculation_concept_dto.py b/src/visier_api_analytic_model/test/test_designer_api_transfers_calculation_concept_dto.py new file mode 100644 index 0000000000..847c5cc573 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_transfers_calculation_concept_dto.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_dto import DesignerApiTransfersCalculationConceptDTO + +class TestDesignerApiTransfersCalculationConceptDTO(unittest.TestCase): + """DesignerApiTransfersCalculationConceptDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiTransfersCalculationConceptDTO: + """Test DesignerApiTransfersCalculationConceptDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiTransfersCalculationConceptDTO( + configuration = visier_api_analytic_model.models.designer/api/transfers/calculation_concept_configuration_dto.designer.api.transfers.CalculationConceptConfigurationDTO( + perspectives = [ + visier_api_analytic_model.models.designer/api/transfers/perspective_configuration_dto.designer.api.transfers.PerspectiveConfigurationDTO( + perspective_id = '', + perspective_name = '', + perspective_nodes = [ + visier_api_analytic_model.models.designer/api/transfers/perspective_node_dto.designer.api.transfers.PerspectiveNodeDTO( + analytic_object_filters = [ + visier_api_analytic_model.models.designer/api/transfers/analytic_object_filter_dto.designer.api.transfers.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_filter_dto.designer.api.transfers.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_member_dto.designer.api.transfers.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ], + selection_concept_uuid = '', + symbol_name = '', ) + ], ) + ], ), + name = '', + uuid = '' + ) + else: + return DesignerApiTransfersCalculationConceptDTO( + ) + + def testDesignerApiTransfersCalculationConceptDTO(self): + """Test DesignerApiTransfersCalculationConceptDTO""" + def validate_instance(instance): + DesignerApiTransfersCalculationConceptDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiTransfersCalculationConceptDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_designer_api_transfers_calculation_concept_list_dto.py b/src/visier_api_analytic_model/test/test_designer_api_transfers_calculation_concept_list_dto.py new file mode 100644 index 0000000000..395784dc18 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_transfers_calculation_concept_list_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_list_dto import DesignerApiTransfersCalculationConceptListDTO + +class TestDesignerApiTransfersCalculationConceptListDTO(unittest.TestCase): + """DesignerApiTransfersCalculationConceptListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiTransfersCalculationConceptListDTO: + """Test DesignerApiTransfersCalculationConceptListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiTransfersCalculationConceptListDTO( + concepts = [ + visier_api_analytic_model.models.designer/api/transfers/calculation_concept_dto.designer.api.transfers.CalculationConceptDTO( + configuration = None, + name = '', + uuid = '', ) + ] + ) + else: + return DesignerApiTransfersCalculationConceptListDTO( + ) + + def testDesignerApiTransfersCalculationConceptListDTO(self): + """Test DesignerApiTransfersCalculationConceptListDTO""" + def validate_instance(instance): + DesignerApiTransfersCalculationConceptListDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiTransfersCalculationConceptListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_designer_api_transfers_concept_configuration_result_dto.py b/src/visier_api_analytic_model/test/test_designer_api_transfers_concept_configuration_result_dto.py new file mode 100644 index 0000000000..9d88e7d07a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_transfers_concept_configuration_result_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.designer_api_transfers_concept_configuration_result_dto import DesignerApiTransfersConceptConfigurationResultDTO + +class TestDesignerApiTransfersConceptConfigurationResultDTO(unittest.TestCase): + """DesignerApiTransfersConceptConfigurationResultDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiTransfersConceptConfigurationResultDTO: + """Test DesignerApiTransfersConceptConfigurationResultDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiTransfersConceptConfigurationResultDTO( + concept_id = '', + message = '', + project_id = '' + ) + else: + return DesignerApiTransfersConceptConfigurationResultDTO( + ) + + def testDesignerApiTransfersConceptConfigurationResultDTO(self): + """Test DesignerApiTransfersConceptConfigurationResultDTO""" + def validate_instance(instance): + DesignerApiTransfersConceptConfigurationResultDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiTransfersConceptConfigurationResultDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_designer_api_transfers_dimension_filter_dto.py b/src/visier_api_analytic_model/test/test_designer_api_transfers_dimension_filter_dto.py new file mode 100644 index 0000000000..ca8f03a369 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_transfers_dimension_filter_dto.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.designer_api_transfers_dimension_filter_dto import DesignerApiTransfersDimensionFilterDTO + +class TestDesignerApiTransfersDimensionFilterDTO(unittest.TestCase): + """DesignerApiTransfersDimensionFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiTransfersDimensionFilterDTO: + """Test DesignerApiTransfersDimensionFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiTransfersDimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_member_dto.designer.api.transfers.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '' + ) + else: + return DesignerApiTransfersDimensionFilterDTO( + ) + + def testDesignerApiTransfersDimensionFilterDTO(self): + """Test DesignerApiTransfersDimensionFilterDTO""" + def validate_instance(instance): + DesignerApiTransfersDimensionFilterDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiTransfersDimensionFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_designer_api_transfers_dimension_member_dto.py b/src/visier_api_analytic_model/test/test_designer_api_transfers_dimension_member_dto.py new file mode 100644 index 0000000000..57c28f81d7 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_transfers_dimension_member_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.designer_api_transfers_dimension_member_dto import DesignerApiTransfersDimensionMemberDTO + +class TestDesignerApiTransfersDimensionMemberDTO(unittest.TestCase): + """DesignerApiTransfersDimensionMemberDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiTransfersDimensionMemberDTO: + """Test DesignerApiTransfersDimensionMemberDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiTransfersDimensionMemberDTO( + dimension_member = [ + '' + ] + ) + else: + return DesignerApiTransfersDimensionMemberDTO( + ) + + def testDesignerApiTransfersDimensionMemberDTO(self): + """Test DesignerApiTransfersDimensionMemberDTO""" + def validate_instance(instance): + DesignerApiTransfersDimensionMemberDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiTransfersDimensionMemberDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_designer_api_transfers_perspective_configuration_dto.py b/src/visier_api_analytic_model/test/test_designer_api_transfers_perspective_configuration_dto.py new file mode 100644 index 0000000000..1223a9ee1b --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_transfers_perspective_configuration_dto.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.designer_api_transfers_perspective_configuration_dto import DesignerApiTransfersPerspectiveConfigurationDTO + +class TestDesignerApiTransfersPerspectiveConfigurationDTO(unittest.TestCase): + """DesignerApiTransfersPerspectiveConfigurationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiTransfersPerspectiveConfigurationDTO: + """Test DesignerApiTransfersPerspectiveConfigurationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiTransfersPerspectiveConfigurationDTO( + perspective_id = '', + perspective_name = '', + perspective_nodes = [ + visier_api_analytic_model.models.designer/api/transfers/perspective_node_dto.designer.api.transfers.PerspectiveNodeDTO( + analytic_object_filters = [ + visier_api_analytic_model.models.designer/api/transfers/analytic_object_filter_dto.designer.api.transfers.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_filter_dto.designer.api.transfers.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_member_dto.designer.api.transfers.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ], + selection_concept_uuid = '', + symbol_name = '', ) + ] + ) + else: + return DesignerApiTransfersPerspectiveConfigurationDTO( + ) + + def testDesignerApiTransfersPerspectiveConfigurationDTO(self): + """Test DesignerApiTransfersPerspectiveConfigurationDTO""" + def validate_instance(instance): + DesignerApiTransfersPerspectiveConfigurationDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiTransfersPerspectiveConfigurationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_designer_api_transfers_perspective_node_dto.py b/src/visier_api_analytic_model/test/test_designer_api_transfers_perspective_node_dto.py new file mode 100644 index 0000000000..dadd7635b8 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_transfers_perspective_node_dto.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.designer_api_transfers_perspective_node_dto import DesignerApiTransfersPerspectiveNodeDTO + +class TestDesignerApiTransfersPerspectiveNodeDTO(unittest.TestCase): + """DesignerApiTransfersPerspectiveNodeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiTransfersPerspectiveNodeDTO: + """Test DesignerApiTransfersPerspectiveNodeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiTransfersPerspectiveNodeDTO( + analytic_object_filters = [ + visier_api_analytic_model.models.designer/api/transfers/analytic_object_filter_dto.designer.api.transfers.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_filter_dto.designer.api.transfers.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_member_dto.designer.api.transfers.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ], + selection_concept_uuid = '', + symbol_name = '' + ) + else: + return DesignerApiTransfersPerspectiveNodeDTO( + ) + + def testDesignerApiTransfersPerspectiveNodeDTO(self): + """Test DesignerApiTransfersPerspectiveNodeDTO""" + def validate_instance(instance): + DesignerApiTransfersPerspectiveNodeDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiTransfersPerspectiveNodeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_designer_api_transfers_selection_concept_configuration_dto.py b/src/visier_api_analytic_model/test/test_designer_api_transfers_selection_concept_configuration_dto.py new file mode 100644 index 0000000000..8febb39689 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_transfers_selection_concept_configuration_dto.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_configuration_dto import DesignerApiTransfersSelectionConceptConfigurationDTO + +class TestDesignerApiTransfersSelectionConceptConfigurationDTO(unittest.TestCase): + """DesignerApiTransfersSelectionConceptConfigurationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiTransfersSelectionConceptConfigurationDTO: + """Test DesignerApiTransfersSelectionConceptConfigurationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiTransfersSelectionConceptConfigurationDTO( + analytic_object_filters = [ + visier_api_analytic_model.models.designer/api/transfers/analytic_object_filter_dto.designer.api.transfers.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_filter_dto.designer.api.transfers.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_member_dto.designer.api.transfers.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ] + ) + else: + return DesignerApiTransfersSelectionConceptConfigurationDTO( + ) + + def testDesignerApiTransfersSelectionConceptConfigurationDTO(self): + """Test DesignerApiTransfersSelectionConceptConfigurationDTO""" + def validate_instance(instance): + DesignerApiTransfersSelectionConceptConfigurationDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiTransfersSelectionConceptConfigurationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_designer_api_transfers_selection_concept_configuration_map_dto.py b/src/visier_api_analytic_model/test/test_designer_api_transfers_selection_concept_configuration_map_dto.py new file mode 100644 index 0000000000..b5b70cc46d --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_transfers_selection_concept_configuration_map_dto.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_configuration_map_dto import DesignerApiTransfersSelectionConceptConfigurationMapDTO + +class TestDesignerApiTransfersSelectionConceptConfigurationMapDTO(unittest.TestCase): + """DesignerApiTransfersSelectionConceptConfigurationMapDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiTransfersSelectionConceptConfigurationMapDTO: + """Test DesignerApiTransfersSelectionConceptConfigurationMapDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiTransfersSelectionConceptConfigurationMapDTO( + analytic_object_filters_to_map = [ + visier_api_analytic_model.models.designer/api/transfers/analytic_object_filter_dto.designer.api.transfers.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_filter_dto.designer.api.transfers.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_member_dto.designer.api.transfers.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ] + ) + else: + return DesignerApiTransfersSelectionConceptConfigurationMapDTO( + ) + + def testDesignerApiTransfersSelectionConceptConfigurationMapDTO(self): + """Test DesignerApiTransfersSelectionConceptConfigurationMapDTO""" + def validate_instance(instance): + DesignerApiTransfersSelectionConceptConfigurationMapDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiTransfersSelectionConceptConfigurationMapDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_designer_api_transfers_selection_concept_dto.py b/src/visier_api_analytic_model/test/test_designer_api_transfers_selection_concept_dto.py new file mode 100644 index 0000000000..411c716661 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_transfers_selection_concept_dto.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_dto import DesignerApiTransfersSelectionConceptDTO + +class TestDesignerApiTransfersSelectionConceptDTO(unittest.TestCase): + """DesignerApiTransfersSelectionConceptDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiTransfersSelectionConceptDTO: + """Test DesignerApiTransfersSelectionConceptDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiTransfersSelectionConceptDTO( + configuration = visier_api_analytic_model.models.designer/api/transfers/selection_concept_configuration_dto.designer.api.transfers.SelectionConceptConfigurationDTO( + analytic_object_filters = [ + visier_api_analytic_model.models.designer/api/transfers/analytic_object_filter_dto.designer.api.transfers.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_filter_dto.designer.api.transfers.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/transfers/dimension_member_dto.designer.api.transfers.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ], ), + name = '', + uuid = '' + ) + else: + return DesignerApiTransfersSelectionConceptDTO( + ) + + def testDesignerApiTransfersSelectionConceptDTO(self): + """Test DesignerApiTransfersSelectionConceptDTO""" + def validate_instance(instance): + DesignerApiTransfersSelectionConceptDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiTransfersSelectionConceptDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_designer_api_transfers_selection_concept_list_dto.py b/src/visier_api_analytic_model/test/test_designer_api_transfers_selection_concept_list_dto.py new file mode 100644 index 0000000000..c8e28a39d3 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_transfers_selection_concept_list_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_list_dto import DesignerApiTransfersSelectionConceptListDTO + +class TestDesignerApiTransfersSelectionConceptListDTO(unittest.TestCase): + """DesignerApiTransfersSelectionConceptListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiTransfersSelectionConceptListDTO: + """Test DesignerApiTransfersSelectionConceptListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiTransfersSelectionConceptListDTO( + concepts = [ + visier_api_analytic_model.models.designer/api/transfers/selection_concept_dto.designer.api.transfers.SelectionConceptDTO( + configuration = None, + name = '', + uuid = '', ) + ] + ) + else: + return DesignerApiTransfersSelectionConceptListDTO( + ) + + def testDesignerApiTransfersSelectionConceptListDTO(self): + """Test DesignerApiTransfersSelectionConceptListDTO""" + def validate_instance(instance): + DesignerApiTransfersSelectionConceptListDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiTransfersSelectionConceptListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dimension_change_definition_dto.py b/src/visier_api_analytic_model/test/test_dimension_change_definition_dto.py deleted file mode 100644 index 9204b6a96a..0000000000 --- a/src/visier_api_analytic_model/test/test_dimension_change_definition_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.dimension_change_definition_dto import DimensionChangeDefinitionDTO - -class TestDimensionChangeDefinitionDTO(unittest.TestCase): - """DimensionChangeDefinitionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DimensionChangeDefinitionDTO: - """Test DimensionChangeDefinitionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DimensionChangeDefinitionDTO( - description = '', - display_name = '', - id = '', - short_display_name = '' - ) - else: - return DimensionChangeDefinitionDTO( - ) - - def testDimensionChangeDefinitionDTO(self): - """Test DimensionChangeDefinitionDTO""" - def validate_instance(instance): - DimensionChangeDefinitionDTO.model_validate(inst_req_only) - instance_deserialized = DimensionChangeDefinitionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dimension_change_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/test/test_dimension_change_definitions_by_tenant_dto.py deleted file mode 100644 index f3f9e2ce90..0000000000 --- a/src/visier_api_analytic_model/test/test_dimension_change_definitions_by_tenant_dto.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.dimension_change_definitions_by_tenant_dto import DimensionChangeDefinitionsByTenantDTO - -class TestDimensionChangeDefinitionsByTenantDTO(unittest.TestCase): - """DimensionChangeDefinitionsByTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DimensionChangeDefinitionsByTenantDTO: - """Test DimensionChangeDefinitionsByTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DimensionChangeDefinitionsByTenantDTO( - dimensions = [ - visier_api_analytic_model.models.dimension_change_definition_dto.DimensionChangeDefinitionDTO( - description = '', - display_name = '', - id = '', - short_display_name = '', ) - ], - project_id = '', - tenant_code = '' - ) - else: - return DimensionChangeDefinitionsByTenantDTO( - ) - - def testDimensionChangeDefinitionsByTenantDTO(self): - """Test DimensionChangeDefinitionsByTenantDTO""" - def validate_instance(instance): - DimensionChangeDefinitionsByTenantDTO.model_validate(inst_req_only) - instance_deserialized = DimensionChangeDefinitionsByTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dimension_dto.py b/src/visier_api_analytic_model/test/test_dimension_dto.py deleted file mode 100644 index fff386edd8..0000000000 --- a/src/visier_api_analytic_model/test/test_dimension_dto.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.dimension_dto import DimensionDTO - -class TestDimensionDTO(unittest.TestCase): - """DimensionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DimensionDTO: - """Test DimensionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DimensionDTO( - description = '', - display_name = '', - explanation = '', - id = '', - levels = [ - visier_api_analytic_model.models.level_dto.LevelDTO( - depth = 56, - display_name = '', - id = '', ) - ], - member_count = 56, - tags = [ - visier_api_analytic_model.models.tag_map_element_dto.TagMapElementDTO( - display_name = '', - id = '', ) - ], - unknown_member = [ - '' - ], - visible_in_app = True - ) - else: - return DimensionDTO( - ) - - def testDimensionDTO(self): - """Test DimensionDTO""" - def validate_instance(instance): - DimensionDTO.model_validate(inst_req_only) - instance_deserialized = DimensionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dimension_filter_dto.py b/src/visier_api_analytic_model/test/test_dimension_filter_dto.py deleted file mode 100644 index ca5dc5fa33..0000000000 --- a/src/visier_api_analytic_model/test/test_dimension_filter_dto.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.dimension_filter_dto import DimensionFilterDTO - -class TestDimensionFilterDTO(unittest.TestCase): - """DimensionFilterDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DimensionFilterDTO: - """Test DimensionFilterDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DimensionFilterDTO( - dimension_id = '', - dimension_members = [ - visier_api_analytic_model.models.dimension_member_dto.DimensionMemberDTO( - dimension_member = [ - '' - ], ) - ], - symbol_name = '' - ) - else: - return DimensionFilterDTO( - ) - - def testDimensionFilterDTO(self): - """Test DimensionFilterDTO""" - def validate_instance(instance): - DimensionFilterDTO.model_validate(inst_req_only) - instance_deserialized = DimensionFilterDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dimension_mapping_validation_dto.py b/src/visier_api_analytic_model/test/test_dimension_mapping_validation_dto.py deleted file mode 100644 index 48a03425bd..0000000000 --- a/src/visier_api_analytic_model/test/test_dimension_mapping_validation_dto.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.dimension_mapping_validation_dto import DimensionMappingValidationDTO - -class TestDimensionMappingValidationDTO(unittest.TestCase): - """DimensionMappingValidationDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DimensionMappingValidationDTO: - """Test DimensionMappingValidationDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DimensionMappingValidationDTO( - dimension_id = '', - dimension_map_id = '', - failures = [ - '' - ], - unmapped_members = [ - visier_api_analytic_model.models.dimension_member_reference_dto.DimensionMemberReferenceDTO( - path = [ - '' - ], ) - ] - ) - else: - return DimensionMappingValidationDTO( - ) - - def testDimensionMappingValidationDTO(self): - """Test DimensionMappingValidationDTO""" - def validate_instance(instance): - DimensionMappingValidationDTO.model_validate(inst_req_only) - instance_deserialized = DimensionMappingValidationDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dimension_mapping_validation_execution_dto.py b/src/visier_api_analytic_model/test/test_dimension_mapping_validation_execution_dto.py deleted file mode 100644 index 2b67511fb0..0000000000 --- a/src/visier_api_analytic_model/test/test_dimension_mapping_validation_execution_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.dimension_mapping_validation_execution_dto import DimensionMappingValidationExecutionDTO - -class TestDimensionMappingValidationExecutionDTO(unittest.TestCase): - """DimensionMappingValidationExecutionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DimensionMappingValidationExecutionDTO: - """Test DimensionMappingValidationExecutionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DimensionMappingValidationExecutionDTO( - analytic_object = '', - member_map_id = '' - ) - else: - return DimensionMappingValidationExecutionDTO( - ) - - def testDimensionMappingValidationExecutionDTO(self): - """Test DimensionMappingValidationExecutionDTO""" - def validate_instance(instance): - DimensionMappingValidationExecutionDTO.model_validate(inst_req_only) - instance_deserialized = DimensionMappingValidationExecutionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dimension_member_dto.py b/src/visier_api_analytic_model/test/test_dimension_member_dto.py deleted file mode 100644 index 08833057ef..0000000000 --- a/src/visier_api_analytic_model/test/test_dimension_member_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.dimension_member_dto import DimensionMemberDTO - -class TestDimensionMemberDTO(unittest.TestCase): - """DimensionMemberDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DimensionMemberDTO: - """Test DimensionMemberDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DimensionMemberDTO( - dimension_member = [ - '' - ] - ) - else: - return DimensionMemberDTO( - ) - - def testDimensionMemberDTO(self): - """Test DimensionMemberDTO""" - def validate_instance(instance): - DimensionMemberDTO.model_validate(inst_req_only) - instance_deserialized = DimensionMemberDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dimension_member_reference_dto.py b/src/visier_api_analytic_model/test/test_dimension_member_reference_dto.py deleted file mode 100644 index 3f8f688152..0000000000 --- a/src/visier_api_analytic_model/test/test_dimension_member_reference_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.dimension_member_reference_dto import DimensionMemberReferenceDTO - -class TestDimensionMemberReferenceDTO(unittest.TestCase): - """DimensionMemberReferenceDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DimensionMemberReferenceDTO: - """Test DimensionMemberReferenceDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DimensionMemberReferenceDTO( - path = [ - '' - ] - ) - else: - return DimensionMemberReferenceDTO( - ) - - def testDimensionMemberReferenceDTO(self): - """Test DimensionMemberReferenceDTO""" - def validate_instance(instance): - DimensionMemberReferenceDTO.model_validate(inst_req_only) - instance_deserialized = DimensionMemberReferenceDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dimension_reference_dto.py b/src/visier_api_analytic_model/test/test_dimension_reference_dto.py deleted file mode 100644 index c4f2421c4a..0000000000 --- a/src/visier_api_analytic_model/test/test_dimension_reference_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.dimension_reference_dto import DimensionReferenceDTO - -class TestDimensionReferenceDTO(unittest.TestCase): - """DimensionReferenceDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DimensionReferenceDTO: - """Test DimensionReferenceDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DimensionReferenceDTO( - name = '', - qualifying_path = '' - ) - else: - return DimensionReferenceDTO( - ) - - def testDimensionReferenceDTO(self): - """Test DimensionReferenceDTO""" - def validate_instance(instance): - DimensionReferenceDTO.model_validate(inst_req_only) - instance_deserialized = DimensionReferenceDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dimensions_change_definitions_dto.py b/src/visier_api_analytic_model/test/test_dimensions_change_definitions_dto.py deleted file mode 100644 index 63da04026b..0000000000 --- a/src/visier_api_analytic_model/test/test_dimensions_change_definitions_dto.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.dimensions_change_definitions_dto import DimensionsChangeDefinitionsDTO - -class TestDimensionsChangeDefinitionsDTO(unittest.TestCase): - """DimensionsChangeDefinitionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DimensionsChangeDefinitionsDTO: - """Test DimensionsChangeDefinitionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DimensionsChangeDefinitionsDTO( - dimensions_by_tenant = [ - visier_api_analytic_model.models.dimension_change_definitions_by_tenant_dto.DimensionChangeDefinitionsByTenantDTO( - dimensions = [ - visier_api_analytic_model.models.dimension_change_definition_dto.DimensionChangeDefinitionDTO( - description = '', - display_name = '', - id = '', - short_display_name = '', ) - ], - project_id = '', - tenant_code = '', ) - ] - ) - else: - return DimensionsChangeDefinitionsDTO( - ) - - def testDimensionsChangeDefinitionsDTO(self): - """Test DimensionsChangeDefinitionsDTO""" - def validate_instance(instance): - DimensionsChangeDefinitionsDTO.model_validate(inst_req_only) - instance_deserialized = DimensionsChangeDefinitionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_dimensions_dto.py b/src/visier_api_analytic_model/test/test_dimensions_dto.py deleted file mode 100644 index 3203cac7d5..0000000000 --- a/src/visier_api_analytic_model/test/test_dimensions_dto.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.dimensions_dto import DimensionsDTO - -class TestDimensionsDTO(unittest.TestCase): - """DimensionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DimensionsDTO: - """Test DimensionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DimensionsDTO( - dimensions = [ - visier_api_analytic_model.models.dimension_dto.DimensionDTO( - description = '', - display_name = '', - explanation = '', - id = '', - levels = [ - visier_api_analytic_model.models.level_dto.LevelDTO( - depth = 56, - display_name = '', - id = '', ) - ], - member_count = 56, - tags = [ - visier_api_analytic_model.models.tag_map_element_dto.TagMapElementDTO( - display_name = '', - id = '', ) - ], - unknown_member = [ - '' - ], - visible_in_app = True, ) - ] - ) - else: - return DimensionsDTO( - ) - - def testDimensionsDTO(self): - """Test DimensionsDTO""" - def validate_instance(instance): - DimensionsDTO.model_validate(inst_req_only) - instance_deserialized = DimensionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_get_plan_list_response_dto.py b/src/visier_api_analytic_model/test/test_get_plan_list_response_dto.py deleted file mode 100644 index cf76a3d7b8..0000000000 --- a/src/visier_api_analytic_model/test/test_get_plan_list_response_dto.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.get_plan_list_response_dto import GetPlanListResponseDTO - -class TestGetPlanListResponseDTO(unittest.TestCase): - """GetPlanListResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPlanListResponseDTO: - """Test GetPlanListResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GetPlanListResponseDTO( - page = 56, - plans = [ - visier_api_analytic_model.models.plan_info_dto.PlanInfoDTO( - currency_code = '', - display_name = '', - model_id = '', - parent_plan_uuid = '', - scenarios = [ - visier_api_analytic_model.models.scenario_info_dto.ScenarioInfoDTO( - display_name = '', - uuid = '', - versioned_scenario_id = '', ) - ], - uuid = '', ) - ] - ) - else: - return GetPlanListResponseDTO( - ) - - def testGetPlanListResponseDTO(self): - """Test GetPlanListResponseDTO""" - def validate_instance(instance): - GetPlanListResponseDTO.model_validate(inst_req_only) - instance_deserialized = GetPlanListResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_google_protobuf_any.py b/src/visier_api_analytic_model/test/test_google_protobuf_any.py deleted file mode 100644 index c71fac52de..0000000000 --- a/src/visier_api_analytic_model/test/test_google_protobuf_any.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.google_protobuf_any import GoogleProtobufAny - -class TestGoogleProtobufAny(unittest.TestCase): - """GoogleProtobufAny unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GoogleProtobufAny: - """Test GoogleProtobufAny - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GoogleProtobufAny( - type = '' - ) - else: - return GoogleProtobufAny( - ) - - def testGoogleProtobufAny(self): - """Test GoogleProtobufAny""" - def validate_instance(instance): - GoogleProtobufAny.model_validate(inst_req_only) - instance_deserialized = GoogleProtobufAny.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_level_dto.py b/src/visier_api_analytic_model/test/test_level_dto.py deleted file mode 100644 index e7aed2fab5..0000000000 --- a/src/visier_api_analytic_model/test/test_level_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.level_dto import LevelDTO - -class TestLevelDTO(unittest.TestCase): - """LevelDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LevelDTO: - """Test LevelDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return LevelDTO( - depth = 56, - display_name = '', - id = '' - ) - else: - return LevelDTO( - ) - - def testLevelDTO(self): - """Test LevelDTO""" - def validate_instance(instance): - LevelDTO.model_validate(inst_req_only) - instance_deserialized = LevelDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_member_dto.py b/src/visier_api_analytic_model/test/test_member_dto.py deleted file mode 100644 index dd6535da49..0000000000 --- a/src/visier_api_analytic_model/test/test_member_dto.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.member_dto import MemberDTO - -class TestMemberDTO(unittest.TestCase): - """MemberDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MemberDTO: - """Test MemberDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MemberDTO( - display_name = '', - display_name_path = [ - '' - ], - full_name = '', - level = 56, - path = [ - '' - ], - validity_ranges = [ - visier_api_analytic_model.models.validity_range_dto.ValidityRangeDTO( - end = '', - start = '', ) - ] - ) - else: - return MemberDTO( - ) - - def testMemberDTO(self): - """Test MemberDTO""" - def validate_instance(instance): - MemberDTO.model_validate(inst_req_only) - instance_deserialized = MemberDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_member_parameter_definition_dto.py b/src/visier_api_analytic_model/test/test_member_parameter_definition_dto.py deleted file mode 100644 index 113605059c..0000000000 --- a/src/visier_api_analytic_model/test/test_member_parameter_definition_dto.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.member_parameter_definition_dto import MemberParameterDefinitionDTO - -class TestMemberParameterDefinitionDTO(unittest.TestCase): - """MemberParameterDefinitionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MemberParameterDefinitionDTO: - """Test MemberParameterDefinitionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MemberParameterDefinitionDTO( - default = visier_api_analytic_model.models.member_values_dto.MemberValuesDTO( - excluded = [ - visier_api_analytic_model.models.dimension_member_reference_dto.DimensionMemberReferenceDTO( - path = [ - '' - ], ) - ], - included = [ - visier_api_analytic_model.models.dimension_member_reference_dto.DimensionMemberReferenceDTO() - ], ), - description = '', - dimension_id = '', - display_name = '', - id = '', - reference_path = [ - '' - ] - ) - else: - return MemberParameterDefinitionDTO( - ) - - def testMemberParameterDefinitionDTO(self): - """Test MemberParameterDefinitionDTO""" - def validate_instance(instance): - MemberParameterDefinitionDTO.model_validate(inst_req_only) - instance_deserialized = MemberParameterDefinitionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_member_values_dto.py b/src/visier_api_analytic_model/test/test_member_values_dto.py deleted file mode 100644 index 09958b8775..0000000000 --- a/src/visier_api_analytic_model/test/test_member_values_dto.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.member_values_dto import MemberValuesDTO - -class TestMemberValuesDTO(unittest.TestCase): - """MemberValuesDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MemberValuesDTO: - """Test MemberValuesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MemberValuesDTO( - excluded = [ - visier_api_analytic_model.models.dimension_member_reference_dto.DimensionMemberReferenceDTO( - path = [ - '' - ], ) - ], - included = [ - visier_api_analytic_model.models.dimension_member_reference_dto.DimensionMemberReferenceDTO( - path = [ - '' - ], ) - ] - ) - else: - return MemberValuesDTO( - ) - - def testMemberValuesDTO(self): - """Test MemberValuesDTO""" - def validate_instance(instance): - MemberValuesDTO.model_validate(inst_req_only) - instance_deserialized = MemberValuesDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_members_dto.py b/src/visier_api_analytic_model/test/test_members_dto.py deleted file mode 100644 index b35bed977c..0000000000 --- a/src/visier_api_analytic_model/test/test_members_dto.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.members_dto import MembersDTO - -class TestMembersDTO(unittest.TestCase): - """MembersDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MembersDTO: - """Test MembersDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MembersDTO( - members = [ - visier_api_analytic_model.models.member_dto.MemberDTO( - display_name = '', - display_name_path = [ - '' - ], - full_name = '', - level = 56, - path = [ - '' - ], - validity_ranges = [ - visier_api_analytic_model.models.validity_range_dto.ValidityRangeDTO( - end = '', - start = '', ) - ], ) - ] - ) - else: - return MembersDTO( - ) - - def testMembersDTO(self): - """Test MembersDTO""" - def validate_instance(instance): - MembersDTO.model_validate(inst_req_only) - instance_deserialized = MembersDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_metric_dto.py b/src/visier_api_analytic_model/test/test_metric_dto.py deleted file mode 100644 index eecf88cc7b..0000000000 --- a/src/visier_api_analytic_model/test/test_metric_dto.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.metric_dto import MetricDTO - -class TestMetricDTO(unittest.TestCase): - """MetricDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MetricDTO: - """Test MetricDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MetricDTO( - analytic_object_id = '', - category = 'REGULAR', - data_end_date = '', - data_start_date = '', - description = '', - display_name = '', - id = '', - parameters = [ - visier_api_analytic_model.models.parameter_definition_dto.ParameterDefinitionDTO( - aggregation_type_parameter = None, - member_parameter = None, - numeric_parameter = None, - plan_parameter = None, ) - ], - visible_in_app = True - ) - else: - return MetricDTO( - ) - - def testMetricDTO(self): - """Test MetricDTO""" - def validate_instance(instance): - MetricDTO.model_validate(inst_req_only) - instance_deserialized = MetricDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_metrics_dto.py b/src/visier_api_analytic_model/test/test_metrics_dto.py deleted file mode 100644 index ac86a246aa..0000000000 --- a/src/visier_api_analytic_model/test/test_metrics_dto.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.metrics_dto import MetricsDTO - -class TestMetricsDTO(unittest.TestCase): - """MetricsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MetricsDTO: - """Test MetricsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MetricsDTO( - metrics = [ - visier_api_analytic_model.models.metric_dto.MetricDTO( - analytic_object_id = '', - category = 'REGULAR', - data_end_date = '', - data_start_date = '', - description = '', - display_name = '', - id = '', - parameters = [ - visier_api_analytic_model.models.parameter_definition_dto.ParameterDefinitionDTO( - aggregation_type_parameter = None, - member_parameter = None, - numeric_parameter = None, - plan_parameter = None, ) - ], - visible_in_app = True, ) - ] - ) - else: - return MetricsDTO( - ) - - def testMetricsDTO(self): - """Test MetricsDTO""" - def validate_instance(instance): - MetricsDTO.model_validate(inst_req_only) - instance_deserialized = MetricsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_numeric_parameter_definition_dto.py b/src/visier_api_analytic_model/test/test_numeric_parameter_definition_dto.py deleted file mode 100644 index 5b06ff7c12..0000000000 --- a/src/visier_api_analytic_model/test/test_numeric_parameter_definition_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.numeric_parameter_definition_dto import NumericParameterDefinitionDTO - -class TestNumericParameterDefinitionDTO(unittest.TestCase): - """NumericParameterDefinitionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NumericParameterDefinitionDTO: - """Test NumericParameterDefinitionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return NumericParameterDefinitionDTO( - default = 1.337, - description = '', - display_name = '', - id = '', - lower_bound = 1.337, - upper_bound = 1.337 - ) - else: - return NumericParameterDefinitionDTO( - ) - - def testNumericParameterDefinitionDTO(self): - """Test NumericParameterDefinitionDTO""" - def validate_instance(instance): - NumericParameterDefinitionDTO.model_validate(inst_req_only) - instance_deserialized = NumericParameterDefinitionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_object_change_failure_dto.py b/src/visier_api_analytic_model/test/test_object_change_failure_dto.py deleted file mode 100644 index 3299669644..0000000000 --- a/src/visier_api_analytic_model/test/test_object_change_failure_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.object_change_failure_dto import ObjectChangeFailureDTO - -class TestObjectChangeFailureDTO(unittest.TestCase): - """ObjectChangeFailureDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ObjectChangeFailureDTO: - """Test ObjectChangeFailureDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ObjectChangeFailureDTO( - display_name = '', - id = '', - message = '', - project_id = '', - rci = '', - tenant_code = '' - ) - else: - return ObjectChangeFailureDTO( - ) - - def testObjectChangeFailureDTO(self): - """Test ObjectChangeFailureDTO""" - def validate_instance(instance): - ObjectChangeFailureDTO.model_validate(inst_req_only) - instance_deserialized = ObjectChangeFailureDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_object_change_success_dto.py b/src/visier_api_analytic_model/test/test_object_change_success_dto.py deleted file mode 100644 index f5f7928d4c..0000000000 --- a/src/visier_api_analytic_model/test/test_object_change_success_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.object_change_success_dto import ObjectChangeSuccessDTO - -class TestObjectChangeSuccessDTO(unittest.TestCase): - """ObjectChangeSuccessDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ObjectChangeSuccessDTO: - """Test ObjectChangeSuccessDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ObjectChangeSuccessDTO( - display_name = '', - id = '', - project_id = '', - tenant_code = '' - ) - else: - return ObjectChangeSuccessDTO( - ) - - def testObjectChangeSuccessDTO(self): - """Test ObjectChangeSuccessDTO""" - def validate_instance(instance): - ObjectChangeSuccessDTO.model_validate(inst_req_only) - instance_deserialized = ObjectChangeSuccessDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_object_configuration_api.py b/src/visier_api_analytic_model/test/test_object_configuration_api.py index 55f2b4078d..fa03a4b878 100644 --- a/src/visier_api_analytic_model/test/test_object_configuration_api.py +++ b/src/visier_api_analytic_model/test/test_object_configuration_api.py @@ -5,7 +5,7 @@ Visier APIs for retrieving and configuring your analytic model in Visier. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_analytic_model/test/test_object_reference_dto.py b/src/visier_api_analytic_model/test/test_object_reference_dto.py deleted file mode 100644 index f04f64893f..0000000000 --- a/src/visier_api_analytic_model/test/test_object_reference_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.object_reference_dto import ObjectReferenceDTO - -class TestObjectReferenceDTO(unittest.TestCase): - """ObjectReferenceDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ObjectReferenceDTO: - """Test ObjectReferenceDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ObjectReferenceDTO( - description = '', - display_name = '', - from_object = '', - id = '', - is_strong_reference = True, - to_object = '', - type = 'SUBJECT_REFERENCE' - ) - else: - return ObjectReferenceDTO( - ) - - def testObjectReferenceDTO(self): - """Test ObjectReferenceDTO""" - def validate_instance(instance): - ObjectReferenceDTO.model_validate(inst_req_only) - instance_deserialized = ObjectReferenceDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_objects_bulk_change_response_dto.py b/src/visier_api_analytic_model/test/test_objects_bulk_change_response_dto.py deleted file mode 100644 index 267ff04655..0000000000 --- a/src/visier_api_analytic_model/test/test_objects_bulk_change_response_dto.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.objects_bulk_change_response_dto import ObjectsBulkChangeResponseDTO - -class TestObjectsBulkChangeResponseDTO(unittest.TestCase): - """ObjectsBulkChangeResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ObjectsBulkChangeResponseDTO: - """Test ObjectsBulkChangeResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ObjectsBulkChangeResponseDTO( - failures = [ - visier_api_analytic_model.models.object_change_failure_dto.ObjectChangeFailureDTO( - display_name = '', - id = '', - message = '', - project_id = '', - rci = '', - tenant_code = '', ) - ], - successes = [ - visier_api_analytic_model.models.object_change_success_dto.ObjectChangeSuccessDTO( - display_name = '', - id = '', - project_id = '', - tenant_code = '', ) - ] - ) - else: - return ObjectsBulkChangeResponseDTO( - ) - - def testObjectsBulkChangeResponseDTO(self): - """Test ObjectsBulkChangeResponseDTO""" - def validate_instance(instance): - ObjectsBulkChangeResponseDTO.model_validate(inst_req_only) - instance_deserialized = ObjectsBulkChangeResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_parameter_definition_dto.py b/src/visier_api_analytic_model/test/test_parameter_definition_dto.py deleted file mode 100644 index ae08a630ef..0000000000 --- a/src/visier_api_analytic_model/test/test_parameter_definition_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.parameter_definition_dto import ParameterDefinitionDTO - -class TestParameterDefinitionDTO(unittest.TestCase): - """ParameterDefinitionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParameterDefinitionDTO: - """Test ParameterDefinitionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ParameterDefinitionDTO( - aggregation_type_parameter = visier_api_analytic_model.models.aggregation_type_parameter_dto.AggregationTypeParameterDTO( - description = '', - display_name = '', - id = '', - parameter_options = [ - visier_api_analytic_model.models.aggregation_type_option_dto.AggregationTypeOptionDTO( - aggregation_function = '', - display_name = '', - id = '', - is_default = True, - property_name = '', ) - ], ), - member_parameter = visier_api_analytic_model.models.member_parameter_definition_dto.MemberParameterDefinitionDTO( - default = None, - description = '', - dimension_id = '', - display_name = '', - id = '', - reference_path = [ - '' - ], ), - numeric_parameter = visier_api_analytic_model.models.numeric_parameter_definition_dto.NumericParameterDefinitionDTO( - default = 1.337, - description = '', - display_name = '', - id = '', - lower_bound = 1.337, - upper_bound = 1.337, ), - plan_parameter = visier_api_analytic_model.models.plan_parameter_definition_dto.PlanParameterDefinitionDTO( - description = '', - display_name = '', - id = '', - model_name = '', ) - ) - else: - return ParameterDefinitionDTO( - ) - - def testParameterDefinitionDTO(self): - """Test ParameterDefinitionDTO""" - def validate_instance(instance): - ParameterDefinitionDTO.model_validate(inst_req_only) - instance_deserialized = ParameterDefinitionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_perspective_configuration_dto.py b/src/visier_api_analytic_model/test/test_perspective_configuration_dto.py deleted file mode 100644 index f6bf2d9cf5..0000000000 --- a/src/visier_api_analytic_model/test/test_perspective_configuration_dto.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.perspective_configuration_dto import PerspectiveConfigurationDTO - -class TestPerspectiveConfigurationDTO(unittest.TestCase): - """PerspectiveConfigurationDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PerspectiveConfigurationDTO: - """Test PerspectiveConfigurationDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PerspectiveConfigurationDTO( - perspective_id = '', - perspective_name = '', - perspective_nodes = [ - visier_api_analytic_model.models.perspective_node_dto.PerspectiveNodeDTO( - analytic_object_filters = [ - visier_api_analytic_model.models.analytic_object_filter_dto.AnalyticObjectFilterDTO( - analytic_object_uuid = '', - dimensions = [ - visier_api_analytic_model.models.dimension_filter_dto.DimensionFilterDTO( - dimension_id = '', - dimension_members = [ - visier_api_analytic_model.models.dimension_member_dto.DimensionMemberDTO( - dimension_member = [ - '' - ], ) - ], - symbol_name = '', ) - ], - symbol_name = '', ) - ], - selection_concept_uuid = '', - symbol_name = '', ) - ] - ) - else: - return PerspectiveConfigurationDTO( - ) - - def testPerspectiveConfigurationDTO(self): - """Test PerspectiveConfigurationDTO""" - def validate_instance(instance): - PerspectiveConfigurationDTO.model_validate(inst_req_only) - instance_deserialized = PerspectiveConfigurationDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_perspective_node_dto.py b/src/visier_api_analytic_model/test/test_perspective_node_dto.py deleted file mode 100644 index a92072d361..0000000000 --- a/src/visier_api_analytic_model/test/test_perspective_node_dto.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.perspective_node_dto import PerspectiveNodeDTO - -class TestPerspectiveNodeDTO(unittest.TestCase): - """PerspectiveNodeDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PerspectiveNodeDTO: - """Test PerspectiveNodeDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PerspectiveNodeDTO( - analytic_object_filters = [ - visier_api_analytic_model.models.analytic_object_filter_dto.AnalyticObjectFilterDTO( - analytic_object_uuid = '', - dimensions = [ - visier_api_analytic_model.models.dimension_filter_dto.DimensionFilterDTO( - dimension_id = '', - dimension_members = [ - visier_api_analytic_model.models.dimension_member_dto.DimensionMemberDTO( - dimension_member = [ - '' - ], ) - ], - symbol_name = '', ) - ], - symbol_name = '', ) - ], - selection_concept_uuid = '', - symbol_name = '' - ) - else: - return PerspectiveNodeDTO( - ) - - def testPerspectiveNodeDTO(self): - """Test PerspectiveNodeDTO""" - def validate_instance(instance): - PerspectiveNodeDTO.model_validate(inst_req_only) - instance_deserialized = PerspectiveNodeDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_plan_data_load_error_dto.py b/src/visier_api_analytic_model/test/test_plan_data_load_error_dto.py deleted file mode 100644 index 9aad8b33b1..0000000000 --- a/src/visier_api_analytic_model/test/test_plan_data_load_error_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.plan_data_load_error_dto import PlanDataLoadErrorDTO - -class TestPlanDataLoadErrorDTO(unittest.TestCase): - """PlanDataLoadErrorDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanDataLoadErrorDTO: - """Test PlanDataLoadErrorDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanDataLoadErrorDTO( - error_message = '', - rci = '', - row = 56 - ) - else: - return PlanDataLoadErrorDTO( - ) - - def testPlanDataLoadErrorDTO(self): - """Test PlanDataLoadErrorDTO""" - def validate_instance(instance): - PlanDataLoadErrorDTO.model_validate(inst_req_only) - instance_deserialized = PlanDataLoadErrorDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_plan_info_dto.py b/src/visier_api_analytic_model/test/test_plan_info_dto.py deleted file mode 100644 index c8d0509e0d..0000000000 --- a/src/visier_api_analytic_model/test/test_plan_info_dto.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.plan_info_dto import PlanInfoDTO - -class TestPlanInfoDTO(unittest.TestCase): - """PlanInfoDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanInfoDTO: - """Test PlanInfoDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanInfoDTO( - currency_code = '', - display_name = '', - model_id = '', - parent_plan_uuid = '', - scenarios = [ - visier_api_analytic_model.models.scenario_info_dto.ScenarioInfoDTO( - display_name = '', - uuid = '', - versioned_scenario_id = '', ) - ], - uuid = '' - ) - else: - return PlanInfoDTO( - ) - - def testPlanInfoDTO(self): - """Test PlanInfoDTO""" - def validate_instance(instance): - PlanInfoDTO.model_validate(inst_req_only) - instance_deserialized = PlanInfoDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_plan_item_dto.py b/src/visier_api_analytic_model/test/test_plan_item_dto.py deleted file mode 100644 index 7ed3283c94..0000000000 --- a/src/visier_api_analytic_model/test/test_plan_item_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.plan_item_dto import PlanItemDTO - -class TestPlanItemDTO(unittest.TestCase): - """PlanItemDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanItemDTO: - """Test PlanItemDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanItemDTO( - data_type = 'unknown', - display_name = '', - id = '' - ) - else: - return PlanItemDTO( - ) - - def testPlanItemDTO(self): - """Test PlanItemDTO""" - def validate_instance(instance): - PlanItemDTO.model_validate(inst_req_only) - instance_deserialized = PlanItemDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_plan_parameter_definition_dto.py b/src/visier_api_analytic_model/test/test_plan_parameter_definition_dto.py deleted file mode 100644 index 4b457f05fd..0000000000 --- a/src/visier_api_analytic_model/test/test_plan_parameter_definition_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.plan_parameter_definition_dto import PlanParameterDefinitionDTO - -class TestPlanParameterDefinitionDTO(unittest.TestCase): - """PlanParameterDefinitionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanParameterDefinitionDTO: - """Test PlanParameterDefinitionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanParameterDefinitionDTO( - description = '', - display_name = '', - id = '', - model_name = '' - ) - else: - return PlanParameterDefinitionDTO( - ) - - def testPlanParameterDefinitionDTO(self): - """Test PlanParameterDefinitionDTO""" - def validate_instance(instance): - PlanParameterDefinitionDTO.model_validate(inst_req_only) - instance_deserialized = PlanParameterDefinitionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_plan_schema_dto.py b/src/visier_api_analytic_model/test/test_plan_schema_dto.py deleted file mode 100644 index a8d753affd..0000000000 --- a/src/visier_api_analytic_model/test/test_plan_schema_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.plan_schema_dto import PlanSchemaDTO - -class TestPlanSchemaDTO(unittest.TestCase): - """PlanSchemaDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanSchemaDTO: - """Test PlanSchemaDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanSchemaDTO( - plan_items = [ - visier_api_analytic_model.models.plan_item_dto.PlanItemDTO( - data_type = 'unknown', - display_name = '', - id = '', ) - ], - plan_segment_level_members = [ - visier_api_analytic_model.models.plan_segment_level_member_list_dto.PlanSegmentLevelMemberListDTO( - members = [ - visier_api_analytic_model.models.plan_segment_level_member_dto.PlanSegmentLevelMemberDTO( - display_name = '', - id = '', - is_custom = True, - parent_id = '', ) - ], - segment_id = '', - segment_level_id = '', ) - ], - plan_segment_levels = [ - visier_api_analytic_model.models.plan_segment_level_dto.PlanSegmentLevelDTO( - display_name = '', - id = '', - order = 56, - segment_display_name = '', - segment_id = '', ) - ], - time_periods = [ - visier_api_analytic_model.models.plan_time_period_dto.PlanTimePeriodDTO( - date = '', - display_name = '', ) - ] - ) - else: - return PlanSchemaDTO( - ) - - def testPlanSchemaDTO(self): - """Test PlanSchemaDTO""" - def validate_instance(instance): - PlanSchemaDTO.model_validate(inst_req_only) - instance_deserialized = PlanSchemaDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_plan_segment_level_dto.py b/src/visier_api_analytic_model/test/test_plan_segment_level_dto.py deleted file mode 100644 index 08a8978899..0000000000 --- a/src/visier_api_analytic_model/test/test_plan_segment_level_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.plan_segment_level_dto import PlanSegmentLevelDTO - -class TestPlanSegmentLevelDTO(unittest.TestCase): - """PlanSegmentLevelDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanSegmentLevelDTO: - """Test PlanSegmentLevelDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanSegmentLevelDTO( - display_name = '', - id = '', - order = 56, - segment_display_name = '', - segment_id = '' - ) - else: - return PlanSegmentLevelDTO( - ) - - def testPlanSegmentLevelDTO(self): - """Test PlanSegmentLevelDTO""" - def validate_instance(instance): - PlanSegmentLevelDTO.model_validate(inst_req_only) - instance_deserialized = PlanSegmentLevelDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_plan_segment_level_member_dto.py b/src/visier_api_analytic_model/test/test_plan_segment_level_member_dto.py deleted file mode 100644 index b8475d04b6..0000000000 --- a/src/visier_api_analytic_model/test/test_plan_segment_level_member_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.plan_segment_level_member_dto import PlanSegmentLevelMemberDTO - -class TestPlanSegmentLevelMemberDTO(unittest.TestCase): - """PlanSegmentLevelMemberDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanSegmentLevelMemberDTO: - """Test PlanSegmentLevelMemberDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanSegmentLevelMemberDTO( - display_name = '', - id = '', - is_custom = True, - parent_id = '' - ) - else: - return PlanSegmentLevelMemberDTO( - ) - - def testPlanSegmentLevelMemberDTO(self): - """Test PlanSegmentLevelMemberDTO""" - def validate_instance(instance): - PlanSegmentLevelMemberDTO.model_validate(inst_req_only) - instance_deserialized = PlanSegmentLevelMemberDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_plan_segment_level_member_list_dto.py b/src/visier_api_analytic_model/test/test_plan_segment_level_member_list_dto.py deleted file mode 100644 index 3081aace5f..0000000000 --- a/src/visier_api_analytic_model/test/test_plan_segment_level_member_list_dto.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.plan_segment_level_member_list_dto import PlanSegmentLevelMemberListDTO - -class TestPlanSegmentLevelMemberListDTO(unittest.TestCase): - """PlanSegmentLevelMemberListDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanSegmentLevelMemberListDTO: - """Test PlanSegmentLevelMemberListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanSegmentLevelMemberListDTO( - members = [ - visier_api_analytic_model.models.plan_segment_level_member_dto.PlanSegmentLevelMemberDTO( - display_name = '', - id = '', - is_custom = True, - parent_id = '', ) - ], - segment_id = '', - segment_level_id = '' - ) - else: - return PlanSegmentLevelMemberListDTO( - ) - - def testPlanSegmentLevelMemberListDTO(self): - """Test PlanSegmentLevelMemberListDTO""" - def validate_instance(instance): - PlanSegmentLevelMemberListDTO.model_validate(inst_req_only) - instance_deserialized = PlanSegmentLevelMemberListDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_plan_time_period_dto.py b/src/visier_api_analytic_model/test/test_plan_time_period_dto.py deleted file mode 100644 index 3ac7c0f6b1..0000000000 --- a/src/visier_api_analytic_model/test/test_plan_time_period_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.plan_time_period_dto import PlanTimePeriodDTO - -class TestPlanTimePeriodDTO(unittest.TestCase): - """PlanTimePeriodDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanTimePeriodDTO: - """Test PlanTimePeriodDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanTimePeriodDTO( - var_date = '', - display_name = '' - ) - else: - return PlanTimePeriodDTO( - ) - - def testPlanTimePeriodDTO(self): - """Test PlanTimePeriodDTO""" - def validate_instance(instance): - PlanTimePeriodDTO.model_validate(inst_req_only) - instance_deserialized = PlanTimePeriodDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_plan_with_schema_dto.py b/src/visier_api_analytic_model/test/test_plan_with_schema_dto.py deleted file mode 100644 index 7d5e7b0005..0000000000 --- a/src/visier_api_analytic_model/test/test_plan_with_schema_dto.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.plan_with_schema_dto import PlanWithSchemaDTO - -class TestPlanWithSchemaDTO(unittest.TestCase): - """PlanWithSchemaDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanWithSchemaDTO: - """Test PlanWithSchemaDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanWithSchemaDTO( - errors = [ - visier_api_analytic_model.models.plan_data_load_error_dto.PlanDataLoadErrorDTO( - error_message = '', - rci = '', - row = 56, ) - ], - plan = visier_api_analytic_model.models.plan_info_dto.PlanInfoDTO( - currency_code = '', - display_name = '', - model_id = '', - parent_plan_uuid = '', - scenarios = [ - visier_api_analytic_model.models.scenario_info_dto.ScenarioInfoDTO( - display_name = '', - uuid = '', - versioned_scenario_id = '', ) - ], - uuid = '', ), - var_schema = visier_api_analytic_model.models.plan_schema_dto.PlanSchemaDTO( - plan_items = [ - visier_api_analytic_model.models.plan_item_dto.PlanItemDTO( - data_type = 'unknown', - display_name = '', - id = '', ) - ], - plan_segment_level_members = [ - visier_api_analytic_model.models.plan_segment_level_member_list_dto.PlanSegmentLevelMemberListDTO( - members = [ - visier_api_analytic_model.models.plan_segment_level_member_dto.PlanSegmentLevelMemberDTO( - display_name = '', - id = '', - is_custom = True, - parent_id = '', ) - ], - segment_id = '', - segment_level_id = '', ) - ], - plan_segment_levels = [ - visier_api_analytic_model.models.plan_segment_level_dto.PlanSegmentLevelDTO( - display_name = '', - id = '', - order = 56, - segment_display_name = '', - segment_id = '', ) - ], - time_periods = [ - visier_api_analytic_model.models.plan_time_period_dto.PlanTimePeriodDTO( - date = '', - display_name = '', ) - ], ) - ) - else: - return PlanWithSchemaDTO( - ) - - def testPlanWithSchemaDTO(self): - """Test PlanWithSchemaDTO""" - def validate_instance(instance): - PlanWithSchemaDTO.model_validate(inst_req_only) - instance_deserialized = PlanWithSchemaDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_concept_filter_context_dto.py b/src/visier_api_analytic_model/test/test_planning_concept_filter_context_dto.py deleted file mode 100644 index 55b0fdbdae..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_concept_filter_context_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.planning_concept_filter_context_dto import PlanningConceptFilterContextDTO - -class TestPlanningConceptFilterContextDTO(unittest.TestCase): - """PlanningConceptFilterContextDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanningConceptFilterContextDTO: - """Test PlanningConceptFilterContextDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanningConceptFilterContextDTO( - name = '' - ) - else: - return PlanningConceptFilterContextDTO( - ) - - def testPlanningConceptFilterContextDTO(self): - """Test PlanningConceptFilterContextDTO""" - def validate_instance(instance): - PlanningConceptFilterContextDTO.model_validate(inst_req_only) - instance_deserialized = PlanningConceptFilterContextDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_hierarchy_filter_context_dto.py b/src/visier_api_analytic_model/test/test_planning_hierarchy_filter_context_dto.py deleted file mode 100644 index c0ccbc79bc..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_hierarchy_filter_context_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.planning_hierarchy_filter_context_dto import PlanningHierarchyFilterContextDTO - -class TestPlanningHierarchyFilterContextDTO(unittest.TestCase): - """PlanningHierarchyFilterContextDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanningHierarchyFilterContextDTO: - """Test PlanningHierarchyFilterContextDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanningHierarchyFilterContextDTO( - excluded_members = [ - '' - ], - hierarchy_name = '', - included_members = [ - '' - ] - ) - else: - return PlanningHierarchyFilterContextDTO( - ) - - def testPlanningHierarchyFilterContextDTO(self): - """Test PlanningHierarchyFilterContextDTO""" - def validate_instance(instance): - PlanningHierarchyFilterContextDTO.model_validate(inst_req_only) - instance_deserialized = PlanningHierarchyFilterContextDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_model_dto.py b/src/visier_api_analytic_model/test/test_planning_model_dto.py deleted file mode 100644 index 7a99144726..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_model_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.planning_model_dto import PlanningModelDTO - -class TestPlanningModelDTO(unittest.TestCase): - """PlanningModelDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanningModelDTO: - """Test PlanningModelDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanningModelDTO( - description = '', - display_name = '', - id = '' - ) - else: - return PlanningModelDTO( - ) - - def testPlanningModelDTO(self): - """Test PlanningModelDTO""" - def validate_instance(instance): - PlanningModelDTO.model_validate(inst_req_only) - instance_deserialized = PlanningModelDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_models_dto.py b/src/visier_api_analytic_model/test/test_planning_models_dto.py deleted file mode 100644 index 2a669676e3..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_models_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.planning_models_dto import PlanningModelsDTO - -class TestPlanningModelsDTO(unittest.TestCase): - """PlanningModelsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanningModelsDTO: - """Test PlanningModelsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanningModelsDTO( - models = [ - visier_api_analytic_model.models.planning_model_dto.PlanningModelDTO( - description = '', - display_name = '', - id = '', ) - ] - ) - else: - return PlanningModelsDTO( - ) - - def testPlanningModelsDTO(self): - """Test PlanningModelsDTO""" - def validate_instance(instance): - PlanningModelsDTO.model_validate(inst_req_only) - instance_deserialized = PlanningModelsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_plan_context_dto.py b/src/visier_api_analytic_model/test/test_planning_plan_context_dto.py deleted file mode 100644 index b78ccd569e..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_plan_context_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.planning_plan_context_dto import PlanningPlanContextDTO - -class TestPlanningPlanContextDTO(unittest.TestCase): - """PlanningPlanContextDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanningPlanContextDTO: - """Test PlanningPlanContextDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanningPlanContextDTO( - concept_filter_context = visier_api_analytic_model.models.planning_concept_filter_context_dto.PlanningConceptFilterContextDTO( - name = '', ), - hierarchy_filter_context = visier_api_analytic_model.models.planning_hierarchy_filter_context_dto.PlanningHierarchyFilterContextDTO( - excluded_members = [ - '' - ], - hierarchy_name = '', - included_members = [ - '' - ], ) - ) - else: - return PlanningPlanContextDTO( - ) - - def testPlanningPlanContextDTO(self): - """Test PlanningPlanContextDTO""" - def validate_instance(instance): - PlanningPlanContextDTO.model_validate(inst_req_only) - instance_deserialized = PlanningPlanContextDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_plan_dto.py b/src/visier_api_analytic_model/test/test_planning_plan_dto.py deleted file mode 100644 index 2c198d7051..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_plan_dto.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.planning_plan_dto import PlanningPlanDTO - -class TestPlanningPlanDTO(unittest.TestCase): - """PlanningPlanDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanningPlanDTO: - """Test PlanningPlanDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanningPlanDTO( - default_contexts = [ - visier_api_analytic_model.models.planning_plan_context_dto.PlanningPlanContextDTO( - concept_filter_context = None, - hierarchy_filter_context = None, ) - ], - id = '', - name = '', - plan_dimension_ids = [ - '' - ], - scenarios = [ - visier_api_analytic_model.models.scenario_or_snapshot_dto.ScenarioOrSnapshotDTO( - display_name = '', - id = '', ) - ], - snapshots = [ - visier_api_analytic_model.models.scenario_or_snapshot_dto.ScenarioOrSnapshotDTO( - display_name = '', - id = '', ) - ], - subject_id = '' - ) - else: - return PlanningPlanDTO( - ) - - def testPlanningPlanDTO(self): - """Test PlanningPlanDTO""" - def validate_instance(instance): - PlanningPlanDTO.model_validate(inst_req_only) - instance_deserialized = PlanningPlanDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_plans_dto.py b/src/visier_api_analytic_model/test/test_planning_plans_dto.py deleted file mode 100644 index c97915c2e2..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_plans_dto.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.planning_plans_dto import PlanningPlansDTO - -class TestPlanningPlansDTO(unittest.TestCase): - """PlanningPlansDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanningPlansDTO: - """Test PlanningPlansDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanningPlansDTO( - plans = [ - visier_api_analytic_model.models.planning_plan_dto.PlanningPlanDTO( - default_contexts = [ - visier_api_analytic_model.models.planning_plan_context_dto.PlanningPlanContextDTO( - concept_filter_context = None, - hierarchy_filter_context = None, ) - ], - id = '', - name = '', - plan_dimension_ids = [ - '' - ], - scenarios = [ - visier_api_analytic_model.models.scenario_or_snapshot_dto.ScenarioOrSnapshotDTO( - display_name = '', - id = '', ) - ], - snapshots = [ - visier_api_analytic_model.models.scenario_or_snapshot_dto.ScenarioOrSnapshotDTO( - display_name = '', - id = '', ) - ], - subject_id = '', ) - ] - ) - else: - return PlanningPlansDTO( - ) - - def testPlanningPlansDTO(self): - """Test PlanningPlansDTO""" - def validate_instance(instance): - PlanningPlansDTO.model_validate(inst_req_only) - instance_deserialized = PlanningPlansDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_transfers_get_plan_list_response_dto.py b/src/visier_api_analytic_model/test/test_planning_transfers_get_plan_list_response_dto.py new file mode 100644 index 0000000000..0e05c45b60 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_transfers_get_plan_list_response_dto.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.planning_transfers_get_plan_list_response_dto import PlanningTransfersGetPlanListResponseDTO + +class TestPlanningTransfersGetPlanListResponseDTO(unittest.TestCase): + """PlanningTransfersGetPlanListResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningTransfersGetPlanListResponseDTO: + """Test PlanningTransfersGetPlanListResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningTransfersGetPlanListResponseDTO( + page = 56, + plans = [ + visier_api_analytic_model.models.planning/transfers/plan_info_dto.planning.transfers.PlanInfoDTO( + currency_code = '', + display_name = '', + model_id = '', + parent_plan_uuid = '', + scenarios = [ + visier_api_analytic_model.models.planning/transfers/scenario_info_dto.planning.transfers.ScenarioInfoDTO( + display_name = '', + uuid = '', + versioned_scenario_id = '', ) + ], + uuid = '', ) + ] + ) + else: + return PlanningTransfersGetPlanListResponseDTO( + ) + + def testPlanningTransfersGetPlanListResponseDTO(self): + """Test PlanningTransfersGetPlanListResponseDTO""" + def validate_instance(instance): + PlanningTransfersGetPlanListResponseDTO.model_validate(inst_req_only) + instance_deserialized = PlanningTransfersGetPlanListResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_transfers_plan_data_load_error_dto.py b/src/visier_api_analytic_model/test/test_planning_transfers_plan_data_load_error_dto.py new file mode 100644 index 0000000000..d7ee0d7eb6 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_transfers_plan_data_load_error_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.planning_transfers_plan_data_load_error_dto import PlanningTransfersPlanDataLoadErrorDTO + +class TestPlanningTransfersPlanDataLoadErrorDTO(unittest.TestCase): + """PlanningTransfersPlanDataLoadErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningTransfersPlanDataLoadErrorDTO: + """Test PlanningTransfersPlanDataLoadErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningTransfersPlanDataLoadErrorDTO( + error_message = '', + rci = '', + row = 56 + ) + else: + return PlanningTransfersPlanDataLoadErrorDTO( + ) + + def testPlanningTransfersPlanDataLoadErrorDTO(self): + """Test PlanningTransfersPlanDataLoadErrorDTO""" + def validate_instance(instance): + PlanningTransfersPlanDataLoadErrorDTO.model_validate(inst_req_only) + instance_deserialized = PlanningTransfersPlanDataLoadErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_transfers_plan_info_dto.py b/src/visier_api_analytic_model/test/test_planning_transfers_plan_info_dto.py new file mode 100644 index 0000000000..0d71a7d856 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_transfers_plan_info_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.planning_transfers_plan_info_dto import PlanningTransfersPlanInfoDTO + +class TestPlanningTransfersPlanInfoDTO(unittest.TestCase): + """PlanningTransfersPlanInfoDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningTransfersPlanInfoDTO: + """Test PlanningTransfersPlanInfoDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningTransfersPlanInfoDTO( + currency_code = '', + display_name = '', + model_id = '', + parent_plan_uuid = '', + scenarios = [ + visier_api_analytic_model.models.planning/transfers/scenario_info_dto.planning.transfers.ScenarioInfoDTO( + display_name = '', + uuid = '', + versioned_scenario_id = '', ) + ], + uuid = '' + ) + else: + return PlanningTransfersPlanInfoDTO( + ) + + def testPlanningTransfersPlanInfoDTO(self): + """Test PlanningTransfersPlanInfoDTO""" + def validate_instance(instance): + PlanningTransfersPlanInfoDTO.model_validate(inst_req_only) + instance_deserialized = PlanningTransfersPlanInfoDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_transfers_plan_item_dto.py b/src/visier_api_analytic_model/test/test_planning_transfers_plan_item_dto.py new file mode 100644 index 0000000000..b9010035b9 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_transfers_plan_item_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.planning_transfers_plan_item_dto import PlanningTransfersPlanItemDTO + +class TestPlanningTransfersPlanItemDTO(unittest.TestCase): + """PlanningTransfersPlanItemDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningTransfersPlanItemDTO: + """Test PlanningTransfersPlanItemDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningTransfersPlanItemDTO( + data_type = 'unknown', + display_name = '', + id = '' + ) + else: + return PlanningTransfersPlanItemDTO( + ) + + def testPlanningTransfersPlanItemDTO(self): + """Test PlanningTransfersPlanItemDTO""" + def validate_instance(instance): + PlanningTransfersPlanItemDTO.model_validate(inst_req_only) + instance_deserialized = PlanningTransfersPlanItemDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_transfers_plan_schema_dto.py b/src/visier_api_analytic_model/test/test_planning_transfers_plan_schema_dto.py new file mode 100644 index 0000000000..e4f755c2b4 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_transfers_plan_schema_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.planning_transfers_plan_schema_dto import PlanningTransfersPlanSchemaDTO + +class TestPlanningTransfersPlanSchemaDTO(unittest.TestCase): + """PlanningTransfersPlanSchemaDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningTransfersPlanSchemaDTO: + """Test PlanningTransfersPlanSchemaDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningTransfersPlanSchemaDTO( + plan_items = [ + visier_api_analytic_model.models.planning/transfers/plan_item_dto.planning.transfers.PlanItemDTO( + data_type = 'unknown', + display_name = '', + id = '', ) + ], + plan_segment_level_members = [ + visier_api_analytic_model.models.planning/transfers/plan_segment_level_member_list_dto.planning.transfers.PlanSegmentLevelMemberListDTO( + members = [ + visier_api_analytic_model.models.planning/transfers/plan_segment_level_member_dto.planning.transfers.PlanSegmentLevelMemberDTO( + display_name = '', + id = '', + is_custom = True, + parent_id = '', ) + ], + segment_id = '', + segment_level_id = '', ) + ], + plan_segment_levels = [ + visier_api_analytic_model.models.planning/transfers/plan_segment_level_dto.planning.transfers.PlanSegmentLevelDTO( + display_name = '', + id = '', + order = 56, + segment_display_name = '', + segment_id = '', ) + ], + time_periods = [ + visier_api_analytic_model.models.planning/transfers/plan_time_period_dto.planning.transfers.PlanTimePeriodDTO( + date = '', + display_name = '', ) + ] + ) + else: + return PlanningTransfersPlanSchemaDTO( + ) + + def testPlanningTransfersPlanSchemaDTO(self): + """Test PlanningTransfersPlanSchemaDTO""" + def validate_instance(instance): + PlanningTransfersPlanSchemaDTO.model_validate(inst_req_only) + instance_deserialized = PlanningTransfersPlanSchemaDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_transfers_plan_segment_level_dto.py b/src/visier_api_analytic_model/test/test_planning_transfers_plan_segment_level_dto.py new file mode 100644 index 0000000000..e4e9f0c13e --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_transfers_plan_segment_level_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.planning_transfers_plan_segment_level_dto import PlanningTransfersPlanSegmentLevelDTO + +class TestPlanningTransfersPlanSegmentLevelDTO(unittest.TestCase): + """PlanningTransfersPlanSegmentLevelDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningTransfersPlanSegmentLevelDTO: + """Test PlanningTransfersPlanSegmentLevelDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningTransfersPlanSegmentLevelDTO( + display_name = '', + id = '', + order = 56, + segment_display_name = '', + segment_id = '' + ) + else: + return PlanningTransfersPlanSegmentLevelDTO( + ) + + def testPlanningTransfersPlanSegmentLevelDTO(self): + """Test PlanningTransfersPlanSegmentLevelDTO""" + def validate_instance(instance): + PlanningTransfersPlanSegmentLevelDTO.model_validate(inst_req_only) + instance_deserialized = PlanningTransfersPlanSegmentLevelDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_transfers_plan_segment_level_member_dto.py b/src/visier_api_analytic_model/test/test_planning_transfers_plan_segment_level_member_dto.py new file mode 100644 index 0000000000..27fc746555 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_transfers_plan_segment_level_member_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.planning_transfers_plan_segment_level_member_dto import PlanningTransfersPlanSegmentLevelMemberDTO + +class TestPlanningTransfersPlanSegmentLevelMemberDTO(unittest.TestCase): + """PlanningTransfersPlanSegmentLevelMemberDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningTransfersPlanSegmentLevelMemberDTO: + """Test PlanningTransfersPlanSegmentLevelMemberDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningTransfersPlanSegmentLevelMemberDTO( + display_name = '', + id = '', + is_custom = True, + parent_id = '' + ) + else: + return PlanningTransfersPlanSegmentLevelMemberDTO( + ) + + def testPlanningTransfersPlanSegmentLevelMemberDTO(self): + """Test PlanningTransfersPlanSegmentLevelMemberDTO""" + def validate_instance(instance): + PlanningTransfersPlanSegmentLevelMemberDTO.model_validate(inst_req_only) + instance_deserialized = PlanningTransfersPlanSegmentLevelMemberDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_transfers_plan_segment_level_member_list_dto.py b/src/visier_api_analytic_model/test/test_planning_transfers_plan_segment_level_member_list_dto.py new file mode 100644 index 0000000000..65a4fff510 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_transfers_plan_segment_level_member_list_dto.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.planning_transfers_plan_segment_level_member_list_dto import PlanningTransfersPlanSegmentLevelMemberListDTO + +class TestPlanningTransfersPlanSegmentLevelMemberListDTO(unittest.TestCase): + """PlanningTransfersPlanSegmentLevelMemberListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningTransfersPlanSegmentLevelMemberListDTO: + """Test PlanningTransfersPlanSegmentLevelMemberListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningTransfersPlanSegmentLevelMemberListDTO( + members = [ + visier_api_analytic_model.models.planning/transfers/plan_segment_level_member_dto.planning.transfers.PlanSegmentLevelMemberDTO( + display_name = '', + id = '', + is_custom = True, + parent_id = '', ) + ], + segment_id = '', + segment_level_id = '' + ) + else: + return PlanningTransfersPlanSegmentLevelMemberListDTO( + ) + + def testPlanningTransfersPlanSegmentLevelMemberListDTO(self): + """Test PlanningTransfersPlanSegmentLevelMemberListDTO""" + def validate_instance(instance): + PlanningTransfersPlanSegmentLevelMemberListDTO.model_validate(inst_req_only) + instance_deserialized = PlanningTransfersPlanSegmentLevelMemberListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_transfers_plan_time_period_dto.py b/src/visier_api_analytic_model/test/test_planning_transfers_plan_time_period_dto.py new file mode 100644 index 0000000000..e7364aef80 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_transfers_plan_time_period_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.planning_transfers_plan_time_period_dto import PlanningTransfersPlanTimePeriodDTO + +class TestPlanningTransfersPlanTimePeriodDTO(unittest.TestCase): + """PlanningTransfersPlanTimePeriodDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningTransfersPlanTimePeriodDTO: + """Test PlanningTransfersPlanTimePeriodDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningTransfersPlanTimePeriodDTO( + var_date = '', + display_name = '' + ) + else: + return PlanningTransfersPlanTimePeriodDTO( + ) + + def testPlanningTransfersPlanTimePeriodDTO(self): + """Test PlanningTransfersPlanTimePeriodDTO""" + def validate_instance(instance): + PlanningTransfersPlanTimePeriodDTO.model_validate(inst_req_only) + instance_deserialized = PlanningTransfersPlanTimePeriodDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_transfers_plan_with_schema_dto.py b/src/visier_api_analytic_model/test/test_planning_transfers_plan_with_schema_dto.py new file mode 100644 index 0000000000..ed825b61b5 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_transfers_plan_with_schema_dto.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.planning_transfers_plan_with_schema_dto import PlanningTransfersPlanWithSchemaDTO + +class TestPlanningTransfersPlanWithSchemaDTO(unittest.TestCase): + """PlanningTransfersPlanWithSchemaDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningTransfersPlanWithSchemaDTO: + """Test PlanningTransfersPlanWithSchemaDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningTransfersPlanWithSchemaDTO( + errors = [ + visier_api_analytic_model.models.planning/transfers/plan_data_load_error_dto.planning.transfers.PlanDataLoadErrorDTO( + error_message = '', + rci = '', + row = 56, ) + ], + plan = visier_api_analytic_model.models.planning/transfers/plan_info_dto.planning.transfers.PlanInfoDTO( + currency_code = '', + display_name = '', + model_id = '', + parent_plan_uuid = '', + scenarios = [ + visier_api_analytic_model.models.planning/transfers/scenario_info_dto.planning.transfers.ScenarioInfoDTO( + display_name = '', + uuid = '', + versioned_scenario_id = '', ) + ], + uuid = '', ), + var_schema = visier_api_analytic_model.models.planning/transfers/plan_schema_dto.planning.transfers.PlanSchemaDTO( + plan_items = [ + visier_api_analytic_model.models.planning/transfers/plan_item_dto.planning.transfers.PlanItemDTO( + data_type = 'unknown', + display_name = '', + id = '', ) + ], + plan_segment_level_members = [ + visier_api_analytic_model.models.planning/transfers/plan_segment_level_member_list_dto.planning.transfers.PlanSegmentLevelMemberListDTO( + members = [ + visier_api_analytic_model.models.planning/transfers/plan_segment_level_member_dto.planning.transfers.PlanSegmentLevelMemberDTO( + display_name = '', + id = '', + is_custom = True, + parent_id = '', ) + ], + segment_id = '', + segment_level_id = '', ) + ], + plan_segment_levels = [ + visier_api_analytic_model.models.planning/transfers/plan_segment_level_dto.planning.transfers.PlanSegmentLevelDTO( + display_name = '', + id = '', + order = 56, + segment_display_name = '', + segment_id = '', ) + ], + time_periods = [ + visier_api_analytic_model.models.planning/transfers/plan_time_period_dto.planning.transfers.PlanTimePeriodDTO( + date = '', + display_name = '', ) + ], ) + ) + else: + return PlanningTransfersPlanWithSchemaDTO( + ) + + def testPlanningTransfersPlanWithSchemaDTO(self): + """Test PlanningTransfersPlanWithSchemaDTO""" + def validate_instance(instance): + PlanningTransfersPlanWithSchemaDTO.model_validate(inst_req_only) + instance_deserialized = PlanningTransfersPlanWithSchemaDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_planning_transfers_scenario_info_dto.py b/src/visier_api_analytic_model/test/test_planning_transfers_scenario_info_dto.py new file mode 100644 index 0000000000..0b43ff735c --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_transfers_scenario_info_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.planning_transfers_scenario_info_dto import PlanningTransfersScenarioInfoDTO + +class TestPlanningTransfersScenarioInfoDTO(unittest.TestCase): + """PlanningTransfersScenarioInfoDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningTransfersScenarioInfoDTO: + """Test PlanningTransfersScenarioInfoDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningTransfersScenarioInfoDTO( + display_name = '', + uuid = '', + versioned_scenario_id = '' + ) + else: + return PlanningTransfersScenarioInfoDTO( + ) + + def testPlanningTransfersScenarioInfoDTO(self): + """Test PlanningTransfersScenarioInfoDTO""" + def validate_instance(instance): + PlanningTransfersScenarioInfoDTO.model_validate(inst_req_only) + instance_deserialized = PlanningTransfersScenarioInfoDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_population_configuration_dto.py b/src/visier_api_analytic_model/test/test_population_configuration_dto.py deleted file mode 100644 index 98a7a4d294..0000000000 --- a/src/visier_api_analytic_model/test/test_population_configuration_dto.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.population_configuration_dto import PopulationConfigurationDTO - -class TestPopulationConfigurationDTO(unittest.TestCase): - """PopulationConfigurationDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PopulationConfigurationDTO: - """Test PopulationConfigurationDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PopulationConfigurationDTO( - change_history_properties = [ - visier_api_analytic_model.models.property_reference_dto.PropertyReferenceDTO( - name = '', - qualifying_path = '', ) - ], - distinguishing_properties = [ - visier_api_analytic_model.models.property_reference_dto.PropertyReferenceDTO( - name = '', - qualifying_path = '', ) - ], - grouping_dimensions = [ - visier_api_analytic_model.models.dimension_reference_dto.DimensionReferenceDTO( - name = '', - qualifying_path = '', ) - ] - ) - else: - return PopulationConfigurationDTO( - ) - - def testPopulationConfigurationDTO(self): - """Test PopulationConfigurationDTO""" - def validate_instance(instance): - PopulationConfigurationDTO.model_validate(inst_req_only) - instance_deserialized = PopulationConfigurationDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_prediction_dto.py b/src/visier_api_analytic_model/test/test_prediction_dto.py deleted file mode 100644 index cadd50a960..0000000000 --- a/src/visier_api_analytic_model/test/test_prediction_dto.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.prediction_dto import PredictionDTO - -class TestPredictionDTO(unittest.TestCase): - """PredictionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PredictionDTO: - """Test PredictionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PredictionDTO( - data_end_date = '', - data_start_date = '', - description = '', - display_name = '', - event = '', - event_filter = '', - factor_concepts = [ - '' - ], - factor_dimensions = [ - '' - ], - factor_properties = [ - '' - ], - factors_name = '', - id = '', - is_multi_tenant = True, - label_property = '', - minimum_training_months = '', - score_name = '', - subject = '', - subject_filter = '', - subject_key = '', - subject_parent_key = '' - ) - else: - return PredictionDTO( - ) - - def testPredictionDTO(self): - """Test PredictionDTO""" - def validate_instance(instance): - PredictionDTO.model_validate(inst_req_only) - instance_deserialized = PredictionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_predictions_dto.py b/src/visier_api_analytic_model/test/test_predictions_dto.py deleted file mode 100644 index 1accb670c8..0000000000 --- a/src/visier_api_analytic_model/test/test_predictions_dto.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.predictions_dto import PredictionsDTO - -class TestPredictionsDTO(unittest.TestCase): - """PredictionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PredictionsDTO: - """Test PredictionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PredictionsDTO( - predictions = [ - visier_api_analytic_model.models.prediction_dto.PredictionDTO( - data_end_date = '', - data_start_date = '', - description = '', - display_name = '', - event = '', - event_filter = '', - factor_concepts = [ - '' - ], - factor_dimensions = [ - '' - ], - factor_properties = [ - '' - ], - factors_name = '', - id = '', - is_multi_tenant = True, - label_property = '', - minimum_training_months = '', - score_name = '', - subject = '', - subject_filter = '', - subject_key = '', - subject_parent_key = '', ) - ] - ) - else: - return PredictionsDTO( - ) - - def testPredictionsDTO(self): - """Test PredictionsDTO""" - def validate_instance(instance): - PredictionsDTO.model_validate(inst_req_only) - instance_deserialized = PredictionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_properties_change_definitions_dto.py b/src/visier_api_analytic_model/test/test_properties_change_definitions_dto.py deleted file mode 100644 index 93868fcc84..0000000000 --- a/src/visier_api_analytic_model/test/test_properties_change_definitions_dto.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.properties_change_definitions_dto import PropertiesChangeDefinitionsDTO - -class TestPropertiesChangeDefinitionsDTO(unittest.TestCase): - """PropertiesChangeDefinitionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertiesChangeDefinitionsDTO: - """Test PropertiesChangeDefinitionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertiesChangeDefinitionsDTO( - properties_by_tenant = [ - visier_api_analytic_model.models.property_change_definitions_by_tenant_dto.PropertyChangeDefinitionsByTenantDTO( - project_id = '', - properties = [ - visier_api_analytic_model.models.property_change_definition_dto.PropertyChangeDefinitionDTO( - description = '', - designer_notes = '', - display_name = '', - explanation = '', - id = '', - include_with_vee = True, - short_display_name = '', - tags = None, - type = None, ) - ], - tenant_code = '', ) - ] - ) - else: - return PropertiesChangeDefinitionsDTO( - ) - - def testPropertiesChangeDefinitionsDTO(self): - """Test PropertiesChangeDefinitionsDTO""" - def validate_instance(instance): - PropertiesChangeDefinitionsDTO.model_validate(inst_req_only) - instance_deserialized = PropertiesChangeDefinitionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_properties_delete_definitions_dto.py b/src/visier_api_analytic_model/test/test_properties_delete_definitions_dto.py deleted file mode 100644 index 5b16bb420e..0000000000 --- a/src/visier_api_analytic_model/test/test_properties_delete_definitions_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.properties_delete_definitions_dto import PropertiesDeleteDefinitionsDTO - -class TestPropertiesDeleteDefinitionsDTO(unittest.TestCase): - """PropertiesDeleteDefinitionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertiesDeleteDefinitionsDTO: - """Test PropertiesDeleteDefinitionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertiesDeleteDefinitionsDTO( - delete_derived_properties = True, - ignore_property_references = True, - properties_by_tenant = [ - visier_api_analytic_model.models.property_delete_definitions_by_tenant_dto.PropertyDeleteDefinitionsByTenantDTO( - project_id = '', - property_ids = [ - '' - ], - tenant_code = '', ) - ] - ) - else: - return PropertiesDeleteDefinitionsDTO( - ) - - def testPropertiesDeleteDefinitionsDTO(self): - """Test PropertiesDeleteDefinitionsDTO""" - def validate_instance(instance): - PropertiesDeleteDefinitionsDTO.model_validate(inst_req_only) - instance_deserialized = PropertiesDeleteDefinitionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_properties_dto.py b/src/visier_api_analytic_model/test/test_properties_dto.py deleted file mode 100644 index ea6a958b10..0000000000 --- a/src/visier_api_analytic_model/test/test_properties_dto.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.properties_dto import PropertiesDTO - -class TestPropertiesDTO(unittest.TestCase): - """PropertiesDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertiesDTO: - """Test PropertiesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertiesDTO( - properties = [ - visier_api_analytic_model.models.property_dto.PropertyDTO( - data_type = '', - description = '', - display_name = '', - explanation = '', - id = '', - parameters = [ - visier_api_analytic_model.models.parameter_definition_dto.ParameterDefinitionDTO( - aggregation_type_parameter = None, - member_parameter = None, - numeric_parameter = None, - plan_parameter = None, ) - ], - primitive_data_type = '', - tags = [ - visier_api_analytic_model.models.tag_map_element_dto.TagMapElementDTO( - display_name = '', - id = '', ) - ], ) - ] - ) - else: - return PropertiesDTO( - ) - - def testPropertiesDTO(self): - """Test PropertiesDTO""" - def validate_instance(instance): - PropertiesDTO.model_validate(inst_req_only) - instance_deserialized = PropertiesDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_property_bulk_delete_response_dto.py b/src/visier_api_analytic_model/test/test_property_bulk_delete_response_dto.py deleted file mode 100644 index a6c1ff7de0..0000000000 --- a/src/visier_api_analytic_model/test/test_property_bulk_delete_response_dto.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.property_bulk_delete_response_dto import PropertyBulkDeleteResponseDTO - -class TestPropertyBulkDeleteResponseDTO(unittest.TestCase): - """PropertyBulkDeleteResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertyBulkDeleteResponseDTO: - """Test PropertyBulkDeleteResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertyBulkDeleteResponseDTO( - failures = [ - visier_api_analytic_model.models.property_delete_failure_dto.PropertyDeleteFailureDTO( - derived_dependents_to_delete = [ - visier_api_analytic_model.models.dependent_dto.DependentDTO( - display_name = '', - id = '', - object_type = '', ) - ], - display_name = '', - id = '', - message = '', - project_id = '', - rci = '', - reference_dependents_to_ignore = [ - visier_api_analytic_model.models.dependent_dto.DependentDTO( - display_name = '', - id = '', - object_type = '', ) - ], - tenant_code = '', ) - ], - successes = [ - visier_api_analytic_model.models.property_delete_success_dto.PropertyDeleteSuccessDTO( - derived_dependents_deleted = [ - visier_api_analytic_model.models.dependent_dto.DependentDTO( - display_name = '', - id = '', - object_type = '', ) - ], - display_name = '', - id = '', - project_id = '', - reference_dependents_ignored = [ - visier_api_analytic_model.models.dependent_dto.DependentDTO( - display_name = '', - id = '', - object_type = '', ) - ], - tenant_code = '', ) - ] - ) - else: - return PropertyBulkDeleteResponseDTO( - ) - - def testPropertyBulkDeleteResponseDTO(self): - """Test PropertyBulkDeleteResponseDTO""" - def validate_instance(instance): - PropertyBulkDeleteResponseDTO.model_validate(inst_req_only) - instance_deserialized = PropertyBulkDeleteResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_property_change_definition_dto.py b/src/visier_api_analytic_model/test/test_property_change_definition_dto.py deleted file mode 100644 index cbb1c51361..0000000000 --- a/src/visier_api_analytic_model/test/test_property_change_definition_dto.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.property_change_definition_dto import PropertyChangeDefinitionDTO - -class TestPropertyChangeDefinitionDTO(unittest.TestCase): - """PropertyChangeDefinitionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertyChangeDefinitionDTO: - """Test PropertyChangeDefinitionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertyChangeDefinitionDTO( - description = '', - designer_notes = '', - display_name = '', - explanation = '', - id = '', - include_with_vee = True, - short_display_name = '', - tags = visier_api_analytic_model.models.tags_dto.TagsDTO( - ids = [ - '' - ], ), - type = visier_api_analytic_model.models.property_type_dto.PropertyTypeDTO( - calculated = None, - simple = None, ) - ) - else: - return PropertyChangeDefinitionDTO( - ) - - def testPropertyChangeDefinitionDTO(self): - """Test PropertyChangeDefinitionDTO""" - def validate_instance(instance): - PropertyChangeDefinitionDTO.model_validate(inst_req_only) - instance_deserialized = PropertyChangeDefinitionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_property_change_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/test/test_property_change_definitions_by_tenant_dto.py deleted file mode 100644 index 5099f5cec4..0000000000 --- a/src/visier_api_analytic_model/test/test_property_change_definitions_by_tenant_dto.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.property_change_definitions_by_tenant_dto import PropertyChangeDefinitionsByTenantDTO - -class TestPropertyChangeDefinitionsByTenantDTO(unittest.TestCase): - """PropertyChangeDefinitionsByTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertyChangeDefinitionsByTenantDTO: - """Test PropertyChangeDefinitionsByTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertyChangeDefinitionsByTenantDTO( - project_id = '', - properties = [ - visier_api_analytic_model.models.property_change_definition_dto.PropertyChangeDefinitionDTO( - description = '', - designer_notes = '', - display_name = '', - explanation = '', - id = '', - include_with_vee = True, - short_display_name = '', - tags = None, - type = None, ) - ], - tenant_code = '' - ) - else: - return PropertyChangeDefinitionsByTenantDTO( - ) - - def testPropertyChangeDefinitionsByTenantDTO(self): - """Test PropertyChangeDefinitionsByTenantDTO""" - def validate_instance(instance): - PropertyChangeDefinitionsByTenantDTO.model_validate(inst_req_only) - instance_deserialized = PropertyChangeDefinitionsByTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_property_delete_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/test/test_property_delete_definitions_by_tenant_dto.py deleted file mode 100644 index d78de2b7a2..0000000000 --- a/src/visier_api_analytic_model/test/test_property_delete_definitions_by_tenant_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.property_delete_definitions_by_tenant_dto import PropertyDeleteDefinitionsByTenantDTO - -class TestPropertyDeleteDefinitionsByTenantDTO(unittest.TestCase): - """PropertyDeleteDefinitionsByTenantDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertyDeleteDefinitionsByTenantDTO: - """Test PropertyDeleteDefinitionsByTenantDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertyDeleteDefinitionsByTenantDTO( - project_id = '', - property_ids = [ - '' - ], - tenant_code = '' - ) - else: - return PropertyDeleteDefinitionsByTenantDTO( - ) - - def testPropertyDeleteDefinitionsByTenantDTO(self): - """Test PropertyDeleteDefinitionsByTenantDTO""" - def validate_instance(instance): - PropertyDeleteDefinitionsByTenantDTO.model_validate(inst_req_only) - instance_deserialized = PropertyDeleteDefinitionsByTenantDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_property_delete_failure_dto.py b/src/visier_api_analytic_model/test/test_property_delete_failure_dto.py deleted file mode 100644 index 19e662b53c..0000000000 --- a/src/visier_api_analytic_model/test/test_property_delete_failure_dto.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.property_delete_failure_dto import PropertyDeleteFailureDTO - -class TestPropertyDeleteFailureDTO(unittest.TestCase): - """PropertyDeleteFailureDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertyDeleteFailureDTO: - """Test PropertyDeleteFailureDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertyDeleteFailureDTO( - derived_dependents_to_delete = [ - visier_api_analytic_model.models.dependent_dto.DependentDTO( - display_name = '', - id = '', - object_type = '', ) - ], - display_name = '', - id = '', - message = '', - project_id = '', - rci = '', - reference_dependents_to_ignore = [ - visier_api_analytic_model.models.dependent_dto.DependentDTO( - display_name = '', - id = '', - object_type = '', ) - ], - tenant_code = '' - ) - else: - return PropertyDeleteFailureDTO( - ) - - def testPropertyDeleteFailureDTO(self): - """Test PropertyDeleteFailureDTO""" - def validate_instance(instance): - PropertyDeleteFailureDTO.model_validate(inst_req_only) - instance_deserialized = PropertyDeleteFailureDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_property_delete_success_dto.py b/src/visier_api_analytic_model/test/test_property_delete_success_dto.py deleted file mode 100644 index 4e489f31cc..0000000000 --- a/src/visier_api_analytic_model/test/test_property_delete_success_dto.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.property_delete_success_dto import PropertyDeleteSuccessDTO - -class TestPropertyDeleteSuccessDTO(unittest.TestCase): - """PropertyDeleteSuccessDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertyDeleteSuccessDTO: - """Test PropertyDeleteSuccessDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertyDeleteSuccessDTO( - derived_dependents_deleted = [ - visier_api_analytic_model.models.dependent_dto.DependentDTO( - display_name = '', - id = '', - object_type = '', ) - ], - display_name = '', - id = '', - project_id = '', - reference_dependents_ignored = [ - visier_api_analytic_model.models.dependent_dto.DependentDTO( - display_name = '', - id = '', - object_type = '', ) - ], - tenant_code = '' - ) - else: - return PropertyDeleteSuccessDTO( - ) - - def testPropertyDeleteSuccessDTO(self): - """Test PropertyDeleteSuccessDTO""" - def validate_instance(instance): - PropertyDeleteSuccessDTO.model_validate(inst_req_only) - instance_deserialized = PropertyDeleteSuccessDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_property_dto.py b/src/visier_api_analytic_model/test/test_property_dto.py deleted file mode 100644 index 3e37ac50d7..0000000000 --- a/src/visier_api_analytic_model/test/test_property_dto.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.property_dto import PropertyDTO - -class TestPropertyDTO(unittest.TestCase): - """PropertyDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertyDTO: - """Test PropertyDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertyDTO( - data_type = '', - description = '', - display_name = '', - explanation = '', - id = '', - parameters = [ - visier_api_analytic_model.models.parameter_definition_dto.ParameterDefinitionDTO( - aggregation_type_parameter = None, - member_parameter = None, - numeric_parameter = None, - plan_parameter = None, ) - ], - primitive_data_type = '', - tags = [ - visier_api_analytic_model.models.tag_map_element_dto.TagMapElementDTO( - display_name = '', - id = '', ) - ] - ) - else: - return PropertyDTO( - ) - - def testPropertyDTO(self): - """Test PropertyDTO""" - def validate_instance(instance): - PropertyDTO.model_validate(inst_req_only) - instance_deserialized = PropertyDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_property_reference_dto.py b/src/visier_api_analytic_model/test/test_property_reference_dto.py deleted file mode 100644 index 8d5c392855..0000000000 --- a/src/visier_api_analytic_model/test/test_property_reference_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.property_reference_dto import PropertyReferenceDTO - -class TestPropertyReferenceDTO(unittest.TestCase): - """PropertyReferenceDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertyReferenceDTO: - """Test PropertyReferenceDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertyReferenceDTO( - name = '', - qualifying_path = '' - ) - else: - return PropertyReferenceDTO( - ) - - def testPropertyReferenceDTO(self): - """Test PropertyReferenceDTO""" - def validate_instance(instance): - PropertyReferenceDTO.model_validate(inst_req_only) - instance_deserialized = PropertyReferenceDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_property_type_dto.py b/src/visier_api_analytic_model/test/test_property_type_dto.py deleted file mode 100644 index 7be0982994..0000000000 --- a/src/visier_api_analytic_model/test/test_property_type_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.property_type_dto import PropertyTypeDTO - -class TestPropertyTypeDTO(unittest.TestCase): - """PropertyTypeDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertyTypeDTO: - """Test PropertyTypeDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertyTypeDTO( - calculated = visier_api_analytic_model.models.calculated_property_type_dto.CalculatedPropertyTypeDTO( - data_type = '', - formula = '', ), - simple = visier_api_analytic_model.models.simple_property_type_dto.SimplePropertyTypeDTO( - data_type = '', ) - ) - else: - return PropertyTypeDTO( - ) - - def testPropertyTypeDTO(self): - """Test PropertyTypeDTO""" - def validate_instance(instance): - PropertyTypeDTO.model_validate(inst_req_only) - instance_deserialized = PropertyTypeDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_scenario_info_dto.py b/src/visier_api_analytic_model/test/test_scenario_info_dto.py deleted file mode 100644 index 4f6039128b..0000000000 --- a/src/visier_api_analytic_model/test/test_scenario_info_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.scenario_info_dto import ScenarioInfoDTO - -class TestScenarioInfoDTO(unittest.TestCase): - """ScenarioInfoDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ScenarioInfoDTO: - """Test ScenarioInfoDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ScenarioInfoDTO( - display_name = '', - uuid = '', - versioned_scenario_id = '' - ) - else: - return ScenarioInfoDTO( - ) - - def testScenarioInfoDTO(self): - """Test ScenarioInfoDTO""" - def validate_instance(instance): - ScenarioInfoDTO.model_validate(inst_req_only) - instance_deserialized = ScenarioInfoDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_scenario_or_snapshot_dto.py b/src/visier_api_analytic_model/test/test_scenario_or_snapshot_dto.py deleted file mode 100644 index 7f1c2ffcc4..0000000000 --- a/src/visier_api_analytic_model/test/test_scenario_or_snapshot_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.scenario_or_snapshot_dto import ScenarioOrSnapshotDTO - -class TestScenarioOrSnapshotDTO(unittest.TestCase): - """ScenarioOrSnapshotDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ScenarioOrSnapshotDTO: - """Test ScenarioOrSnapshotDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ScenarioOrSnapshotDTO( - display_name = '', - id = '' - ) - else: - return ScenarioOrSnapshotDTO( - ) - - def testScenarioOrSnapshotDTO(self): - """Test ScenarioOrSnapshotDTO""" - def validate_instance(instance): - ScenarioOrSnapshotDTO.model_validate(inst_req_only) - instance_deserialized = ScenarioOrSnapshotDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_selection_concept_configuration_map_dto.py b/src/visier_api_analytic_model/test/test_selection_concept_configuration_map_dto.py deleted file mode 100644 index 8a0eae2917..0000000000 --- a/src/visier_api_analytic_model/test/test_selection_concept_configuration_map_dto.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.selection_concept_configuration_map_dto import SelectionConceptConfigurationMapDTO - -class TestSelectionConceptConfigurationMapDTO(unittest.TestCase): - """SelectionConceptConfigurationMapDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SelectionConceptConfigurationMapDTO: - """Test SelectionConceptConfigurationMapDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SelectionConceptConfigurationMapDTO( - analytic_object_filters_to_map = [ - visier_api_analytic_model.models.analytic_object_filter_dto.AnalyticObjectFilterDTO( - analytic_object_uuid = '', - dimensions = [ - visier_api_analytic_model.models.dimension_filter_dto.DimensionFilterDTO( - dimension_id = '', - dimension_members = [ - visier_api_analytic_model.models.dimension_member_dto.DimensionMemberDTO( - dimension_member = [ - '' - ], ) - ], - symbol_name = '', ) - ], - symbol_name = '', ) - ] - ) - else: - return SelectionConceptConfigurationMapDTO( - ) - - def testSelectionConceptConfigurationMapDTO(self): - """Test SelectionConceptConfigurationMapDTO""" - def validate_instance(instance): - SelectionConceptConfigurationMapDTO.model_validate(inst_req_only) - instance_deserialized = SelectionConceptConfigurationMapDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_selection_concept_dto.py b/src/visier_api_analytic_model/test/test_selection_concept_dto.py deleted file mode 100644 index 6c37e9b45a..0000000000 --- a/src/visier_api_analytic_model/test/test_selection_concept_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.selection_concept_dto import SelectionConceptDTO - -class TestSelectionConceptDTO(unittest.TestCase): - """SelectionConceptDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SelectionConceptDTO: - """Test SelectionConceptDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SelectionConceptDTO( - description = '', - display_name = '', - explanation = '', - id = '', - tags = [ - visier_api_analytic_model.models.tag_map_element_dto.TagMapElementDTO( - display_name = '', - id = '', ) - ], - visible_in_app = True - ) - else: - return SelectionConceptDTO( - ) - - def testSelectionConceptDTO(self): - """Test SelectionConceptDTO""" - def validate_instance(instance): - SelectionConceptDTO.model_validate(inst_req_only) - instance_deserialized = SelectionConceptDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_selection_concept_list_dto.py b/src/visier_api_analytic_model/test/test_selection_concept_list_dto.py deleted file mode 100644 index cb1db874a2..0000000000 --- a/src/visier_api_analytic_model/test/test_selection_concept_list_dto.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.selection_concept_list_dto import SelectionConceptListDTO - -class TestSelectionConceptListDTO(unittest.TestCase): - """SelectionConceptListDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SelectionConceptListDTO: - """Test SelectionConceptListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SelectionConceptListDTO( - concepts = [ - visier_api_analytic_model.models.selection_concept_dto.SelectionConceptDTO( - description = '', - display_name = '', - explanation = '', - id = '', - tags = [ - visier_api_analytic_model.models.tag_map_element_dto.TagMapElementDTO( - display_name = '', - id = '', ) - ], - visible_in_app = True, ) - ] - ) - else: - return SelectionConceptListDTO( - ) - - def testSelectionConceptListDTO(self): - """Test SelectionConceptListDTO""" - def validate_instance(instance): - SelectionConceptListDTO.model_validate(inst_req_only) - instance_deserialized = SelectionConceptListDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_selection_concepts_dto.py b/src/visier_api_analytic_model/test/test_selection_concepts_dto.py deleted file mode 100644 index e8763a1424..0000000000 --- a/src/visier_api_analytic_model/test/test_selection_concepts_dto.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.selection_concepts_dto import SelectionConceptsDTO - -class TestSelectionConceptsDTO(unittest.TestCase): - """SelectionConceptsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SelectionConceptsDTO: - """Test SelectionConceptsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SelectionConceptsDTO( - selection_concepts = [ - visier_api_analytic_model.models.selection_concept_dto.SelectionConceptDTO( - description = '', - display_name = '', - explanation = '', - id = '', - tags = [ - visier_api_analytic_model.models.tag_map_element_dto.TagMapElementDTO( - display_name = '', - id = '', ) - ], - visible_in_app = True, ) - ] - ) - else: - return SelectionConceptsDTO( - ) - - def testSelectionConceptsDTO(self): - """Test SelectionConceptsDTO""" - def validate_instance(instance): - SelectionConceptsDTO.model_validate(inst_req_only) - instance_deserialized = SelectionConceptsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_calculated_property_type_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_calculated_property_type_dto.py new file mode 100644 index 0000000000..505acf845a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_calculated_property_type_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_calculated_property_type_dto import ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO + +class TestServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO: + """Test ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO( + data_type = '', + formula = '' + ) + else: + return ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO( + ) + + def testServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO(self): + """Test ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_dependent_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_dependent_dto.py new file mode 100644 index 0000000000..b324481ffd --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_dependent_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dependent_dto import ServicingPublicapiObjectconfigurationDependentDTO + +class TestServicingPublicapiObjectconfigurationDependentDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationDependentDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationDependentDTO: + """Test ServicingPublicapiObjectconfigurationDependentDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationDependentDTO( + display_name = '', + id = '', + object_type = '' + ) + else: + return ServicingPublicapiObjectconfigurationDependentDTO( + ) + + def testServicingPublicapiObjectconfigurationDependentDTO(self): + """Test ServicingPublicapiObjectconfigurationDependentDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationDependentDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationDependentDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_dimension_change_definition_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_dimension_change_definition_dto.py new file mode 100644 index 0000000000..30850ece42 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_dimension_change_definition_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dimension_change_definition_dto import ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO + +class TestServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO: + """Test ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO( + description = '', + display_name = '', + id = '', + short_display_name = '' + ) + else: + return ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO( + ) + + def testServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO(self): + """Test ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_dimension_change_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_dimension_change_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..345b497801 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_dimension_change_definitions_by_tenant_dto.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dimension_change_definitions_by_tenant_dto import ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO + +class TestServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO: + """Test ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO( + dimensions = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/dimension_change_definition_dto.servicing.publicapi.objectconfiguration.DimensionChangeDefinitionDTO( + description = '', + display_name = '', + id = '', + short_display_name = '', ) + ], + project_id = '', + tenant_code = '' + ) + else: + return ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO( + ) + + def testServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO(self): + """Test ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto.py new file mode 100644 index 0000000000..73562698ef --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto import ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO + +class TestServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO: + """Test ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO( + dimensions_by_tenant = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/dimension_change_definitions_by_tenant_dto.servicing.publicapi.objectconfiguration.DimensionChangeDefinitionsByTenantDTO( + dimensions = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/dimension_change_definition_dto.servicing.publicapi.objectconfiguration.DimensionChangeDefinitionDTO( + description = '', + display_name = '', + id = '', + short_display_name = '', ) + ], + project_id = '', + tenant_code = '', ) + ] + ) + else: + return ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO( + ) + + def testServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO(self): + """Test ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_object_change_failure_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_object_change_failure_dto.py new file mode 100644 index 0000000000..c5ef6a549f --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_object_change_failure_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_object_change_failure_dto import ServicingPublicapiObjectconfigurationObjectChangeFailureDTO + +class TestServicingPublicapiObjectconfigurationObjectChangeFailureDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationObjectChangeFailureDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationObjectChangeFailureDTO: + """Test ServicingPublicapiObjectconfigurationObjectChangeFailureDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationObjectChangeFailureDTO( + display_name = '', + id = '', + message = '', + project_id = '', + rci = '', + tenant_code = '' + ) + else: + return ServicingPublicapiObjectconfigurationObjectChangeFailureDTO( + ) + + def testServicingPublicapiObjectconfigurationObjectChangeFailureDTO(self): + """Test ServicingPublicapiObjectconfigurationObjectChangeFailureDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationObjectChangeFailureDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationObjectChangeFailureDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_object_change_success_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_object_change_success_dto.py new file mode 100644 index 0000000000..b83215b88e --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_object_change_success_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_object_change_success_dto import ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO + +class TestServicingPublicapiObjectconfigurationObjectChangeSuccessDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO: + """Test ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO( + display_name = '', + id = '', + project_id = '', + tenant_code = '' + ) + else: + return ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO( + ) + + def testServicingPublicapiObjectconfigurationObjectChangeSuccessDTO(self): + """Test ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_objects_bulk_change_response_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_objects_bulk_change_response_dto.py new file mode 100644 index 0000000000..78dcecd12f --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_objects_bulk_change_response_dto.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_objects_bulk_change_response_dto import ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO + +class TestServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO: + """Test ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO( + failures = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/object_change_failure_dto.servicing.publicapi.objectconfiguration.ObjectChangeFailureDTO( + display_name = '', + id = '', + message = '', + project_id = '', + rci = '', + tenant_code = '', ) + ], + successes = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/object_change_success_dto.servicing.publicapi.objectconfiguration.ObjectChangeSuccessDTO( + display_name = '', + id = '', + project_id = '', + tenant_code = '', ) + ] + ) + else: + return ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO( + ) + + def testServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO(self): + """Test ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_properties_change_definitions_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_properties_change_definitions_dto.py new file mode 100644 index 0000000000..1015cb3754 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_properties_change_definitions_dto.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_properties_change_definitions_dto import ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO + +class TestServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO: + """Test ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO( + properties_by_tenant = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/property_change_definitions_by_tenant_dto.servicing.publicapi.objectconfiguration.PropertyChangeDefinitionsByTenantDTO( + project_id = '', + properties = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/property_change_definition_dto.servicing.publicapi.objectconfiguration.PropertyChangeDefinitionDTO( + description = '', + designer_notes = '', + display_name = '', + explanation = '', + id = '', + include_with_vee = True, + short_display_name = '', + tags = None, + type = None, ) + ], + tenant_code = '', ) + ] + ) + else: + return ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO( + ) + + def testServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO(self): + """Test ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_properties_delete_definitions_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_properties_delete_definitions_dto.py new file mode 100644 index 0000000000..271764b6ee --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_properties_delete_definitions_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_properties_delete_definitions_dto import ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO + +class TestServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO: + """Test ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO( + delete_derived_properties = True, + ignore_property_references = True, + properties_by_tenant = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/property_delete_definitions_by_tenant_dto.servicing.publicapi.objectconfiguration.PropertyDeleteDefinitionsByTenantDTO( + project_id = '', + property_ids = [ + '' + ], + tenant_code = '', ) + ] + ) + else: + return ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO( + ) + + def testServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO(self): + """Test ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_bulk_delete_response_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_bulk_delete_response_dto.py new file mode 100644 index 0000000000..d94d88a695 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_bulk_delete_response_dto.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_bulk_delete_response_dto import ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO + +class TestServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO: + """Test ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO( + failures = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/property_delete_failure_dto.servicing.publicapi.objectconfiguration.PropertyDeleteFailureDTO( + derived_dependents_to_delete = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/dependent_dto.servicing.publicapi.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + display_name = '', + id = '', + message = '', + project_id = '', + rci = '', + reference_dependents_to_ignore = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/dependent_dto.servicing.publicapi.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + tenant_code = '', ) + ], + successes = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/property_delete_success_dto.servicing.publicapi.objectconfiguration.PropertyDeleteSuccessDTO( + derived_dependents_deleted = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/dependent_dto.servicing.publicapi.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + display_name = '', + id = '', + project_id = '', + reference_dependents_ignored = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/dependent_dto.servicing.publicapi.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + tenant_code = '', ) + ] + ) + else: + return ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO( + ) + + def testServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO(self): + """Test ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_change_definition_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_change_definition_dto.py new file mode 100644 index 0000000000..6d870629d7 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_change_definition_dto.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_change_definition_dto import ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO + +class TestServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO: + """Test ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO( + description = '', + designer_notes = '', + display_name = '', + explanation = '', + id = '', + include_with_vee = True, + short_display_name = '', + tags = visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/tags_dto.servicing.publicapi.objectconfiguration.TagsDTO( + ids = [ + '' + ], ), + type = visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/property_type_dto.servicing.publicapi.objectconfiguration.PropertyTypeDTO( + calculated = None, + simple = None, ) + ) + else: + return ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO( + ) + + def testServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO(self): + """Test ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_change_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_change_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..b1ecb18c5f --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_change_definitions_by_tenant_dto.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_change_definitions_by_tenant_dto import ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO + +class TestServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO: + """Test ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO( + project_id = '', + properties = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/property_change_definition_dto.servicing.publicapi.objectconfiguration.PropertyChangeDefinitionDTO( + description = '', + designer_notes = '', + display_name = '', + explanation = '', + id = '', + include_with_vee = True, + short_display_name = '', + tags = None, + type = None, ) + ], + tenant_code = '' + ) + else: + return ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO( + ) + + def testServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO(self): + """Test ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_delete_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_delete_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..5381177ff1 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_delete_definitions_by_tenant_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_delete_definitions_by_tenant_dto import ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO + +class TestServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO: + """Test ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO( + project_id = '', + property_ids = [ + '' + ], + tenant_code = '' + ) + else: + return ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO( + ) + + def testServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO(self): + """Test ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_delete_failure_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_delete_failure_dto.py new file mode 100644 index 0000000000..8765015e8c --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_delete_failure_dto.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_delete_failure_dto import ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO + +class TestServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO: + """Test ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO( + derived_dependents_to_delete = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/dependent_dto.servicing.publicapi.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + display_name = '', + id = '', + message = '', + project_id = '', + rci = '', + reference_dependents_to_ignore = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/dependent_dto.servicing.publicapi.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + tenant_code = '' + ) + else: + return ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO( + ) + + def testServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO(self): + """Test ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_delete_success_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_delete_success_dto.py new file mode 100644 index 0000000000..18633817d4 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_delete_success_dto.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_delete_success_dto import ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO + +class TestServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO: + """Test ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO( + derived_dependents_deleted = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/dependent_dto.servicing.publicapi.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + display_name = '', + id = '', + project_id = '', + reference_dependents_ignored = [ + visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/dependent_dto.servicing.publicapi.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + tenant_code = '' + ) + else: + return ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO( + ) + + def testServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO(self): + """Test ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_type_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_type_dto.py new file mode 100644 index 0000000000..ba3f8aaee7 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_property_type_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_type_dto import ServicingPublicapiObjectconfigurationPropertyTypeDTO + +class TestServicingPublicapiObjectconfigurationPropertyTypeDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationPropertyTypeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationPropertyTypeDTO: + """Test ServicingPublicapiObjectconfigurationPropertyTypeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationPropertyTypeDTO( + calculated = visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/calculated_property_type_dto.servicing.publicapi.objectconfiguration.CalculatedPropertyTypeDTO( + data_type = '', + formula = '', ), + simple = visier_api_analytic_model.models.servicing/publicapi/objectconfiguration/simple_property_type_dto.servicing.publicapi.objectconfiguration.SimplePropertyTypeDTO( + data_type = '', ) + ) + else: + return ServicingPublicapiObjectconfigurationPropertyTypeDTO( + ) + + def testServicingPublicapiObjectconfigurationPropertyTypeDTO(self): + """Test ServicingPublicapiObjectconfigurationPropertyTypeDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationPropertyTypeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationPropertyTypeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_simple_property_type_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_simple_property_type_dto.py new file mode 100644 index 0000000000..c597e9bc54 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_simple_property_type_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_simple_property_type_dto import ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO + +class TestServicingPublicapiObjectconfigurationSimplePropertyTypeDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO: + """Test ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO( + data_type = '' + ) + else: + return ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO( + ) + + def testServicingPublicapiObjectconfigurationSimplePropertyTypeDTO(self): + """Test ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_tags_dto.py b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_tags_dto.py new file mode 100644 index 0000000000..fbf4a3ccac --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_tags_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_analytic_model.models +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_tags_dto import ServicingPublicapiObjectconfigurationTagsDTO + +class TestServicingPublicapiObjectconfigurationTagsDTO(unittest.TestCase): + """ServicingPublicapiObjectconfigurationTagsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiObjectconfigurationTagsDTO: + """Test ServicingPublicapiObjectconfigurationTagsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiObjectconfigurationTagsDTO( + ids = [ + '' + ] + ) + else: + return ServicingPublicapiObjectconfigurationTagsDTO( + ) + + def testServicingPublicapiObjectconfigurationTagsDTO(self): + """Test ServicingPublicapiObjectconfigurationTagsDTO""" + def validate_instance(instance): + ServicingPublicapiObjectconfigurationTagsDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiObjectconfigurationTagsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_analytic_model/test/test_simple_property_type_dto.py b/src/visier_api_analytic_model/test/test_simple_property_type_dto.py deleted file mode 100644 index c8656d0917..0000000000 --- a/src/visier_api_analytic_model/test/test_simple_property_type_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.simple_property_type_dto import SimplePropertyTypeDTO - -class TestSimplePropertyTypeDTO(unittest.TestCase): - """SimplePropertyTypeDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SimplePropertyTypeDTO: - """Test SimplePropertyTypeDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SimplePropertyTypeDTO( - data_type = '' - ) - else: - return SimplePropertyTypeDTO( - ) - - def testSimplePropertyTypeDTO(self): - """Test SimplePropertyTypeDTO""" - def validate_instance(instance): - SimplePropertyTypeDTO.model_validate(inst_req_only) - instance_deserialized = SimplePropertyTypeDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_status.py b/src/visier_api_analytic_model/test/test_status.py index 9c54d773cd..23acd2505d 100644 --- a/src/visier_api_analytic_model/test/test_status.py +++ b/src/visier_api_analytic_model/test/test_status.py @@ -5,7 +5,7 @@ Visier APIs for retrieving and configuring your analytic model in Visier. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -36,9 +36,11 @@ def make_instance(self, include_optional) -> Status: if include_optional: return Status( - error_code = '', + code = '', + localized_message = '', message = '', - rci = '' + rci = '', + user_error = True ) else: return Status( diff --git a/src/visier_api_analytic_model/test/test_tag_map_element_dto.py b/src/visier_api_analytic_model/test/test_tag_map_element_dto.py deleted file mode 100644 index 4554a1aa10..0000000000 --- a/src/visier_api_analytic_model/test/test_tag_map_element_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.tag_map_element_dto import TagMapElementDTO - -class TestTagMapElementDTO(unittest.TestCase): - """TagMapElementDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TagMapElementDTO: - """Test TagMapElementDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TagMapElementDTO( - display_name = '', - id = '' - ) - else: - return TagMapElementDTO( - ) - - def testTagMapElementDTO(self): - """Test TagMapElementDTO""" - def validate_instance(instance): - TagMapElementDTO.model_validate(inst_req_only) - instance_deserialized = TagMapElementDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_tags_dto.py b/src/visier_api_analytic_model/test/test_tags_dto.py deleted file mode 100644 index 4f3d826c56..0000000000 --- a/src/visier_api_analytic_model/test/test_tags_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.tags_dto import TagsDTO - -class TestTagsDTO(unittest.TestCase): - """TagsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TagsDTO: - """Test TagsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TagsDTO( - ids = [ - '' - ] - ) - else: - return TagsDTO( - ) - - def testTagsDTO(self): - """Test TagsDTO""" - def validate_instance(instance): - TagsDTO.model_validate(inst_req_only) - instance_deserialized = TagsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/test/test_validity_range_dto.py b/src/visier_api_analytic_model/test/test_validity_range_dto.py deleted file mode 100644 index 297268c7a4..0000000000 --- a/src/visier_api_analytic_model/test/test_validity_range_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_analytic_model.models -from visier_api_analytic_model.models.validity_range_dto import ValidityRangeDTO - -class TestValidityRangeDTO(unittest.TestCase): - """ValidityRangeDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ValidityRangeDTO: - """Test ValidityRangeDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ValidityRangeDTO( - end = '', - start = '' - ) - else: - return ValidityRangeDTO( - ) - - def testValidityRangeDTO(self): - """Test ValidityRangeDTO""" - def validate_instance(instance): - ValidityRangeDTO.model_validate(inst_req_only) - instance_deserialized = ValidityRangeDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/__init__.py b/src/visier_api_analytic_model/visier_api_analytic_model/__init__.py index 382daad9ed..b6ac795aa7 100644 --- a/src/visier_api_analytic_model/visier_api_analytic_model/__init__.py +++ b/src/visier_api_analytic_model/visier_api_analytic_model/__init__.py @@ -7,7 +7,7 @@ Visier APIs for retrieving and configuring your analytic model in Visier. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,7 +16,7 @@ """ # noqa: E501 -__version__ = "0.99201.1772" +__version__ = "0.99201.1793" # import apis into sdk package from visier_api_analytic_model.api.data_model_api import DataModelApi @@ -24,90 +24,91 @@ # import models into sdk package -from visier_api_analytic_model.models.aggregation_type_option_dto import AggregationTypeOptionDTO -from visier_api_analytic_model.models.aggregation_type_parameter_dto import AggregationTypeParameterDTO -from visier_api_analytic_model.models.analytic_object_dto import AnalyticObjectDTO -from visier_api_analytic_model.models.analytic_object_filter_dto import AnalyticObjectFilterDTO -from visier_api_analytic_model.models.analytic_objects_dto import AnalyticObjectsDTO -from visier_api_analytic_model.models.calculated_property_type_dto import CalculatedPropertyTypeDTO -from visier_api_analytic_model.models.calculation_concept_configuration_dto import CalculationConceptConfigurationDTO -from visier_api_analytic_model.models.calculation_concept_configuration_map_dto import CalculationConceptConfigurationMapDTO -from visier_api_analytic_model.models.calculation_concept_dto import CalculationConceptDTO -from visier_api_analytic_model.models.calculation_concept_list_dto import CalculationConceptListDTO -from visier_api_analytic_model.models.concept_configuration_result_dto import ConceptConfigurationResultDTO -from visier_api_analytic_model.models.currencies_dto import CurrenciesDTO -from visier_api_analytic_model.models.currency_dto import CurrencyDTO -from visier_api_analytic_model.models.currency_rate_dto import CurrencyRateDTO -from visier_api_analytic_model.models.currency_rates_dto import CurrencyRatesDTO -from visier_api_analytic_model.models.dependent_dto import DependentDTO -from visier_api_analytic_model.models.dimension_change_definition_dto import DimensionChangeDefinitionDTO -from visier_api_analytic_model.models.dimension_change_definitions_by_tenant_dto import DimensionChangeDefinitionsByTenantDTO -from visier_api_analytic_model.models.dimension_dto import DimensionDTO -from visier_api_analytic_model.models.dimension_filter_dto import DimensionFilterDTO -from visier_api_analytic_model.models.dimension_mapping_validation_dto import DimensionMappingValidationDTO -from visier_api_analytic_model.models.dimension_mapping_validation_execution_dto import DimensionMappingValidationExecutionDTO -from visier_api_analytic_model.models.dimension_member_dto import DimensionMemberDTO -from visier_api_analytic_model.models.dimension_member_reference_dto import DimensionMemberReferenceDTO -from visier_api_analytic_model.models.dimension_reference_dto import DimensionReferenceDTO -from visier_api_analytic_model.models.dimensions_change_definitions_dto import DimensionsChangeDefinitionsDTO -from visier_api_analytic_model.models.dimensions_dto import DimensionsDTO -from visier_api_analytic_model.models.get_plan_list_response_dto import GetPlanListResponseDTO -from visier_api_analytic_model.models.google_protobuf_any import GoogleProtobufAny -from visier_api_analytic_model.models.level_dto import LevelDTO -from visier_api_analytic_model.models.member_dto import MemberDTO -from visier_api_analytic_model.models.member_parameter_definition_dto import MemberParameterDefinitionDTO -from visier_api_analytic_model.models.member_values_dto import MemberValuesDTO -from visier_api_analytic_model.models.members_dto import MembersDTO -from visier_api_analytic_model.models.metric_dto import MetricDTO -from visier_api_analytic_model.models.metrics_dto import MetricsDTO -from visier_api_analytic_model.models.numeric_parameter_definition_dto import NumericParameterDefinitionDTO -from visier_api_analytic_model.models.object_change_failure_dto import ObjectChangeFailureDTO -from visier_api_analytic_model.models.object_change_success_dto import ObjectChangeSuccessDTO -from visier_api_analytic_model.models.object_reference_dto import ObjectReferenceDTO -from visier_api_analytic_model.models.objects_bulk_change_response_dto import ObjectsBulkChangeResponseDTO -from visier_api_analytic_model.models.parameter_definition_dto import ParameterDefinitionDTO -from visier_api_analytic_model.models.perspective_configuration_dto import PerspectiveConfigurationDTO -from visier_api_analytic_model.models.perspective_node_dto import PerspectiveNodeDTO -from visier_api_analytic_model.models.plan_data_load_error_dto import PlanDataLoadErrorDTO -from visier_api_analytic_model.models.plan_info_dto import PlanInfoDTO -from visier_api_analytic_model.models.plan_item_dto import PlanItemDTO -from visier_api_analytic_model.models.plan_parameter_definition_dto import PlanParameterDefinitionDTO -from visier_api_analytic_model.models.plan_schema_dto import PlanSchemaDTO -from visier_api_analytic_model.models.plan_segment_level_dto import PlanSegmentLevelDTO -from visier_api_analytic_model.models.plan_segment_level_member_dto import PlanSegmentLevelMemberDTO -from visier_api_analytic_model.models.plan_segment_level_member_list_dto import PlanSegmentLevelMemberListDTO -from visier_api_analytic_model.models.plan_time_period_dto import PlanTimePeriodDTO -from visier_api_analytic_model.models.plan_with_schema_dto import PlanWithSchemaDTO -from visier_api_analytic_model.models.planning_concept_filter_context_dto import PlanningConceptFilterContextDTO -from visier_api_analytic_model.models.planning_hierarchy_filter_context_dto import PlanningHierarchyFilterContextDTO -from visier_api_analytic_model.models.planning_model_dto import PlanningModelDTO -from visier_api_analytic_model.models.planning_models_dto import PlanningModelsDTO -from visier_api_analytic_model.models.planning_plan_context_dto import PlanningPlanContextDTO -from visier_api_analytic_model.models.planning_plan_dto import PlanningPlanDTO -from visier_api_analytic_model.models.planning_plans_dto import PlanningPlansDTO -from visier_api_analytic_model.models.population_configuration_dto import PopulationConfigurationDTO -from visier_api_analytic_model.models.prediction_dto import PredictionDTO -from visier_api_analytic_model.models.predictions_dto import PredictionsDTO -from visier_api_analytic_model.models.properties_change_definitions_dto import PropertiesChangeDefinitionsDTO -from visier_api_analytic_model.models.properties_dto import PropertiesDTO -from visier_api_analytic_model.models.properties_delete_definitions_dto import PropertiesDeleteDefinitionsDTO -from visier_api_analytic_model.models.property_bulk_delete_response_dto import PropertyBulkDeleteResponseDTO -from visier_api_analytic_model.models.property_change_definition_dto import PropertyChangeDefinitionDTO -from visier_api_analytic_model.models.property_change_definitions_by_tenant_dto import PropertyChangeDefinitionsByTenantDTO -from visier_api_analytic_model.models.property_dto import PropertyDTO -from visier_api_analytic_model.models.property_delete_definitions_by_tenant_dto import PropertyDeleteDefinitionsByTenantDTO -from visier_api_analytic_model.models.property_delete_failure_dto import PropertyDeleteFailureDTO -from visier_api_analytic_model.models.property_delete_success_dto import PropertyDeleteSuccessDTO -from visier_api_analytic_model.models.property_reference_dto import PropertyReferenceDTO -from visier_api_analytic_model.models.property_type_dto import PropertyTypeDTO -from visier_api_analytic_model.models.scenario_info_dto import ScenarioInfoDTO -from visier_api_analytic_model.models.scenario_or_snapshot_dto import ScenarioOrSnapshotDTO -from visier_api_analytic_model.models.selection_concept_configuration_map_dto import SelectionConceptConfigurationMapDTO -from visier_api_analytic_model.models.selection_concept_dto import SelectionConceptDTO -from visier_api_analytic_model.models.selection_concept_list_dto import SelectionConceptListDTO -from visier_api_analytic_model.models.selection_concepts_dto import SelectionConceptsDTO -from visier_api_analytic_model.models.simple_property_type_dto import SimplePropertyTypeDTO +from visier_api_analytic_model.models.dataservices_common_dimension_member_reference_dto import DataservicesCommonDimensionMemberReferenceDTO +from visier_api_analytic_model.models.dataservices_common_member_values_dto import DataservicesCommonMemberValuesDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_aggregation_type_option_dto import DataservicesDatamodelTransfersAggregationTypeOptionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_aggregation_type_parameter_dto import DataservicesDatamodelTransfersAggregationTypeParameterDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_analytic_object_dto import DataservicesDatamodelTransfersAnalyticObjectDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_analytic_objects_dto import DataservicesDatamodelTransfersAnalyticObjectsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currencies_dto import DataservicesDatamodelTransfersCurrenciesDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currency_dto import DataservicesDatamodelTransfersCurrencyDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currency_rate_dto import DataservicesDatamodelTransfersCurrencyRateDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currency_rates_dto import DataservicesDatamodelTransfersCurrencyRatesDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_dto import DataservicesDatamodelTransfersDimensionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_mapping_validation_dto import DataservicesDatamodelTransfersDimensionMappingValidationDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto import DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimensions_dto import DataservicesDatamodelTransfersDimensionsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_level_dto import DataservicesDatamodelTransfersLevelDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_member_dto import DataservicesDatamodelTransfersMemberDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_member_parameter_definition_dto import DataservicesDatamodelTransfersMemberParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_members_dto import DataservicesDatamodelTransfersMembersDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_metric_dto import DataservicesDatamodelTransfersMetricDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_metrics_dto import DataservicesDatamodelTransfersMetricsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_numeric_parameter_definition_dto import DataservicesDatamodelTransfersNumericParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_object_reference_dto import DataservicesDatamodelTransfersObjectReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_parameter_definition_dto import DataservicesDatamodelTransfersParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_plan_parameter_definition_dto import DataservicesDatamodelTransfersPlanParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_concept_filter_context_dto import DataservicesDatamodelTransfersPlanningConceptFilterContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_hierarchy_filter_context_dto import DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_model_dto import DataservicesDatamodelTransfersPlanningModelDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_models_dto import DataservicesDatamodelTransfersPlanningModelsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_plan_context_dto import DataservicesDatamodelTransfersPlanningPlanContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_plan_dto import DataservicesDatamodelTransfersPlanningPlanDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_plans_dto import DataservicesDatamodelTransfersPlanningPlansDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_population_configuration_dto import DataservicesDatamodelTransfersPopulationConfigurationDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_prediction_dto import DataservicesDatamodelTransfersPredictionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_predictions_dto import DataservicesDatamodelTransfersPredictionsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_properties_dto import DataservicesDatamodelTransfersPropertiesDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_property_dto import DataservicesDatamodelTransfersPropertyDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_property_reference_dto import DataservicesDatamodelTransfersPropertyReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_scenario_or_snapshot_dto import DataservicesDatamodelTransfersScenarioOrSnapshotDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_selection_concept_dto import DataservicesDatamodelTransfersSelectionConceptDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_selection_concepts_dto import DataservicesDatamodelTransfersSelectionConceptsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_tag_map_element_dto import DataservicesDatamodelTransfersTagMapElementDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_validity_range_dto import DataservicesDatamodelTransfersValidityRangeDTO +from visier_api_analytic_model.models.designer_api_transfers_analytic_object_filter_dto import DesignerApiTransfersAnalyticObjectFilterDTO +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_configuration_dto import DesignerApiTransfersCalculationConceptConfigurationDTO +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_configuration_map_dto import DesignerApiTransfersCalculationConceptConfigurationMapDTO +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_dto import DesignerApiTransfersCalculationConceptDTO +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_list_dto import DesignerApiTransfersCalculationConceptListDTO +from visier_api_analytic_model.models.designer_api_transfers_concept_configuration_result_dto import DesignerApiTransfersConceptConfigurationResultDTO +from visier_api_analytic_model.models.designer_api_transfers_dimension_filter_dto import DesignerApiTransfersDimensionFilterDTO +from visier_api_analytic_model.models.designer_api_transfers_dimension_member_dto import DesignerApiTransfersDimensionMemberDTO +from visier_api_analytic_model.models.designer_api_transfers_perspective_configuration_dto import DesignerApiTransfersPerspectiveConfigurationDTO +from visier_api_analytic_model.models.designer_api_transfers_perspective_node_dto import DesignerApiTransfersPerspectiveNodeDTO +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_configuration_dto import DesignerApiTransfersSelectionConceptConfigurationDTO +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_configuration_map_dto import DesignerApiTransfersSelectionConceptConfigurationMapDTO +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_dto import DesignerApiTransfersSelectionConceptDTO +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_list_dto import DesignerApiTransfersSelectionConceptListDTO +from visier_api_analytic_model.models.planning_transfers_get_plan_list_response_dto import PlanningTransfersGetPlanListResponseDTO +from visier_api_analytic_model.models.planning_transfers_plan_data_load_error_dto import PlanningTransfersPlanDataLoadErrorDTO +from visier_api_analytic_model.models.planning_transfers_plan_info_dto import PlanningTransfersPlanInfoDTO +from visier_api_analytic_model.models.planning_transfers_plan_item_dto import PlanningTransfersPlanItemDTO +from visier_api_analytic_model.models.planning_transfers_plan_schema_dto import PlanningTransfersPlanSchemaDTO +from visier_api_analytic_model.models.planning_transfers_plan_segment_level_dto import PlanningTransfersPlanSegmentLevelDTO +from visier_api_analytic_model.models.planning_transfers_plan_segment_level_member_dto import PlanningTransfersPlanSegmentLevelMemberDTO +from visier_api_analytic_model.models.planning_transfers_plan_segment_level_member_list_dto import PlanningTransfersPlanSegmentLevelMemberListDTO +from visier_api_analytic_model.models.planning_transfers_plan_time_period_dto import PlanningTransfersPlanTimePeriodDTO +from visier_api_analytic_model.models.planning_transfers_plan_with_schema_dto import PlanningTransfersPlanWithSchemaDTO +from visier_api_analytic_model.models.planning_transfers_scenario_info_dto import PlanningTransfersScenarioInfoDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_calculated_property_type_dto import ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dependent_dto import ServicingPublicapiObjectconfigurationDependentDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dimension_change_definition_dto import ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dimension_change_definitions_by_tenant_dto import ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto import ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_object_change_failure_dto import ServicingPublicapiObjectconfigurationObjectChangeFailureDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_object_change_success_dto import ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_objects_bulk_change_response_dto import ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_properties_change_definitions_dto import ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_properties_delete_definitions_dto import ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_bulk_delete_response_dto import ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_change_definition_dto import ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_change_definitions_by_tenant_dto import ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_delete_definitions_by_tenant_dto import ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_delete_failure_dto import ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_delete_success_dto import ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_type_dto import ServicingPublicapiObjectconfigurationPropertyTypeDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_simple_property_type_dto import ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_tags_dto import ServicingPublicapiObjectconfigurationTagsDTO from visier_api_analytic_model.models.status import Status -from visier_api_analytic_model.models.tag_map_element_dto import TagMapElementDTO -from visier_api_analytic_model.models.tags_dto import TagsDTO -from visier_api_analytic_model.models.validity_range_dto import ValidityRangeDTO diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/api/data_model_api.py b/src/visier_api_analytic_model/visier_api_analytic_model/api/data_model_api.py index d14da2986a..854c61eab1 100644 --- a/src/visier_api_analytic_model/visier_api_analytic_model/api/data_model_api.py +++ b/src/visier_api_analytic_model/visier_api_analytic_model/api/data_model_api.py @@ -5,7 +5,7 @@ Visier APIs for retrieving and configuring your analytic model in Visier. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,35 +23,35 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr from typing import List, Optional from typing_extensions import Annotated -from visier_api_analytic_model.models.analytic_object_dto import AnalyticObjectDTO -from visier_api_analytic_model.models.analytic_objects_dto import AnalyticObjectsDTO -from visier_api_analytic_model.models.currencies_dto import CurrenciesDTO -from visier_api_analytic_model.models.currency_dto import CurrencyDTO -from visier_api_analytic_model.models.currency_rates_dto import CurrencyRatesDTO -from visier_api_analytic_model.models.dimension_dto import DimensionDTO -from visier_api_analytic_model.models.dimension_mapping_validation_dto import DimensionMappingValidationDTO -from visier_api_analytic_model.models.dimension_mapping_validation_execution_dto import DimensionMappingValidationExecutionDTO -from visier_api_analytic_model.models.dimensions_change_definitions_dto import DimensionsChangeDefinitionsDTO -from visier_api_analytic_model.models.dimensions_dto import DimensionsDTO -from visier_api_analytic_model.models.get_plan_list_response_dto import GetPlanListResponseDTO -from visier_api_analytic_model.models.members_dto import MembersDTO -from visier_api_analytic_model.models.metric_dto import MetricDTO -from visier_api_analytic_model.models.metrics_dto import MetricsDTO -from visier_api_analytic_model.models.objects_bulk_change_response_dto import ObjectsBulkChangeResponseDTO -from visier_api_analytic_model.models.plan_with_schema_dto import PlanWithSchemaDTO -from visier_api_analytic_model.models.planning_model_dto import PlanningModelDTO -from visier_api_analytic_model.models.planning_models_dto import PlanningModelsDTO -from visier_api_analytic_model.models.planning_plan_dto import PlanningPlanDTO -from visier_api_analytic_model.models.planning_plans_dto import PlanningPlansDTO -from visier_api_analytic_model.models.prediction_dto import PredictionDTO -from visier_api_analytic_model.models.predictions_dto import PredictionsDTO -from visier_api_analytic_model.models.properties_change_definitions_dto import PropertiesChangeDefinitionsDTO -from visier_api_analytic_model.models.properties_dto import PropertiesDTO -from visier_api_analytic_model.models.properties_delete_definitions_dto import PropertiesDeleteDefinitionsDTO -from visier_api_analytic_model.models.property_bulk_delete_response_dto import PropertyBulkDeleteResponseDTO -from visier_api_analytic_model.models.property_dto import PropertyDTO -from visier_api_analytic_model.models.selection_concept_dto import SelectionConceptDTO -from visier_api_analytic_model.models.selection_concepts_dto import SelectionConceptsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_analytic_object_dto import DataservicesDatamodelTransfersAnalyticObjectDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_analytic_objects_dto import DataservicesDatamodelTransfersAnalyticObjectsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currencies_dto import DataservicesDatamodelTransfersCurrenciesDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currency_dto import DataservicesDatamodelTransfersCurrencyDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currency_rates_dto import DataservicesDatamodelTransfersCurrencyRatesDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_dto import DataservicesDatamodelTransfersDimensionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_mapping_validation_dto import DataservicesDatamodelTransfersDimensionMappingValidationDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto import DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimensions_dto import DataservicesDatamodelTransfersDimensionsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_members_dto import DataservicesDatamodelTransfersMembersDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_metric_dto import DataservicesDatamodelTransfersMetricDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_metrics_dto import DataservicesDatamodelTransfersMetricsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_model_dto import DataservicesDatamodelTransfersPlanningModelDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_models_dto import DataservicesDatamodelTransfersPlanningModelsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_plan_dto import DataservicesDatamodelTransfersPlanningPlanDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_plans_dto import DataservicesDatamodelTransfersPlanningPlansDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_prediction_dto import DataservicesDatamodelTransfersPredictionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_predictions_dto import DataservicesDatamodelTransfersPredictionsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_properties_dto import DataservicesDatamodelTransfersPropertiesDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_property_dto import DataservicesDatamodelTransfersPropertyDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_selection_concept_dto import DataservicesDatamodelTransfersSelectionConceptDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_selection_concepts_dto import DataservicesDatamodelTransfersSelectionConceptsDTO +from visier_api_analytic_model.models.planning_transfers_get_plan_list_response_dto import PlanningTransfersGetPlanListResponseDTO +from visier_api_analytic_model.models.planning_transfers_plan_with_schema_dto import PlanningTransfersPlanWithSchemaDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto import ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_objects_bulk_change_response_dto import ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_properties_change_definitions_dto import ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_properties_delete_definitions_dto import ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_bulk_delete_response_dto import ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO import visier_api_analytic_model.models @@ -84,7 +84,7 @@ def analytic_metrics( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> MetricsDTO: + ) -> DataservicesDatamodelTransfersMetricsDTO: """Retrieve a list of metrics for an analytic object by ID If you know the ID of an analytic object, use this API to retrieve metrics for that object specifically. @@ -125,7 +125,7 @@ def analytic_metrics( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MetricsDTO", + '200': "DataservicesDatamodelTransfersMetricsDTO", } response_data = self.api_client.call_api( *_param, @@ -156,7 +156,7 @@ def analytic_metrics_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[MetricsDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersMetricsDTO]: """Retrieve a list of metrics for an analytic object by ID If you know the ID of an analytic object, use this API to retrieve metrics for that object specifically. @@ -197,7 +197,7 @@ def analytic_metrics_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MetricsDTO", + '200': "DataservicesDatamodelTransfersMetricsDTO", } response_data = self.api_client.call_api( *_param, @@ -269,7 +269,7 @@ def analytic_metrics_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MetricsDTO", + '200': "DataservicesDatamodelTransfersMetricsDTO", } response_data = self.api_client.call_api( *_param, @@ -364,7 +364,7 @@ def analytic_object( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AnalyticObjectDTO: + ) -> DataservicesDatamodelTransfersAnalyticObjectDTO: """Retrieve an analytic object by ID If you know the ID of an analytic object, use this API to retrieve that object specifically. @@ -405,7 +405,7 @@ def analytic_object( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalyticObjectDTO", + '200': "DataservicesDatamodelTransfersAnalyticObjectDTO", } response_data = self.api_client.call_api( *_param, @@ -436,7 +436,7 @@ def analytic_object_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AnalyticObjectDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersAnalyticObjectDTO]: """Retrieve an analytic object by ID If you know the ID of an analytic object, use this API to retrieve that object specifically. @@ -477,7 +477,7 @@ def analytic_object_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalyticObjectDTO", + '200': "DataservicesDatamodelTransfersAnalyticObjectDTO", } response_data = self.api_client.call_api( *_param, @@ -549,7 +549,7 @@ def analytic_object_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalyticObjectDTO", + '200': "DataservicesDatamodelTransfersAnalyticObjectDTO", } response_data = self.api_client.call_api( *_param, @@ -645,7 +645,7 @@ def analytic_objects( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AnalyticObjectsDTO: + ) -> DataservicesDatamodelTransfersAnalyticObjectsDTO: """Retrieve a list of analytic objects Retrieve all the analytic objects in your Visier solution. @@ -689,7 +689,7 @@ def analytic_objects( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalyticObjectsDTO", + '200': "DataservicesDatamodelTransfersAnalyticObjectsDTO", } response_data = self.api_client.call_api( *_param, @@ -721,7 +721,7 @@ def analytic_objects_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AnalyticObjectsDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersAnalyticObjectsDTO]: """Retrieve a list of analytic objects Retrieve all the analytic objects in your Visier solution. @@ -765,7 +765,7 @@ def analytic_objects_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalyticObjectsDTO", + '200': "DataservicesDatamodelTransfersAnalyticObjectsDTO", } response_data = self.api_client.call_api( *_param, @@ -841,7 +841,7 @@ def analytic_objects_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalyticObjectsDTO", + '200': "DataservicesDatamodelTransfersAnalyticObjectsDTO", } response_data = self.api_client.call_api( *_param, @@ -945,7 +945,7 @@ def call_property( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PropertyDTO: + ) -> DataservicesDatamodelTransfersPropertyDTO: """Retrieve a property by ID If you know the ID of a property, use this API to retrieve that property specifically. You must also know the analytic object's ID.. @@ -989,7 +989,7 @@ def call_property( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PropertyDTO", + '200': "DataservicesDatamodelTransfersPropertyDTO", } response_data = self.api_client.call_api( *_param, @@ -1021,7 +1021,7 @@ def call_property_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PropertyDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersPropertyDTO]: """Retrieve a property by ID If you know the ID of a property, use this API to retrieve that property specifically. You must also know the analytic object's ID.. @@ -1065,7 +1065,7 @@ def call_property_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PropertyDTO", + '200': "DataservicesDatamodelTransfersPropertyDTO", } response_data = self.api_client.call_api( *_param, @@ -1141,7 +1141,7 @@ def call_property_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PropertyDTO", + '200': "DataservicesDatamodelTransfersPropertyDTO", } response_data = self.api_client.call_api( *_param, @@ -1226,7 +1226,7 @@ def _call_property_serialize( @validate_call def create_properties( self, - properties_change_definitions_dto: PropertiesChangeDefinitionsDTO, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, _request_timeout: Union[ @@ -1241,13 +1241,13 @@ def create_properties( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ObjectsBulkChangeResponseDTO: + ) -> ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO: """Create properties Create new properties. Administrating tenant users can specify the tenant in which to add these properties. - :param properties_change_definitions_dto: (required) - :type properties_change_definitions_dto: PropertiesChangeDefinitionsDTO + :param servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -1275,7 +1275,7 @@ def create_properties( """ # noqa: E501 _param = self._create_properties_serialize( - properties_change_definitions_dto=properties_change_definitions_dto, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -1285,7 +1285,7 @@ def create_properties( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ObjectsBulkChangeResponseDTO", + '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1302,7 +1302,7 @@ def create_properties( @validate_call def create_properties_with_http_info( self, - properties_change_definitions_dto: PropertiesChangeDefinitionsDTO, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, _request_timeout: Union[ @@ -1317,13 +1317,13 @@ def create_properties_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ObjectsBulkChangeResponseDTO]: + ) -> ApiResponse[ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO]: """Create properties Create new properties. Administrating tenant users can specify the tenant in which to add these properties. - :param properties_change_definitions_dto: (required) - :type properties_change_definitions_dto: PropertiesChangeDefinitionsDTO + :param servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -1351,7 +1351,7 @@ def create_properties_with_http_info( """ # noqa: E501 _param = self._create_properties_serialize( - properties_change_definitions_dto=properties_change_definitions_dto, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -1361,7 +1361,7 @@ def create_properties_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ObjectsBulkChangeResponseDTO", + '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1378,7 +1378,7 @@ def create_properties_with_http_info( @validate_call def create_properties_without_preload_content( self, - properties_change_definitions_dto: PropertiesChangeDefinitionsDTO, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, _request_timeout: Union[ @@ -1398,8 +1398,8 @@ def create_properties_without_preload_content( Create new properties. Administrating tenant users can specify the tenant in which to add these properties. - :param properties_change_definitions_dto: (required) - :type properties_change_definitions_dto: PropertiesChangeDefinitionsDTO + :param servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -1427,7 +1427,7 @@ def create_properties_without_preload_content( """ # noqa: E501 _param = self._create_properties_serialize( - properties_change_definitions_dto=properties_change_definitions_dto, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -1437,7 +1437,7 @@ def create_properties_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ObjectsBulkChangeResponseDTO", + '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1448,7 +1448,7 @@ def create_properties_without_preload_content( def _create_properties_serialize( self, - properties_change_definitions_dto, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto, target_tenant_id, project_id, _request_auth, @@ -1478,8 +1478,8 @@ def _create_properties_serialize( _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter - if properties_change_definitions_dto is not None: - _body_params = properties_change_definitions_dto + if servicing_publicapi_objectconfiguration_properties_change_definitions_dto is not None: + _body_params = servicing_publicapi_objectconfiguration_properties_change_definitions_dto # set the HTTP header `Accept` @@ -1547,7 +1547,7 @@ def currencies( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CurrenciesDTO: + ) -> DataservicesDatamodelTransfersCurrenciesDTO: """Retrieve all currencies Retrieve all the available currencies in your Visier solution. @@ -1585,7 +1585,7 @@ def currencies( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CurrenciesDTO", + '200': "DataservicesDatamodelTransfersCurrenciesDTO", } response_data = self.api_client.call_api( *_param, @@ -1615,7 +1615,7 @@ def currencies_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CurrenciesDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersCurrenciesDTO]: """Retrieve all currencies Retrieve all the available currencies in your Visier solution. @@ -1653,7 +1653,7 @@ def currencies_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CurrenciesDTO", + '200': "DataservicesDatamodelTransfersCurrenciesDTO", } response_data = self.api_client.call_api( *_param, @@ -1721,7 +1721,7 @@ def currencies_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CurrenciesDTO", + '200': "DataservicesDatamodelTransfersCurrenciesDTO", } response_data = self.api_client.call_api( *_param, @@ -1813,7 +1813,7 @@ def currency( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CurrencyDTO: + ) -> DataservicesDatamodelTransfersCurrencyDTO: """Retrieve a currency Retrieve a specific currency if you know the currency code. @@ -1854,7 +1854,7 @@ def currency( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CurrencyDTO", + '200': "DataservicesDatamodelTransfersCurrencyDTO", } response_data = self.api_client.call_api( *_param, @@ -1885,7 +1885,7 @@ def currency_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CurrencyDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersCurrencyDTO]: """Retrieve a currency Retrieve a specific currency if you know the currency code. @@ -1926,7 +1926,7 @@ def currency_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CurrencyDTO", + '200': "DataservicesDatamodelTransfersCurrencyDTO", } response_data = self.api_client.call_api( *_param, @@ -1998,7 +1998,7 @@ def currency_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CurrencyDTO", + '200': "DataservicesDatamodelTransfersCurrencyDTO", } response_data = self.api_client.call_api( *_param, @@ -2096,7 +2096,7 @@ def currency_rates( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CurrencyRatesDTO: + ) -> DataservicesDatamodelTransfersCurrencyRatesDTO: """Retrieve all exchange rates for a currency Retrieve exchange rates for a specific currency from Visier. You can optionally specify query parameter options for the returned rates, such as the number of decimals to round the exchange rate to. @@ -2146,7 +2146,7 @@ def currency_rates( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CurrencyRatesDTO", + '200': "DataservicesDatamodelTransfersCurrencyRatesDTO", } response_data = self.api_client.call_api( *_param, @@ -2180,7 +2180,7 @@ def currency_rates_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CurrencyRatesDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersCurrencyRatesDTO]: """Retrieve all exchange rates for a currency Retrieve exchange rates for a specific currency from Visier. You can optionally specify query parameter options for the returned rates, such as the number of decimals to round the exchange rate to. @@ -2230,7 +2230,7 @@ def currency_rates_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CurrencyRatesDTO", + '200': "DataservicesDatamodelTransfersCurrencyRatesDTO", } response_data = self.api_client.call_api( *_param, @@ -2314,7 +2314,7 @@ def currency_rates_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CurrencyRatesDTO", + '200': "DataservicesDatamodelTransfersCurrencyRatesDTO", } response_data = self.api_client.call_api( *_param, @@ -2428,7 +2428,7 @@ def currency_rates_with_to_currency( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CurrencyRatesDTO: + ) -> DataservicesDatamodelTransfersCurrencyRatesDTO: """Retrieve exchange rates from one currency to another currency Retrieve exchange rates from a specific currency to another specific currency. You can optionally specify query parameter options for the returned rates, such as the number of decimals to round the exchange rate to. @@ -2481,7 +2481,7 @@ def currency_rates_with_to_currency( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CurrencyRatesDTO", + '200': "DataservicesDatamodelTransfersCurrencyRatesDTO", } response_data = self.api_client.call_api( *_param, @@ -2516,7 +2516,7 @@ def currency_rates_with_to_currency_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CurrencyRatesDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersCurrencyRatesDTO]: """Retrieve exchange rates from one currency to another currency Retrieve exchange rates from a specific currency to another specific currency. You can optionally specify query parameter options for the returned rates, such as the number of decimals to round the exchange rate to. @@ -2569,7 +2569,7 @@ def currency_rates_with_to_currency_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CurrencyRatesDTO", + '200': "DataservicesDatamodelTransfersCurrencyRatesDTO", } response_data = self.api_client.call_api( *_param, @@ -2657,7 +2657,7 @@ def currency_rates_with_to_currency_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CurrencyRatesDTO", + '200': "DataservicesDatamodelTransfersCurrencyRatesDTO", } response_data = self.api_client.call_api( *_param, @@ -2756,7 +2756,7 @@ def _currency_rates_with_to_currency_serialize( @validate_call def delete_properties( self, - properties_delete_definitions_dto: PropertiesDeleteDefinitionsDTO, + servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, _request_timeout: Union[ @@ -2771,13 +2771,13 @@ def delete_properties( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PropertyBulkDeleteResponseDTO: + ) -> ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO: """Delete properties Delete existing properties. Administrating tenant users can specify the tenant in which to delete the properties. In each API request, delete up to 10 properties per tenant with a maximum of 500 tenants. - :param properties_delete_definitions_dto: (required) - :type properties_delete_definitions_dto: PropertiesDeleteDefinitionsDTO + :param servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: (required) + :type servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -2805,7 +2805,7 @@ def delete_properties( """ # noqa: E501 _param = self._delete_properties_serialize( - properties_delete_definitions_dto=properties_delete_definitions_dto, + servicing_publicapi_objectconfiguration_properties_delete_definitions_dto=servicing_publicapi_objectconfiguration_properties_delete_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -2815,7 +2815,7 @@ def delete_properties( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PropertyBulkDeleteResponseDTO", + '200': "ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2832,7 +2832,7 @@ def delete_properties( @validate_call def delete_properties_with_http_info( self, - properties_delete_definitions_dto: PropertiesDeleteDefinitionsDTO, + servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, _request_timeout: Union[ @@ -2847,13 +2847,13 @@ def delete_properties_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PropertyBulkDeleteResponseDTO]: + ) -> ApiResponse[ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO]: """Delete properties Delete existing properties. Administrating tenant users can specify the tenant in which to delete the properties. In each API request, delete up to 10 properties per tenant with a maximum of 500 tenants. - :param properties_delete_definitions_dto: (required) - :type properties_delete_definitions_dto: PropertiesDeleteDefinitionsDTO + :param servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: (required) + :type servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -2881,7 +2881,7 @@ def delete_properties_with_http_info( """ # noqa: E501 _param = self._delete_properties_serialize( - properties_delete_definitions_dto=properties_delete_definitions_dto, + servicing_publicapi_objectconfiguration_properties_delete_definitions_dto=servicing_publicapi_objectconfiguration_properties_delete_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -2891,7 +2891,7 @@ def delete_properties_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PropertyBulkDeleteResponseDTO", + '200': "ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2908,7 +2908,7 @@ def delete_properties_with_http_info( @validate_call def delete_properties_without_preload_content( self, - properties_delete_definitions_dto: PropertiesDeleteDefinitionsDTO, + servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, _request_timeout: Union[ @@ -2928,8 +2928,8 @@ def delete_properties_without_preload_content( Delete existing properties. Administrating tenant users can specify the tenant in which to delete the properties. In each API request, delete up to 10 properties per tenant with a maximum of 500 tenants. - :param properties_delete_definitions_dto: (required) - :type properties_delete_definitions_dto: PropertiesDeleteDefinitionsDTO + :param servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: (required) + :type servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -2957,7 +2957,7 @@ def delete_properties_without_preload_content( """ # noqa: E501 _param = self._delete_properties_serialize( - properties_delete_definitions_dto=properties_delete_definitions_dto, + servicing_publicapi_objectconfiguration_properties_delete_definitions_dto=servicing_publicapi_objectconfiguration_properties_delete_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -2967,7 +2967,7 @@ def delete_properties_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PropertyBulkDeleteResponseDTO", + '200': "ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2978,7 +2978,7 @@ def delete_properties_without_preload_content( def _delete_properties_serialize( self, - properties_delete_definitions_dto, + servicing_publicapi_objectconfiguration_properties_delete_definitions_dto, target_tenant_id, project_id, _request_auth, @@ -3008,8 +3008,8 @@ def _delete_properties_serialize( _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter - if properties_delete_definitions_dto is not None: - _body_params = properties_delete_definitions_dto + if servicing_publicapi_objectconfiguration_properties_delete_definitions_dto is not None: + _body_params = servicing_publicapi_objectconfiguration_properties_delete_definitions_dto # set the HTTP header `Accept` @@ -3079,7 +3079,7 @@ def dimension( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DimensionDTO: + ) -> DataservicesDatamodelTransfersDimensionDTO: """Retrieve a dimension by ID If you know the ID of a dimension, use this API to retrieve that dimension specifically. You must also know the analytic object's ID. @@ -3123,7 +3123,7 @@ def dimension( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DimensionDTO", + '200': "DataservicesDatamodelTransfersDimensionDTO", } response_data = self.api_client.call_api( *_param, @@ -3155,7 +3155,7 @@ def dimension_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DimensionDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersDimensionDTO]: """Retrieve a dimension by ID If you know the ID of a dimension, use this API to retrieve that dimension specifically. You must also know the analytic object's ID. @@ -3199,7 +3199,7 @@ def dimension_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DimensionDTO", + '200': "DataservicesDatamodelTransfersDimensionDTO", } response_data = self.api_client.call_api( *_param, @@ -3275,7 +3275,7 @@ def dimension_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DimensionDTO", + '200': "DataservicesDatamodelTransfersDimensionDTO", } response_data = self.api_client.call_api( *_param, @@ -3361,7 +3361,7 @@ def dimension_member_map_validation( self, object_id: Annotated[StrictStr, Field(description="The ID of the analytic object.")], dimension_id: Annotated[StrictStr, Field(description="The ID of a dimension of the member map.")], - dimension_mapping_validation_execution_dto: DimensionMappingValidationExecutionDTO, + dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -3375,7 +3375,7 @@ def dimension_member_map_validation( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DimensionMappingValidationDTO: + ) -> DataservicesDatamodelTransfersDimensionMappingValidationDTO: """Validate a member map's unmapped dimension members by ID If you know the ID of a member map, use this API to validate one of the member map's dimensions. You must also know the dimension's ID and the analytic object's ID. The response returns the member map ID, the requested dimension ID, a list of the dimension's unmapped members, and a list of errors found. @@ -3384,8 +3384,8 @@ def dimension_member_map_validation( :type object_id: str :param dimension_id: The ID of a dimension of the member map. (required) :type dimension_id: str - :param dimension_mapping_validation_execution_dto: (required) - :type dimension_mapping_validation_execution_dto: DimensionMappingValidationExecutionDTO + :param dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: (required) + :type dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -3413,7 +3413,7 @@ def dimension_member_map_validation( _param = self._dimension_member_map_validation_serialize( object_id=object_id, dimension_id=dimension_id, - dimension_mapping_validation_execution_dto=dimension_mapping_validation_execution_dto, + dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto=dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3422,7 +3422,7 @@ def dimension_member_map_validation( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DimensionMappingValidationDTO", + '200': "DataservicesDatamodelTransfersDimensionMappingValidationDTO", } response_data = self.api_client.call_api( *_param, @@ -3441,7 +3441,7 @@ def dimension_member_map_validation_with_http_info( self, object_id: Annotated[StrictStr, Field(description="The ID of the analytic object.")], dimension_id: Annotated[StrictStr, Field(description="The ID of a dimension of the member map.")], - dimension_mapping_validation_execution_dto: DimensionMappingValidationExecutionDTO, + dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -3455,7 +3455,7 @@ def dimension_member_map_validation_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DimensionMappingValidationDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersDimensionMappingValidationDTO]: """Validate a member map's unmapped dimension members by ID If you know the ID of a member map, use this API to validate one of the member map's dimensions. You must also know the dimension's ID and the analytic object's ID. The response returns the member map ID, the requested dimension ID, a list of the dimension's unmapped members, and a list of errors found. @@ -3464,8 +3464,8 @@ def dimension_member_map_validation_with_http_info( :type object_id: str :param dimension_id: The ID of a dimension of the member map. (required) :type dimension_id: str - :param dimension_mapping_validation_execution_dto: (required) - :type dimension_mapping_validation_execution_dto: DimensionMappingValidationExecutionDTO + :param dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: (required) + :type dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -3493,7 +3493,7 @@ def dimension_member_map_validation_with_http_info( _param = self._dimension_member_map_validation_serialize( object_id=object_id, dimension_id=dimension_id, - dimension_mapping_validation_execution_dto=dimension_mapping_validation_execution_dto, + dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto=dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3502,7 +3502,7 @@ def dimension_member_map_validation_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DimensionMappingValidationDTO", + '200': "DataservicesDatamodelTransfersDimensionMappingValidationDTO", } response_data = self.api_client.call_api( *_param, @@ -3521,7 +3521,7 @@ def dimension_member_map_validation_without_preload_content( self, object_id: Annotated[StrictStr, Field(description="The ID of the analytic object.")], dimension_id: Annotated[StrictStr, Field(description="The ID of a dimension of the member map.")], - dimension_mapping_validation_execution_dto: DimensionMappingValidationExecutionDTO, + dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -3544,8 +3544,8 @@ def dimension_member_map_validation_without_preload_content( :type object_id: str :param dimension_id: The ID of a dimension of the member map. (required) :type dimension_id: str - :param dimension_mapping_validation_execution_dto: (required) - :type dimension_mapping_validation_execution_dto: DimensionMappingValidationExecutionDTO + :param dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: (required) + :type dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -3573,7 +3573,7 @@ def dimension_member_map_validation_without_preload_content( _param = self._dimension_member_map_validation_serialize( object_id=object_id, dimension_id=dimension_id, - dimension_mapping_validation_execution_dto=dimension_mapping_validation_execution_dto, + dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto=dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3582,7 +3582,7 @@ def dimension_member_map_validation_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DimensionMappingValidationDTO", + '200': "DataservicesDatamodelTransfersDimensionMappingValidationDTO", } response_data = self.api_client.call_api( *_param, @@ -3595,7 +3595,7 @@ def _dimension_member_map_validation_serialize( self, object_id, dimension_id, - dimension_mapping_validation_execution_dto, + dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto, target_tenant_id, _request_auth, _content_type, @@ -3626,8 +3626,8 @@ def _dimension_member_map_validation_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if dimension_mapping_validation_execution_dto is not None: - _body_params = dimension_mapping_validation_execution_dto + if dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto is not None: + _body_params = dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto # set the HTTP header `Accept` @@ -3697,7 +3697,7 @@ def dimensions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DimensionsDTO: + ) -> DataservicesDatamodelTransfersDimensionsDTO: """Retrieve a list of dimensions Retrieve a list of dimensions for a specific analytic object. @@ -3741,7 +3741,7 @@ def dimensions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DimensionsDTO", + '200': "DataservicesDatamodelTransfersDimensionsDTO", } response_data = self.api_client.call_api( *_param, @@ -3773,7 +3773,7 @@ def dimensions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DimensionsDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersDimensionsDTO]: """Retrieve a list of dimensions Retrieve a list of dimensions for a specific analytic object. @@ -3817,7 +3817,7 @@ def dimensions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DimensionsDTO", + '200': "DataservicesDatamodelTransfersDimensionsDTO", } response_data = self.api_client.call_api( *_param, @@ -3893,7 +3893,7 @@ def dimensions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DimensionsDTO", + '200': "DataservicesDatamodelTransfersDimensionsDTO", } response_data = self.api_client.call_api( *_param, @@ -3997,7 +3997,7 @@ def member( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> MembersDTO: + ) -> DataservicesDatamodelTransfersMembersDTO: """Retrieve a dimension member If you know the ID of a dimension member, use this API to retrieve that dimension member specifically. You must also know the dimension's ID and the analytic object's ID. @@ -4047,7 +4047,7 @@ def member( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MembersDTO", + '200': "DataservicesDatamodelTransfersMembersDTO", } response_data = self.api_client.call_api( *_param, @@ -4081,7 +4081,7 @@ def member_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[MembersDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersMembersDTO]: """Retrieve a dimension member If you know the ID of a dimension member, use this API to retrieve that dimension member specifically. You must also know the dimension's ID and the analytic object's ID. @@ -4131,7 +4131,7 @@ def member_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MembersDTO", + '200': "DataservicesDatamodelTransfersMembersDTO", } response_data = self.api_client.call_api( *_param, @@ -4215,7 +4215,7 @@ def member_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MembersDTO", + '200': "DataservicesDatamodelTransfersMembersDTO", } response_data = self.api_client.call_api( *_param, @@ -4330,7 +4330,7 @@ def members( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> MembersDTO: + ) -> DataservicesDatamodelTransfersMembersDTO: """Retrieve a list of dimension members If you know the ID of a dimension, use this API to retrieve the members of that dimension specifically. You must also know the analytic object's ID. Dimension members exist in a hierarchy. The levels in the hierarchy may be fixed or non-uniform. Leveled dimensions have fixed hierarchies, while parent-child dimensions have non-uniform levels. When you retrieve dimension members with this API, the response returns the level of the dimension and the path to get to that level. For example, in a Location dimension, Vancouver is 3 levels deep: - All > Canada > British Columbia > Vancouver Parent-child hierarchies are non-uniform and exhibit distinct characteristics such as time dependence and data attributes. These traits reflect the dynamic nature of hierarchies, for example, organizational hierarchies. The API response includes elements that express the validity ranges for retrieved members. @@ -4398,7 +4398,7 @@ def members( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MembersDTO", + '200': "DataservicesDatamodelTransfersMembersDTO", } response_data = self.api_client.call_api( *_param, @@ -4438,7 +4438,7 @@ def members_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[MembersDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersMembersDTO]: """Retrieve a list of dimension members If you know the ID of a dimension, use this API to retrieve the members of that dimension specifically. You must also know the analytic object's ID. Dimension members exist in a hierarchy. The levels in the hierarchy may be fixed or non-uniform. Leveled dimensions have fixed hierarchies, while parent-child dimensions have non-uniform levels. When you retrieve dimension members with this API, the response returns the level of the dimension and the path to get to that level. For example, in a Location dimension, Vancouver is 3 levels deep: - All > Canada > British Columbia > Vancouver Parent-child hierarchies are non-uniform and exhibit distinct characteristics such as time dependence and data attributes. These traits reflect the dynamic nature of hierarchies, for example, organizational hierarchies. The API response includes elements that express the validity ranges for retrieved members. @@ -4506,7 +4506,7 @@ def members_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MembersDTO", + '200': "DataservicesDatamodelTransfersMembersDTO", } response_data = self.api_client.call_api( *_param, @@ -4614,7 +4614,7 @@ def members_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MembersDTO", + '200': "DataservicesDatamodelTransfersMembersDTO", } response_data = self.api_client.call_api( *_param, @@ -4753,7 +4753,7 @@ def metric( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> MetricDTO: + ) -> DataservicesDatamodelTransfersMetricDTO: """Retrieve a metric by ID If you know the ID of a metric, use this API to retrieve that metric specifically. @@ -4794,7 +4794,7 @@ def metric( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MetricDTO", + '200': "DataservicesDatamodelTransfersMetricDTO", } response_data = self.api_client.call_api( *_param, @@ -4825,7 +4825,7 @@ def metric_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[MetricDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersMetricDTO]: """Retrieve a metric by ID If you know the ID of a metric, use this API to retrieve that metric specifically. @@ -4866,7 +4866,7 @@ def metric_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MetricDTO", + '200': "DataservicesDatamodelTransfersMetricDTO", } response_data = self.api_client.call_api( *_param, @@ -4938,7 +4938,7 @@ def metric_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MetricDTO", + '200': "DataservicesDatamodelTransfersMetricDTO", } response_data = self.api_client.call_api( *_param, @@ -5034,7 +5034,7 @@ def metric_dimensions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DimensionsDTO: + ) -> DataservicesDatamodelTransfersDimensionsDTO: """Retrieve a metric's dimensions Retrieve a list of dimensions for a specific metric. @@ -5078,7 +5078,7 @@ def metric_dimensions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DimensionsDTO", + '200': "DataservicesDatamodelTransfersDimensionsDTO", } response_data = self.api_client.call_api( *_param, @@ -5110,7 +5110,7 @@ def metric_dimensions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DimensionsDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersDimensionsDTO]: """Retrieve a metric's dimensions Retrieve a list of dimensions for a specific metric. @@ -5154,7 +5154,7 @@ def metric_dimensions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DimensionsDTO", + '200': "DataservicesDatamodelTransfersDimensionsDTO", } response_data = self.api_client.call_api( *_param, @@ -5230,7 +5230,7 @@ def metric_dimensions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DimensionsDTO", + '200': "DataservicesDatamodelTransfersDimensionsDTO", } response_data = self.api_client.call_api( *_param, @@ -5332,7 +5332,7 @@ def metric_selection_concepts( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SelectionConceptsDTO: + ) -> DataservicesDatamodelTransfersSelectionConceptsDTO: """Retrieve a metric's selection concepts Retrieve a list of selection concepts for a specific metric. @@ -5376,7 +5376,7 @@ def metric_selection_concepts( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SelectionConceptsDTO", + '200': "DataservicesDatamodelTransfersSelectionConceptsDTO", } response_data = self.api_client.call_api( *_param, @@ -5408,7 +5408,7 @@ def metric_selection_concepts_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SelectionConceptsDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersSelectionConceptsDTO]: """Retrieve a metric's selection concepts Retrieve a list of selection concepts for a specific metric. @@ -5452,7 +5452,7 @@ def metric_selection_concepts_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SelectionConceptsDTO", + '200': "DataservicesDatamodelTransfersSelectionConceptsDTO", } response_data = self.api_client.call_api( *_param, @@ -5528,7 +5528,7 @@ def metric_selection_concepts_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SelectionConceptsDTO", + '200': "DataservicesDatamodelTransfersSelectionConceptsDTO", } response_data = self.api_client.call_api( *_param, @@ -5630,7 +5630,7 @@ def metrics( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> MetricsDTO: + ) -> DataservicesDatamodelTransfersMetricsDTO: """Retrieve a list of metrics Retrieve all the metrics in your Visier solution. @@ -5674,7 +5674,7 @@ def metrics( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MetricsDTO", + '200': "DataservicesDatamodelTransfersMetricsDTO", } response_data = self.api_client.call_api( *_param, @@ -5706,7 +5706,7 @@ def metrics_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[MetricsDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersMetricsDTO]: """Retrieve a list of metrics Retrieve all the metrics in your Visier solution. @@ -5750,7 +5750,7 @@ def metrics_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MetricsDTO", + '200': "DataservicesDatamodelTransfersMetricsDTO", } response_data = self.api_client.call_api( *_param, @@ -5826,7 +5826,7 @@ def metrics_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MetricsDTO", + '200': "DataservicesDatamodelTransfersMetricsDTO", } response_data = self.api_client.call_api( *_param, @@ -5940,7 +5940,7 @@ def plan_data_loadl_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetPlanListResponseDTO: + ) -> PlanningTransfersGetPlanListResponseDTO: """Retrieve a list of plans Retrieve all the plans you have access to. The response returns plan information you can use to call the Planning Data Load API.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -6014,7 +6014,7 @@ def plan_data_loadl_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPlanListResponseDTO", + '200': "PlanningTransfersGetPlanListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -6056,7 +6056,7 @@ def plan_data_loadl_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetPlanListResponseDTO]: + ) -> ApiResponse[PlanningTransfersGetPlanListResponseDTO]: """Retrieve a list of plans Retrieve all the plans you have access to. The response returns plan information you can use to call the Planning Data Load API.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -6130,7 +6130,7 @@ def plan_data_loadl_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPlanListResponseDTO", + '200': "PlanningTransfersGetPlanListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -6246,7 +6246,7 @@ def plan_data_loadl_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPlanListResponseDTO", + '200': "PlanningTransfersGetPlanListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -6400,7 +6400,7 @@ def plan_info_with_schema( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PlanWithSchemaDTO: + ) -> PlanningTransfersPlanWithSchemaDTO: """Retrieve a plan's details Retrieve the details of a specific plan. The response returns plan information you can use to call the Planning Data Load API.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -6447,7 +6447,7 @@ def plan_info_with_schema( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanWithSchemaDTO", + '200': "PlanningTransfersPlanWithSchemaDTO", } response_data = self.api_client.call_api( *_param, @@ -6480,7 +6480,7 @@ def plan_info_with_schema_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PlanWithSchemaDTO]: + ) -> ApiResponse[PlanningTransfersPlanWithSchemaDTO]: """Retrieve a plan's details Retrieve the details of a specific plan. The response returns plan information you can use to call the Planning Data Load API.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -6527,7 +6527,7 @@ def plan_info_with_schema_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanWithSchemaDTO", + '200': "PlanningTransfersPlanWithSchemaDTO", } response_data = self.api_client.call_api( *_param, @@ -6607,7 +6607,7 @@ def plan_info_with_schema_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanWithSchemaDTO", + '200': "PlanningTransfersPlanWithSchemaDTO", } response_data = self.api_client.call_api( *_param, @@ -6712,7 +6712,7 @@ def planning_metrics( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> MetricsDTO: + ) -> DataservicesDatamodelTransfersMetricsDTO: """Retrieve metrics by planning model ID Retrieve all the metrics you have access to for a planning model. @@ -6753,7 +6753,7 @@ def planning_metrics( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MetricsDTO", + '200': "DataservicesDatamodelTransfersMetricsDTO", } response_data = self.api_client.call_api( *_param, @@ -6784,7 +6784,7 @@ def planning_metrics_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[MetricsDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersMetricsDTO]: """Retrieve metrics by planning model ID Retrieve all the metrics you have access to for a planning model. @@ -6825,7 +6825,7 @@ def planning_metrics_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MetricsDTO", + '200': "DataservicesDatamodelTransfersMetricsDTO", } response_data = self.api_client.call_api( *_param, @@ -6897,7 +6897,7 @@ def planning_metrics_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MetricsDTO", + '200': "DataservicesDatamodelTransfersMetricsDTO", } response_data = self.api_client.call_api( *_param, @@ -6992,7 +6992,7 @@ def planning_model( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PlanningModelDTO: + ) -> DataservicesDatamodelTransfersPlanningModelDTO: """Retrieve a planning model by ID Retrieve a specific planning model you have access to. @@ -7033,7 +7033,7 @@ def planning_model( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningModelDTO", + '200': "DataservicesDatamodelTransfersPlanningModelDTO", } response_data = self.api_client.call_api( *_param, @@ -7064,7 +7064,7 @@ def planning_model_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PlanningModelDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersPlanningModelDTO]: """Retrieve a planning model by ID Retrieve a specific planning model you have access to. @@ -7105,7 +7105,7 @@ def planning_model_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningModelDTO", + '200': "DataservicesDatamodelTransfersPlanningModelDTO", } response_data = self.api_client.call_api( *_param, @@ -7177,7 +7177,7 @@ def planning_model_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningModelDTO", + '200': "DataservicesDatamodelTransfersPlanningModelDTO", } response_data = self.api_client.call_api( *_param, @@ -7272,7 +7272,7 @@ def planning_models( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PlanningModelsDTO: + ) -> DataservicesDatamodelTransfersPlanningModelsDTO: """Retrieve a list of planning models Retrieve all the planning models you have access to. @@ -7313,7 +7313,7 @@ def planning_models( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningModelsDTO", + '200': "DataservicesDatamodelTransfersPlanningModelsDTO", } response_data = self.api_client.call_api( *_param, @@ -7344,7 +7344,7 @@ def planning_models_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PlanningModelsDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersPlanningModelsDTO]: """Retrieve a list of planning models Retrieve all the planning models you have access to. @@ -7385,7 +7385,7 @@ def planning_models_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningModelsDTO", + '200': "DataservicesDatamodelTransfersPlanningModelsDTO", } response_data = self.api_client.call_api( *_param, @@ -7457,7 +7457,7 @@ def planning_models_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningModelsDTO", + '200': "DataservicesDatamodelTransfersPlanningModelsDTO", } response_data = self.api_client.call_api( *_param, @@ -7556,7 +7556,7 @@ def planning_plan( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PlanningPlanDTO: + ) -> DataservicesDatamodelTransfersPlanningPlanDTO: """Retrieve a plan by planning model ID and plan ID Retrieve a specific plan that you have access to in a planning model. @@ -7600,7 +7600,7 @@ def planning_plan( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningPlanDTO", + '200': "DataservicesDatamodelTransfersPlanningPlanDTO", } response_data = self.api_client.call_api( *_param, @@ -7632,7 +7632,7 @@ def planning_plan_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PlanningPlanDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersPlanningPlanDTO]: """Retrieve a plan by planning model ID and plan ID Retrieve a specific plan that you have access to in a planning model. @@ -7676,7 +7676,7 @@ def planning_plan_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningPlanDTO", + '200': "DataservicesDatamodelTransfersPlanningPlanDTO", } response_data = self.api_client.call_api( *_param, @@ -7752,7 +7752,7 @@ def planning_plan_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningPlanDTO", + '200': "DataservicesDatamodelTransfersPlanningPlanDTO", } response_data = self.api_client.call_api( *_param, @@ -7851,7 +7851,7 @@ def planning_plans( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PlanningPlansDTO: + ) -> DataservicesDatamodelTransfersPlanningPlansDTO: """Retrieve a list of plans by planning model ID Retrieve all the plans you have access to for a planning model. @@ -7895,7 +7895,7 @@ def planning_plans( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningPlansDTO", + '200': "DataservicesDatamodelTransfersPlanningPlansDTO", } response_data = self.api_client.call_api( *_param, @@ -7927,7 +7927,7 @@ def planning_plans_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PlanningPlansDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersPlanningPlansDTO]: """Retrieve a list of plans by planning model ID Retrieve all the plans you have access to for a planning model. @@ -7971,7 +7971,7 @@ def planning_plans_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningPlansDTO", + '200': "DataservicesDatamodelTransfersPlanningPlansDTO", } response_data = self.api_client.call_api( *_param, @@ -8047,7 +8047,7 @@ def planning_plans_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningPlansDTO", + '200': "DataservicesDatamodelTransfersPlanningPlansDTO", } response_data = self.api_client.call_api( *_param, @@ -8148,7 +8148,7 @@ def prediction( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PredictionDTO: + ) -> DataservicesDatamodelTransfersPredictionDTO: """Retrieve a prediction by ID If you know the ID of a prediction, use this API to retrieve that prediction specifically. @@ -8189,7 +8189,7 @@ def prediction( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PredictionDTO", + '200': "DataservicesDatamodelTransfersPredictionDTO", } response_data = self.api_client.call_api( *_param, @@ -8220,7 +8220,7 @@ def prediction_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PredictionDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersPredictionDTO]: """Retrieve a prediction by ID If you know the ID of a prediction, use this API to retrieve that prediction specifically. @@ -8261,7 +8261,7 @@ def prediction_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PredictionDTO", + '200': "DataservicesDatamodelTransfersPredictionDTO", } response_data = self.api_client.call_api( *_param, @@ -8333,7 +8333,7 @@ def prediction_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PredictionDTO", + '200': "DataservicesDatamodelTransfersPredictionDTO", } response_data = self.api_client.call_api( *_param, @@ -8428,7 +8428,7 @@ def predictions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PredictionsDTO: + ) -> DataservicesDatamodelTransfersPredictionsDTO: """Retrieve a list of predictions Retrieve all the predictions in your Visier solution. @@ -8469,7 +8469,7 @@ def predictions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PredictionsDTO", + '200': "DataservicesDatamodelTransfersPredictionsDTO", } response_data = self.api_client.call_api( *_param, @@ -8500,7 +8500,7 @@ def predictions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PredictionsDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersPredictionsDTO]: """Retrieve a list of predictions Retrieve all the predictions in your Visier solution. @@ -8541,7 +8541,7 @@ def predictions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PredictionsDTO", + '200': "DataservicesDatamodelTransfersPredictionsDTO", } response_data = self.api_client.call_api( *_param, @@ -8613,7 +8613,7 @@ def predictions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PredictionsDTO", + '200': "DataservicesDatamodelTransfersPredictionsDTO", } response_data = self.api_client.call_api( *_param, @@ -8712,7 +8712,7 @@ def properties( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PropertiesDTO: + ) -> DataservicesDatamodelTransfersPropertiesDTO: """Retrieve a list of properties Retrieve a list of properties for a specific analytic object. @@ -8756,7 +8756,7 @@ def properties( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PropertiesDTO", + '200': "DataservicesDatamodelTransfersPropertiesDTO", } response_data = self.api_client.call_api( *_param, @@ -8788,7 +8788,7 @@ def properties_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PropertiesDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersPropertiesDTO]: """Retrieve a list of properties Retrieve a list of properties for a specific analytic object. @@ -8832,7 +8832,7 @@ def properties_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PropertiesDTO", + '200': "DataservicesDatamodelTransfersPropertiesDTO", } response_data = self.api_client.call_api( *_param, @@ -8908,7 +8908,7 @@ def properties_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PropertiesDTO", + '200': "DataservicesDatamodelTransfersPropertiesDTO", } response_data = self.api_client.call_api( *_param, @@ -8995,7 +8995,7 @@ def _properties_serialize( @validate_call def put_properties( self, - properties_change_definitions_dto: PropertiesChangeDefinitionsDTO, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, _request_timeout: Union[ @@ -9010,13 +9010,13 @@ def put_properties( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ObjectsBulkChangeResponseDTO: + ) -> ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO: """Replace properties Update existing properties by replacing their entire definition. The definition in your API call replaces the property's prior definition. You must provide the entire definition in the PUT call. If you omit values from the update request, those values are removed from the property. We recommend that you retrieve a property's details before you update the property with new values. This operation does not create new properties if they do not exist. In each API request, update up to 10 properties per tenant with a maximum of 500 tenants. To specify the tenant in which to update a property, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header or `tenantCode` for each property in the request body. To specify the project in which to update properties, provide a project UUID in the `ProjectID` request header or `projectId` for each property in the request body. - :param properties_change_definitions_dto: (required) - :type properties_change_definitions_dto: PropertiesChangeDefinitionsDTO + :param servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -9044,7 +9044,7 @@ def put_properties( """ # noqa: E501 _param = self._put_properties_serialize( - properties_change_definitions_dto=properties_change_definitions_dto, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -9054,7 +9054,7 @@ def put_properties( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ObjectsBulkChangeResponseDTO", + '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -9071,7 +9071,7 @@ def put_properties( @validate_call def put_properties_with_http_info( self, - properties_change_definitions_dto: PropertiesChangeDefinitionsDTO, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, _request_timeout: Union[ @@ -9086,13 +9086,13 @@ def put_properties_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ObjectsBulkChangeResponseDTO]: + ) -> ApiResponse[ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO]: """Replace properties Update existing properties by replacing their entire definition. The definition in your API call replaces the property's prior definition. You must provide the entire definition in the PUT call. If you omit values from the update request, those values are removed from the property. We recommend that you retrieve a property's details before you update the property with new values. This operation does not create new properties if they do not exist. In each API request, update up to 10 properties per tenant with a maximum of 500 tenants. To specify the tenant in which to update a property, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header or `tenantCode` for each property in the request body. To specify the project in which to update properties, provide a project UUID in the `ProjectID` request header or `projectId` for each property in the request body. - :param properties_change_definitions_dto: (required) - :type properties_change_definitions_dto: PropertiesChangeDefinitionsDTO + :param servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -9120,7 +9120,7 @@ def put_properties_with_http_info( """ # noqa: E501 _param = self._put_properties_serialize( - properties_change_definitions_dto=properties_change_definitions_dto, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -9130,7 +9130,7 @@ def put_properties_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ObjectsBulkChangeResponseDTO", + '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -9147,7 +9147,7 @@ def put_properties_with_http_info( @validate_call def put_properties_without_preload_content( self, - properties_change_definitions_dto: PropertiesChangeDefinitionsDTO, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, _request_timeout: Union[ @@ -9167,8 +9167,8 @@ def put_properties_without_preload_content( Update existing properties by replacing their entire definition. The definition in your API call replaces the property's prior definition. You must provide the entire definition in the PUT call. If you omit values from the update request, those values are removed from the property. We recommend that you retrieve a property's details before you update the property with new values. This operation does not create new properties if they do not exist. In each API request, update up to 10 properties per tenant with a maximum of 500 tenants. To specify the tenant in which to update a property, administrating tenants can provide an analytic tenant code in the `TargetTenantID` request header or `tenantCode` for each property in the request body. To specify the project in which to update properties, provide a project UUID in the `ProjectID` request header or `projectId` for each property in the request body. - :param properties_change_definitions_dto: (required) - :type properties_change_definitions_dto: PropertiesChangeDefinitionsDTO + :param servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -9196,7 +9196,7 @@ def put_properties_without_preload_content( """ # noqa: E501 _param = self._put_properties_serialize( - properties_change_definitions_dto=properties_change_definitions_dto, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -9206,7 +9206,7 @@ def put_properties_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ObjectsBulkChangeResponseDTO", + '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -9217,7 +9217,7 @@ def put_properties_without_preload_content( def _put_properties_serialize( self, - properties_change_definitions_dto, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto, target_tenant_id, project_id, _request_auth, @@ -9247,8 +9247,8 @@ def _put_properties_serialize( _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter - if properties_change_definitions_dto is not None: - _body_params = properties_change_definitions_dto + if servicing_publicapi_objectconfiguration_properties_change_definitions_dto is not None: + _body_params = servicing_publicapi_objectconfiguration_properties_change_definitions_dto # set the HTTP header `Accept` @@ -9318,7 +9318,7 @@ def selection_concept( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SelectionConceptDTO: + ) -> DataservicesDatamodelTransfersSelectionConceptDTO: """Retrieve an analytic object's selection concept by ID If you know the ID of a selection concept, use this API to retrieve that selection concept specifically. You must also know the analytic object's ID. @@ -9362,7 +9362,7 @@ def selection_concept( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SelectionConceptDTO", + '200': "DataservicesDatamodelTransfersSelectionConceptDTO", } response_data = self.api_client.call_api( *_param, @@ -9394,7 +9394,7 @@ def selection_concept_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SelectionConceptDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersSelectionConceptDTO]: """Retrieve an analytic object's selection concept by ID If you know the ID of a selection concept, use this API to retrieve that selection concept specifically. You must also know the analytic object's ID. @@ -9438,7 +9438,7 @@ def selection_concept_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SelectionConceptDTO", + '200': "DataservicesDatamodelTransfersSelectionConceptDTO", } response_data = self.api_client.call_api( *_param, @@ -9514,7 +9514,7 @@ def selection_concept_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SelectionConceptDTO", + '200': "DataservicesDatamodelTransfersSelectionConceptDTO", } response_data = self.api_client.call_api( *_param, @@ -9613,7 +9613,7 @@ def selection_concepts( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SelectionConceptsDTO: + ) -> DataservicesDatamodelTransfersSelectionConceptsDTO: """Retrieve an analytic object's selection concepts Retrieve a list of selection concepts for a specific analytic object. @@ -9657,7 +9657,7 @@ def selection_concepts( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SelectionConceptsDTO", + '200': "DataservicesDatamodelTransfersSelectionConceptsDTO", } response_data = self.api_client.call_api( *_param, @@ -9689,7 +9689,7 @@ def selection_concepts_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SelectionConceptsDTO]: + ) -> ApiResponse[DataservicesDatamodelTransfersSelectionConceptsDTO]: """Retrieve an analytic object's selection concepts Retrieve a list of selection concepts for a specific analytic object. @@ -9733,7 +9733,7 @@ def selection_concepts_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SelectionConceptsDTO", + '200': "DataservicesDatamodelTransfersSelectionConceptsDTO", } response_data = self.api_client.call_api( *_param, @@ -9809,7 +9809,7 @@ def selection_concepts_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SelectionConceptsDTO", + '200': "DataservicesDatamodelTransfersSelectionConceptsDTO", } response_data = self.api_client.call_api( *_param, @@ -9896,7 +9896,7 @@ def _selection_concepts_serialize( @validate_call def update_dimensions( self, - dimensions_change_definitions_dto: DimensionsChangeDefinitionsDTO, + servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, _request_timeout: Union[ @@ -9911,13 +9911,13 @@ def update_dimensions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ObjectsBulkChangeResponseDTO: + ) -> ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO: """Update dimensions Change the display name, short display name, and description of one or more dimensions. This API supports updating leveled dimensions. In each API request, update up to 10 dimensions per tenant with a maximum of 500 tenants. - :param dimensions_change_definitions_dto: (required) - :type dimensions_change_definitions_dto: DimensionsChangeDefinitionsDTO + :param servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: (required) + :type servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -9945,7 +9945,7 @@ def update_dimensions( """ # noqa: E501 _param = self._update_dimensions_serialize( - dimensions_change_definitions_dto=dimensions_change_definitions_dto, + servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto=servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -9955,7 +9955,7 @@ def update_dimensions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ObjectsBulkChangeResponseDTO", + '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -9972,7 +9972,7 @@ def update_dimensions( @validate_call def update_dimensions_with_http_info( self, - dimensions_change_definitions_dto: DimensionsChangeDefinitionsDTO, + servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, _request_timeout: Union[ @@ -9987,13 +9987,13 @@ def update_dimensions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ObjectsBulkChangeResponseDTO]: + ) -> ApiResponse[ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO]: """Update dimensions Change the display name, short display name, and description of one or more dimensions. This API supports updating leveled dimensions. In each API request, update up to 10 dimensions per tenant with a maximum of 500 tenants. - :param dimensions_change_definitions_dto: (required) - :type dimensions_change_definitions_dto: DimensionsChangeDefinitionsDTO + :param servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: (required) + :type servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -10021,7 +10021,7 @@ def update_dimensions_with_http_info( """ # noqa: E501 _param = self._update_dimensions_serialize( - dimensions_change_definitions_dto=dimensions_change_definitions_dto, + servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto=servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -10031,7 +10031,7 @@ def update_dimensions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ObjectsBulkChangeResponseDTO", + '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -10048,7 +10048,7 @@ def update_dimensions_with_http_info( @validate_call def update_dimensions_without_preload_content( self, - dimensions_change_definitions_dto: DimensionsChangeDefinitionsDTO, + servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, _request_timeout: Union[ @@ -10068,8 +10068,8 @@ def update_dimensions_without_preload_content( Change the display name, short display name, and description of one or more dimensions. This API supports updating leveled dimensions. In each API request, update up to 10 dimensions per tenant with a maximum of 500 tenants. - :param dimensions_change_definitions_dto: (required) - :type dimensions_change_definitions_dto: DimensionsChangeDefinitionsDTO + :param servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: (required) + :type servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -10097,7 +10097,7 @@ def update_dimensions_without_preload_content( """ # noqa: E501 _param = self._update_dimensions_serialize( - dimensions_change_definitions_dto=dimensions_change_definitions_dto, + servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto=servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -10107,7 +10107,7 @@ def update_dimensions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ObjectsBulkChangeResponseDTO", + '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -10118,7 +10118,7 @@ def update_dimensions_without_preload_content( def _update_dimensions_serialize( self, - dimensions_change_definitions_dto, + servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto, target_tenant_id, project_id, _request_auth, @@ -10148,8 +10148,8 @@ def _update_dimensions_serialize( _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter - if dimensions_change_definitions_dto is not None: - _body_params = dimensions_change_definitions_dto + if servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto is not None: + _body_params = servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto # set the HTTP header `Accept` @@ -10204,7 +10204,7 @@ def _update_dimensions_serialize( @validate_call def update_properties( self, - properties_change_definitions_dto: PropertiesChangeDefinitionsDTO, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, _request_timeout: Union[ @@ -10219,13 +10219,13 @@ def update_properties( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ObjectsBulkChangeResponseDTO: + ) -> ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO: """Update properties Change the display name, short display name, and description of one or more properties. In each API request, update up to 10 properties per tenant with a maximum of 500 tenants. - :param properties_change_definitions_dto: (required) - :type properties_change_definitions_dto: PropertiesChangeDefinitionsDTO + :param servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -10253,7 +10253,7 @@ def update_properties( """ # noqa: E501 _param = self._update_properties_serialize( - properties_change_definitions_dto=properties_change_definitions_dto, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -10263,7 +10263,7 @@ def update_properties( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ObjectsBulkChangeResponseDTO", + '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -10280,7 +10280,7 @@ def update_properties( @validate_call def update_properties_with_http_info( self, - properties_change_definitions_dto: PropertiesChangeDefinitionsDTO, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, _request_timeout: Union[ @@ -10295,13 +10295,13 @@ def update_properties_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ObjectsBulkChangeResponseDTO]: + ) -> ApiResponse[ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO]: """Update properties Change the display name, short display name, and description of one or more properties. In each API request, update up to 10 properties per tenant with a maximum of 500 tenants. - :param properties_change_definitions_dto: (required) - :type properties_change_definitions_dto: PropertiesChangeDefinitionsDTO + :param servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -10329,7 +10329,7 @@ def update_properties_with_http_info( """ # noqa: E501 _param = self._update_properties_serialize( - properties_change_definitions_dto=properties_change_definitions_dto, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -10339,7 +10339,7 @@ def update_properties_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ObjectsBulkChangeResponseDTO", + '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -10356,7 +10356,7 @@ def update_properties_with_http_info( @validate_call def update_properties_without_preload_content( self, - properties_change_definitions_dto: PropertiesChangeDefinitionsDTO, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, project_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify a project in which to make the request.")] = None, _request_timeout: Union[ @@ -10376,8 +10376,8 @@ def update_properties_without_preload_content( Change the display name, short display name, and description of one or more properties. In each API request, update up to 10 properties per tenant with a maximum of 500 tenants. - :param properties_change_definitions_dto: (required) - :type properties_change_definitions_dto: PropertiesChangeDefinitionsDTO + :param servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param project_id: Optionally, specify a project in which to make the request. @@ -10405,7 +10405,7 @@ def update_properties_without_preload_content( """ # noqa: E501 _param = self._update_properties_serialize( - properties_change_definitions_dto=properties_change_definitions_dto, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -10415,7 +10415,7 @@ def update_properties_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ObjectsBulkChangeResponseDTO", + '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -10426,7 +10426,7 @@ def update_properties_without_preload_content( def _update_properties_serialize( self, - properties_change_definitions_dto, + servicing_publicapi_objectconfiguration_properties_change_definitions_dto, target_tenant_id, project_id, _request_auth, @@ -10456,8 +10456,8 @@ def _update_properties_serialize( _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter - if properties_change_definitions_dto is not None: - _body_params = properties_change_definitions_dto + if servicing_publicapi_objectconfiguration_properties_change_definitions_dto is not None: + _body_params = servicing_publicapi_objectconfiguration_properties_change_definitions_dto # set the HTTP header `Accept` diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/api/object_configuration_api.py b/src/visier_api_analytic_model/visier_api_analytic_model/api/object_configuration_api.py index 1795f6851a..3dee365d4f 100644 --- a/src/visier_api_analytic_model/visier_api_analytic_model/api/object_configuration_api.py +++ b/src/visier_api_analytic_model/visier_api_analytic_model/api/object_configuration_api.py @@ -5,7 +5,7 @@ Visier APIs for retrieving and configuring your analytic model in Visier. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,13 +23,13 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_analytic_model.models.calculation_concept_configuration_map_dto import CalculationConceptConfigurationMapDTO -from visier_api_analytic_model.models.calculation_concept_dto import CalculationConceptDTO -from visier_api_analytic_model.models.calculation_concept_list_dto import CalculationConceptListDTO -from visier_api_analytic_model.models.concept_configuration_result_dto import ConceptConfigurationResultDTO -from visier_api_analytic_model.models.selection_concept_configuration_map_dto import SelectionConceptConfigurationMapDTO -from visier_api_analytic_model.models.selection_concept_dto import SelectionConceptDTO -from visier_api_analytic_model.models.selection_concept_list_dto import SelectionConceptListDTO +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_configuration_map_dto import DesignerApiTransfersCalculationConceptConfigurationMapDTO +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_dto import DesignerApiTransfersCalculationConceptDTO +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_list_dto import DesignerApiTransfersCalculationConceptListDTO +from visier_api_analytic_model.models.designer_api_transfers_concept_configuration_result_dto import DesignerApiTransfersConceptConfigurationResultDTO +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_configuration_map_dto import DesignerApiTransfersSelectionConceptConfigurationMapDTO +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_dto import DesignerApiTransfersSelectionConceptDTO +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_list_dto import DesignerApiTransfersSelectionConceptListDTO import visier_api_analytic_model.models @@ -62,7 +62,7 @@ def get_calculation_concept( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CalculationConceptDTO: + ) -> DesignerApiTransfersCalculationConceptDTO: """Retrieve the configuration of a calculation concept Retrieve the configuration details of a calculation concept in production. @@ -103,7 +103,7 @@ def get_calculation_concept( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CalculationConceptDTO", + '200': "DesignerApiTransfersCalculationConceptDTO", } response_data = self.api_client.call_api( *_param, @@ -134,7 +134,7 @@ def get_calculation_concept_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CalculationConceptDTO]: + ) -> ApiResponse[DesignerApiTransfersCalculationConceptDTO]: """Retrieve the configuration of a calculation concept Retrieve the configuration details of a calculation concept in production. @@ -175,7 +175,7 @@ def get_calculation_concept_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CalculationConceptDTO", + '200': "DesignerApiTransfersCalculationConceptDTO", } response_data = self.api_client.call_api( *_param, @@ -247,7 +247,7 @@ def get_calculation_concept_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CalculationConceptDTO", + '200': "DesignerApiTransfersCalculationConceptDTO", } response_data = self.api_client.call_api( *_param, @@ -341,7 +341,7 @@ def get_calculation_concepts( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CalculationConceptListDTO: + ) -> DesignerApiTransfersCalculationConceptListDTO: """Retrieve all calculation concepts Retrieve the calculation concepts available in production. @@ -379,7 +379,7 @@ def get_calculation_concepts( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CalculationConceptListDTO", + '200': "DesignerApiTransfersCalculationConceptListDTO", } response_data = self.api_client.call_api( *_param, @@ -409,7 +409,7 @@ def get_calculation_concepts_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CalculationConceptListDTO]: + ) -> ApiResponse[DesignerApiTransfersCalculationConceptListDTO]: """Retrieve all calculation concepts Retrieve the calculation concepts available in production. @@ -447,7 +447,7 @@ def get_calculation_concepts_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CalculationConceptListDTO", + '200': "DesignerApiTransfersCalculationConceptListDTO", } response_data = self.api_client.call_api( *_param, @@ -515,7 +515,7 @@ def get_calculation_concepts_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CalculationConceptListDTO", + '200': "DesignerApiTransfersCalculationConceptListDTO", } response_data = self.api_client.call_api( *_param, @@ -607,7 +607,7 @@ def get_selection_concept( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SelectionConceptDTO: + ) -> DesignerApiTransfersSelectionConceptDTO: """Retrieve the configuration of a selection concept Retrieve the configuration details of a selection concept in production. @@ -648,7 +648,7 @@ def get_selection_concept( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SelectionConceptDTO", + '200': "DesignerApiTransfersSelectionConceptDTO", } response_data = self.api_client.call_api( *_param, @@ -679,7 +679,7 @@ def get_selection_concept_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SelectionConceptDTO]: + ) -> ApiResponse[DesignerApiTransfersSelectionConceptDTO]: """Retrieve the configuration of a selection concept Retrieve the configuration details of a selection concept in production. @@ -720,7 +720,7 @@ def get_selection_concept_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SelectionConceptDTO", + '200': "DesignerApiTransfersSelectionConceptDTO", } response_data = self.api_client.call_api( *_param, @@ -792,7 +792,7 @@ def get_selection_concept_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SelectionConceptDTO", + '200': "DesignerApiTransfersSelectionConceptDTO", } response_data = self.api_client.call_api( *_param, @@ -886,7 +886,7 @@ def get_selection_concepts( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SelectionConceptListDTO: + ) -> DesignerApiTransfersSelectionConceptListDTO: """Retrieve all selection concepts Retrieve the selection concepts available in production. @@ -924,7 +924,7 @@ def get_selection_concepts( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SelectionConceptListDTO", + '200': "DesignerApiTransfersSelectionConceptListDTO", } response_data = self.api_client.call_api( *_param, @@ -954,7 +954,7 @@ def get_selection_concepts_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SelectionConceptListDTO]: + ) -> ApiResponse[DesignerApiTransfersSelectionConceptListDTO]: """Retrieve all selection concepts Retrieve the selection concepts available in production. @@ -992,7 +992,7 @@ def get_selection_concepts_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SelectionConceptListDTO", + '200': "DesignerApiTransfersSelectionConceptListDTO", } response_data = self.api_client.call_api( *_param, @@ -1060,7 +1060,7 @@ def get_selection_concepts_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SelectionConceptListDTO", + '200': "DesignerApiTransfersSelectionConceptListDTO", } response_data = self.api_client.call_api( *_param, @@ -1139,7 +1139,7 @@ def _get_selection_concepts_serialize( def map_calculation_concept( self, concept_id: Annotated[StrictStr, Field(description="The UUID of the concept to configure.")], - calculation_concept_configuration_map_dto: CalculationConceptConfigurationMapDTO, + designer_api_transfers_calculation_concept_configuration_map_dto: DesignerApiTransfersCalculationConceptConfigurationMapDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1153,15 +1153,15 @@ def map_calculation_concept( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ConceptConfigurationResultDTO: + ) -> DesignerApiTransfersConceptConfigurationResultDTO: """Map dimension members to nodes in a calculation concept Map dimension members to nodes in a calculation concept. The changes are applied in a new project and published to production. The body of this API is the source of truth for dimension members mapped to the concept. For example, if a node in the body does not have any dimension members, all existing dimension members mapped to that node will be removed. :param concept_id: The UUID of the concept to configure. (required) :type concept_id: str - :param calculation_concept_configuration_map_dto: (required) - :type calculation_concept_configuration_map_dto: CalculationConceptConfigurationMapDTO + :param designer_api_transfers_calculation_concept_configuration_map_dto: (required) + :type designer_api_transfers_calculation_concept_configuration_map_dto: DesignerApiTransfersCalculationConceptConfigurationMapDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1188,7 +1188,7 @@ def map_calculation_concept( _param = self._map_calculation_concept_serialize( concept_id=concept_id, - calculation_concept_configuration_map_dto=calculation_concept_configuration_map_dto, + designer_api_transfers_calculation_concept_configuration_map_dto=designer_api_transfers_calculation_concept_configuration_map_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1197,7 +1197,7 @@ def map_calculation_concept( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConceptConfigurationResultDTO", + '200': "DesignerApiTransfersConceptConfigurationResultDTO", } response_data = self.api_client.call_api( *_param, @@ -1215,7 +1215,7 @@ def map_calculation_concept( def map_calculation_concept_with_http_info( self, concept_id: Annotated[StrictStr, Field(description="The UUID of the concept to configure.")], - calculation_concept_configuration_map_dto: CalculationConceptConfigurationMapDTO, + designer_api_transfers_calculation_concept_configuration_map_dto: DesignerApiTransfersCalculationConceptConfigurationMapDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1229,15 +1229,15 @@ def map_calculation_concept_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ConceptConfigurationResultDTO]: + ) -> ApiResponse[DesignerApiTransfersConceptConfigurationResultDTO]: """Map dimension members to nodes in a calculation concept Map dimension members to nodes in a calculation concept. The changes are applied in a new project and published to production. The body of this API is the source of truth for dimension members mapped to the concept. For example, if a node in the body does not have any dimension members, all existing dimension members mapped to that node will be removed. :param concept_id: The UUID of the concept to configure. (required) :type concept_id: str - :param calculation_concept_configuration_map_dto: (required) - :type calculation_concept_configuration_map_dto: CalculationConceptConfigurationMapDTO + :param designer_api_transfers_calculation_concept_configuration_map_dto: (required) + :type designer_api_transfers_calculation_concept_configuration_map_dto: DesignerApiTransfersCalculationConceptConfigurationMapDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1264,7 +1264,7 @@ def map_calculation_concept_with_http_info( _param = self._map_calculation_concept_serialize( concept_id=concept_id, - calculation_concept_configuration_map_dto=calculation_concept_configuration_map_dto, + designer_api_transfers_calculation_concept_configuration_map_dto=designer_api_transfers_calculation_concept_configuration_map_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1273,7 +1273,7 @@ def map_calculation_concept_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConceptConfigurationResultDTO", + '200': "DesignerApiTransfersConceptConfigurationResultDTO", } response_data = self.api_client.call_api( *_param, @@ -1291,7 +1291,7 @@ def map_calculation_concept_with_http_info( def map_calculation_concept_without_preload_content( self, concept_id: Annotated[StrictStr, Field(description="The UUID of the concept to configure.")], - calculation_concept_configuration_map_dto: CalculationConceptConfigurationMapDTO, + designer_api_transfers_calculation_concept_configuration_map_dto: DesignerApiTransfersCalculationConceptConfigurationMapDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1312,8 +1312,8 @@ def map_calculation_concept_without_preload_content( :param concept_id: The UUID of the concept to configure. (required) :type concept_id: str - :param calculation_concept_configuration_map_dto: (required) - :type calculation_concept_configuration_map_dto: CalculationConceptConfigurationMapDTO + :param designer_api_transfers_calculation_concept_configuration_map_dto: (required) + :type designer_api_transfers_calculation_concept_configuration_map_dto: DesignerApiTransfersCalculationConceptConfigurationMapDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1340,7 +1340,7 @@ def map_calculation_concept_without_preload_content( _param = self._map_calculation_concept_serialize( concept_id=concept_id, - calculation_concept_configuration_map_dto=calculation_concept_configuration_map_dto, + designer_api_transfers_calculation_concept_configuration_map_dto=designer_api_transfers_calculation_concept_configuration_map_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1349,7 +1349,7 @@ def map_calculation_concept_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConceptConfigurationResultDTO", + '200': "DesignerApiTransfersConceptConfigurationResultDTO", } response_data = self.api_client.call_api( *_param, @@ -1361,7 +1361,7 @@ def map_calculation_concept_without_preload_content( def _map_calculation_concept_serialize( self, concept_id, - calculation_concept_configuration_map_dto, + designer_api_transfers_calculation_concept_configuration_map_dto, target_tenant_id, _request_auth, _content_type, @@ -1390,8 +1390,8 @@ def _map_calculation_concept_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if calculation_concept_configuration_map_dto is not None: - _body_params = calculation_concept_configuration_map_dto + if designer_api_transfers_calculation_concept_configuration_map_dto is not None: + _body_params = designer_api_transfers_calculation_concept_configuration_map_dto # set the HTTP header `Accept` @@ -1447,7 +1447,7 @@ def _map_calculation_concept_serialize( def map_selection_concept( self, concept_id: Annotated[StrictStr, Field(description="The UUID of the concept to configure.")], - selection_concept_configuration_map_dto: SelectionConceptConfigurationMapDTO, + designer_api_transfers_selection_concept_configuration_map_dto: DesignerApiTransfersSelectionConceptConfigurationMapDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1461,15 +1461,15 @@ def map_selection_concept( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ConceptConfigurationResultDTO: + ) -> DesignerApiTransfersConceptConfigurationResultDTO: """Map dimension members to a selection concept Map dimension members to a selection concept. The changes are applied to a new project and published to production. The body of this API is the source of truth for dimension members mapped to the concept. For example, if a node in the body does not have any dimension members, all existing dimension members mapped to that node will be removed. :param concept_id: The UUID of the concept to configure. (required) :type concept_id: str - :param selection_concept_configuration_map_dto: (required) - :type selection_concept_configuration_map_dto: SelectionConceptConfigurationMapDTO + :param designer_api_transfers_selection_concept_configuration_map_dto: (required) + :type designer_api_transfers_selection_concept_configuration_map_dto: DesignerApiTransfersSelectionConceptConfigurationMapDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1496,7 +1496,7 @@ def map_selection_concept( _param = self._map_selection_concept_serialize( concept_id=concept_id, - selection_concept_configuration_map_dto=selection_concept_configuration_map_dto, + designer_api_transfers_selection_concept_configuration_map_dto=designer_api_transfers_selection_concept_configuration_map_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1505,7 +1505,7 @@ def map_selection_concept( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConceptConfigurationResultDTO", + '200': "DesignerApiTransfersConceptConfigurationResultDTO", } response_data = self.api_client.call_api( *_param, @@ -1523,7 +1523,7 @@ def map_selection_concept( def map_selection_concept_with_http_info( self, concept_id: Annotated[StrictStr, Field(description="The UUID of the concept to configure.")], - selection_concept_configuration_map_dto: SelectionConceptConfigurationMapDTO, + designer_api_transfers_selection_concept_configuration_map_dto: DesignerApiTransfersSelectionConceptConfigurationMapDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1537,15 +1537,15 @@ def map_selection_concept_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ConceptConfigurationResultDTO]: + ) -> ApiResponse[DesignerApiTransfersConceptConfigurationResultDTO]: """Map dimension members to a selection concept Map dimension members to a selection concept. The changes are applied to a new project and published to production. The body of this API is the source of truth for dimension members mapped to the concept. For example, if a node in the body does not have any dimension members, all existing dimension members mapped to that node will be removed. :param concept_id: The UUID of the concept to configure. (required) :type concept_id: str - :param selection_concept_configuration_map_dto: (required) - :type selection_concept_configuration_map_dto: SelectionConceptConfigurationMapDTO + :param designer_api_transfers_selection_concept_configuration_map_dto: (required) + :type designer_api_transfers_selection_concept_configuration_map_dto: DesignerApiTransfersSelectionConceptConfigurationMapDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1572,7 +1572,7 @@ def map_selection_concept_with_http_info( _param = self._map_selection_concept_serialize( concept_id=concept_id, - selection_concept_configuration_map_dto=selection_concept_configuration_map_dto, + designer_api_transfers_selection_concept_configuration_map_dto=designer_api_transfers_selection_concept_configuration_map_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1581,7 +1581,7 @@ def map_selection_concept_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConceptConfigurationResultDTO", + '200': "DesignerApiTransfersConceptConfigurationResultDTO", } response_data = self.api_client.call_api( *_param, @@ -1599,7 +1599,7 @@ def map_selection_concept_with_http_info( def map_selection_concept_without_preload_content( self, concept_id: Annotated[StrictStr, Field(description="The UUID of the concept to configure.")], - selection_concept_configuration_map_dto: SelectionConceptConfigurationMapDTO, + designer_api_transfers_selection_concept_configuration_map_dto: DesignerApiTransfersSelectionConceptConfigurationMapDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1620,8 +1620,8 @@ def map_selection_concept_without_preload_content( :param concept_id: The UUID of the concept to configure. (required) :type concept_id: str - :param selection_concept_configuration_map_dto: (required) - :type selection_concept_configuration_map_dto: SelectionConceptConfigurationMapDTO + :param designer_api_transfers_selection_concept_configuration_map_dto: (required) + :type designer_api_transfers_selection_concept_configuration_map_dto: DesignerApiTransfersSelectionConceptConfigurationMapDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1648,7 +1648,7 @@ def map_selection_concept_without_preload_content( _param = self._map_selection_concept_serialize( concept_id=concept_id, - selection_concept_configuration_map_dto=selection_concept_configuration_map_dto, + designer_api_transfers_selection_concept_configuration_map_dto=designer_api_transfers_selection_concept_configuration_map_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1657,7 +1657,7 @@ def map_selection_concept_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ConceptConfigurationResultDTO", + '200': "DesignerApiTransfersConceptConfigurationResultDTO", } response_data = self.api_client.call_api( *_param, @@ -1669,7 +1669,7 @@ def map_selection_concept_without_preload_content( def _map_selection_concept_serialize( self, concept_id, - selection_concept_configuration_map_dto, + designer_api_transfers_selection_concept_configuration_map_dto, target_tenant_id, _request_auth, _content_type, @@ -1698,8 +1698,8 @@ def _map_selection_concept_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if selection_concept_configuration_map_dto is not None: - _body_params = selection_concept_configuration_map_dto + if designer_api_transfers_selection_concept_configuration_map_dto is not None: + _body_params = designer_api_transfers_selection_concept_configuration_map_dto # set the HTTP header `Accept` diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/__init__.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/__init__.py index 6b33aa7d5a..9501c5aa5e 100644 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/__init__.py +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/__init__.py @@ -6,7 +6,7 @@ Visier APIs for retrieving and configuring your analytic model in Visier. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,90 +16,91 @@ # import models into model package -from visier_api_analytic_model.models.aggregation_type_option_dto import AggregationTypeOptionDTO -from visier_api_analytic_model.models.aggregation_type_parameter_dto import AggregationTypeParameterDTO -from visier_api_analytic_model.models.analytic_object_dto import AnalyticObjectDTO -from visier_api_analytic_model.models.analytic_object_filter_dto import AnalyticObjectFilterDTO -from visier_api_analytic_model.models.analytic_objects_dto import AnalyticObjectsDTO -from visier_api_analytic_model.models.calculated_property_type_dto import CalculatedPropertyTypeDTO -from visier_api_analytic_model.models.calculation_concept_configuration_dto import CalculationConceptConfigurationDTO -from visier_api_analytic_model.models.calculation_concept_configuration_map_dto import CalculationConceptConfigurationMapDTO -from visier_api_analytic_model.models.calculation_concept_dto import CalculationConceptDTO -from visier_api_analytic_model.models.calculation_concept_list_dto import CalculationConceptListDTO -from visier_api_analytic_model.models.concept_configuration_result_dto import ConceptConfigurationResultDTO -from visier_api_analytic_model.models.currencies_dto import CurrenciesDTO -from visier_api_analytic_model.models.currency_dto import CurrencyDTO -from visier_api_analytic_model.models.currency_rate_dto import CurrencyRateDTO -from visier_api_analytic_model.models.currency_rates_dto import CurrencyRatesDTO -from visier_api_analytic_model.models.dependent_dto import DependentDTO -from visier_api_analytic_model.models.dimension_change_definition_dto import DimensionChangeDefinitionDTO -from visier_api_analytic_model.models.dimension_change_definitions_by_tenant_dto import DimensionChangeDefinitionsByTenantDTO -from visier_api_analytic_model.models.dimension_dto import DimensionDTO -from visier_api_analytic_model.models.dimension_filter_dto import DimensionFilterDTO -from visier_api_analytic_model.models.dimension_mapping_validation_dto import DimensionMappingValidationDTO -from visier_api_analytic_model.models.dimension_mapping_validation_execution_dto import DimensionMappingValidationExecutionDTO -from visier_api_analytic_model.models.dimension_member_dto import DimensionMemberDTO -from visier_api_analytic_model.models.dimension_member_reference_dto import DimensionMemberReferenceDTO -from visier_api_analytic_model.models.dimension_reference_dto import DimensionReferenceDTO -from visier_api_analytic_model.models.dimensions_change_definitions_dto import DimensionsChangeDefinitionsDTO -from visier_api_analytic_model.models.dimensions_dto import DimensionsDTO -from visier_api_analytic_model.models.get_plan_list_response_dto import GetPlanListResponseDTO -from visier_api_analytic_model.models.google_protobuf_any import GoogleProtobufAny -from visier_api_analytic_model.models.level_dto import LevelDTO -from visier_api_analytic_model.models.member_dto import MemberDTO -from visier_api_analytic_model.models.member_parameter_definition_dto import MemberParameterDefinitionDTO -from visier_api_analytic_model.models.member_values_dto import MemberValuesDTO -from visier_api_analytic_model.models.members_dto import MembersDTO -from visier_api_analytic_model.models.metric_dto import MetricDTO -from visier_api_analytic_model.models.metrics_dto import MetricsDTO -from visier_api_analytic_model.models.numeric_parameter_definition_dto import NumericParameterDefinitionDTO -from visier_api_analytic_model.models.object_change_failure_dto import ObjectChangeFailureDTO -from visier_api_analytic_model.models.object_change_success_dto import ObjectChangeSuccessDTO -from visier_api_analytic_model.models.object_reference_dto import ObjectReferenceDTO -from visier_api_analytic_model.models.objects_bulk_change_response_dto import ObjectsBulkChangeResponseDTO -from visier_api_analytic_model.models.parameter_definition_dto import ParameterDefinitionDTO -from visier_api_analytic_model.models.perspective_configuration_dto import PerspectiveConfigurationDTO -from visier_api_analytic_model.models.perspective_node_dto import PerspectiveNodeDTO -from visier_api_analytic_model.models.plan_data_load_error_dto import PlanDataLoadErrorDTO -from visier_api_analytic_model.models.plan_info_dto import PlanInfoDTO -from visier_api_analytic_model.models.plan_item_dto import PlanItemDTO -from visier_api_analytic_model.models.plan_parameter_definition_dto import PlanParameterDefinitionDTO -from visier_api_analytic_model.models.plan_schema_dto import PlanSchemaDTO -from visier_api_analytic_model.models.plan_segment_level_dto import PlanSegmentLevelDTO -from visier_api_analytic_model.models.plan_segment_level_member_dto import PlanSegmentLevelMemberDTO -from visier_api_analytic_model.models.plan_segment_level_member_list_dto import PlanSegmentLevelMemberListDTO -from visier_api_analytic_model.models.plan_time_period_dto import PlanTimePeriodDTO -from visier_api_analytic_model.models.plan_with_schema_dto import PlanWithSchemaDTO -from visier_api_analytic_model.models.planning_concept_filter_context_dto import PlanningConceptFilterContextDTO -from visier_api_analytic_model.models.planning_hierarchy_filter_context_dto import PlanningHierarchyFilterContextDTO -from visier_api_analytic_model.models.planning_model_dto import PlanningModelDTO -from visier_api_analytic_model.models.planning_models_dto import PlanningModelsDTO -from visier_api_analytic_model.models.planning_plan_context_dto import PlanningPlanContextDTO -from visier_api_analytic_model.models.planning_plan_dto import PlanningPlanDTO -from visier_api_analytic_model.models.planning_plans_dto import PlanningPlansDTO -from visier_api_analytic_model.models.population_configuration_dto import PopulationConfigurationDTO -from visier_api_analytic_model.models.prediction_dto import PredictionDTO -from visier_api_analytic_model.models.predictions_dto import PredictionsDTO -from visier_api_analytic_model.models.properties_change_definitions_dto import PropertiesChangeDefinitionsDTO -from visier_api_analytic_model.models.properties_dto import PropertiesDTO -from visier_api_analytic_model.models.properties_delete_definitions_dto import PropertiesDeleteDefinitionsDTO -from visier_api_analytic_model.models.property_bulk_delete_response_dto import PropertyBulkDeleteResponseDTO -from visier_api_analytic_model.models.property_change_definition_dto import PropertyChangeDefinitionDTO -from visier_api_analytic_model.models.property_change_definitions_by_tenant_dto import PropertyChangeDefinitionsByTenantDTO -from visier_api_analytic_model.models.property_dto import PropertyDTO -from visier_api_analytic_model.models.property_delete_definitions_by_tenant_dto import PropertyDeleteDefinitionsByTenantDTO -from visier_api_analytic_model.models.property_delete_failure_dto import PropertyDeleteFailureDTO -from visier_api_analytic_model.models.property_delete_success_dto import PropertyDeleteSuccessDTO -from visier_api_analytic_model.models.property_reference_dto import PropertyReferenceDTO -from visier_api_analytic_model.models.property_type_dto import PropertyTypeDTO -from visier_api_analytic_model.models.scenario_info_dto import ScenarioInfoDTO -from visier_api_analytic_model.models.scenario_or_snapshot_dto import ScenarioOrSnapshotDTO -from visier_api_analytic_model.models.selection_concept_configuration_map_dto import SelectionConceptConfigurationMapDTO -from visier_api_analytic_model.models.selection_concept_dto import SelectionConceptDTO -from visier_api_analytic_model.models.selection_concept_list_dto import SelectionConceptListDTO -from visier_api_analytic_model.models.selection_concepts_dto import SelectionConceptsDTO -from visier_api_analytic_model.models.simple_property_type_dto import SimplePropertyTypeDTO +from visier_api_analytic_model.models.dataservices_common_dimension_member_reference_dto import DataservicesCommonDimensionMemberReferenceDTO +from visier_api_analytic_model.models.dataservices_common_member_values_dto import DataservicesCommonMemberValuesDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_aggregation_type_option_dto import DataservicesDatamodelTransfersAggregationTypeOptionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_aggregation_type_parameter_dto import DataservicesDatamodelTransfersAggregationTypeParameterDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_analytic_object_dto import DataservicesDatamodelTransfersAnalyticObjectDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_analytic_objects_dto import DataservicesDatamodelTransfersAnalyticObjectsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currencies_dto import DataservicesDatamodelTransfersCurrenciesDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currency_dto import DataservicesDatamodelTransfersCurrencyDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currency_rate_dto import DataservicesDatamodelTransfersCurrencyRateDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currency_rates_dto import DataservicesDatamodelTransfersCurrencyRatesDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_dto import DataservicesDatamodelTransfersDimensionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_mapping_validation_dto import DataservicesDatamodelTransfersDimensionMappingValidationDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto import DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimensions_dto import DataservicesDatamodelTransfersDimensionsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_level_dto import DataservicesDatamodelTransfersLevelDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_member_dto import DataservicesDatamodelTransfersMemberDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_member_parameter_definition_dto import DataservicesDatamodelTransfersMemberParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_members_dto import DataservicesDatamodelTransfersMembersDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_metric_dto import DataservicesDatamodelTransfersMetricDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_metrics_dto import DataservicesDatamodelTransfersMetricsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_numeric_parameter_definition_dto import DataservicesDatamodelTransfersNumericParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_object_reference_dto import DataservicesDatamodelTransfersObjectReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_parameter_definition_dto import DataservicesDatamodelTransfersParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_plan_parameter_definition_dto import DataservicesDatamodelTransfersPlanParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_concept_filter_context_dto import DataservicesDatamodelTransfersPlanningConceptFilterContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_hierarchy_filter_context_dto import DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_model_dto import DataservicesDatamodelTransfersPlanningModelDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_models_dto import DataservicesDatamodelTransfersPlanningModelsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_plan_context_dto import DataservicesDatamodelTransfersPlanningPlanContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_plan_dto import DataservicesDatamodelTransfersPlanningPlanDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_plans_dto import DataservicesDatamodelTransfersPlanningPlansDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_population_configuration_dto import DataservicesDatamodelTransfersPopulationConfigurationDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_prediction_dto import DataservicesDatamodelTransfersPredictionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_predictions_dto import DataservicesDatamodelTransfersPredictionsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_properties_dto import DataservicesDatamodelTransfersPropertiesDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_property_dto import DataservicesDatamodelTransfersPropertyDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_property_reference_dto import DataservicesDatamodelTransfersPropertyReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_scenario_or_snapshot_dto import DataservicesDatamodelTransfersScenarioOrSnapshotDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_selection_concept_dto import DataservicesDatamodelTransfersSelectionConceptDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_selection_concepts_dto import DataservicesDatamodelTransfersSelectionConceptsDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_tag_map_element_dto import DataservicesDatamodelTransfersTagMapElementDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_validity_range_dto import DataservicesDatamodelTransfersValidityRangeDTO +from visier_api_analytic_model.models.designer_api_transfers_analytic_object_filter_dto import DesignerApiTransfersAnalyticObjectFilterDTO +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_configuration_dto import DesignerApiTransfersCalculationConceptConfigurationDTO +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_configuration_map_dto import DesignerApiTransfersCalculationConceptConfigurationMapDTO +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_dto import DesignerApiTransfersCalculationConceptDTO +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_list_dto import DesignerApiTransfersCalculationConceptListDTO +from visier_api_analytic_model.models.designer_api_transfers_concept_configuration_result_dto import DesignerApiTransfersConceptConfigurationResultDTO +from visier_api_analytic_model.models.designer_api_transfers_dimension_filter_dto import DesignerApiTransfersDimensionFilterDTO +from visier_api_analytic_model.models.designer_api_transfers_dimension_member_dto import DesignerApiTransfersDimensionMemberDTO +from visier_api_analytic_model.models.designer_api_transfers_perspective_configuration_dto import DesignerApiTransfersPerspectiveConfigurationDTO +from visier_api_analytic_model.models.designer_api_transfers_perspective_node_dto import DesignerApiTransfersPerspectiveNodeDTO +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_configuration_dto import DesignerApiTransfersSelectionConceptConfigurationDTO +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_configuration_map_dto import DesignerApiTransfersSelectionConceptConfigurationMapDTO +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_dto import DesignerApiTransfersSelectionConceptDTO +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_list_dto import DesignerApiTransfersSelectionConceptListDTO +from visier_api_analytic_model.models.planning_transfers_get_plan_list_response_dto import PlanningTransfersGetPlanListResponseDTO +from visier_api_analytic_model.models.planning_transfers_plan_data_load_error_dto import PlanningTransfersPlanDataLoadErrorDTO +from visier_api_analytic_model.models.planning_transfers_plan_info_dto import PlanningTransfersPlanInfoDTO +from visier_api_analytic_model.models.planning_transfers_plan_item_dto import PlanningTransfersPlanItemDTO +from visier_api_analytic_model.models.planning_transfers_plan_schema_dto import PlanningTransfersPlanSchemaDTO +from visier_api_analytic_model.models.planning_transfers_plan_segment_level_dto import PlanningTransfersPlanSegmentLevelDTO +from visier_api_analytic_model.models.planning_transfers_plan_segment_level_member_dto import PlanningTransfersPlanSegmentLevelMemberDTO +from visier_api_analytic_model.models.planning_transfers_plan_segment_level_member_list_dto import PlanningTransfersPlanSegmentLevelMemberListDTO +from visier_api_analytic_model.models.planning_transfers_plan_time_period_dto import PlanningTransfersPlanTimePeriodDTO +from visier_api_analytic_model.models.planning_transfers_plan_with_schema_dto import PlanningTransfersPlanWithSchemaDTO +from visier_api_analytic_model.models.planning_transfers_scenario_info_dto import PlanningTransfersScenarioInfoDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_calculated_property_type_dto import ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dependent_dto import ServicingPublicapiObjectconfigurationDependentDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dimension_change_definition_dto import ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dimension_change_definitions_by_tenant_dto import ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto import ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_object_change_failure_dto import ServicingPublicapiObjectconfigurationObjectChangeFailureDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_object_change_success_dto import ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_objects_bulk_change_response_dto import ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_properties_change_definitions_dto import ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_properties_delete_definitions_dto import ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_bulk_delete_response_dto import ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_change_definition_dto import ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_change_definitions_by_tenant_dto import ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_delete_definitions_by_tenant_dto import ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_delete_failure_dto import ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_delete_success_dto import ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_type_dto import ServicingPublicapiObjectconfigurationPropertyTypeDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_simple_property_type_dto import ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_tags_dto import ServicingPublicapiObjectconfigurationTagsDTO from visier_api_analytic_model.models.status import Status -from visier_api_analytic_model.models.tag_map_element_dto import TagMapElementDTO -from visier_api_analytic_model.models.tags_dto import TagsDTO -from visier_api_analytic_model.models.validity_range_dto import ValidityRangeDTO diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/aggregation_type_option_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/aggregation_type_option_dto.py deleted file mode 100644 index 2a11d02396..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/aggregation_type_option_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AggregationTypeOptionDTO(BaseModel): - """ - The definition of an aggregation option. - """ # noqa: E501 - aggregation_function: Optional[StrictStr] = Field(default=None, description="The aggregation function of the parameter option.", alias="aggregationFunction") - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the parameter option.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the parameter option.") - is_default: Optional[StrictBool] = Field(default=None, description="`true` if the parameter option is the default one and `false` otherwise.", alias="isDefault") - property_name: Optional[StrictStr] = Field(default=None, description="The property name of the parameter option.", alias="propertyName") - __properties: ClassVar[List[str]] = ["aggregationFunction", "displayName", "id", "isDefault", "propertyName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AggregationTypeOptionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AggregationTypeOptionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "aggregationFunction": obj.get("aggregationFunction"), - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "isDefault": obj.get("isDefault"), - "propertyName": obj.get("propertyName") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/aggregation_type_parameter_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/aggregation_type_parameter_dto.py deleted file mode 100644 index fee80f8f1d..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/aggregation_type_parameter_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.aggregation_type_option_dto import AggregationTypeOptionDTO -from typing import Optional, Set -from typing_extensions import Self - -class AggregationTypeParameterDTO(BaseModel): - """ - The definition of an aggregation parameter. These parameters resolve metrics that use aggregation parameters. For example, Visier Benchmarks metrics often use aggregation parameters to enable callers to aggregate metric values according to their average or different percentiles. - """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="The localized description of the parameter.") - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the parameter.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the parameter.") - parameter_options: Optional[List[AggregationTypeOptionDTO]] = Field(default=None, description="The options defined for the parameter.", alias="parameterOptions") - __properties: ClassVar[List[str]] = ["description", "displayName", "id", "parameterOptions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AggregationTypeParameterDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in parameter_options (list) - _items = [] - if self.parameter_options: - for _item_parameter_options in self.parameter_options: - if _item_parameter_options: - _items.append(_item_parameter_options.to_dict()) - _dict['parameterOptions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AggregationTypeParameterDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "parameterOptions": [AggregationTypeOptionDTO.from_dict(_item) for _item in obj["parameterOptions"]] if obj.get("parameterOptions") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/analytic_object_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/analytic_object_dto.py deleted file mode 100644 index 0bb784ebb5..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/analytic_object_dto.py +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.object_reference_dto import ObjectReferenceDTO -from visier_api_analytic_model.models.population_configuration_dto import PopulationConfigurationDTO -from typing import Optional, Set -from typing_extensions import Self - -class AnalyticObjectDTO(BaseModel): - """ - Analytic objects are the various items that users can analyze in Visier. Analytic objects include subjects, events, and overlays. - """ # noqa: E501 - data_end_date: Optional[StrictStr] = Field(default=None, description="The date from which data is no longer available for this analytic object. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string. Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="dataEndDate") - data_start_date: Optional[StrictStr] = Field(default=None, description="The date from which data becomes available for this analytic object. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string. Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="dataStartDate") - description: Optional[StrictStr] = Field(default=None, description="The localized description of the analytic object.") - dimension_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing IDs of the dimensions that belong to this analytic object.", alias="dimensionIds") - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the analytic object.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analytic object. Note: See `AnalyticObjects` to get the ID.") - object_references: Optional[List[ObjectReferenceDTO]] = Field(default=None, description="A list of references from this analytic object to other analytic objects. Note: If there are no references, this field is omitted.", alias="objectReferences") - population_configuration: Optional[PopulationConfigurationDTO] = Field(default=None, description="A set of property and dimension references configured by Visier or an administrator to tell the platform what properties and dimensions to use when doing population insight calculations. These are the distinguishing properties, change history properties, and grouping dimensions to use in AI insights. This field is optional and is only available for subjects.", alias="populationConfiguration") - property_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing IDs of the properties that belong to this analytic object.", alias="propertyIds") - selection_concept_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing IDs of the selection concepts that belong to this analytic object. Note: If there are no selection concepts, this field is omitted.", alias="selectionConceptIds") - type: Optional[StrictStr] = Field(default=None, description="The analytic object type: SUBJECT, EVENT, or OVERLAY.") - __properties: ClassVar[List[str]] = ["dataEndDate", "dataStartDate", "description", "dimensionIds", "displayName", "id", "objectReferences", "populationConfiguration", "propertyIds", "selectionConceptIds", "type"] - - @field_validator('type') - def type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['SUBJECT', 'EVENT', 'OVERLAY']): - raise ValueError("must be one of enum values ('SUBJECT', 'EVENT', 'OVERLAY')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalyticObjectDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in object_references (list) - _items = [] - if self.object_references: - for _item_object_references in self.object_references: - if _item_object_references: - _items.append(_item_object_references.to_dict()) - _dict['objectReferences'] = _items - # override the default output from pydantic by calling `to_dict()` of population_configuration - if self.population_configuration: - _dict['populationConfiguration'] = self.population_configuration.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalyticObjectDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataEndDate": obj.get("dataEndDate"), - "dataStartDate": obj.get("dataStartDate"), - "description": obj.get("description"), - "dimensionIds": obj.get("dimensionIds"), - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "objectReferences": [ObjectReferenceDTO.from_dict(_item) for _item in obj["objectReferences"]] if obj.get("objectReferences") is not None else None, - "populationConfiguration": PopulationConfigurationDTO.from_dict(obj["populationConfiguration"]) if obj.get("populationConfiguration") is not None else None, - "propertyIds": obj.get("propertyIds"), - "selectionConceptIds": obj.get("selectionConceptIds"), - "type": obj.get("type") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/analytic_object_filter_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/analytic_object_filter_dto.py deleted file mode 100644 index 60b47eaee7..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/analytic_object_filter_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.dimension_filter_dto import DimensionFilterDTO -from typing import Optional, Set -from typing_extensions import Self - -class AnalyticObjectFilterDTO(BaseModel): - """ - AnalyticObjectFilterDTO - """ # noqa: E501 - analytic_object_uuid: Optional[StrictStr] = Field(default=None, description="The UUID of the analytic object used in the selection concept.", alias="analyticObjectUuid") - dimensions: Optional[List[DimensionFilterDTO]] = Field(default=None, description="A list of dimensions included in the concept.") - symbol_name: Optional[StrictStr] = Field(default=None, description="The symbol name of the analytic object.", alias="symbolName") - __properties: ClassVar[List[str]] = ["analyticObjectUuid", "dimensions", "symbolName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalyticObjectFilterDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in dimensions (list) - _items = [] - if self.dimensions: - for _item_dimensions in self.dimensions: - if _item_dimensions: - _items.append(_item_dimensions.to_dict()) - _dict['dimensions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalyticObjectFilterDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObjectUuid": obj.get("analyticObjectUuid"), - "dimensions": [DimensionFilterDTO.from_dict(_item) for _item in obj["dimensions"]] if obj.get("dimensions") is not None else None, - "symbolName": obj.get("symbolName") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/analytic_objects_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/analytic_objects_dto.py deleted file mode 100644 index 38d7ae570c..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/analytic_objects_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.analytic_object_dto import AnalyticObjectDTO -from typing import Optional, Set -from typing_extensions import Self - -class AnalyticObjectsDTO(BaseModel): - """ - A collection of analytic objects - """ # noqa: E501 - analytic_objects: Optional[List[AnalyticObjectDTO]] = Field(default=None, alias="analyticObjects") - __properties: ClassVar[List[str]] = ["analyticObjects"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalyticObjectsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in analytic_objects (list) - _items = [] - if self.analytic_objects: - for _item_analytic_objects in self.analytic_objects: - if _item_analytic_objects: - _items.append(_item_analytic_objects.to_dict()) - _dict['analyticObjects'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalyticObjectsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObjects": [AnalyticObjectDTO.from_dict(_item) for _item in obj["analyticObjects"]] if obj.get("analyticObjects") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/calculated_property_type_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/calculated_property_type_dto.py deleted file mode 100644 index 32914bdfca..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/calculated_property_type_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CalculatedPropertyTypeDTO(BaseModel): - """ - CalculatedPropertyTypeDTO - """ # noqa: E501 - data_type: Optional[StrictStr] = Field(default=None, description="The data type of the property, such as Categorical, HourDuration, or Ratio.", alias="dataType") - formula: Optional[StrictStr] = Field(default=None, description="The formula used to calculate the property's value, written in Visier Formula Language.") - __properties: ClassVar[List[str]] = ["dataType", "formula"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CalculatedPropertyTypeDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CalculatedPropertyTypeDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataType": obj.get("dataType"), - "formula": obj.get("formula") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/calculation_concept_configuration_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/calculation_concept_configuration_dto.py deleted file mode 100644 index d5b9b5067c..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/calculation_concept_configuration_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.perspective_configuration_dto import PerspectiveConfigurationDTO -from typing import Optional, Set -from typing_extensions import Self - -class CalculationConceptConfigurationDTO(BaseModel): - """ - CalculationConceptConfigurationDTO - """ # noqa: E501 - perspectives: Optional[List[PerspectiveConfigurationDTO]] = Field(default=None, description="A list of objects representing the perspectives in the calculation concept.") - __properties: ClassVar[List[str]] = ["perspectives"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CalculationConceptConfigurationDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in perspectives (list) - _items = [] - if self.perspectives: - for _item_perspectives in self.perspectives: - if _item_perspectives: - _items.append(_item_perspectives.to_dict()) - _dict['perspectives'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CalculationConceptConfigurationDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "perspectives": [PerspectiveConfigurationDTO.from_dict(_item) for _item in obj["perspectives"]] if obj.get("perspectives") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/calculation_concept_configuration_map_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/calculation_concept_configuration_map_dto.py deleted file mode 100644 index 5187fda07f..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/calculation_concept_configuration_map_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.perspective_configuration_dto import PerspectiveConfigurationDTO -from typing import Optional, Set -from typing_extensions import Self - -class CalculationConceptConfigurationMapDTO(BaseModel): - """ - The configuration to apply to the concept. - """ # noqa: E501 - perspectives_to_map: Optional[List[PerspectiveConfigurationDTO]] = Field(default=None, description="A list of objects representing the list of perspectives in the calculation concept.", alias="perspectivesToMap") - __properties: ClassVar[List[str]] = ["perspectivesToMap"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CalculationConceptConfigurationMapDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in perspectives_to_map (list) - _items = [] - if self.perspectives_to_map: - for _item_perspectives_to_map in self.perspectives_to_map: - if _item_perspectives_to_map: - _items.append(_item_perspectives_to_map.to_dict()) - _dict['perspectivesToMap'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CalculationConceptConfigurationMapDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "perspectivesToMap": [PerspectiveConfigurationDTO.from_dict(_item) for _item in obj["perspectivesToMap"]] if obj.get("perspectivesToMap") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/calculation_concept_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/calculation_concept_dto.py deleted file mode 100644 index 242ff13478..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/calculation_concept_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.calculation_concept_configuration_dto import CalculationConceptConfigurationDTO -from typing import Optional, Set -from typing_extensions import Self - -class CalculationConceptDTO(BaseModel): - """ - CalculationConceptDTO - """ # noqa: E501 - configuration: Optional[CalculationConceptConfigurationDTO] = Field(default=None, description="A list of objects representing the configuration for the calculation concept.") - name: Optional[StrictStr] = Field(default=None, description="The display name of the calculation concept.") - uuid: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the calculation concept.") - __properties: ClassVar[List[str]] = ["configuration", "name", "uuid"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CalculationConceptDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of configuration - if self.configuration: - _dict['configuration'] = self.configuration.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CalculationConceptDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "configuration": CalculationConceptConfigurationDTO.from_dict(obj["configuration"]) if obj.get("configuration") is not None else None, - "name": obj.get("name"), - "uuid": obj.get("uuid") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/calculation_concept_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/calculation_concept_list_dto.py deleted file mode 100644 index 0b46266a4b..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/calculation_concept_list_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.calculation_concept_dto import CalculationConceptDTO -from typing import Optional, Set -from typing_extensions import Self - -class CalculationConceptListDTO(BaseModel): - """ - CalculationConceptListDTO - """ # noqa: E501 - concepts: Optional[List[CalculationConceptDTO]] = Field(default=None, description="A list of objects representing calculation concepts.") - __properties: ClassVar[List[str]] = ["concepts"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CalculationConceptListDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in concepts (list) - _items = [] - if self.concepts: - for _item_concepts in self.concepts: - if _item_concepts: - _items.append(_item_concepts.to_dict()) - _dict['concepts'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CalculationConceptListDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "concepts": [CalculationConceptDTO.from_dict(_item) for _item in obj["concepts"]] if obj.get("concepts") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/concept_configuration_result_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/concept_configuration_result_dto.py deleted file mode 100644 index 3e0c578cb8..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/concept_configuration_result_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ConceptConfigurationResultDTO(BaseModel): - """ - ConceptConfigurationResultDTO - """ # noqa: E501 - concept_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the configured concept.", alias="conceptId") - message: Optional[StrictStr] = Field(default=None, description="A meaningful message about the API result.") - project_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the system-generated project.", alias="projectId") - __properties: ClassVar[List[str]] = ["conceptId", "message", "projectId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ConceptConfigurationResultDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ConceptConfigurationResultDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "conceptId": obj.get("conceptId"), - "message": obj.get("message"), - "projectId": obj.get("projectId") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/currencies_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/currencies_dto.py deleted file mode 100644 index 958c33abcd..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/currencies_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.currency_dto import CurrencyDTO -from typing import Optional, Set -from typing_extensions import Self - -class CurrenciesDTO(BaseModel): - """ - A collection of currencies. - """ # noqa: E501 - currencies: Optional[List[CurrencyDTO]] = None - __properties: ClassVar[List[str]] = ["currencies"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CurrenciesDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in currencies (list) - _items = [] - if self.currencies: - for _item_currencies in self.currencies: - if _item_currencies: - _items.append(_item_currencies.to_dict()) - _dict['currencies'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CurrenciesDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "currencies": [CurrencyDTO.from_dict(_item) for _item in obj["currencies"]] if obj.get("currencies") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/currency_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/currency_dto.py deleted file mode 100644 index a33d546b5c..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/currency_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CurrencyDTO(BaseModel): - """ - Information about a currency type. - """ # noqa: E501 - currency_code: Optional[StrictStr] = Field(default=None, description="The ISO 4217 3-letter code for the currency.", alias="currencyCode") - display_name: Optional[StrictStr] = Field(default=None, description="The display name for the currency.", alias="displayName") - short_symbol: Optional[StrictStr] = Field(default=None, description="The shortened symbol name for the currency. Removes all alphabetic characters. If **symbol** only has alphabetic characters, **shortSymbol** is empty. If **symbol** contains only non-alphabetic characters, **shortSymbol** is the same as **symbol**. For example, if **symbol** is CA$, **shortSymbol** is $. If **symbol** is $, then **shortSymbol** is $.", alias="shortSymbol") - symbol: Optional[StrictStr] = Field(default=None, description="The symbol name for the currency.") - __properties: ClassVar[List[str]] = ["currencyCode", "displayName", "shortSymbol", "symbol"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CurrencyDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CurrencyDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "currencyCode": obj.get("currencyCode"), - "displayName": obj.get("displayName"), - "shortSymbol": obj.get("shortSymbol"), - "symbol": obj.get("symbol") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/currency_rate_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/currency_rate_dto.py deleted file mode 100644 index 27da21e934..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/currency_rate_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class CurrencyRateDTO(BaseModel): - """ - Information about a currency exchange rate. - """ # noqa: E501 - end_time: Optional[StrictStr] = Field(default=None, description="The latest time instant to retrieve exchange rates from. **Note:** Format is the number of milliseconds since Jan 1, 1970 12:00 AM UTC.", alias="endTime") - from_currency_code: Optional[StrictStr] = Field(default=None, description="The currency to convert **from**. **Note:** If USD is the `fromCurrencyCode`, you are retrieving the exchange rates from USD to a different currency.", alias="fromCurrencyCode") - rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The numeric value of the exchange rate. **Note:** If **decimals** is specified, rate rounds to that value. If **decimals** is undefined, **rate** rounds to 2 significant figures after the decimal point.") - start_time: Optional[StrictStr] = Field(default=None, description="The earliest time instant to retrieve exchange rates from. **Note:** Format is the number of milliseconds since Jan 1, 1970 12:00 AM UTC.", alias="startTime") - to_currency_code: Optional[StrictStr] = Field(default=None, description="The currency to convert **to**. **Note:** If USD is the `toCurrencyCode`, you are retrieving the exchange rates from a different currency to USD.", alias="toCurrencyCode") - __properties: ClassVar[List[str]] = ["endTime", "fromCurrencyCode", "rate", "startTime", "toCurrencyCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CurrencyRateDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CurrencyRateDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "endTime": obj.get("endTime"), - "fromCurrencyCode": obj.get("fromCurrencyCode"), - "rate": obj.get("rate"), - "startTime": obj.get("startTime"), - "toCurrencyCode": obj.get("toCurrencyCode") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/currency_rates_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/currency_rates_dto.py deleted file mode 100644 index 58d3d2e69d..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/currency_rates_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.currency_rate_dto import CurrencyRateDTO -from typing import Optional, Set -from typing_extensions import Self - -class CurrencyRatesDTO(BaseModel): - """ - A collection of currency exchange rates. Note: Currencies may have different exchange rates in different time intervals, depending what rate data is stored in Visier. For example, USD:CAD can be 1.2 between January 1 - March 1, while USD:EUR can be 0.92 between January 1 - February 1, but 0.88 between February 1 - March 1. - """ # noqa: E501 - currency_rates: Optional[List[CurrencyRateDTO]] = Field(default=None, alias="currencyRates") - __properties: ClassVar[List[str]] = ["currencyRates"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CurrencyRatesDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in currency_rates (list) - _items = [] - if self.currency_rates: - for _item_currency_rates in self.currency_rates: - if _item_currency_rates: - _items.append(_item_currency_rates.to_dict()) - _dict['currencyRates'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CurrencyRatesDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "currencyRates": [CurrencyRateDTO.from_dict(_item) for _item in obj["currencyRates"]] if obj.get("currencyRates") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_common_dimension_member_reference_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_common_dimension_member_reference_dto.py new file mode 100644 index 0000000000..44e9589507 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_common_dimension_member_reference_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesCommonDimensionMemberReferenceDTO(BaseModel): + """ + The members of a dimension. + """ # noqa: E501 + path: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing the members within a dimension path. For example, a dimension for Location may have the paths \"Canada, BC, Vancouver\" and \"US, California, San Francisco\".") + __properties: ClassVar[List[str]] = ["path"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesCommonDimensionMemberReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesCommonDimensionMemberReferenceDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "path": obj.get("path") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_common_member_values_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_common_member_values_dto.py new file mode 100644 index 0000000000..8843dd5362 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_common_member_values_dto.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_common_dimension_member_reference_dto import DataservicesCommonDimensionMemberReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesCommonMemberValuesDTO(BaseModel): + """ + Member filter values are discrete member references in a dimension filter. You can define included and excluded members simultaneously. This is typically done with filtering applied on dimensions with multiple levels. For example, a Location parameter may include “South America” and exclude “Brazil” which results in the metric being evaluated for all South American countries except Brazil. + """ # noqa: E501 + excluded: Optional[List[DataservicesCommonDimensionMemberReferenceDTO]] = Field(default=None, description="The unique IDs of members to exclude when evaluating the metric.") + included: Optional[List[DataservicesCommonDimensionMemberReferenceDTO]] = Field(default=None, description="The unique IDs of members to include when evaluating the metric.") + __properties: ClassVar[List[str]] = ["excluded", "included"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesCommonMemberValuesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in excluded (list) + _items = [] + if self.excluded: + for _item_excluded in self.excluded: + if _item_excluded: + _items.append(_item_excluded.to_dict()) + _dict['excluded'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in included (list) + _items = [] + if self.included: + for _item_included in self.included: + if _item_included: + _items.append(_item_included.to_dict()) + _dict['included'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesCommonMemberValuesDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "excluded": [DataservicesCommonDimensionMemberReferenceDTO.from_dict(_item) for _item in obj["excluded"]] if obj.get("excluded") is not None else None, + "included": [DataservicesCommonDimensionMemberReferenceDTO.from_dict(_item) for _item in obj["included"]] if obj.get("included") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_aggregation_type_option_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_aggregation_type_option_dto.py new file mode 100644 index 0000000000..138e66719d --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_aggregation_type_option_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersAggregationTypeOptionDTO(BaseModel): + """ + The definition of an aggregation option. + """ # noqa: E501 + aggregation_function: Optional[StrictStr] = Field(default=None, description="The aggregation function of the parameter option.", alias="aggregationFunction") + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the parameter option.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the parameter option.") + is_default: Optional[StrictBool] = Field(default=None, description="`true` if the parameter option is the default one and `false` otherwise.", alias="isDefault") + property_name: Optional[StrictStr] = Field(default=None, description="The property name of the parameter option.", alias="propertyName") + __properties: ClassVar[List[str]] = ["aggregationFunction", "displayName", "id", "isDefault", "propertyName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersAggregationTypeOptionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersAggregationTypeOptionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "aggregationFunction": obj.get("aggregationFunction"), + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "isDefault": obj.get("isDefault"), + "propertyName": obj.get("propertyName") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_aggregation_type_parameter_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_aggregation_type_parameter_dto.py new file mode 100644 index 0000000000..944298ccc3 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_aggregation_type_parameter_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_aggregation_type_option_dto import DataservicesDatamodelTransfersAggregationTypeOptionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersAggregationTypeParameterDTO(BaseModel): + """ + The definition of an aggregation parameter. These parameters resolve metrics that use aggregation parameters. For example, Visier Benchmarks metrics often use aggregation parameters to enable callers to aggregate metric values according to their average or different percentiles. + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="The localized description of the parameter.") + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the parameter.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the parameter.") + parameter_options: Optional[List[DataservicesDatamodelTransfersAggregationTypeOptionDTO]] = Field(default=None, description="The options defined for the parameter.", alias="parameterOptions") + __properties: ClassVar[List[str]] = ["description", "displayName", "id", "parameterOptions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersAggregationTypeParameterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in parameter_options (list) + _items = [] + if self.parameter_options: + for _item_parameter_options in self.parameter_options: + if _item_parameter_options: + _items.append(_item_parameter_options.to_dict()) + _dict['parameterOptions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersAggregationTypeParameterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "parameterOptions": [DataservicesDatamodelTransfersAggregationTypeOptionDTO.from_dict(_item) for _item in obj["parameterOptions"]] if obj.get("parameterOptions") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_analytic_object_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_analytic_object_dto.py new file mode 100644 index 0000000000..292ed9752d --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_analytic_object_dto.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_object_reference_dto import DataservicesDatamodelTransfersObjectReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_population_configuration_dto import DataservicesDatamodelTransfersPopulationConfigurationDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersAnalyticObjectDTO(BaseModel): + """ + Analytic objects are the various items that users can analyze in Visier. Analytic objects include subjects, events, and overlays. + """ # noqa: E501 + data_end_date: Optional[StrictStr] = Field(default=None, description="The date from which data is no longer available for this analytic object. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string. Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="dataEndDate") + data_start_date: Optional[StrictStr] = Field(default=None, description="The date from which data becomes available for this analytic object. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string. Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="dataStartDate") + description: Optional[StrictStr] = Field(default=None, description="The localized description of the analytic object.") + dimension_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing IDs of the dimensions that belong to this analytic object.", alias="dimensionIds") + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the analytic object.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analytic object. Note: See `AnalyticObjects` to get the ID.") + object_references: Optional[List[DataservicesDatamodelTransfersObjectReferenceDTO]] = Field(default=None, description="A list of references from this analytic object to other analytic objects. Note: If there are no references, this field is omitted.", alias="objectReferences") + population_configuration: Optional[DataservicesDatamodelTransfersPopulationConfigurationDTO] = Field(default=None, description="A set of property and dimension references configured by Visier or an administrator to tell the platform what properties and dimensions to use when doing population insight calculations. These are the distinguishing properties, change history properties, and grouping dimensions to use in AI insights. This field is optional and is only available for subjects.", alias="populationConfiguration") + property_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing IDs of the properties that belong to this analytic object.", alias="propertyIds") + selection_concept_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing IDs of the selection concepts that belong to this analytic object. Note: If there are no selection concepts, this field is omitted.", alias="selectionConceptIds") + type: Optional[StrictStr] = Field(default=None, description="The analytic object type: SUBJECT, EVENT, or OVERLAY.") + __properties: ClassVar[List[str]] = ["dataEndDate", "dataStartDate", "description", "dimensionIds", "displayName", "id", "objectReferences", "populationConfiguration", "propertyIds", "selectionConceptIds", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['SUBJECT', 'EVENT', 'OVERLAY']): + raise ValueError("must be one of enum values ('SUBJECT', 'EVENT', 'OVERLAY')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersAnalyticObjectDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in object_references (list) + _items = [] + if self.object_references: + for _item_object_references in self.object_references: + if _item_object_references: + _items.append(_item_object_references.to_dict()) + _dict['objectReferences'] = _items + # override the default output from pydantic by calling `to_dict()` of population_configuration + if self.population_configuration: + _dict['populationConfiguration'] = self.population_configuration.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersAnalyticObjectDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataEndDate": obj.get("dataEndDate"), + "dataStartDate": obj.get("dataStartDate"), + "description": obj.get("description"), + "dimensionIds": obj.get("dimensionIds"), + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "objectReferences": [DataservicesDatamodelTransfersObjectReferenceDTO.from_dict(_item) for _item in obj["objectReferences"]] if obj.get("objectReferences") is not None else None, + "populationConfiguration": DataservicesDatamodelTransfersPopulationConfigurationDTO.from_dict(obj["populationConfiguration"]) if obj.get("populationConfiguration") is not None else None, + "propertyIds": obj.get("propertyIds"), + "selectionConceptIds": obj.get("selectionConceptIds"), + "type": obj.get("type") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_analytic_objects_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_analytic_objects_dto.py new file mode 100644 index 0000000000..bfb11656ac --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_analytic_objects_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_analytic_object_dto import DataservicesDatamodelTransfersAnalyticObjectDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersAnalyticObjectsDTO(BaseModel): + """ + A collection of analytic objects + """ # noqa: E501 + analytic_objects: Optional[List[DataservicesDatamodelTransfersAnalyticObjectDTO]] = Field(default=None, alias="analyticObjects") + __properties: ClassVar[List[str]] = ["analyticObjects"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersAnalyticObjectsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in analytic_objects (list) + _items = [] + if self.analytic_objects: + for _item_analytic_objects in self.analytic_objects: + if _item_analytic_objects: + _items.append(_item_analytic_objects.to_dict()) + _dict['analyticObjects'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersAnalyticObjectsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjects": [DataservicesDatamodelTransfersAnalyticObjectDTO.from_dict(_item) for _item in obj["analyticObjects"]] if obj.get("analyticObjects") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_currencies_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_currencies_dto.py new file mode 100644 index 0000000000..2c4a610dfc --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_currencies_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currency_dto import DataservicesDatamodelTransfersCurrencyDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersCurrenciesDTO(BaseModel): + """ + A collection of currencies. + """ # noqa: E501 + currencies: Optional[List[DataservicesDatamodelTransfersCurrencyDTO]] = None + __properties: ClassVar[List[str]] = ["currencies"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersCurrenciesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in currencies (list) + _items = [] + if self.currencies: + for _item_currencies in self.currencies: + if _item_currencies: + _items.append(_item_currencies.to_dict()) + _dict['currencies'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersCurrenciesDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "currencies": [DataservicesDatamodelTransfersCurrencyDTO.from_dict(_item) for _item in obj["currencies"]] if obj.get("currencies") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_currency_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_currency_dto.py new file mode 100644 index 0000000000..de9f36bde9 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_currency_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersCurrencyDTO(BaseModel): + """ + Information about a currency type. + """ # noqa: E501 + currency_code: Optional[StrictStr] = Field(default=None, description="The ISO 4217 3-letter code for the currency.", alias="currencyCode") + display_name: Optional[StrictStr] = Field(default=None, description="The display name for the currency.", alias="displayName") + short_symbol: Optional[StrictStr] = Field(default=None, description="The shortened symbol name for the currency. Removes all alphabetic characters. If **symbol** only has alphabetic characters, **shortSymbol** is empty. If **symbol** contains only non-alphabetic characters, **shortSymbol** is the same as **symbol**. For example, if **symbol** is CA$, **shortSymbol** is $. If **symbol** is $, then **shortSymbol** is $.", alias="shortSymbol") + symbol: Optional[StrictStr] = Field(default=None, description="The symbol name for the currency.") + __properties: ClassVar[List[str]] = ["currencyCode", "displayName", "shortSymbol", "symbol"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersCurrencyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersCurrencyDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "currencyCode": obj.get("currencyCode"), + "displayName": obj.get("displayName"), + "shortSymbol": obj.get("shortSymbol"), + "symbol": obj.get("symbol") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_currency_rate_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_currency_rate_dto.py new file mode 100644 index 0000000000..0755412b30 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_currency_rate_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersCurrencyRateDTO(BaseModel): + """ + Information about a currency exchange rate. + """ # noqa: E501 + end_time: Optional[StrictStr] = Field(default=None, description="The latest time instant to retrieve exchange rates from. **Note:** Format is the number of milliseconds since Jan 1, 1970 12:00 AM UTC.", alias="endTime") + from_currency_code: Optional[StrictStr] = Field(default=None, description="The currency to convert **from**. **Note:** If USD is the `fromCurrencyCode`, you are retrieving the exchange rates from USD to a different currency.", alias="fromCurrencyCode") + rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The numeric value of the exchange rate. **Note:** If **decimals** is specified, rate rounds to that value. If **decimals** is undefined, **rate** rounds to 2 significant figures after the decimal point.") + start_time: Optional[StrictStr] = Field(default=None, description="The earliest time instant to retrieve exchange rates from. **Note:** Format is the number of milliseconds since Jan 1, 1970 12:00 AM UTC.", alias="startTime") + to_currency_code: Optional[StrictStr] = Field(default=None, description="The currency to convert **to**. **Note:** If USD is the `toCurrencyCode`, you are retrieving the exchange rates from a different currency to USD.", alias="toCurrencyCode") + __properties: ClassVar[List[str]] = ["endTime", "fromCurrencyCode", "rate", "startTime", "toCurrencyCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersCurrencyRateDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersCurrencyRateDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "endTime": obj.get("endTime"), + "fromCurrencyCode": obj.get("fromCurrencyCode"), + "rate": obj.get("rate"), + "startTime": obj.get("startTime"), + "toCurrencyCode": obj.get("toCurrencyCode") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_currency_rates_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_currency_rates_dto.py new file mode 100644 index 0000000000..50a262cef7 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_currency_rates_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_currency_rate_dto import DataservicesDatamodelTransfersCurrencyRateDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersCurrencyRatesDTO(BaseModel): + """ + A collection of currency exchange rates. Note: Currencies may have different exchange rates in different time intervals, depending what rate data is stored in Visier. For example, USD:CAD can be 1.2 between January 1 - March 1, while USD:EUR can be 0.92 between January 1 - February 1, but 0.88 between February 1 - March 1. + """ # noqa: E501 + currency_rates: Optional[List[DataservicesDatamodelTransfersCurrencyRateDTO]] = Field(default=None, alias="currencyRates") + __properties: ClassVar[List[str]] = ["currencyRates"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersCurrencyRatesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in currency_rates (list) + _items = [] + if self.currency_rates: + for _item_currency_rates in self.currency_rates: + if _item_currency_rates: + _items.append(_item_currency_rates.to_dict()) + _dict['currencyRates'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersCurrencyRatesDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "currencyRates": [DataservicesDatamodelTransfersCurrencyRateDTO.from_dict(_item) for _item in obj["currencyRates"]] if obj.get("currencyRates") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_dto.py new file mode 100644 index 0000000000..f45b7a2658 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_dto.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_level_dto import DataservicesDatamodelTransfersLevelDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_tag_map_element_dto import DataservicesDatamodelTransfersTagMapElementDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersDimensionDTO(BaseModel): + """ + A dimension organizes unique values of an attribute into a list or a hierarchical structure for use as a filter or group-by in your solution. + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="The localized description of the dimension.") + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the dimension.", alias="displayName") + explanation: Optional[StrictStr] = Field(default=None, description="The localized explanation of the dimension.") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the dimension. Note: See `Dimensions` to get the ID`.") + levels: Optional[List[DataservicesDatamodelTransfersLevelDTO]] = Field(default=None, description="The levels defined for the dimension. Note: For parent-child dimensions, a level name is generated by Visier.") + member_count: Optional[StrictInt] = Field(default=None, description="The total number of members for the dimension, excluding the (All) member.", alias="memberCount") + tags: Optional[List[DataservicesDatamodelTransfersTagMapElementDTO]] = Field(default=None, description="The optional collection of tags defined for this element.") + unknown_member: Optional[List[StrictStr]] = Field(default=None, description="The optional path to the unknown member, if defined.", alias="unknownMember") + visible_in_app: Optional[StrictBool] = Field(default=None, description="`true` if this dimension is set to be visible in your solution.", alias="visibleInApp") + __properties: ClassVar[List[str]] = ["description", "displayName", "explanation", "id", "levels", "memberCount", "tags", "unknownMember", "visibleInApp"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersDimensionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in levels (list) + _items = [] + if self.levels: + for _item_levels in self.levels: + if _item_levels: + _items.append(_item_levels.to_dict()) + _dict['levels'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in tags (list) + _items = [] + if self.tags: + for _item_tags in self.tags: + if _item_tags: + _items.append(_item_tags.to_dict()) + _dict['tags'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersDimensionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "explanation": obj.get("explanation"), + "id": obj.get("id"), + "levels": [DataservicesDatamodelTransfersLevelDTO.from_dict(_item) for _item in obj["levels"]] if obj.get("levels") is not None else None, + "memberCount": obj.get("memberCount"), + "tags": [DataservicesDatamodelTransfersTagMapElementDTO.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None, + "unknownMember": obj.get("unknownMember"), + "visibleInApp": obj.get("visibleInApp") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_mapping_validation_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_mapping_validation_dto.py new file mode 100644 index 0000000000..226500a8b4 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_mapping_validation_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_common_dimension_member_reference_dto import DataservicesCommonDimensionMemberReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersDimensionMappingValidationDTO(BaseModel): + """ + DataservicesDatamodelTransfersDimensionMappingValidationDTO + """ # noqa: E501 + dimension_id: Optional[StrictStr] = Field(default=None, alias="dimensionId") + dimension_map_id: Optional[StrictStr] = Field(default=None, alias="dimensionMapId") + failures: Optional[List[StrictStr]] = None + unmapped_members: Optional[List[DataservicesCommonDimensionMemberReferenceDTO]] = Field(default=None, alias="unmappedMembers") + __properties: ClassVar[List[str]] = ["dimensionId", "dimensionMapId", "failures", "unmappedMembers"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersDimensionMappingValidationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in unmapped_members (list) + _items = [] + if self.unmapped_members: + for _item_unmapped_members in self.unmapped_members: + if _item_unmapped_members: + _items.append(_item_unmapped_members.to_dict()) + _dict['unmappedMembers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersDimensionMappingValidationDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensionId": obj.get("dimensionId"), + "dimensionMapId": obj.get("dimensionMapId"), + "failures": obj.get("failures"), + "unmappedMembers": [DataservicesCommonDimensionMemberReferenceDTO.from_dict(_item) for _item in obj["unmappedMembers"]] if obj.get("unmappedMembers") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto.py new file mode 100644 index 0000000000..2984d0ab09 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO(BaseModel): + """ + Instruction to execute a mapping validation query + """ # noqa: E501 + analytic_object: Optional[StrictStr] = Field(default=None, description="the analytic object associated with the dimension map", alias="analyticObject") + member_map_id: Optional[StrictStr] = Field(default=None, description="memberMapId == dimensionMapId", alias="memberMapId") + __properties: ClassVar[List[str]] = ["analyticObject", "memberMapId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObject": obj.get("analyticObject"), + "memberMapId": obj.get("memberMapId") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_reference_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_reference_dto.py new file mode 100644 index 0000000000..ef998757d4 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_dimension_reference_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersDimensionReferenceDTO(BaseModel): + """ + The name and qualifying path of a dimension to query. + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="The ID of the dimension. See `Dimensions` to get the ID.") + qualifying_path: Optional[StrictStr] = Field(default=None, description="The qualifying path to the dimension in Visier, such as the analytic object or event the dimension is associated with. If the path has multiple objects, each object is separated by a period.", alias="qualifyingPath") + __properties: ClassVar[List[str]] = ["name", "qualifyingPath"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersDimensionReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersDimensionReferenceDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "qualifyingPath": obj.get("qualifyingPath") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_dimensions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_dimensions_dto.py new file mode 100644 index 0000000000..e158096a9c --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_dimensions_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_dto import DataservicesDatamodelTransfersDimensionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersDimensionsDTO(BaseModel): + """ + A collection of dimensions. + """ # noqa: E501 + dimensions: Optional[List[DataservicesDatamodelTransfersDimensionDTO]] = None + __properties: ClassVar[List[str]] = ["dimensions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersDimensionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in dimensions (list) + _items = [] + if self.dimensions: + for _item_dimensions in self.dimensions: + if _item_dimensions: + _items.append(_item_dimensions.to_dict()) + _dict['dimensions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersDimensionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensions": [DataservicesDatamodelTransfersDimensionDTO.from_dict(_item) for _item in obj["dimensions"]] if obj.get("dimensions") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_level_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_level_dto.py new file mode 100644 index 0000000000..11771905fb --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_level_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersLevelDTO(BaseModel): + """ + Levels are the hierarchical structure of members within a dimension. + """ # noqa: E501 + depth: Optional[StrictInt] = Field(default=None, description="The level depth of the dimension.") + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the dimension.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of a level within a dimension.") + __properties: ClassVar[List[str]] = ["depth", "displayName", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersLevelDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersLevelDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "depth": obj.get("depth"), + "displayName": obj.get("displayName"), + "id": obj.get("id") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_member_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_member_dto.py new file mode 100644 index 0000000000..ce8b7ec0f5 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_member_dto.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_validity_range_dto import DataservicesDatamodelTransfersValidityRangeDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersMemberDTO(BaseModel): + """ + A member is an element of a dimension. Dimension members are organized hierarchically. For example, Argentina is a member of the Location dimension at the Country level of the hierarchy Region > Country > Province > City. + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the member.", alias="displayName") + display_name_path: Optional[List[StrictStr]] = Field(default=None, description="The display names for each level in the member's ancestral path.", alias="displayNamePath") + full_name: Optional[StrictStr] = Field(default=None, description="The fully qualified name of the member. This is the dimension's object name and the member's display name, separated by a period.", alias="fullName") + level: Optional[StrictInt] = Field(default=None, description="The numeric level of the hierarchy the member belongs to.") + path: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of identifiers that reference members on the query axis as part of dimensionMemberSelection.") + validity_ranges: Optional[List[DataservicesDatamodelTransfersValidityRangeDTO]] = Field(default=None, description="The validity ranges that exist for this member.", alias="validityRanges") + __properties: ClassVar[List[str]] = ["displayName", "displayNamePath", "fullName", "level", "path", "validityRanges"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersMemberDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in validity_ranges (list) + _items = [] + if self.validity_ranges: + for _item_validity_ranges in self.validity_ranges: + if _item_validity_ranges: + _items.append(_item_validity_ranges.to_dict()) + _dict['validityRanges'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersMemberDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "displayNamePath": obj.get("displayNamePath"), + "fullName": obj.get("fullName"), + "level": obj.get("level"), + "path": obj.get("path"), + "validityRanges": [DataservicesDatamodelTransfersValidityRangeDTO.from_dict(_item) for _item in obj["validityRanges"]] if obj.get("validityRanges") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_member_parameter_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_member_parameter_definition_dto.py new file mode 100644 index 0000000000..38d3f20cb1 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_member_parameter_definition_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_common_member_values_dto import DataservicesCommonMemberValuesDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersMemberParameterDefinitionDTO(BaseModel): + """ + The definition of a filter parameter. These elements are returned as part of the definition for metrics that include parameters in their definition. + """ # noqa: E501 + default: Optional[DataservicesCommonMemberValuesDTO] = Field(default=None, description="The default value if the end user does not select a member at run time.") + description: Optional[StrictStr] = Field(default=None, description="The localized description of the member parameter.") + dimension_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the dimension on which the member parameter is based.", alias="dimensionId") + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the member parameter.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the member parameter.") + reference_path: Optional[List[StrictStr]] = Field(default=None, description="The analytic object reference path from the metric to the dimension.", alias="referencePath") + __properties: ClassVar[List[str]] = ["default", "description", "dimensionId", "displayName", "id", "referencePath"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersMemberParameterDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of default + if self.default: + _dict['default'] = self.default.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersMemberParameterDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "default": DataservicesCommonMemberValuesDTO.from_dict(obj["default"]) if obj.get("default") is not None else None, + "description": obj.get("description"), + "dimensionId": obj.get("dimensionId"), + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "referencePath": obj.get("referencePath") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_members_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_members_dto.py new file mode 100644 index 0000000000..02fa840134 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_members_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_member_dto import DataservicesDatamodelTransfersMemberDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersMembersDTO(BaseModel): + """ + A collection of members. + """ # noqa: E501 + members: Optional[List[DataservicesDatamodelTransfersMemberDTO]] = None + __properties: ClassVar[List[str]] = ["members"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersMembersDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in members (list) + _items = [] + if self.members: + for _item_members in self.members: + if _item_members: + _items.append(_item_members.to_dict()) + _dict['members'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersMembersDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "members": [DataservicesDatamodelTransfersMemberDTO.from_dict(_item) for _item in obj["members"]] if obj.get("members") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_metric_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_metric_dto.py new file mode 100644 index 0000000000..3e55e3a564 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_metric_dto.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_parameter_definition_dto import DataservicesDatamodelTransfersParameterDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersMetricDTO(BaseModel): + """ + A metric is a calculation based on one or more attribute values of analytic objects. + """ # noqa: E501 + analytic_object_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analytic object.", alias="analyticObjectId") + category: Optional[StrictStr] = Field(default=None, description="The category of the metric. Will be one of: `REGULAR`, `DERIVED` or `PLANNING`.") + data_end_date: Optional[StrictStr] = Field(default=None, description="The date from which data is no longer available for this metric. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string. Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="dataEndDate") + data_start_date: Optional[StrictStr] = Field(default=None, description="The date from which data becomes available for this metric. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string. Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="dataStartDate") + description: Optional[StrictStr] = Field(default=None, description="The localized description of the metric.") + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the metric.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the metric. Note: See `Metrics` to get the ID.") + parameters: Optional[List[DataservicesDatamodelTransfersParameterDefinitionDTO]] = Field(default=None, description="The collection of parameters defined for the metric.") + visible_in_app: Optional[StrictBool] = Field(default=None, description="// `true` if this metric is set to be visible in your solution.", alias="visibleInApp") + __properties: ClassVar[List[str]] = ["analyticObjectId", "category", "dataEndDate", "dataStartDate", "description", "displayName", "id", "parameters", "visibleInApp"] + + @field_validator('category') + def category_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['REGULAR', 'DERIVED', 'PLANNING']): + raise ValueError("must be one of enum values ('REGULAR', 'DERIVED', 'PLANNING')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersMetricDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in parameters (list) + _items = [] + if self.parameters: + for _item_parameters in self.parameters: + if _item_parameters: + _items.append(_item_parameters.to_dict()) + _dict['parameters'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersMetricDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectId": obj.get("analyticObjectId"), + "category": obj.get("category"), + "dataEndDate": obj.get("dataEndDate"), + "dataStartDate": obj.get("dataStartDate"), + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "parameters": [DataservicesDatamodelTransfersParameterDefinitionDTO.from_dict(_item) for _item in obj["parameters"]] if obj.get("parameters") is not None else None, + "visibleInApp": obj.get("visibleInApp") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_metrics_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_metrics_dto.py new file mode 100644 index 0000000000..d9bf01c4ae --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_metrics_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_metric_dto import DataservicesDatamodelTransfersMetricDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersMetricsDTO(BaseModel): + """ + A collection of metrics. + """ # noqa: E501 + metrics: Optional[List[DataservicesDatamodelTransfersMetricDTO]] = None + __properties: ClassVar[List[str]] = ["metrics"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersMetricsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in metrics (list) + _items = [] + if self.metrics: + for _item_metrics in self.metrics: + if _item_metrics: + _items.append(_item_metrics.to_dict()) + _dict['metrics'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersMetricsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "metrics": [DataservicesDatamodelTransfersMetricDTO.from_dict(_item) for _item in obj["metrics"]] if obj.get("metrics") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_numeric_parameter_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_numeric_parameter_definition_dto.py new file mode 100644 index 0000000000..620ad20e60 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_numeric_parameter_definition_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersNumericParameterDefinitionDTO(BaseModel): + """ + The definition of a numeric parameter. These elements are returned as part of the query definition for metric parameter values. + """ # noqa: E501 + default: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The default value if the end user does not select a member at run time.") + description: Optional[StrictStr] = Field(default=None, description="The localized description of the numeric parameter.") + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the numeric parameter.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the numeric parameter.") + lower_bound: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The lowest value for the numeric parameter.", alias="lowerBound") + upper_bound: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The highest value for the numeric parameter.", alias="upperBound") + __properties: ClassVar[List[str]] = ["default", "description", "displayName", "id", "lowerBound", "upperBound"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersNumericParameterDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersNumericParameterDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "default": obj.get("default"), + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "lowerBound": obj.get("lowerBound"), + "upperBound": obj.get("upperBound") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_object_reference_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_object_reference_dto.py new file mode 100644 index 0000000000..c543a6fa7e --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_object_reference_dto.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersObjectReferenceDTO(BaseModel): + """ + A link between one analytic object and another. An ObjectReference allows you to discover the relationships between analytic objects. In some queries, you may need to provide a qualifyingPath, which is built from ObjectReference information. + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="The localized description of the object reference.") + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the object reference.", alias="displayName") + from_object: Optional[StrictStr] = Field(default=None, description="The ID of the referencing analytic object.", alias="fromObject") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the object reference.") + is_strong_reference: Optional[StrictBool] = Field(default=None, description="True if this is a strong reference.", alias="isStrongReference") + to_object: Optional[StrictStr] = Field(default=None, description="The ID of the referenced analytic object.", alias="toObject") + type: Optional[StrictStr] = Field(default=None, description="The type of object reference.") + __properties: ClassVar[List[str]] = ["description", "displayName", "fromObject", "id", "isStrongReference", "toObject", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['SUBJECT_REFERENCE', 'MULTI_VALUE_REFERENCE']): + raise ValueError("must be one of enum values ('SUBJECT_REFERENCE', 'MULTI_VALUE_REFERENCE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersObjectReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersObjectReferenceDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "fromObject": obj.get("fromObject"), + "id": obj.get("id"), + "isStrongReference": obj.get("isStrongReference"), + "toObject": obj.get("toObject"), + "type": obj.get("type") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_parameter_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_parameter_definition_dto.py new file mode 100644 index 0000000000..20c67d684d --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_parameter_definition_dto.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_aggregation_type_parameter_dto import DataservicesDatamodelTransfersAggregationTypeParameterDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_member_parameter_definition_dto import DataservicesDatamodelTransfersMemberParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_numeric_parameter_definition_dto import DataservicesDatamodelTransfersNumericParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_plan_parameter_definition_dto import DataservicesDatamodelTransfersPlanParameterDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersParameterDefinitionDTO(BaseModel): + """ + Parameters generalize object definitions so that end users can provide values at query run time. + """ # noqa: E501 + aggregation_type_parameter: Optional[DataservicesDatamodelTransfersAggregationTypeParameterDTO] = Field(default=None, description="An aggregation parameter. Such parameters enable control over how applicable metrics aggregate their results.", alias="aggregationTypeParameter") + member_parameter: Optional[DataservicesDatamodelTransfersMemberParameterDefinitionDTO] = Field(default=None, description="A filter parameter that can be set with dimension members for the end user to select.", alias="memberParameter") + numeric_parameter: Optional[DataservicesDatamodelTransfersNumericParameterDefinitionDTO] = Field(default=None, description="A parameter with a numeric data type. A numeric parameter can be set with an optional default value and value range.", alias="numericParameter") + plan_parameter: Optional[DataservicesDatamodelTransfersPlanParameterDefinitionDTO] = Field(default=None, description="A parameter on a planning metric. Plan parameters resolve planning model metrics to a specific plan and scenario or snapshot.", alias="planParameter") + __properties: ClassVar[List[str]] = ["aggregationTypeParameter", "memberParameter", "numericParameter", "planParameter"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersParameterDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of aggregation_type_parameter + if self.aggregation_type_parameter: + _dict['aggregationTypeParameter'] = self.aggregation_type_parameter.to_dict() + # override the default output from pydantic by calling `to_dict()` of member_parameter + if self.member_parameter: + _dict['memberParameter'] = self.member_parameter.to_dict() + # override the default output from pydantic by calling `to_dict()` of numeric_parameter + if self.numeric_parameter: + _dict['numericParameter'] = self.numeric_parameter.to_dict() + # override the default output from pydantic by calling `to_dict()` of plan_parameter + if self.plan_parameter: + _dict['planParameter'] = self.plan_parameter.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersParameterDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "aggregationTypeParameter": DataservicesDatamodelTransfersAggregationTypeParameterDTO.from_dict(obj["aggregationTypeParameter"]) if obj.get("aggregationTypeParameter") is not None else None, + "memberParameter": DataservicesDatamodelTransfersMemberParameterDefinitionDTO.from_dict(obj["memberParameter"]) if obj.get("memberParameter") is not None else None, + "numericParameter": DataservicesDatamodelTransfersNumericParameterDefinitionDTO.from_dict(obj["numericParameter"]) if obj.get("numericParameter") is not None else None, + "planParameter": DataservicesDatamodelTransfersPlanParameterDefinitionDTO.from_dict(obj["planParameter"]) if obj.get("planParameter") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_plan_parameter_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_plan_parameter_definition_dto.py new file mode 100644 index 0000000000..5e16abd326 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_plan_parameter_definition_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersPlanParameterDefinitionDTO(BaseModel): + """ + The definition of a plan parameter. These parameters resolve planning model metrics to a specific plan and scenario or snapshot values at query runtime. + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="The localized description of the parameter.") + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the parameter.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the parameter.") + model_name: Optional[StrictStr] = Field(default=None, description="The name of the planning model to which the parameter applies.", alias="modelName") + __properties: ClassVar[List[str]] = ["description", "displayName", "id", "modelName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanParameterDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanParameterDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "modelName": obj.get("modelName") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_concept_filter_context_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_concept_filter_context_dto.py new file mode 100644 index 0000000000..9cdfe76280 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_concept_filter_context_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersPlanningConceptFilterContextDTO(BaseModel): + """ + A plan context defined using a selection concept. + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="The object name of the selection concept.") + __properties: ClassVar[List[str]] = ["name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanningConceptFilterContextDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanningConceptFilterContextDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_hierarchy_filter_context_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_hierarchy_filter_context_dto.py new file mode 100644 index 0000000000..843038d60f --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_hierarchy_filter_context_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO(BaseModel): + """ + A plan context defined using hierarchy members + """ # noqa: E501 + excluded_members: Optional[List[StrictStr]] = Field(default=None, description="The unique IDs of excluded dimension members.", alias="excludedMembers") + hierarchy_name: Optional[StrictStr] = Field(default=None, description="The object name of the hierarchy.", alias="hierarchyName") + included_members: Optional[List[StrictStr]] = Field(default=None, description="The unique IDs of the included dimension members.", alias="includedMembers") + __properties: ClassVar[List[str]] = ["excludedMembers", "hierarchyName", "includedMembers"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "excludedMembers": obj.get("excludedMembers"), + "hierarchyName": obj.get("hierarchyName"), + "includedMembers": obj.get("includedMembers") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_model_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_model_dto.py new file mode 100644 index 0000000000..780d0ffb19 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_model_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersPlanningModelDTO(BaseModel): + """ + The basic information about the planning model. A planning model captures the planning intent, plan items, and the relationship between them. + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="The localized description of the planning model.") + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the planning model.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the planning model. Note: See `PlanningModels` to get the ID.") + __properties: ClassVar[List[str]] = ["description", "displayName", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanningModelDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanningModelDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "id": obj.get("id") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_models_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_models_dto.py new file mode 100644 index 0000000000..a7dd5580c8 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_models_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_model_dto import DataservicesDatamodelTransfersPlanningModelDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersPlanningModelsDTO(BaseModel): + """ + A collection of planning modules. + """ # noqa: E501 + models: Optional[List[DataservicesDatamodelTransfersPlanningModelDTO]] = None + __properties: ClassVar[List[str]] = ["models"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanningModelsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in models (list) + _items = [] + if self.models: + for _item_models in self.models: + if _item_models: + _items.append(_item_models.to_dict()) + _dict['models'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanningModelsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "models": [DataservicesDatamodelTransfersPlanningModelDTO.from_dict(_item) for _item in obj["models"]] if obj.get("models") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_plan_context_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_plan_context_dto.py new file mode 100644 index 0000000000..28aa6ba84b --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_plan_context_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_concept_filter_context_dto import DataservicesDatamodelTransfersPlanningConceptFilterContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_hierarchy_filter_context_dto import DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersPlanningPlanContextDTO(BaseModel): + """ + The filter context for a plan. Plan contexts are defined using a set of hierarchy members or a concept. + """ # noqa: E501 + concept_filter_context: Optional[DataservicesDatamodelTransfersPlanningConceptFilterContextDTO] = Field(default=None, description="A plan context defined using a selection concept.", alias="conceptFilterContext") + hierarchy_filter_context: Optional[DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO] = Field(default=None, description="A plan context defined using hierarchy members.", alias="hierarchyFilterContext") + __properties: ClassVar[List[str]] = ["conceptFilterContext", "hierarchyFilterContext"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanningPlanContextDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of concept_filter_context + if self.concept_filter_context: + _dict['conceptFilterContext'] = self.concept_filter_context.to_dict() + # override the default output from pydantic by calling `to_dict()` of hierarchy_filter_context + if self.hierarchy_filter_context: + _dict['hierarchyFilterContext'] = self.hierarchy_filter_context.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanningPlanContextDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "conceptFilterContext": DataservicesDatamodelTransfersPlanningConceptFilterContextDTO.from_dict(obj["conceptFilterContext"]) if obj.get("conceptFilterContext") is not None else None, + "hierarchyFilterContext": DataservicesDatamodelTransfersPlanningHierarchyFilterContextDTO.from_dict(obj["hierarchyFilterContext"]) if obj.get("hierarchyFilterContext") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_plan_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_plan_dto.py new file mode 100644 index 0000000000..a98da4a7d0 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_plan_dto.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_plan_context_dto import DataservicesDatamodelTransfersPlanningPlanContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_scenario_or_snapshot_dto import DataservicesDatamodelTransfersScenarioOrSnapshotDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersPlanningPlanDTO(BaseModel): + """ + The definition of a plan. Plans are defined on planning models, and each plan may define multiple scenarios or snapshots. + """ # noqa: E501 + default_contexts: Optional[List[DataservicesDatamodelTransfersPlanningPlanContextDTO]] = Field(default=None, description="The contexts defined for the plan.", alias="defaultContexts") + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the plan. Note: See `PlanningPlans` to get the ID.") + name: Optional[StrictStr] = Field(default=None, description="The name of the plan.") + plan_dimension_ids: Optional[List[StrictStr]] = Field(default=None, description="The IDs of the dimensions defined for the plan.", alias="planDimensionIds") + scenarios: Optional[List[DataservicesDatamodelTransfersScenarioOrSnapshotDTO]] = Field(default=None, description="The available scenarios for the plan.") + snapshots: Optional[List[DataservicesDatamodelTransfersScenarioOrSnapshotDTO]] = Field(default=None, description="The available snapshots for the plan.") + subject_id: Optional[StrictStr] = Field(default=None, description="The ID of subject for the plan.", alias="subjectId") + __properties: ClassVar[List[str]] = ["defaultContexts", "id", "name", "planDimensionIds", "scenarios", "snapshots", "subjectId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanningPlanDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in default_contexts (list) + _items = [] + if self.default_contexts: + for _item_default_contexts in self.default_contexts: + if _item_default_contexts: + _items.append(_item_default_contexts.to_dict()) + _dict['defaultContexts'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in scenarios (list) + _items = [] + if self.scenarios: + for _item_scenarios in self.scenarios: + if _item_scenarios: + _items.append(_item_scenarios.to_dict()) + _dict['scenarios'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in snapshots (list) + _items = [] + if self.snapshots: + for _item_snapshots in self.snapshots: + if _item_snapshots: + _items.append(_item_snapshots.to_dict()) + _dict['snapshots'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanningPlanDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "defaultContexts": [DataservicesDatamodelTransfersPlanningPlanContextDTO.from_dict(_item) for _item in obj["defaultContexts"]] if obj.get("defaultContexts") is not None else None, + "id": obj.get("id"), + "name": obj.get("name"), + "planDimensionIds": obj.get("planDimensionIds"), + "scenarios": [DataservicesDatamodelTransfersScenarioOrSnapshotDTO.from_dict(_item) for _item in obj["scenarios"]] if obj.get("scenarios") is not None else None, + "snapshots": [DataservicesDatamodelTransfersScenarioOrSnapshotDTO.from_dict(_item) for _item in obj["snapshots"]] if obj.get("snapshots") is not None else None, + "subjectId": obj.get("subjectId") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_plans_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_plans_dto.py new file mode 100644 index 0000000000..8b9e8e92b7 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_planning_plans_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_planning_plan_dto import DataservicesDatamodelTransfersPlanningPlanDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersPlanningPlansDTO(BaseModel): + """ + A collection of plan definitions. + """ # noqa: E501 + plans: Optional[List[DataservicesDatamodelTransfersPlanningPlanDTO]] = None + __properties: ClassVar[List[str]] = ["plans"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanningPlansDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in plans (list) + _items = [] + if self.plans: + for _item_plans in self.plans: + if _item_plans: + _items.append(_item_plans.to_dict()) + _dict['plans'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPlanningPlansDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "plans": [DataservicesDatamodelTransfersPlanningPlanDTO.from_dict(_item) for _item in obj["plans"]] if obj.get("plans") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_population_configuration_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_population_configuration_dto.py new file mode 100644 index 0000000000..6020507ca8 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_population_configuration_dto.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_property_reference_dto import DataservicesDatamodelTransfersPropertyReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersPopulationConfigurationDTO(BaseModel): + """ + A set of property and dimension references configured by Visier or an administrator to tell the platform what properties and dimensions to use when doing population insight calculations. These are the distinguishing properties, change history properties, and grouping dimensions to use in AI insights. + """ # noqa: E501 + change_history_properties: Optional[List[DataservicesDatamodelTransfersPropertyReferenceDTO]] = Field(default=None, description="Properties that are used by default to compare subject members over time.", alias="changeHistoryProperties") + distinguishing_properties: Optional[List[DataservicesDatamodelTransfersPropertyReferenceDTO]] = Field(default=None, description="Properties that are used by default to compare subject members.", alias="distinguishingProperties") + grouping_dimensions: Optional[List[DataservicesDatamodelTransfersDimensionReferenceDTO]] = Field(default=None, description="Dimensions to use for grouping and clustering the population.", alias="groupingDimensions") + __properties: ClassVar[List[str]] = ["changeHistoryProperties", "distinguishingProperties", "groupingDimensions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPopulationConfigurationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in change_history_properties (list) + _items = [] + if self.change_history_properties: + for _item_change_history_properties in self.change_history_properties: + if _item_change_history_properties: + _items.append(_item_change_history_properties.to_dict()) + _dict['changeHistoryProperties'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in distinguishing_properties (list) + _items = [] + if self.distinguishing_properties: + for _item_distinguishing_properties in self.distinguishing_properties: + if _item_distinguishing_properties: + _items.append(_item_distinguishing_properties.to_dict()) + _dict['distinguishingProperties'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in grouping_dimensions (list) + _items = [] + if self.grouping_dimensions: + for _item_grouping_dimensions in self.grouping_dimensions: + if _item_grouping_dimensions: + _items.append(_item_grouping_dimensions.to_dict()) + _dict['groupingDimensions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPopulationConfigurationDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "changeHistoryProperties": [DataservicesDatamodelTransfersPropertyReferenceDTO.from_dict(_item) for _item in obj["changeHistoryProperties"]] if obj.get("changeHistoryProperties") is not None else None, + "distinguishingProperties": [DataservicesDatamodelTransfersPropertyReferenceDTO.from_dict(_item) for _item in obj["distinguishingProperties"]] if obj.get("distinguishingProperties") is not None else None, + "groupingDimensions": [DataservicesDatamodelTransfersDimensionReferenceDTO.from_dict(_item) for _item in obj["groupingDimensions"]] if obj.get("groupingDimensions") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_prediction_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_prediction_dto.py new file mode 100644 index 0000000000..6b41e54a3a --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_prediction_dto.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersPredictionDTO(BaseModel): + """ + A prediction is a forecast of future events with advanced machine learning models. + """ # noqa: E501 + data_end_date: Optional[StrictStr] = Field(default=None, description="The date from which data is no longer available for this prediction. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string. Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="dataEndDate") + data_start_date: Optional[StrictStr] = Field(default=None, description="The date from which data becomes available for this prediction. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string. Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="dataStartDate") + description: Optional[StrictStr] = Field(default=None, description="The localized description of the prediction.") + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the prediction.", alias="displayName") + event: Optional[StrictStr] = Field(default=None, description="The object name of the event to predict. The prediction's training data uses past occurrences of the event to make predictions. For example, the Predicted Risk of Resignation model uses the Employee_Exit event to estimate likelihood of exit from the organization.") + event_filter: Optional[StrictStr] = Field(default=None, description="The object name of a selection concept to filter event occurrences in the prediction's training data.", alias="eventFilter") + factor_concepts: Optional[List[StrictStr]] = Field(default=None, description="The list of unique IDs of the concepts used as prediction factors.", alias="factorConcepts") + factor_dimensions: Optional[List[StrictStr]] = Field(default=None, description="The list of unique IDs of the dimensions used as prediction factors.", alias="factorDimensions") + factor_properties: Optional[List[StrictStr]] = Field(default=None, description="The list of unique IDs of the properties used as prediction factors. Note: Factors are conditions used as part of a Visier prediction. For example, Compensation might be a factor in predicting an individual's risk of resignation. Factors are chosen based on: - Availability in tenants. - Prediction impact, such as salary. - Reducing bias.", alias="factorProperties") + factors_name: Optional[StrictStr] = Field(default=None, description="The unique name of the factor property. The prediction's formula references the factor property as an object. This is automatically generated.", alias="factorsName") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the prediction. Note: See `Predictions` to get the ID.") + is_multi_tenant: Optional[StrictBool] = Field(default=None, description="If `true`, this prediction applies to more than one tenant. If \"false\", the prediction only applies to the current tenant.", alias="isMultiTenant") + label_property: Optional[StrictStr] = Field(default=None, description="The unique ID of the property label for the prediction. This is automatically generated.", alias="labelProperty") + minimum_training_months: Optional[StrictStr] = Field(default=None, description="The minimum amount of time, in months, to train the prediction model.", alias="minimumTrainingMonths") + score_name: Optional[StrictStr] = Field(default=None, description="The unique name of the score property. The prediction's formula references the score property as an object. This is automatically generated.", alias="scoreName") + subject: Optional[StrictStr] = Field(default=None, description="The object name of the subject that the prediction applies to. For example, Employee.") + subject_filter: Optional[StrictStr] = Field(default=None, description="The object name of a selection concept to filter the subject population. Filtering the population selects specific subject members in the prediction's training data. For example, using the isHighPerformer concept will filter the prediction to only high performing employees.", alias="subjectFilter") + subject_key: Optional[StrictStr] = Field(default=None, description="The unique ID of the subject's property that the prediction applies to. For example, Employee.EmployeeID.", alias="subjectKey") + subject_parent_key: Optional[StrictStr] = Field(default=None, description="The unique ID of the reference that connects a subject member to other members. For example, Employee.Direct_Manager. Note: The `subjectParentKey` defines parent, child, and peer relationships between subject members.", alias="subjectParentKey") + __properties: ClassVar[List[str]] = ["dataEndDate", "dataStartDate", "description", "displayName", "event", "eventFilter", "factorConcepts", "factorDimensions", "factorProperties", "factorsName", "id", "isMultiTenant", "labelProperty", "minimumTrainingMonths", "scoreName", "subject", "subjectFilter", "subjectKey", "subjectParentKey"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPredictionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPredictionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataEndDate": obj.get("dataEndDate"), + "dataStartDate": obj.get("dataStartDate"), + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "event": obj.get("event"), + "eventFilter": obj.get("eventFilter"), + "factorConcepts": obj.get("factorConcepts"), + "factorDimensions": obj.get("factorDimensions"), + "factorProperties": obj.get("factorProperties"), + "factorsName": obj.get("factorsName"), + "id": obj.get("id"), + "isMultiTenant": obj.get("isMultiTenant"), + "labelProperty": obj.get("labelProperty"), + "minimumTrainingMonths": obj.get("minimumTrainingMonths"), + "scoreName": obj.get("scoreName"), + "subject": obj.get("subject"), + "subjectFilter": obj.get("subjectFilter"), + "subjectKey": obj.get("subjectKey"), + "subjectParentKey": obj.get("subjectParentKey") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_predictions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_predictions_dto.py new file mode 100644 index 0000000000..71584c314e --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_predictions_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_prediction_dto import DataservicesDatamodelTransfersPredictionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersPredictionsDTO(BaseModel): + """ + A collection of predictions. + """ # noqa: E501 + predictions: Optional[List[DataservicesDatamodelTransfersPredictionDTO]] = None + __properties: ClassVar[List[str]] = ["predictions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPredictionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in predictions (list) + _items = [] + if self.predictions: + for _item_predictions in self.predictions: + if _item_predictions: + _items.append(_item_predictions.to_dict()) + _dict['predictions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPredictionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "predictions": [DataservicesDatamodelTransfersPredictionDTO.from_dict(_item) for _item in obj["predictions"]] if obj.get("predictions") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_properties_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_properties_dto.py new file mode 100644 index 0000000000..4d90de8394 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_properties_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_property_dto import DataservicesDatamodelTransfersPropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersPropertiesDTO(BaseModel): + """ + A collection of properties. + """ # noqa: E501 + properties: Optional[List[DataservicesDatamodelTransfersPropertyDTO]] = None + __properties: ClassVar[List[str]] = ["properties"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPropertiesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in properties (list) + _items = [] + if self.properties: + for _item_properties in self.properties: + if _item_properties: + _items.append(_item_properties.to_dict()) + _dict['properties'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPropertiesDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "properties": [DataservicesDatamodelTransfersPropertyDTO.from_dict(_item) for _item in obj["properties"]] if obj.get("properties") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_property_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_property_dto.py new file mode 100644 index 0000000000..553f1f2bc5 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_property_dto.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_parameter_definition_dto import DataservicesDatamodelTransfersParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_transfers_tag_map_element_dto import DataservicesDatamodelTransfersTagMapElementDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersPropertyDTO(BaseModel): + """ + Properties are qualities of an analytic object. + """ # noqa: E501 + data_type: Optional[StrictStr] = Field(default=None, description="The data type of the property, such as Categorical, HourDuration, or Ratio.", alias="dataType") + description: Optional[StrictStr] = Field(default=None, description="The localized description of the property.") + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the property.", alias="displayName") + explanation: Optional[StrictStr] = Field(default=None, description="The localized explanation of the property.") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the property. **Note:** See `Properties` to get the ID.") + parameters: Optional[List[DataservicesDatamodelTransfersParameterDefinitionDTO]] = Field(default=None, description="The collection of parameters defined for the property.") + primitive_data_type: Optional[StrictStr] = Field(default=None, description="The primitive data type of the property, such as Number, String, or Boolean.", alias="primitiveDataType") + tags: Optional[List[DataservicesDatamodelTransfersTagMapElementDTO]] = Field(default=None, description="The optional collection of tags defined for this element.") + __properties: ClassVar[List[str]] = ["dataType", "description", "displayName", "explanation", "id", "parameters", "primitiveDataType", "tags"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in parameters (list) + _items = [] + if self.parameters: + for _item_parameters in self.parameters: + if _item_parameters: + _items.append(_item_parameters.to_dict()) + _dict['parameters'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in tags (list) + _items = [] + if self.tags: + for _item_tags in self.tags: + if _item_tags: + _items.append(_item_tags.to_dict()) + _dict['tags'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPropertyDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataType": obj.get("dataType"), + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "explanation": obj.get("explanation"), + "id": obj.get("id"), + "parameters": [DataservicesDatamodelTransfersParameterDefinitionDTO.from_dict(_item) for _item in obj["parameters"]] if obj.get("parameters") is not None else None, + "primitiveDataType": obj.get("primitiveDataType"), + "tags": [DataservicesDatamodelTransfersTagMapElementDTO.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_property_reference_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_property_reference_dto.py new file mode 100644 index 0000000000..f682c52926 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_property_reference_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersPropertyReferenceDTO(BaseModel): + """ + The name and qualifying path of a property to query. + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="The ID of the property. See `Properties` to get the ID.") + qualifying_path: Optional[StrictStr] = Field(default=None, description="The qualifying path to the property in Visier, such as the analytic object or event the property is associated with. If the path has multiple objects, each object is separated by a period.", alias="qualifyingPath") + __properties: ClassVar[List[str]] = ["name", "qualifyingPath"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPropertyReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPropertyReferenceDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "qualifyingPath": obj.get("qualifyingPath") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_scenario_or_snapshot_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_scenario_or_snapshot_dto.py new file mode 100644 index 0000000000..a4134953e9 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_scenario_or_snapshot_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersScenarioOrSnapshotDTO(BaseModel): + """ + The unique identifier and display name for plan scenarios and snapshots. + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The scenario or snapshot display name.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The identifier of the scenario or snapshot.") + __properties: ClassVar[List[str]] = ["displayName", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersScenarioOrSnapshotDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersScenarioOrSnapshotDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "id": obj.get("id") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_selection_concept_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_selection_concept_dto.py new file mode 100644 index 0000000000..b9342fa602 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_selection_concept_dto.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_tag_map_element_dto import DataservicesDatamodelTransfersTagMapElementDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersSelectionConceptDTO(BaseModel): + """ + Selection concepts select a population of subject members of a given subject or event. + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="The localized description of the selection concept.") + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the selection concept.", alias="displayName") + explanation: Optional[StrictStr] = Field(default=None, description="The localized explanation of the selection concept.") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the selection concept Note: See `SelectionConcepts` to get the ID.") + tags: Optional[List[DataservicesDatamodelTransfersTagMapElementDTO]] = Field(default=None, description="The optional collection of tags defined for this element.") + visible_in_app: Optional[StrictBool] = Field(default=None, description="`true` if this selection concept is set to be visible in your solution.", alias="visibleInApp") + __properties: ClassVar[List[str]] = ["description", "displayName", "explanation", "id", "tags", "visibleInApp"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersSelectionConceptDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tags (list) + _items = [] + if self.tags: + for _item_tags in self.tags: + if _item_tags: + _items.append(_item_tags.to_dict()) + _dict['tags'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersSelectionConceptDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "explanation": obj.get("explanation"), + "id": obj.get("id"), + "tags": [DataservicesDatamodelTransfersTagMapElementDTO.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None, + "visibleInApp": obj.get("visibleInApp") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_selection_concepts_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_selection_concepts_dto.py new file mode 100644 index 0000000000..458de4ae0f --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_selection_concepts_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.dataservices_datamodel_transfers_selection_concept_dto import DataservicesDatamodelTransfersSelectionConceptDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersSelectionConceptsDTO(BaseModel): + """ + A collection of selection concepts + """ # noqa: E501 + selection_concepts: Optional[List[DataservicesDatamodelTransfersSelectionConceptDTO]] = Field(default=None, alias="selectionConcepts") + __properties: ClassVar[List[str]] = ["selectionConcepts"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersSelectionConceptsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in selection_concepts (list) + _items = [] + if self.selection_concepts: + for _item_selection_concepts in self.selection_concepts: + if _item_selection_concepts: + _items.append(_item_selection_concepts.to_dict()) + _dict['selectionConcepts'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersSelectionConceptsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "selectionConcepts": [DataservicesDatamodelTransfersSelectionConceptDTO.from_dict(_item) for _item in obj["selectionConcepts"]] if obj.get("selectionConcepts") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_tag_map_element_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_tag_map_element_dto.py new file mode 100644 index 0000000000..4d366960b7 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_tag_map_element_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersTagMapElementDTO(BaseModel): + """ + Tag identifier and display name pair. + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the tag.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the tag.") + __properties: ClassVar[List[str]] = ["displayName", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersTagMapElementDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersTagMapElementDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "id": obj.get("id") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_validity_range_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_validity_range_dto.py new file mode 100644 index 0000000000..b14c34bdfb --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_validity_range_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersValidityRangeDTO(BaseModel): + """ + A pair of values that represent the time interval to which the data is valid. The validity range is defined in Unix epoch format and UTC timezone. Note: Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers. + """ # noqa: E501 + end: Optional[StrictStr] = Field(default=None, description="The date from which data is no longer available. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string.") + start: Optional[StrictStr] = Field(default=None, description="The date from which data becomes available. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string.") + __properties: ClassVar[List[str]] = ["end", "start"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersValidityRangeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersValidityRangeDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "end": obj.get("end"), + "start": obj.get("start") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dependent_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dependent_dto.py deleted file mode 100644 index 29a28dfd1b..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dependent_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DependentDTO(BaseModel): - """ - Details about a dependent object related to the property to delete. - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="The display name of the dependent object.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the dependent object.") - object_type: Optional[StrictStr] = Field(default=None, description="The type of dependent object, such as a property or parameter.", alias="objectType") - __properties: ClassVar[List[str]] = ["displayName", "id", "objectType"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DependentDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DependentDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "objectType": obj.get("objectType") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_analytic_object_filter_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_analytic_object_filter_dto.py new file mode 100644 index 0000000000..bd4652428e --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_analytic_object_filter_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.designer_api_transfers_dimension_filter_dto import DesignerApiTransfersDimensionFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiTransfersAnalyticObjectFilterDTO(BaseModel): + """ + DesignerApiTransfersAnalyticObjectFilterDTO + """ # noqa: E501 + analytic_object_uuid: Optional[StrictStr] = Field(default=None, description="The UUID of the analytic object used in the selection concept.", alias="analyticObjectUuid") + dimensions: Optional[List[DesignerApiTransfersDimensionFilterDTO]] = Field(default=None, description="A list of dimensions included in the concept.") + symbol_name: Optional[StrictStr] = Field(default=None, description="The symbol name of the analytic object.", alias="symbolName") + __properties: ClassVar[List[str]] = ["analyticObjectUuid", "dimensions", "symbolName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerApiTransfersAnalyticObjectFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in dimensions (list) + _items = [] + if self.dimensions: + for _item_dimensions in self.dimensions: + if _item_dimensions: + _items.append(_item_dimensions.to_dict()) + _dict['dimensions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiTransfersAnalyticObjectFilterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectUuid": obj.get("analyticObjectUuid"), + "dimensions": [DesignerApiTransfersDimensionFilterDTO.from_dict(_item) for _item in obj["dimensions"]] if obj.get("dimensions") is not None else None, + "symbolName": obj.get("symbolName") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_calculation_concept_configuration_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_calculation_concept_configuration_dto.py new file mode 100644 index 0000000000..6757c9fbd7 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_calculation_concept_configuration_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.designer_api_transfers_perspective_configuration_dto import DesignerApiTransfersPerspectiveConfigurationDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiTransfersCalculationConceptConfigurationDTO(BaseModel): + """ + DesignerApiTransfersCalculationConceptConfigurationDTO + """ # noqa: E501 + perspectives: Optional[List[DesignerApiTransfersPerspectiveConfigurationDTO]] = Field(default=None, description="A list of objects representing the perspectives in the calculation concept.") + __properties: ClassVar[List[str]] = ["perspectives"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerApiTransfersCalculationConceptConfigurationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in perspectives (list) + _items = [] + if self.perspectives: + for _item_perspectives in self.perspectives: + if _item_perspectives: + _items.append(_item_perspectives.to_dict()) + _dict['perspectives'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiTransfersCalculationConceptConfigurationDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "perspectives": [DesignerApiTransfersPerspectiveConfigurationDTO.from_dict(_item) for _item in obj["perspectives"]] if obj.get("perspectives") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_calculation_concept_configuration_map_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_calculation_concept_configuration_map_dto.py new file mode 100644 index 0000000000..5c556186ff --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_calculation_concept_configuration_map_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.designer_api_transfers_perspective_configuration_dto import DesignerApiTransfersPerspectiveConfigurationDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiTransfersCalculationConceptConfigurationMapDTO(BaseModel): + """ + The configuration to apply to the concept. + """ # noqa: E501 + perspectives_to_map: Optional[List[DesignerApiTransfersPerspectiveConfigurationDTO]] = Field(default=None, description="A list of objects representing the list of perspectives in the calculation concept.", alias="perspectivesToMap") + __properties: ClassVar[List[str]] = ["perspectivesToMap"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerApiTransfersCalculationConceptConfigurationMapDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in perspectives_to_map (list) + _items = [] + if self.perspectives_to_map: + for _item_perspectives_to_map in self.perspectives_to_map: + if _item_perspectives_to_map: + _items.append(_item_perspectives_to_map.to_dict()) + _dict['perspectivesToMap'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiTransfersCalculationConceptConfigurationMapDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "perspectivesToMap": [DesignerApiTransfersPerspectiveConfigurationDTO.from_dict(_item) for _item in obj["perspectivesToMap"]] if obj.get("perspectivesToMap") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_calculation_concept_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_calculation_concept_dto.py new file mode 100644 index 0000000000..1603486a74 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_calculation_concept_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_configuration_dto import DesignerApiTransfersCalculationConceptConfigurationDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiTransfersCalculationConceptDTO(BaseModel): + """ + DesignerApiTransfersCalculationConceptDTO + """ # noqa: E501 + configuration: Optional[DesignerApiTransfersCalculationConceptConfigurationDTO] = Field(default=None, description="A list of objects representing the configuration for the calculation concept.") + name: Optional[StrictStr] = Field(default=None, description="The display name of the calculation concept.") + uuid: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the calculation concept.") + __properties: ClassVar[List[str]] = ["configuration", "name", "uuid"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerApiTransfersCalculationConceptDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of configuration + if self.configuration: + _dict['configuration'] = self.configuration.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiTransfersCalculationConceptDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "configuration": DesignerApiTransfersCalculationConceptConfigurationDTO.from_dict(obj["configuration"]) if obj.get("configuration") is not None else None, + "name": obj.get("name"), + "uuid": obj.get("uuid") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_calculation_concept_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_calculation_concept_list_dto.py new file mode 100644 index 0000000000..ab6885797a --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_calculation_concept_list_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.designer_api_transfers_calculation_concept_dto import DesignerApiTransfersCalculationConceptDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiTransfersCalculationConceptListDTO(BaseModel): + """ + DesignerApiTransfersCalculationConceptListDTO + """ # noqa: E501 + concepts: Optional[List[DesignerApiTransfersCalculationConceptDTO]] = Field(default=None, description="A list of objects representing calculation concepts.") + __properties: ClassVar[List[str]] = ["concepts"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerApiTransfersCalculationConceptListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in concepts (list) + _items = [] + if self.concepts: + for _item_concepts in self.concepts: + if _item_concepts: + _items.append(_item_concepts.to_dict()) + _dict['concepts'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiTransfersCalculationConceptListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "concepts": [DesignerApiTransfersCalculationConceptDTO.from_dict(_item) for _item in obj["concepts"]] if obj.get("concepts") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_concept_configuration_result_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_concept_configuration_result_dto.py new file mode 100644 index 0000000000..a06ca4e365 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_concept_configuration_result_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiTransfersConceptConfigurationResultDTO(BaseModel): + """ + DesignerApiTransfersConceptConfigurationResultDTO + """ # noqa: E501 + concept_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the configured concept.", alias="conceptId") + message: Optional[StrictStr] = Field(default=None, description="A meaningful message about the API result.") + project_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the system-generated project.", alias="projectId") + __properties: ClassVar[List[str]] = ["conceptId", "message", "projectId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerApiTransfersConceptConfigurationResultDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiTransfersConceptConfigurationResultDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "conceptId": obj.get("conceptId"), + "message": obj.get("message"), + "projectId": obj.get("projectId") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_dimension_filter_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_dimension_filter_dto.py new file mode 100644 index 0000000000..3c02a5c3bd --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_dimension_filter_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.designer_api_transfers_dimension_member_dto import DesignerApiTransfersDimensionMemberDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiTransfersDimensionFilterDTO(BaseModel): + """ + DesignerApiTransfersDimensionFilterDTO + """ # noqa: E501 + dimension_id: Optional[StrictStr] = Field(default=None, description="The UUID of the dimension.", alias="dimensionId") + dimension_members: Optional[List[DesignerApiTransfersDimensionMemberDTO]] = Field(default=None, description="A list of dimension members to map to the perspective node. Note: If this array is empty, all dimension members will be removed for the node.", alias="dimensionMembers") + symbol_name: Optional[StrictStr] = Field(default=None, description="The symbol name of the dimension.", alias="symbolName") + __properties: ClassVar[List[str]] = ["dimensionId", "dimensionMembers", "symbolName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerApiTransfersDimensionFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in dimension_members (list) + _items = [] + if self.dimension_members: + for _item_dimension_members in self.dimension_members: + if _item_dimension_members: + _items.append(_item_dimension_members.to_dict()) + _dict['dimensionMembers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiTransfersDimensionFilterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensionId": obj.get("dimensionId"), + "dimensionMembers": [DesignerApiTransfersDimensionMemberDTO.from_dict(_item) for _item in obj["dimensionMembers"]] if obj.get("dimensionMembers") is not None else None, + "symbolName": obj.get("symbolName") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_dimension_member_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_dimension_member_dto.py new file mode 100644 index 0000000000..b50d97154d --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_dimension_member_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiTransfersDimensionMemberDTO(BaseModel): + """ + DesignerApiTransfersDimensionMemberDTO + """ # noqa: E501 + dimension_member: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing the dimension members. Dimension members in a hierarchical dimension will have an array with multiple strings.", alias="dimensionMember") + __properties: ClassVar[List[str]] = ["dimensionMember"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerApiTransfersDimensionMemberDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiTransfersDimensionMemberDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensionMember": obj.get("dimensionMember") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_perspective_configuration_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_perspective_configuration_dto.py new file mode 100644 index 0000000000..82e7d4d136 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_perspective_configuration_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.designer_api_transfers_perspective_node_dto import DesignerApiTransfersPerspectiveNodeDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiTransfersPerspectiveConfigurationDTO(BaseModel): + """ + DesignerApiTransfersPerspectiveConfigurationDTO + """ # noqa: E501 + perspective_id: Optional[StrictStr] = Field(default=None, description="The UUID of the perspective.", alias="perspectiveId") + perspective_name: Optional[StrictStr] = Field(default=None, description="The display name of the perspective.", alias="perspectiveName") + perspective_nodes: Optional[List[DesignerApiTransfersPerspectiveNodeDTO]] = Field(default=None, description="A list of nodes in the perspective.", alias="perspectiveNodes") + __properties: ClassVar[List[str]] = ["perspectiveId", "perspectiveName", "perspectiveNodes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerApiTransfersPerspectiveConfigurationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in perspective_nodes (list) + _items = [] + if self.perspective_nodes: + for _item_perspective_nodes in self.perspective_nodes: + if _item_perspective_nodes: + _items.append(_item_perspective_nodes.to_dict()) + _dict['perspectiveNodes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiTransfersPerspectiveConfigurationDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "perspectiveId": obj.get("perspectiveId"), + "perspectiveName": obj.get("perspectiveName"), + "perspectiveNodes": [DesignerApiTransfersPerspectiveNodeDTO.from_dict(_item) for _item in obj["perspectiveNodes"]] if obj.get("perspectiveNodes") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_perspective_node_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_perspective_node_dto.py new file mode 100644 index 0000000000..b6fa354fd2 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_perspective_node_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.designer_api_transfers_analytic_object_filter_dto import DesignerApiTransfersAnalyticObjectFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiTransfersPerspectiveNodeDTO(BaseModel): + """ + DesignerApiTransfersPerspectiveNodeDTO + """ # noqa: E501 + analytic_object_filters: Optional[List[DesignerApiTransfersAnalyticObjectFilterDTO]] = Field(default=None, description="A list of analytic object filters indicating the analytic object and dimensions used for the selection concept.", alias="analyticObjectFilters") + selection_concept_uuid: Optional[StrictStr] = Field(default=None, description="The UUID of the node's selection concept. Perspective nodes are generated as selection concepts to enable filtering.", alias="selectionConceptUuid") + symbol_name: Optional[StrictStr] = Field(default=None, description="The symbol name of the selection concept. For example, \"isExitActualSystemTermination\".", alias="symbolName") + __properties: ClassVar[List[str]] = ["analyticObjectFilters", "selectionConceptUuid", "symbolName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerApiTransfersPerspectiveNodeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in analytic_object_filters (list) + _items = [] + if self.analytic_object_filters: + for _item_analytic_object_filters in self.analytic_object_filters: + if _item_analytic_object_filters: + _items.append(_item_analytic_object_filters.to_dict()) + _dict['analyticObjectFilters'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiTransfersPerspectiveNodeDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectFilters": [DesignerApiTransfersAnalyticObjectFilterDTO.from_dict(_item) for _item in obj["analyticObjectFilters"]] if obj.get("analyticObjectFilters") is not None else None, + "selectionConceptUuid": obj.get("selectionConceptUuid"), + "symbolName": obj.get("symbolName") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_selection_concept_configuration_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_selection_concept_configuration_dto.py new file mode 100644 index 0000000000..1ece81712a --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_selection_concept_configuration_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.designer_api_transfers_analytic_object_filter_dto import DesignerApiTransfersAnalyticObjectFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiTransfersSelectionConceptConfigurationDTO(BaseModel): + """ + DesignerApiTransfersSelectionConceptConfigurationDTO + """ # noqa: E501 + analytic_object_filters: Optional[List[DesignerApiTransfersAnalyticObjectFilterDTO]] = Field(default=None, description="A list of analytic object filters indicating the analytic object and dimension used for this selection concept.", alias="analyticObjectFilters") + __properties: ClassVar[List[str]] = ["analyticObjectFilters"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerApiTransfersSelectionConceptConfigurationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in analytic_object_filters (list) + _items = [] + if self.analytic_object_filters: + for _item_analytic_object_filters in self.analytic_object_filters: + if _item_analytic_object_filters: + _items.append(_item_analytic_object_filters.to_dict()) + _dict['analyticObjectFilters'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiTransfersSelectionConceptConfigurationDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectFilters": [DesignerApiTransfersAnalyticObjectFilterDTO.from_dict(_item) for _item in obj["analyticObjectFilters"]] if obj.get("analyticObjectFilters") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_selection_concept_configuration_map_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_selection_concept_configuration_map_dto.py new file mode 100644 index 0000000000..6cb6899565 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_selection_concept_configuration_map_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.designer_api_transfers_analytic_object_filter_dto import DesignerApiTransfersAnalyticObjectFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiTransfersSelectionConceptConfigurationMapDTO(BaseModel): + """ + DesignerApiTransfersSelectionConceptConfigurationMapDTO + """ # noqa: E501 + analytic_object_filters_to_map: Optional[List[DesignerApiTransfersAnalyticObjectFilterDTO]] = Field(default=None, description="A list of analytic object filters indicating the analytic object and dimension members used for the selection concept. Note: If this array is empty, all filters will be removed for the concept.", alias="analyticObjectFiltersToMap") + __properties: ClassVar[List[str]] = ["analyticObjectFiltersToMap"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerApiTransfersSelectionConceptConfigurationMapDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in analytic_object_filters_to_map (list) + _items = [] + if self.analytic_object_filters_to_map: + for _item_analytic_object_filters_to_map in self.analytic_object_filters_to_map: + if _item_analytic_object_filters_to_map: + _items.append(_item_analytic_object_filters_to_map.to_dict()) + _dict['analyticObjectFiltersToMap'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiTransfersSelectionConceptConfigurationMapDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectFiltersToMap": [DesignerApiTransfersAnalyticObjectFilterDTO.from_dict(_item) for _item in obj["analyticObjectFiltersToMap"]] if obj.get("analyticObjectFiltersToMap") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_selection_concept_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_selection_concept_dto.py new file mode 100644 index 0000000000..16864a6b43 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_selection_concept_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_configuration_dto import DesignerApiTransfersSelectionConceptConfigurationDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiTransfersSelectionConceptDTO(BaseModel): + """ + DesignerApiTransfersSelectionConceptDTO + """ # noqa: E501 + configuration: Optional[DesignerApiTransfersSelectionConceptConfigurationDTO] = Field(default=None, description="A list of objects representing the configuration for the selection concept.") + name: Optional[StrictStr] = Field(default=None, description="The display name of the selection concept.") + uuid: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the selection concept.") + __properties: ClassVar[List[str]] = ["configuration", "name", "uuid"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerApiTransfersSelectionConceptDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of configuration + if self.configuration: + _dict['configuration'] = self.configuration.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiTransfersSelectionConceptDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "configuration": DesignerApiTransfersSelectionConceptConfigurationDTO.from_dict(obj["configuration"]) if obj.get("configuration") is not None else None, + "name": obj.get("name"), + "uuid": obj.get("uuid") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_selection_concept_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_selection_concept_list_dto.py new file mode 100644 index 0000000000..79a63bf40a --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_selection_concept_list_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.designer_api_transfers_selection_concept_dto import DesignerApiTransfersSelectionConceptDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiTransfersSelectionConceptListDTO(BaseModel): + """ + DesignerApiTransfersSelectionConceptListDTO + """ # noqa: E501 + concepts: Optional[List[DesignerApiTransfersSelectionConceptDTO]] = Field(default=None, description="A list of objects representing selection concepts.") + __properties: ClassVar[List[str]] = ["concepts"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerApiTransfersSelectionConceptListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in concepts (list) + _items = [] + if self.concepts: + for _item_concepts in self.concepts: + if _item_concepts: + _items.append(_item_concepts.to_dict()) + _dict['concepts'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiTransfersSelectionConceptListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "concepts": [DesignerApiTransfersSelectionConceptDTO.from_dict(_item) for _item in obj["concepts"]] if obj.get("concepts") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_change_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_change_definition_dto.py deleted file mode 100644 index b21bf37c64..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_change_definition_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DimensionChangeDefinitionDTO(BaseModel): - """ - DimensionChangeDefinitionDTO - """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="A short description of the dimension. Descriptions provide in-context help for your users while working in Visier.") - display_name: Optional[StrictStr] = Field(default=None, description="The user-friendly name for the dimension.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The symbol name of the dimension; for example, `Career_Level` or `Employee.Vaccination_Status`") - short_display_name: Optional[StrictStr] = Field(default=None, description="A shortened version of the display name. If the dimension is visible in the solution experience, this name is displayed in visualization titles.", alias="shortDisplayName") - __properties: ClassVar[List[str]] = ["description", "displayName", "id", "shortDisplayName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DimensionChangeDefinitionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DimensionChangeDefinitionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "shortDisplayName": obj.get("shortDisplayName") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_change_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_change_definitions_by_tenant_dto.py deleted file mode 100644 index f85e24e545..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_change_definitions_by_tenant_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.dimension_change_definition_dto import DimensionChangeDefinitionDTO -from typing import Optional, Set -from typing_extensions import Self - -class DimensionChangeDefinitionsByTenantDTO(BaseModel): - """ - DimensionChangeDefinitionsByTenantDTO - """ # noqa: E501 - dimensions: Optional[List[DimensionChangeDefinitionDTO]] = Field(default=None, description="The list of dimensions to update.") - project_id: Optional[StrictStr] = Field(default=None, description="To make changes in a project, specify a project ID.", alias="projectId") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the tenant in which to update dimensions.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["dimensions", "projectId", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DimensionChangeDefinitionsByTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in dimensions (list) - _items = [] - if self.dimensions: - for _item_dimensions in self.dimensions: - if _item_dimensions: - _items.append(_item_dimensions.to_dict()) - _dict['dimensions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DimensionChangeDefinitionsByTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimensions": [DimensionChangeDefinitionDTO.from_dict(_item) for _item in obj["dimensions"]] if obj.get("dimensions") is not None else None, - "projectId": obj.get("projectId"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_dto.py deleted file mode 100644 index 37d3b7e175..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_dto.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.level_dto import LevelDTO -from visier_api_analytic_model.models.tag_map_element_dto import TagMapElementDTO -from typing import Optional, Set -from typing_extensions import Self - -class DimensionDTO(BaseModel): - """ - A dimension organizes unique values of an attribute into a list or a hierarchical structure for use as a filter or group-by in your solution. - """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="The localized description of the dimension.") - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the dimension.", alias="displayName") - explanation: Optional[StrictStr] = Field(default=None, description="The localized explanation of the dimension.") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the dimension. Note: See `Dimensions` to get the ID`.") - levels: Optional[List[LevelDTO]] = Field(default=None, description="The levels defined for the dimension. Note: For parent-child dimensions, a level name is generated by Visier.") - member_count: Optional[StrictInt] = Field(default=None, description="The total number of members for the dimension, excluding the (All) member.", alias="memberCount") - tags: Optional[List[TagMapElementDTO]] = Field(default=None, description="The optional collection of tags defined for this element.") - unknown_member: Optional[List[StrictStr]] = Field(default=None, description="The optional path to the unknown member, if defined.", alias="unknownMember") - visible_in_app: Optional[StrictBool] = Field(default=None, description="`true` if this dimension is set to be visible in your solution.", alias="visibleInApp") - __properties: ClassVar[List[str]] = ["description", "displayName", "explanation", "id", "levels", "memberCount", "tags", "unknownMember", "visibleInApp"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DimensionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in levels (list) - _items = [] - if self.levels: - for _item_levels in self.levels: - if _item_levels: - _items.append(_item_levels.to_dict()) - _dict['levels'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item_tags in self.tags: - if _item_tags: - _items.append(_item_tags.to_dict()) - _dict['tags'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DimensionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "explanation": obj.get("explanation"), - "id": obj.get("id"), - "levels": [LevelDTO.from_dict(_item) for _item in obj["levels"]] if obj.get("levels") is not None else None, - "memberCount": obj.get("memberCount"), - "tags": [TagMapElementDTO.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None, - "unknownMember": obj.get("unknownMember"), - "visibleInApp": obj.get("visibleInApp") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_filter_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_filter_dto.py deleted file mode 100644 index f74b9c8461..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_filter_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.dimension_member_dto import DimensionMemberDTO -from typing import Optional, Set -from typing_extensions import Self - -class DimensionFilterDTO(BaseModel): - """ - DimensionFilterDTO - """ # noqa: E501 - dimension_id: Optional[StrictStr] = Field(default=None, description="The UUID of the dimension.", alias="dimensionId") - dimension_members: Optional[List[DimensionMemberDTO]] = Field(default=None, description="A list of dimension members to map to the perspective node. Note: If this array is empty, all dimension members will be removed for the node.", alias="dimensionMembers") - symbol_name: Optional[StrictStr] = Field(default=None, description="The symbol name of the dimension.", alias="symbolName") - __properties: ClassVar[List[str]] = ["dimensionId", "dimensionMembers", "symbolName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DimensionFilterDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in dimension_members (list) - _items = [] - if self.dimension_members: - for _item_dimension_members in self.dimension_members: - if _item_dimension_members: - _items.append(_item_dimension_members.to_dict()) - _dict['dimensionMembers'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DimensionFilterDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimensionId": obj.get("dimensionId"), - "dimensionMembers": [DimensionMemberDTO.from_dict(_item) for _item in obj["dimensionMembers"]] if obj.get("dimensionMembers") is not None else None, - "symbolName": obj.get("symbolName") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_mapping_validation_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_mapping_validation_dto.py deleted file mode 100644 index 83e4ab6e22..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_mapping_validation_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.dimension_member_reference_dto import DimensionMemberReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class DimensionMappingValidationDTO(BaseModel): - """ - DimensionMappingValidationDTO - """ # noqa: E501 - dimension_id: Optional[StrictStr] = Field(default=None, alias="dimensionId") - dimension_map_id: Optional[StrictStr] = Field(default=None, alias="dimensionMapId") - failures: Optional[List[StrictStr]] = None - unmapped_members: Optional[List[DimensionMemberReferenceDTO]] = Field(default=None, alias="unmappedMembers") - __properties: ClassVar[List[str]] = ["dimensionId", "dimensionMapId", "failures", "unmappedMembers"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DimensionMappingValidationDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in unmapped_members (list) - _items = [] - if self.unmapped_members: - for _item_unmapped_members in self.unmapped_members: - if _item_unmapped_members: - _items.append(_item_unmapped_members.to_dict()) - _dict['unmappedMembers'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DimensionMappingValidationDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimensionId": obj.get("dimensionId"), - "dimensionMapId": obj.get("dimensionMapId"), - "failures": obj.get("failures"), - "unmappedMembers": [DimensionMemberReferenceDTO.from_dict(_item) for _item in obj["unmappedMembers"]] if obj.get("unmappedMembers") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_mapping_validation_execution_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_mapping_validation_execution_dto.py deleted file mode 100644 index b32845781e..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_mapping_validation_execution_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DimensionMappingValidationExecutionDTO(BaseModel): - """ - Instruction to execute a mapping validation query - """ # noqa: E501 - analytic_object: Optional[StrictStr] = Field(default=None, description="the analytic object associated with the dimension map", alias="analyticObject") - member_map_id: Optional[StrictStr] = Field(default=None, description="memberMapId == dimensionMapId", alias="memberMapId") - __properties: ClassVar[List[str]] = ["analyticObject", "memberMapId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DimensionMappingValidationExecutionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DimensionMappingValidationExecutionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObject": obj.get("analyticObject"), - "memberMapId": obj.get("memberMapId") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_member_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_member_dto.py deleted file mode 100644 index fb84ea9e85..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_member_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DimensionMemberDTO(BaseModel): - """ - DimensionMemberDTO - """ # noqa: E501 - dimension_member: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing the dimension members. Dimension members in a hierarchical dimension will have an array with multiple strings.", alias="dimensionMember") - __properties: ClassVar[List[str]] = ["dimensionMember"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DimensionMemberDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DimensionMemberDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimensionMember": obj.get("dimensionMember") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_member_reference_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_member_reference_dto.py deleted file mode 100644 index 03db680fca..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_member_reference_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DimensionMemberReferenceDTO(BaseModel): - """ - The members of a dimension. - """ # noqa: E501 - path: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing the members within a dimension path. For example, a dimension for Location may have the paths \"Canada, BC, Vancouver\" and \"US, California, San Francisco\".") - __properties: ClassVar[List[str]] = ["path"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DimensionMemberReferenceDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DimensionMemberReferenceDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "path": obj.get("path") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_reference_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_reference_dto.py deleted file mode 100644 index ab5f29157e..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimension_reference_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DimensionReferenceDTO(BaseModel): - """ - The name and qualifying path of a dimension to query. - """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, description="The ID of the dimension. See `Dimensions` to get the ID.") - qualifying_path: Optional[StrictStr] = Field(default=None, description="The qualifying path to the dimension in Visier, such as the analytic object or event the dimension is associated with. If the path has multiple objects, each object is separated by a period.", alias="qualifyingPath") - __properties: ClassVar[List[str]] = ["name", "qualifyingPath"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DimensionReferenceDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DimensionReferenceDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "qualifyingPath": obj.get("qualifyingPath") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimensions_change_definitions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dimensions_change_definitions_dto.py deleted file mode 100644 index 4a8e32a6d9..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimensions_change_definitions_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.dimension_change_definitions_by_tenant_dto import DimensionChangeDefinitionsByTenantDTO -from typing import Optional, Set -from typing_extensions import Self - -class DimensionsChangeDefinitionsDTO(BaseModel): - """ - DimensionsChangeDefinitionsDTO - """ # noqa: E501 - dimensions_by_tenant: Optional[List[DimensionChangeDefinitionsByTenantDTO]] = Field(default=None, description="The dimension updates to make in each tenant.", alias="dimensionsByTenant") - __properties: ClassVar[List[str]] = ["dimensionsByTenant"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DimensionsChangeDefinitionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in dimensions_by_tenant (list) - _items = [] - if self.dimensions_by_tenant: - for _item_dimensions_by_tenant in self.dimensions_by_tenant: - if _item_dimensions_by_tenant: - _items.append(_item_dimensions_by_tenant.to_dict()) - _dict['dimensionsByTenant'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DimensionsChangeDefinitionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimensionsByTenant": [DimensionChangeDefinitionsByTenantDTO.from_dict(_item) for _item in obj["dimensionsByTenant"]] if obj.get("dimensionsByTenant") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimensions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dimensions_dto.py deleted file mode 100644 index 07855c433d..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dimensions_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.dimension_dto import DimensionDTO -from typing import Optional, Set -from typing_extensions import Self - -class DimensionsDTO(BaseModel): - """ - A collection of dimensions. - """ # noqa: E501 - dimensions: Optional[List[DimensionDTO]] = None - __properties: ClassVar[List[str]] = ["dimensions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DimensionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in dimensions (list) - _items = [] - if self.dimensions: - for _item_dimensions in self.dimensions: - if _item_dimensions: - _items.append(_item_dimensions.to_dict()) - _dict['dimensions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DimensionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimensions": [DimensionDTO.from_dict(_item) for _item in obj["dimensions"]] if obj.get("dimensions") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/get_plan_list_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/get_plan_list_response_dto.py deleted file mode 100644 index d8a00f353a..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/get_plan_list_response_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.plan_info_dto import PlanInfoDTO -from typing import Optional, Set -from typing_extensions import Self - -class GetPlanListResponseDTO(BaseModel): - """ - A collection of plans. - """ # noqa: E501 - page: Optional[StrictInt] = Field(default=None, description="The current page number of results that the user is viewing.") - plans: Optional[List[PlanInfoDTO]] = Field(default=None, description="A list of plans accessible to the user.") - __properties: ClassVar[List[str]] = ["page", "plans"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetPlanListResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in plans (list) - _items = [] - if self.plans: - for _item_plans in self.plans: - if _item_plans: - _items.append(_item_plans.to_dict()) - _dict['plans'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetPlanListResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "page": obj.get("page"), - "plans": [PlanInfoDTO.from_dict(_item) for _item in obj["plans"]] if obj.get("plans") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/google_protobuf_any.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/google_protobuf_any.py deleted file mode 100644 index ee6b8b3567..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/google_protobuf_any.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GoogleProtobufAny(BaseModel): - """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. - """ # noqa: E501 - type: Optional[StrictStr] = Field(default=None, description="The type of the serialized message.", alias="@type") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["@type"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GoogleProtobufAny from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - * Fields in `self.additional_properties` are added to the output dict. - """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GoogleProtobufAny from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "@type": obj.get("@type") - }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/level_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/level_dto.py deleted file mode 100644 index 7b219f91fa..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/level_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class LevelDTO(BaseModel): - """ - Levels are the hierarchical structure of members within a dimension. - """ # noqa: E501 - depth: Optional[StrictInt] = Field(default=None, description="The level depth of the dimension.") - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the dimension.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of a level within a dimension.") - __properties: ClassVar[List[str]] = ["depth", "displayName", "id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of LevelDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of LevelDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "depth": obj.get("depth"), - "displayName": obj.get("displayName"), - "id": obj.get("id") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/member_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/member_dto.py deleted file mode 100644 index 9e85088668..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/member_dto.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.validity_range_dto import ValidityRangeDTO -from typing import Optional, Set -from typing_extensions import Self - -class MemberDTO(BaseModel): - """ - A member is an element of a dimension. Dimension members are organized hierarchically. For example, Argentina is a member of the Location dimension at the Country level of the hierarchy Region > Country > Province > City. - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the member.", alias="displayName") - display_name_path: Optional[List[StrictStr]] = Field(default=None, description="The display names for each level in the member's ancestral path.", alias="displayNamePath") - full_name: Optional[StrictStr] = Field(default=None, description="The fully qualified name of the member. This is the dimension's object name and the member's display name, separated by a period.", alias="fullName") - level: Optional[StrictInt] = Field(default=None, description="The numeric level of the hierarchy the member belongs to.") - path: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of identifiers that reference members on the query axis as part of dimensionMemberSelection.") - validity_ranges: Optional[List[ValidityRangeDTO]] = Field(default=None, description="The validity ranges that exist for this member.", alias="validityRanges") - __properties: ClassVar[List[str]] = ["displayName", "displayNamePath", "fullName", "level", "path", "validityRanges"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MemberDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in validity_ranges (list) - _items = [] - if self.validity_ranges: - for _item_validity_ranges in self.validity_ranges: - if _item_validity_ranges: - _items.append(_item_validity_ranges.to_dict()) - _dict['validityRanges'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MemberDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "displayNamePath": obj.get("displayNamePath"), - "fullName": obj.get("fullName"), - "level": obj.get("level"), - "path": obj.get("path"), - "validityRanges": [ValidityRangeDTO.from_dict(_item) for _item in obj["validityRanges"]] if obj.get("validityRanges") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/member_parameter_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/member_parameter_definition_dto.py deleted file mode 100644 index 2b52c77365..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/member_parameter_definition_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.member_values_dto import MemberValuesDTO -from typing import Optional, Set -from typing_extensions import Self - -class MemberParameterDefinitionDTO(BaseModel): - """ - The definition of a filter parameter. These elements are returned as part of the definition for metrics that include parameters in their definition. - """ # noqa: E501 - default: Optional[MemberValuesDTO] = Field(default=None, description="The default value if the end user does not select a member at run time.") - description: Optional[StrictStr] = Field(default=None, description="The localized description of the member parameter.") - dimension_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the dimension on which the member parameter is based.", alias="dimensionId") - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the member parameter.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the member parameter.") - reference_path: Optional[List[StrictStr]] = Field(default=None, description="The analytic object reference path from the metric to the dimension.", alias="referencePath") - __properties: ClassVar[List[str]] = ["default", "description", "dimensionId", "displayName", "id", "referencePath"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MemberParameterDefinitionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of default - if self.default: - _dict['default'] = self.default.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MemberParameterDefinitionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "default": MemberValuesDTO.from_dict(obj["default"]) if obj.get("default") is not None else None, - "description": obj.get("description"), - "dimensionId": obj.get("dimensionId"), - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "referencePath": obj.get("referencePath") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/member_values_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/member_values_dto.py deleted file mode 100644 index 61bd5c7fcd..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/member_values_dto.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.dimension_member_reference_dto import DimensionMemberReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class MemberValuesDTO(BaseModel): - """ - Member filter values are discrete member references in a dimension filter. You can define included and excluded members simultaneously. This is typically done with filtering applied on dimensions with multiple levels. For example, a Location parameter may include “South America” and exclude “Brazil” which results in the metric being evaluated for all South American countries except Brazil. - """ # noqa: E501 - excluded: Optional[List[DimensionMemberReferenceDTO]] = Field(default=None, description="The unique IDs of members to exclude when evaluating the metric.") - included: Optional[List[DimensionMemberReferenceDTO]] = Field(default=None, description="The unique IDs of members to include when evaluating the metric.") - __properties: ClassVar[List[str]] = ["excluded", "included"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MemberValuesDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in excluded (list) - _items = [] - if self.excluded: - for _item_excluded in self.excluded: - if _item_excluded: - _items.append(_item_excluded.to_dict()) - _dict['excluded'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in included (list) - _items = [] - if self.included: - for _item_included in self.included: - if _item_included: - _items.append(_item_included.to_dict()) - _dict['included'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MemberValuesDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "excluded": [DimensionMemberReferenceDTO.from_dict(_item) for _item in obj["excluded"]] if obj.get("excluded") is not None else None, - "included": [DimensionMemberReferenceDTO.from_dict(_item) for _item in obj["included"]] if obj.get("included") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/members_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/members_dto.py deleted file mode 100644 index ea11b80cc5..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/members_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.member_dto import MemberDTO -from typing import Optional, Set -from typing_extensions import Self - -class MembersDTO(BaseModel): - """ - A collection of members. - """ # noqa: E501 - members: Optional[List[MemberDTO]] = None - __properties: ClassVar[List[str]] = ["members"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MembersDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in members (list) - _items = [] - if self.members: - for _item_members in self.members: - if _item_members: - _items.append(_item_members.to_dict()) - _dict['members'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MembersDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "members": [MemberDTO.from_dict(_item) for _item in obj["members"]] if obj.get("members") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/metric_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/metric_dto.py deleted file mode 100644 index f003ff9720..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/metric_dto.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.parameter_definition_dto import ParameterDefinitionDTO -from typing import Optional, Set -from typing_extensions import Self - -class MetricDTO(BaseModel): - """ - A metric is a calculation based on one or more attribute values of analytic objects. - """ # noqa: E501 - analytic_object_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the analytic object.", alias="analyticObjectId") - category: Optional[StrictStr] = Field(default=None, description="The category of the metric. Will be one of: `REGULAR`, `DERIVED` or `PLANNING`.") - data_end_date: Optional[StrictStr] = Field(default=None, description="The date from which data is no longer available for this metric. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string. Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="dataEndDate") - data_start_date: Optional[StrictStr] = Field(default=None, description="The date from which data becomes available for this metric. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string. Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="dataStartDate") - description: Optional[StrictStr] = Field(default=None, description="The localized description of the metric.") - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the metric.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the metric. Note: See `Metrics` to get the ID.") - parameters: Optional[List[ParameterDefinitionDTO]] = Field(default=None, description="The collection of parameters defined for the metric.") - visible_in_app: Optional[StrictBool] = Field(default=None, description="// `true` if this metric is set to be visible in your solution.", alias="visibleInApp") - __properties: ClassVar[List[str]] = ["analyticObjectId", "category", "dataEndDate", "dataStartDate", "description", "displayName", "id", "parameters", "visibleInApp"] - - @field_validator('category') - def category_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['REGULAR', 'DERIVED', 'PLANNING']): - raise ValueError("must be one of enum values ('REGULAR', 'DERIVED', 'PLANNING')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MetricDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in parameters (list) - _items = [] - if self.parameters: - for _item_parameters in self.parameters: - if _item_parameters: - _items.append(_item_parameters.to_dict()) - _dict['parameters'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MetricDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObjectId": obj.get("analyticObjectId"), - "category": obj.get("category"), - "dataEndDate": obj.get("dataEndDate"), - "dataStartDate": obj.get("dataStartDate"), - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "parameters": [ParameterDefinitionDTO.from_dict(_item) for _item in obj["parameters"]] if obj.get("parameters") is not None else None, - "visibleInApp": obj.get("visibleInApp") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/metrics_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/metrics_dto.py deleted file mode 100644 index 4561b3c743..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/metrics_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.metric_dto import MetricDTO -from typing import Optional, Set -from typing_extensions import Self - -class MetricsDTO(BaseModel): - """ - A collection of metrics. - """ # noqa: E501 - metrics: Optional[List[MetricDTO]] = None - __properties: ClassVar[List[str]] = ["metrics"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MetricsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in metrics (list) - _items = [] - if self.metrics: - for _item_metrics in self.metrics: - if _item_metrics: - _items.append(_item_metrics.to_dict()) - _dict['metrics'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MetricsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "metrics": [MetricDTO.from_dict(_item) for _item in obj["metrics"]] if obj.get("metrics") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/numeric_parameter_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/numeric_parameter_definition_dto.py deleted file mode 100644 index c6c0250012..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/numeric_parameter_definition_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class NumericParameterDefinitionDTO(BaseModel): - """ - The definition of a numeric parameter. These elements are returned as part of the query definition for metric parameter values. - """ # noqa: E501 - default: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The default value if the end user does not select a member at run time.") - description: Optional[StrictStr] = Field(default=None, description="The localized description of the numeric parameter.") - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the numeric parameter.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the numeric parameter.") - lower_bound: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The lowest value for the numeric parameter.", alias="lowerBound") - upper_bound: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The highest value for the numeric parameter.", alias="upperBound") - __properties: ClassVar[List[str]] = ["default", "description", "displayName", "id", "lowerBound", "upperBound"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of NumericParameterDefinitionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of NumericParameterDefinitionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "default": obj.get("default"), - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "lowerBound": obj.get("lowerBound"), - "upperBound": obj.get("upperBound") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/object_change_failure_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/object_change_failure_dto.py deleted file mode 100644 index 70b1a29a77..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/object_change_failure_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ObjectChangeFailureDTO(BaseModel): - """ - ObjectChangeFailureDTO - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="The display name of the object.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The symbol name of the object that was not successfully changed.") - message: Optional[StrictStr] = Field(default=None, description="An error message describing the cause of the failure.") - project_id: Optional[StrictStr] = Field(default=None, description="The project that the object was not successfully changed in.", alias="projectId") - rci: Optional[StrictStr] = Field(default=None, description="The root cause identifier to provide to Visier Technical Support if you require further troubleshooting.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant that the object was not successfully changed in.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["displayName", "id", "message", "projectId", "rci", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ObjectChangeFailureDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ObjectChangeFailureDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "message": obj.get("message"), - "projectId": obj.get("projectId"), - "rci": obj.get("rci"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/object_change_success_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/object_change_success_dto.py deleted file mode 100644 index 694a08c0db..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/object_change_success_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ObjectChangeSuccessDTO(BaseModel): - """ - ObjectChangeSuccessDTO - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="The display name of the object.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The symbol name of the object that was successfully changed.") - project_id: Optional[StrictStr] = Field(default=None, description="The project that the object was changed in.", alias="projectId") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant that the object was changed in.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["displayName", "id", "projectId", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ObjectChangeSuccessDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ObjectChangeSuccessDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "projectId": obj.get("projectId"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/object_reference_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/object_reference_dto.py deleted file mode 100644 index 0d514bd657..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/object_reference_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ObjectReferenceDTO(BaseModel): - """ - A link between one analytic object and another. An ObjectReference allows you to discover the relationships between analytic objects. In some queries, you may need to provide a qualifyingPath, which is built from ObjectReference information. - """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="The localized description of the object reference.") - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the object reference.", alias="displayName") - from_object: Optional[StrictStr] = Field(default=None, description="The ID of the referencing analytic object.", alias="fromObject") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the object reference.") - is_strong_reference: Optional[StrictBool] = Field(default=None, description="True if this is a strong reference.", alias="isStrongReference") - to_object: Optional[StrictStr] = Field(default=None, description="The ID of the referenced analytic object.", alias="toObject") - type: Optional[StrictStr] = Field(default=None, description="The type of object reference.") - __properties: ClassVar[List[str]] = ["description", "displayName", "fromObject", "id", "isStrongReference", "toObject", "type"] - - @field_validator('type') - def type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['SUBJECT_REFERENCE', 'MULTI_VALUE_REFERENCE']): - raise ValueError("must be one of enum values ('SUBJECT_REFERENCE', 'MULTI_VALUE_REFERENCE')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ObjectReferenceDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ObjectReferenceDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "fromObject": obj.get("fromObject"), - "id": obj.get("id"), - "isStrongReference": obj.get("isStrongReference"), - "toObject": obj.get("toObject"), - "type": obj.get("type") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/objects_bulk_change_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/objects_bulk_change_response_dto.py deleted file mode 100644 index 3a637b0d3b..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/objects_bulk_change_response_dto.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.object_change_failure_dto import ObjectChangeFailureDTO -from visier_api_analytic_model.models.object_change_success_dto import ObjectChangeSuccessDTO -from typing import Optional, Set -from typing_extensions import Self - -class ObjectsBulkChangeResponseDTO(BaseModel): - """ - ObjectsBulkChangeResponseDTO - """ # noqa: E501 - failures: Optional[List[ObjectChangeFailureDTO]] = Field(default=None, description="The objects that were not successfully changed.") - successes: Optional[List[ObjectChangeSuccessDTO]] = Field(default=None, description="The objects that were successfully changed.") - __properties: ClassVar[List[str]] = ["failures", "successes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ObjectsBulkChangeResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in failures (list) - _items = [] - if self.failures: - for _item_failures in self.failures: - if _item_failures: - _items.append(_item_failures.to_dict()) - _dict['failures'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in successes (list) - _items = [] - if self.successes: - for _item_successes in self.successes: - if _item_successes: - _items.append(_item_successes.to_dict()) - _dict['successes'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ObjectsBulkChangeResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "failures": [ObjectChangeFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, - "successes": [ObjectChangeSuccessDTO.from_dict(_item) for _item in obj["successes"]] if obj.get("successes") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/parameter_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/parameter_definition_dto.py deleted file mode 100644 index c465b9c305..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/parameter_definition_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.aggregation_type_parameter_dto import AggregationTypeParameterDTO -from visier_api_analytic_model.models.member_parameter_definition_dto import MemberParameterDefinitionDTO -from visier_api_analytic_model.models.numeric_parameter_definition_dto import NumericParameterDefinitionDTO -from visier_api_analytic_model.models.plan_parameter_definition_dto import PlanParameterDefinitionDTO -from typing import Optional, Set -from typing_extensions import Self - -class ParameterDefinitionDTO(BaseModel): - """ - Parameters generalize object definitions so that end users can provide values at query run time. - """ # noqa: E501 - aggregation_type_parameter: Optional[AggregationTypeParameterDTO] = Field(default=None, description="An aggregation parameter. Such parameters enable control over how applicable metrics aggregate their results.", alias="aggregationTypeParameter") - member_parameter: Optional[MemberParameterDefinitionDTO] = Field(default=None, description="A filter parameter that can be set with dimension members for the end user to select.", alias="memberParameter") - numeric_parameter: Optional[NumericParameterDefinitionDTO] = Field(default=None, description="A parameter with a numeric data type. A numeric parameter can be set with an optional default value and value range.", alias="numericParameter") - plan_parameter: Optional[PlanParameterDefinitionDTO] = Field(default=None, description="A parameter on a planning metric. Plan parameters resolve planning model metrics to a specific plan and scenario or snapshot.", alias="planParameter") - __properties: ClassVar[List[str]] = ["aggregationTypeParameter", "memberParameter", "numericParameter", "planParameter"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ParameterDefinitionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of aggregation_type_parameter - if self.aggregation_type_parameter: - _dict['aggregationTypeParameter'] = self.aggregation_type_parameter.to_dict() - # override the default output from pydantic by calling `to_dict()` of member_parameter - if self.member_parameter: - _dict['memberParameter'] = self.member_parameter.to_dict() - # override the default output from pydantic by calling `to_dict()` of numeric_parameter - if self.numeric_parameter: - _dict['numericParameter'] = self.numeric_parameter.to_dict() - # override the default output from pydantic by calling `to_dict()` of plan_parameter - if self.plan_parameter: - _dict['planParameter'] = self.plan_parameter.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ParameterDefinitionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "aggregationTypeParameter": AggregationTypeParameterDTO.from_dict(obj["aggregationTypeParameter"]) if obj.get("aggregationTypeParameter") is not None else None, - "memberParameter": MemberParameterDefinitionDTO.from_dict(obj["memberParameter"]) if obj.get("memberParameter") is not None else None, - "numericParameter": NumericParameterDefinitionDTO.from_dict(obj["numericParameter"]) if obj.get("numericParameter") is not None else None, - "planParameter": PlanParameterDefinitionDTO.from_dict(obj["planParameter"]) if obj.get("planParameter") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/perspective_configuration_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/perspective_configuration_dto.py deleted file mode 100644 index 6a07427417..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/perspective_configuration_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.perspective_node_dto import PerspectiveNodeDTO -from typing import Optional, Set -from typing_extensions import Self - -class PerspectiveConfigurationDTO(BaseModel): - """ - PerspectiveConfigurationDTO - """ # noqa: E501 - perspective_id: Optional[StrictStr] = Field(default=None, description="The UUID of the perspective.", alias="perspectiveId") - perspective_name: Optional[StrictStr] = Field(default=None, description="The display name of the perspective.", alias="perspectiveName") - perspective_nodes: Optional[List[PerspectiveNodeDTO]] = Field(default=None, description="A list of nodes in the perspective.", alias="perspectiveNodes") - __properties: ClassVar[List[str]] = ["perspectiveId", "perspectiveName", "perspectiveNodes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PerspectiveConfigurationDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in perspective_nodes (list) - _items = [] - if self.perspective_nodes: - for _item_perspective_nodes in self.perspective_nodes: - if _item_perspective_nodes: - _items.append(_item_perspective_nodes.to_dict()) - _dict['perspectiveNodes'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PerspectiveConfigurationDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "perspectiveId": obj.get("perspectiveId"), - "perspectiveName": obj.get("perspectiveName"), - "perspectiveNodes": [PerspectiveNodeDTO.from_dict(_item) for _item in obj["perspectiveNodes"]] if obj.get("perspectiveNodes") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/perspective_node_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/perspective_node_dto.py deleted file mode 100644 index 5e49f4b685..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/perspective_node_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.analytic_object_filter_dto import AnalyticObjectFilterDTO -from typing import Optional, Set -from typing_extensions import Self - -class PerspectiveNodeDTO(BaseModel): - """ - PerspectiveNodeDTO - """ # noqa: E501 - analytic_object_filters: Optional[List[AnalyticObjectFilterDTO]] = Field(default=None, description="A list of analytic object filters indicating the analytic object and dimensions used for the selection concept.", alias="analyticObjectFilters") - selection_concept_uuid: Optional[StrictStr] = Field(default=None, description="The UUID of the node's selection concept. Perspective nodes are generated as selection concepts to enable filtering.", alias="selectionConceptUuid") - symbol_name: Optional[StrictStr] = Field(default=None, description="The symbol name of the selection concept. For example, \"isExitActualSystemTermination\".", alias="symbolName") - __properties: ClassVar[List[str]] = ["analyticObjectFilters", "selectionConceptUuid", "symbolName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PerspectiveNodeDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in analytic_object_filters (list) - _items = [] - if self.analytic_object_filters: - for _item_analytic_object_filters in self.analytic_object_filters: - if _item_analytic_object_filters: - _items.append(_item_analytic_object_filters.to_dict()) - _dict['analyticObjectFilters'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PerspectiveNodeDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObjectFilters": [AnalyticObjectFilterDTO.from_dict(_item) for _item in obj["analyticObjectFilters"]] if obj.get("analyticObjectFilters") is not None else None, - "selectionConceptUuid": obj.get("selectionConceptUuid"), - "symbolName": obj.get("symbolName") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_data_load_error_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_data_load_error_dto.py deleted file mode 100644 index 76ecb778b5..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_data_load_error_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PlanDataLoadErrorDTO(BaseModel): - """ - An error encountered while loading plan data. - """ # noqa: E501 - error_message: Optional[StrictStr] = Field(default=None, description="Information regarding the error and any actions that you could take to load the data correctly.", alias="errorMessage") - rci: Optional[StrictStr] = Field(default=None, description="An error code that can be provided to Visier Support to help investigate your issue.") - row: Optional[StrictInt] = Field(default=None, description="The row in the file that caused the error.") - __properties: ClassVar[List[str]] = ["errorMessage", "rci", "row"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanDataLoadErrorDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanDataLoadErrorDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "errorMessage": obj.get("errorMessage"), - "rci": obj.get("rci"), - "row": obj.get("row") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_info_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_info_dto.py deleted file mode 100644 index b04e7ffc66..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_info_dto.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.scenario_info_dto import ScenarioInfoDTO -from typing import Optional, Set -from typing_extensions import Self - -class PlanInfoDTO(BaseModel): - """ - Information about a plan and its scenarios. - """ # noqa: E501 - currency_code: Optional[StrictStr] = Field(default=None, description="The 3-digit ISO 4217 currency code of the plan's data.", alias="currencyCode") - display_name: Optional[StrictStr] = Field(default=None, description="The display name of the plan.", alias="displayName") - model_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the planning model that the plan is using.", alias="modelId") - parent_plan_uuid: Optional[StrictStr] = Field(default=None, description="If the plan is a subplan, the response returns its parent plan's UUID. Not returned for main plans.", alias="parentPlanUuid") - scenarios: Optional[List[ScenarioInfoDTO]] = Field(default=None, description="Information about the plan's scenarios.") - uuid: Optional[StrictStr] = Field(default=None, description="The UUID of the plan.") - __properties: ClassVar[List[str]] = ["currencyCode", "displayName", "modelId", "parentPlanUuid", "scenarios", "uuid"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanInfoDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in scenarios (list) - _items = [] - if self.scenarios: - for _item_scenarios in self.scenarios: - if _item_scenarios: - _items.append(_item_scenarios.to_dict()) - _dict['scenarios'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanInfoDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "currencyCode": obj.get("currencyCode"), - "displayName": obj.get("displayName"), - "modelId": obj.get("modelId"), - "parentPlanUuid": obj.get("parentPlanUuid"), - "scenarios": [ScenarioInfoDTO.from_dict(_item) for _item in obj["scenarios"]] if obj.get("scenarios") is not None else None, - "uuid": obj.get("uuid") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_item_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_item_dto.py deleted file mode 100644 index af2bd64f8b..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_item_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PlanItemDTO(BaseModel): - """ - A plan item is a metric in your plan. The available plan items depend on the planning model. - """ # noqa: E501 - data_type: Optional[StrictStr] = Field(default=None, description="The data type of the plan item. The data types are: - **rate**: Converts values into a percentage in the planning grid. The provided value is multiplied by 100 to get the display value. For example, a provided value of 0.5 is displayed as 50% in the grid. - **number**: Displays values as whole numbers. Decimal values are rounded to a whole number when displayed in the planning grid. - **currency**: Displays values as a currency. Values must not contain thousand separators, currency codes, or currency symbols. - **decimal**: Displays values with decimals.", alias="dataType") - display_name: Optional[StrictStr] = Field(default=None, description="The display name of the plan item.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the plan item.") - __properties: ClassVar[List[str]] = ["dataType", "displayName", "id"] - - @field_validator('data_type') - def data_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['unknown', 'number', 'currency', 'decimal', 'rate']): - raise ValueError("must be one of enum values ('unknown', 'number', 'currency', 'decimal', 'rate')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanItemDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanItemDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataType": obj.get("dataType"), - "displayName": obj.get("displayName"), - "id": obj.get("id") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_parameter_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_parameter_definition_dto.py deleted file mode 100644 index faacfa80ce..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_parameter_definition_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PlanParameterDefinitionDTO(BaseModel): - """ - The definition of a plan parameter. These parameters resolve planning model metrics to a specific plan and scenario or snapshot values at query runtime. - """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="The localized description of the parameter.") - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the parameter.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the parameter.") - model_name: Optional[StrictStr] = Field(default=None, description="The name of the planning model to which the parameter applies.", alias="modelName") - __properties: ClassVar[List[str]] = ["description", "displayName", "id", "modelName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanParameterDefinitionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanParameterDefinitionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "modelName": obj.get("modelName") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_schema_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_schema_dto.py deleted file mode 100644 index 48bbc6c88d..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_schema_dto.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.plan_item_dto import PlanItemDTO -from visier_api_analytic_model.models.plan_segment_level_dto import PlanSegmentLevelDTO -from visier_api_analytic_model.models.plan_segment_level_member_list_dto import PlanSegmentLevelMemberListDTO -from visier_api_analytic_model.models.plan_time_period_dto import PlanTimePeriodDTO -from typing import Optional, Set -from typing_extensions import Self - -class PlanSchemaDTO(BaseModel): - """ - Information about a plan's schema. - """ # noqa: E501 - plan_items: Optional[List[PlanItemDTO]] = Field(default=None, description="A collection of editable plan items in a plan.", alias="planItems") - plan_segment_level_members: Optional[List[PlanSegmentLevelMemberListDTO]] = Field(default=None, description="A collection of members grouped by their dimension and level. The combination of these member IDs points to a specific row in the plan.", alias="planSegmentLevelMembers") - plan_segment_levels: Optional[List[PlanSegmentLevelDTO]] = Field(default=None, description="The dimensions that the plan is segmented by.", alias="planSegmentLevels") - time_periods: Optional[List[PlanTimePeriodDTO]] = Field(default=None, description="The editable time periods in a plan. These time periods are the columns in the planning grid.", alias="timePeriods") - __properties: ClassVar[List[str]] = ["planItems", "planSegmentLevelMembers", "planSegmentLevels", "timePeriods"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanSchemaDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in plan_items (list) - _items = [] - if self.plan_items: - for _item_plan_items in self.plan_items: - if _item_plan_items: - _items.append(_item_plan_items.to_dict()) - _dict['planItems'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in plan_segment_level_members (list) - _items = [] - if self.plan_segment_level_members: - for _item_plan_segment_level_members in self.plan_segment_level_members: - if _item_plan_segment_level_members: - _items.append(_item_plan_segment_level_members.to_dict()) - _dict['planSegmentLevelMembers'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in plan_segment_levels (list) - _items = [] - if self.plan_segment_levels: - for _item_plan_segment_levels in self.plan_segment_levels: - if _item_plan_segment_levels: - _items.append(_item_plan_segment_levels.to_dict()) - _dict['planSegmentLevels'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in time_periods (list) - _items = [] - if self.time_periods: - for _item_time_periods in self.time_periods: - if _item_time_periods: - _items.append(_item_time_periods.to_dict()) - _dict['timePeriods'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanSchemaDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "planItems": [PlanItemDTO.from_dict(_item) for _item in obj["planItems"]] if obj.get("planItems") is not None else None, - "planSegmentLevelMembers": [PlanSegmentLevelMemberListDTO.from_dict(_item) for _item in obj["planSegmentLevelMembers"]] if obj.get("planSegmentLevelMembers") is not None else None, - "planSegmentLevels": [PlanSegmentLevelDTO.from_dict(_item) for _item in obj["planSegmentLevels"]] if obj.get("planSegmentLevels") is not None else None, - "timePeriods": [PlanTimePeriodDTO.from_dict(_item) for _item in obj["timePeriods"]] if obj.get("timePeriods") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_segment_level_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_segment_level_dto.py deleted file mode 100644 index a25976d481..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_segment_level_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PlanSegmentLevelDTO(BaseModel): - """ - A dimension and dimension level that segments the plan. - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="The display name of the dimension level.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The symbol name of the dimension appended with its level ID.") - order: Optional[StrictInt] = Field(default=None, description="The number that describes the segment's position in the plan's overall structure.") - segment_display_name: Optional[StrictStr] = Field(default=None, description="The display name of the dimension.", alias="segmentDisplayName") - segment_id: Optional[StrictStr] = Field(default=None, description="The symbol name of the dimension.", alias="segmentId") - __properties: ClassVar[List[str]] = ["displayName", "id", "order", "segmentDisplayName", "segmentId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanSegmentLevelDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanSegmentLevelDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "order": obj.get("order"), - "segmentDisplayName": obj.get("segmentDisplayName"), - "segmentId": obj.get("segmentId") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_segment_level_member_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_segment_level_member_dto.py deleted file mode 100644 index 37358d9f04..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_segment_level_member_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PlanSegmentLevelMemberDTO(BaseModel): - """ - A member in the dimension. - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="The display name of the dimension member.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the dimension member.") - is_custom: Optional[StrictBool] = Field(default=None, description="If `true`, this is a custom member created for use in the plan and all its subplans.", alias="isCustom") - parent_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the dimension member's parent.", alias="parentId") - __properties: ClassVar[List[str]] = ["displayName", "id", "isCustom", "parentId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanSegmentLevelMemberDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanSegmentLevelMemberDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "isCustom": obj.get("isCustom"), - "parentId": obj.get("parentId") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_segment_level_member_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_segment_level_member_list_dto.py deleted file mode 100644 index 22192a0720..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_segment_level_member_list_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.plan_segment_level_member_dto import PlanSegmentLevelMemberDTO -from typing import Optional, Set -from typing_extensions import Self - -class PlanSegmentLevelMemberListDTO(BaseModel): - """ - A collection of dimension members. - """ # noqa: E501 - members: Optional[List[PlanSegmentLevelMemberDTO]] = Field(default=None, description="The dimension members.") - segment_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the dimension.", alias="segmentId") - segment_level_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the dimension and dimension level.", alias="segmentLevelId") - __properties: ClassVar[List[str]] = ["members", "segmentId", "segmentLevelId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanSegmentLevelMemberListDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in members (list) - _items = [] - if self.members: - for _item_members in self.members: - if _item_members: - _items.append(_item_members.to_dict()) - _dict['members'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanSegmentLevelMemberListDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "members": [PlanSegmentLevelMemberDTO.from_dict(_item) for _item in obj["members"]] if obj.get("members") is not None else None, - "segmentId": obj.get("segmentId"), - "segmentLevelId": obj.get("segmentLevelId") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_time_period_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_time_period_dto.py deleted file mode 100644 index ed3041cd47..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_time_period_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PlanTimePeriodDTO(BaseModel): - """ - A time period in the plan. - """ # noqa: E501 - var_date: Optional[StrictStr] = Field(default=None, description="The date of the time period. The format is YYYY-MM-DD.", alias="date") - display_name: Optional[StrictStr] = Field(default=None, description="The display name of the time period; for example, March 2024.", alias="displayName") - __properties: ClassVar[List[str]] = ["date", "displayName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanTimePeriodDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanTimePeriodDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "date": obj.get("date"), - "displayName": obj.get("displayName") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_with_schema_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_with_schema_dto.py deleted file mode 100644 index 143f61127d..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/plan_with_schema_dto.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.plan_data_load_error_dto import PlanDataLoadErrorDTO -from visier_api_analytic_model.models.plan_info_dto import PlanInfoDTO -from visier_api_analytic_model.models.plan_schema_dto import PlanSchemaDTO -from typing import Optional, Set -from typing_extensions import Self - -class PlanWithSchemaDTO(BaseModel): - """ - Details about the plan, including its schema. - """ # noqa: E501 - errors: Optional[List[PlanDataLoadErrorDTO]] = Field(default=None, description="The errors that occurred while loading the data.") - plan: Optional[PlanInfoDTO] = None - var_schema: Optional[PlanSchemaDTO] = Field(default=None, alias="schema") - __properties: ClassVar[List[str]] = ["errors", "plan", "schema"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanWithSchemaDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of plan - if self.plan: - _dict['plan'] = self.plan.to_dict() - # override the default output from pydantic by calling `to_dict()` of var_schema - if self.var_schema: - _dict['schema'] = self.var_schema.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanWithSchemaDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "errors": [PlanDataLoadErrorDTO.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "plan": PlanInfoDTO.from_dict(obj["plan"]) if obj.get("plan") is not None else None, - "schema": PlanSchemaDTO.from_dict(obj["schema"]) if obj.get("schema") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_concept_filter_context_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_concept_filter_context_dto.py deleted file mode 100644 index 4acfafe418..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_concept_filter_context_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PlanningConceptFilterContextDTO(BaseModel): - """ - A plan context defined using a selection concept. - """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, description="The object name of the selection concept.") - __properties: ClassVar[List[str]] = ["name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanningConceptFilterContextDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanningConceptFilterContextDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_hierarchy_filter_context_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_hierarchy_filter_context_dto.py deleted file mode 100644 index 55100fde69..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_hierarchy_filter_context_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PlanningHierarchyFilterContextDTO(BaseModel): - """ - A plan context defined using hierarchy members - """ # noqa: E501 - excluded_members: Optional[List[StrictStr]] = Field(default=None, description="The unique IDs of excluded dimension members.", alias="excludedMembers") - hierarchy_name: Optional[StrictStr] = Field(default=None, description="The object name of the hierarchy.", alias="hierarchyName") - included_members: Optional[List[StrictStr]] = Field(default=None, description="The unique IDs of the included dimension members.", alias="includedMembers") - __properties: ClassVar[List[str]] = ["excludedMembers", "hierarchyName", "includedMembers"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanningHierarchyFilterContextDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanningHierarchyFilterContextDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "excludedMembers": obj.get("excludedMembers"), - "hierarchyName": obj.get("hierarchyName"), - "includedMembers": obj.get("includedMembers") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_model_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_model_dto.py deleted file mode 100644 index 0b8deff927..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_model_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PlanningModelDTO(BaseModel): - """ - The basic information about the planning model. A planning model captures the planning intent, plan items, and the relationship between them. - """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="The localized description of the planning model.") - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the planning model.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the planning model. Note: See `PlanningModels` to get the ID.") - __properties: ClassVar[List[str]] = ["description", "displayName", "id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanningModelDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanningModelDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "id": obj.get("id") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_models_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_models_dto.py deleted file mode 100644 index bf2b8e7186..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_models_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.planning_model_dto import PlanningModelDTO -from typing import Optional, Set -from typing_extensions import Self - -class PlanningModelsDTO(BaseModel): - """ - A collection of planning modules. - """ # noqa: E501 - models: Optional[List[PlanningModelDTO]] = None - __properties: ClassVar[List[str]] = ["models"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanningModelsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in models (list) - _items = [] - if self.models: - for _item_models in self.models: - if _item_models: - _items.append(_item_models.to_dict()) - _dict['models'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanningModelsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "models": [PlanningModelDTO.from_dict(_item) for _item in obj["models"]] if obj.get("models") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plan_context_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plan_context_dto.py deleted file mode 100644 index fa36e1c176..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plan_context_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.planning_concept_filter_context_dto import PlanningConceptFilterContextDTO -from visier_api_analytic_model.models.planning_hierarchy_filter_context_dto import PlanningHierarchyFilterContextDTO -from typing import Optional, Set -from typing_extensions import Self - -class PlanningPlanContextDTO(BaseModel): - """ - The filter context for a plan. Plan contexts are defined using a set of hierarchy members or a concept. - """ # noqa: E501 - concept_filter_context: Optional[PlanningConceptFilterContextDTO] = Field(default=None, description="A plan context defined using a selection concept.", alias="conceptFilterContext") - hierarchy_filter_context: Optional[PlanningHierarchyFilterContextDTO] = Field(default=None, description="A plan context defined using hierarchy members.", alias="hierarchyFilterContext") - __properties: ClassVar[List[str]] = ["conceptFilterContext", "hierarchyFilterContext"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanningPlanContextDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of concept_filter_context - if self.concept_filter_context: - _dict['conceptFilterContext'] = self.concept_filter_context.to_dict() - # override the default output from pydantic by calling `to_dict()` of hierarchy_filter_context - if self.hierarchy_filter_context: - _dict['hierarchyFilterContext'] = self.hierarchy_filter_context.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanningPlanContextDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "conceptFilterContext": PlanningConceptFilterContextDTO.from_dict(obj["conceptFilterContext"]) if obj.get("conceptFilterContext") is not None else None, - "hierarchyFilterContext": PlanningHierarchyFilterContextDTO.from_dict(obj["hierarchyFilterContext"]) if obj.get("hierarchyFilterContext") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plan_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plan_dto.py deleted file mode 100644 index 01110354c4..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plan_dto.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.planning_plan_context_dto import PlanningPlanContextDTO -from visier_api_analytic_model.models.scenario_or_snapshot_dto import ScenarioOrSnapshotDTO -from typing import Optional, Set -from typing_extensions import Self - -class PlanningPlanDTO(BaseModel): - """ - The definition of a plan. Plans are defined on planning models, and each plan may define multiple scenarios or snapshots. - """ # noqa: E501 - default_contexts: Optional[List[PlanningPlanContextDTO]] = Field(default=None, description="The contexts defined for the plan.", alias="defaultContexts") - id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the plan. Note: See `PlanningPlans` to get the ID.") - name: Optional[StrictStr] = Field(default=None, description="The name of the plan.") - plan_dimension_ids: Optional[List[StrictStr]] = Field(default=None, description="The IDs of the dimensions defined for the plan.", alias="planDimensionIds") - scenarios: Optional[List[ScenarioOrSnapshotDTO]] = Field(default=None, description="The available scenarios for the plan.") - snapshots: Optional[List[ScenarioOrSnapshotDTO]] = Field(default=None, description="The available snapshots for the plan.") - subject_id: Optional[StrictStr] = Field(default=None, description="The ID of subject for the plan.", alias="subjectId") - __properties: ClassVar[List[str]] = ["defaultContexts", "id", "name", "planDimensionIds", "scenarios", "snapshots", "subjectId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanningPlanDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in default_contexts (list) - _items = [] - if self.default_contexts: - for _item_default_contexts in self.default_contexts: - if _item_default_contexts: - _items.append(_item_default_contexts.to_dict()) - _dict['defaultContexts'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in scenarios (list) - _items = [] - if self.scenarios: - for _item_scenarios in self.scenarios: - if _item_scenarios: - _items.append(_item_scenarios.to_dict()) - _dict['scenarios'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in snapshots (list) - _items = [] - if self.snapshots: - for _item_snapshots in self.snapshots: - if _item_snapshots: - _items.append(_item_snapshots.to_dict()) - _dict['snapshots'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanningPlanDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "defaultContexts": [PlanningPlanContextDTO.from_dict(_item) for _item in obj["defaultContexts"]] if obj.get("defaultContexts") is not None else None, - "id": obj.get("id"), - "name": obj.get("name"), - "planDimensionIds": obj.get("planDimensionIds"), - "scenarios": [ScenarioOrSnapshotDTO.from_dict(_item) for _item in obj["scenarios"]] if obj.get("scenarios") is not None else None, - "snapshots": [ScenarioOrSnapshotDTO.from_dict(_item) for _item in obj["snapshots"]] if obj.get("snapshots") is not None else None, - "subjectId": obj.get("subjectId") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plans_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plans_dto.py deleted file mode 100644 index c78690493a..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plans_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.planning_plan_dto import PlanningPlanDTO -from typing import Optional, Set -from typing_extensions import Self - -class PlanningPlansDTO(BaseModel): - """ - A collection of plan definitions. - """ # noqa: E501 - plans: Optional[List[PlanningPlanDTO]] = None - __properties: ClassVar[List[str]] = ["plans"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanningPlansDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in plans (list) - _items = [] - if self.plans: - for _item_plans in self.plans: - if _item_plans: - _items.append(_item_plans.to_dict()) - _dict['plans'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanningPlansDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "plans": [PlanningPlanDTO.from_dict(_item) for _item in obj["plans"]] if obj.get("plans") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_get_plan_list_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_get_plan_list_response_dto.py new file mode 100644 index 0000000000..0aa748f5fb --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_get_plan_list_response_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.planning_transfers_plan_info_dto import PlanningTransfersPlanInfoDTO +from typing import Optional, Set +from typing_extensions import Self + +class PlanningTransfersGetPlanListResponseDTO(BaseModel): + """ + A collection of plans. + """ # noqa: E501 + page: Optional[StrictInt] = Field(default=None, description="The current page number of results that the user is viewing.") + plans: Optional[List[PlanningTransfersPlanInfoDTO]] = Field(default=None, description="A list of plans accessible to the user.") + __properties: ClassVar[List[str]] = ["page", "plans"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlanningTransfersGetPlanListResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in plans (list) + _items = [] + if self.plans: + for _item_plans in self.plans: + if _item_plans: + _items.append(_item_plans.to_dict()) + _dict['plans'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningTransfersGetPlanListResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "page": obj.get("page"), + "plans": [PlanningTransfersPlanInfoDTO.from_dict(_item) for _item in obj["plans"]] if obj.get("plans") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_data_load_error_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_data_load_error_dto.py new file mode 100644 index 0000000000..683b91c059 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_data_load_error_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PlanningTransfersPlanDataLoadErrorDTO(BaseModel): + """ + An error encountered while loading plan data. + """ # noqa: E501 + error_message: Optional[StrictStr] = Field(default=None, description="Information regarding the error and any actions that you could take to load the data correctly.", alias="errorMessage") + rci: Optional[StrictStr] = Field(default=None, description="An error code that can be provided to Visier Support to help investigate your issue.") + row: Optional[StrictInt] = Field(default=None, description="The row in the file that caused the error.") + __properties: ClassVar[List[str]] = ["errorMessage", "rci", "row"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanDataLoadErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanDataLoadErrorDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "errorMessage": obj.get("errorMessage"), + "rci": obj.get("rci"), + "row": obj.get("row") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_info_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_info_dto.py new file mode 100644 index 0000000000..7b6a432361 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_info_dto.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.planning_transfers_scenario_info_dto import PlanningTransfersScenarioInfoDTO +from typing import Optional, Set +from typing_extensions import Self + +class PlanningTransfersPlanInfoDTO(BaseModel): + """ + Information about a plan and its scenarios. + """ # noqa: E501 + currency_code: Optional[StrictStr] = Field(default=None, description="The 3-digit ISO 4217 currency code of the plan's data.", alias="currencyCode") + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the plan.", alias="displayName") + model_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the planning model that the plan is using.", alias="modelId") + parent_plan_uuid: Optional[StrictStr] = Field(default=None, description="If the plan is a subplan, the response returns its parent plan's UUID. Not returned for main plans.", alias="parentPlanUuid") + scenarios: Optional[List[PlanningTransfersScenarioInfoDTO]] = Field(default=None, description="Information about the plan's scenarios.") + uuid: Optional[StrictStr] = Field(default=None, description="The UUID of the plan.") + __properties: ClassVar[List[str]] = ["currencyCode", "displayName", "modelId", "parentPlanUuid", "scenarios", "uuid"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanInfoDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in scenarios (list) + _items = [] + if self.scenarios: + for _item_scenarios in self.scenarios: + if _item_scenarios: + _items.append(_item_scenarios.to_dict()) + _dict['scenarios'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanInfoDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "currencyCode": obj.get("currencyCode"), + "displayName": obj.get("displayName"), + "modelId": obj.get("modelId"), + "parentPlanUuid": obj.get("parentPlanUuid"), + "scenarios": [PlanningTransfersScenarioInfoDTO.from_dict(_item) for _item in obj["scenarios"]] if obj.get("scenarios") is not None else None, + "uuid": obj.get("uuid") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_item_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_item_dto.py new file mode 100644 index 0000000000..0627df36d7 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_item_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PlanningTransfersPlanItemDTO(BaseModel): + """ + A plan item is a metric in your plan. The available plan items depend on the planning model. + """ # noqa: E501 + data_type: Optional[StrictStr] = Field(default=None, description="The data type of the plan item. The data types are: - **rate**: Converts values into a percentage in the planning grid. The provided value is multiplied by 100 to get the display value. For example, a provided value of 0.5 is displayed as 50% in the grid. - **number**: Displays values as whole numbers. Decimal values are rounded to a whole number when displayed in the planning grid. - **currency**: Displays values as a currency. Values must not contain thousand separators, currency codes, or currency symbols. - **decimal**: Displays values with decimals.", alias="dataType") + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the plan item.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the plan item.") + __properties: ClassVar[List[str]] = ["dataType", "displayName", "id"] + + @field_validator('data_type') + def data_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['unknown', 'number', 'currency', 'decimal', 'rate']): + raise ValueError("must be one of enum values ('unknown', 'number', 'currency', 'decimal', 'rate')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanItemDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanItemDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataType": obj.get("dataType"), + "displayName": obj.get("displayName"), + "id": obj.get("id") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_schema_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_schema_dto.py new file mode 100644 index 0000000000..3a415050f2 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_schema_dto.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.planning_transfers_plan_item_dto import PlanningTransfersPlanItemDTO +from visier_api_analytic_model.models.planning_transfers_plan_segment_level_dto import PlanningTransfersPlanSegmentLevelDTO +from visier_api_analytic_model.models.planning_transfers_plan_segment_level_member_list_dto import PlanningTransfersPlanSegmentLevelMemberListDTO +from visier_api_analytic_model.models.planning_transfers_plan_time_period_dto import PlanningTransfersPlanTimePeriodDTO +from typing import Optional, Set +from typing_extensions import Self + +class PlanningTransfersPlanSchemaDTO(BaseModel): + """ + Information about a plan's schema. + """ # noqa: E501 + plan_items: Optional[List[PlanningTransfersPlanItemDTO]] = Field(default=None, description="A collection of editable plan items in a plan.", alias="planItems") + plan_segment_level_members: Optional[List[PlanningTransfersPlanSegmentLevelMemberListDTO]] = Field(default=None, description="A collection of members grouped by their dimension and level. The combination of these member IDs points to a specific row in the plan.", alias="planSegmentLevelMembers") + plan_segment_levels: Optional[List[PlanningTransfersPlanSegmentLevelDTO]] = Field(default=None, description="The dimensions that the plan is segmented by.", alias="planSegmentLevels") + time_periods: Optional[List[PlanningTransfersPlanTimePeriodDTO]] = Field(default=None, description="The editable time periods in a plan. These time periods are the columns in the planning grid.", alias="timePeriods") + __properties: ClassVar[List[str]] = ["planItems", "planSegmentLevelMembers", "planSegmentLevels", "timePeriods"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanSchemaDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in plan_items (list) + _items = [] + if self.plan_items: + for _item_plan_items in self.plan_items: + if _item_plan_items: + _items.append(_item_plan_items.to_dict()) + _dict['planItems'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in plan_segment_level_members (list) + _items = [] + if self.plan_segment_level_members: + for _item_plan_segment_level_members in self.plan_segment_level_members: + if _item_plan_segment_level_members: + _items.append(_item_plan_segment_level_members.to_dict()) + _dict['planSegmentLevelMembers'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in plan_segment_levels (list) + _items = [] + if self.plan_segment_levels: + for _item_plan_segment_levels in self.plan_segment_levels: + if _item_plan_segment_levels: + _items.append(_item_plan_segment_levels.to_dict()) + _dict['planSegmentLevels'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in time_periods (list) + _items = [] + if self.time_periods: + for _item_time_periods in self.time_periods: + if _item_time_periods: + _items.append(_item_time_periods.to_dict()) + _dict['timePeriods'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanSchemaDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "planItems": [PlanningTransfersPlanItemDTO.from_dict(_item) for _item in obj["planItems"]] if obj.get("planItems") is not None else None, + "planSegmentLevelMembers": [PlanningTransfersPlanSegmentLevelMemberListDTO.from_dict(_item) for _item in obj["planSegmentLevelMembers"]] if obj.get("planSegmentLevelMembers") is not None else None, + "planSegmentLevels": [PlanningTransfersPlanSegmentLevelDTO.from_dict(_item) for _item in obj["planSegmentLevels"]] if obj.get("planSegmentLevels") is not None else None, + "timePeriods": [PlanningTransfersPlanTimePeriodDTO.from_dict(_item) for _item in obj["timePeriods"]] if obj.get("timePeriods") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_segment_level_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_segment_level_dto.py new file mode 100644 index 0000000000..ecf0f29454 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_segment_level_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PlanningTransfersPlanSegmentLevelDTO(BaseModel): + """ + A dimension and dimension level that segments the plan. + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the dimension level.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The symbol name of the dimension appended with its level ID.") + order: Optional[StrictInt] = Field(default=None, description="The number that describes the segment's position in the plan's overall structure.") + segment_display_name: Optional[StrictStr] = Field(default=None, description="The display name of the dimension.", alias="segmentDisplayName") + segment_id: Optional[StrictStr] = Field(default=None, description="The symbol name of the dimension.", alias="segmentId") + __properties: ClassVar[List[str]] = ["displayName", "id", "order", "segmentDisplayName", "segmentId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanSegmentLevelDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanSegmentLevelDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "order": obj.get("order"), + "segmentDisplayName": obj.get("segmentDisplayName"), + "segmentId": obj.get("segmentId") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_segment_level_member_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_segment_level_member_dto.py new file mode 100644 index 0000000000..e184dd153d --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_segment_level_member_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PlanningTransfersPlanSegmentLevelMemberDTO(BaseModel): + """ + A member in the dimension. + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the dimension member.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the dimension member.") + is_custom: Optional[StrictBool] = Field(default=None, description="If `true`, this is a custom member created for use in the plan and all its subplans.", alias="isCustom") + parent_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the dimension member's parent.", alias="parentId") + __properties: ClassVar[List[str]] = ["displayName", "id", "isCustom", "parentId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanSegmentLevelMemberDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanSegmentLevelMemberDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "isCustom": obj.get("isCustom"), + "parentId": obj.get("parentId") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_segment_level_member_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_segment_level_member_list_dto.py new file mode 100644 index 0000000000..8a58e1a601 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_segment_level_member_list_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.planning_transfers_plan_segment_level_member_dto import PlanningTransfersPlanSegmentLevelMemberDTO +from typing import Optional, Set +from typing_extensions import Self + +class PlanningTransfersPlanSegmentLevelMemberListDTO(BaseModel): + """ + A collection of dimension members. + """ # noqa: E501 + members: Optional[List[PlanningTransfersPlanSegmentLevelMemberDTO]] = Field(default=None, description="The dimension members.") + segment_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the dimension.", alias="segmentId") + segment_level_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the dimension and dimension level.", alias="segmentLevelId") + __properties: ClassVar[List[str]] = ["members", "segmentId", "segmentLevelId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanSegmentLevelMemberListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in members (list) + _items = [] + if self.members: + for _item_members in self.members: + if _item_members: + _items.append(_item_members.to_dict()) + _dict['members'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanSegmentLevelMemberListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "members": [PlanningTransfersPlanSegmentLevelMemberDTO.from_dict(_item) for _item in obj["members"]] if obj.get("members") is not None else None, + "segmentId": obj.get("segmentId"), + "segmentLevelId": obj.get("segmentLevelId") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_time_period_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_time_period_dto.py new file mode 100644 index 0000000000..2754462e71 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_time_period_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PlanningTransfersPlanTimePeriodDTO(BaseModel): + """ + A time period in the plan. + """ # noqa: E501 + var_date: Optional[StrictStr] = Field(default=None, description="The date of the time period. The format is YYYY-MM-DD.", alias="date") + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the time period; for example, March 2024.", alias="displayName") + __properties: ClassVar[List[str]] = ["date", "displayName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanTimePeriodDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanTimePeriodDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "date": obj.get("date"), + "displayName": obj.get("displayName") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_with_schema_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_with_schema_dto.py new file mode 100644 index 0000000000..17eeefd34a --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_plan_with_schema_dto.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.planning_transfers_plan_data_load_error_dto import PlanningTransfersPlanDataLoadErrorDTO +from visier_api_analytic_model.models.planning_transfers_plan_info_dto import PlanningTransfersPlanInfoDTO +from visier_api_analytic_model.models.planning_transfers_plan_schema_dto import PlanningTransfersPlanSchemaDTO +from typing import Optional, Set +from typing_extensions import Self + +class PlanningTransfersPlanWithSchemaDTO(BaseModel): + """ + Details about the plan, including its schema. + """ # noqa: E501 + errors: Optional[List[PlanningTransfersPlanDataLoadErrorDTO]] = Field(default=None, description="The errors that occurred while loading the data.") + plan: Optional[PlanningTransfersPlanInfoDTO] = None + var_schema: Optional[PlanningTransfersPlanSchemaDTO] = Field(default=None, alias="schema") + __properties: ClassVar[List[str]] = ["errors", "plan", "schema"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanWithSchemaDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of plan + if self.plan: + _dict['plan'] = self.plan.to_dict() + # override the default output from pydantic by calling `to_dict()` of var_schema + if self.var_schema: + _dict['schema'] = self.var_schema.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningTransfersPlanWithSchemaDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "errors": [PlanningTransfersPlanDataLoadErrorDTO.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "plan": PlanningTransfersPlanInfoDTO.from_dict(obj["plan"]) if obj.get("plan") is not None else None, + "schema": PlanningTransfersPlanSchemaDTO.from_dict(obj["schema"]) if obj.get("schema") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_scenario_info_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_scenario_info_dto.py new file mode 100644 index 0000000000..0230a64890 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_scenario_info_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PlanningTransfersScenarioInfoDTO(BaseModel): + """ + Information about a plan's scenario. + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The full display name of the scenario.", alias="displayName") + uuid: Optional[StrictStr] = Field(default=None, description="The UUID of the scenario.") + versioned_scenario_id: Optional[StrictStr] = Field(default=None, description="If the scenario belongs to a managed plan, the response returns the scenario's user-readable symbol name.", alias="versionedScenarioId") + __properties: ClassVar[List[str]] = ["displayName", "uuid", "versionedScenarioId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlanningTransfersScenarioInfoDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningTransfersScenarioInfoDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "uuid": obj.get("uuid"), + "versionedScenarioId": obj.get("versionedScenarioId") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/population_configuration_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/population_configuration_dto.py deleted file mode 100644 index 28e2da41a8..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/population_configuration_dto.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.dimension_reference_dto import DimensionReferenceDTO -from visier_api_analytic_model.models.property_reference_dto import PropertyReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class PopulationConfigurationDTO(BaseModel): - """ - A set of property and dimension references configured by Visier or an administrator to tell the platform what properties and dimensions to use when doing population insight calculations. These are the distinguishing properties, change history properties, and grouping dimensions to use in AI insights. - """ # noqa: E501 - change_history_properties: Optional[List[PropertyReferenceDTO]] = Field(default=None, description="Properties that are used by default to compare subject members over time.", alias="changeHistoryProperties") - distinguishing_properties: Optional[List[PropertyReferenceDTO]] = Field(default=None, description="Properties that are used by default to compare subject members.", alias="distinguishingProperties") - grouping_dimensions: Optional[List[DimensionReferenceDTO]] = Field(default=None, description="Dimensions to use for grouping and clustering the population.", alias="groupingDimensions") - __properties: ClassVar[List[str]] = ["changeHistoryProperties", "distinguishingProperties", "groupingDimensions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PopulationConfigurationDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in change_history_properties (list) - _items = [] - if self.change_history_properties: - for _item_change_history_properties in self.change_history_properties: - if _item_change_history_properties: - _items.append(_item_change_history_properties.to_dict()) - _dict['changeHistoryProperties'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in distinguishing_properties (list) - _items = [] - if self.distinguishing_properties: - for _item_distinguishing_properties in self.distinguishing_properties: - if _item_distinguishing_properties: - _items.append(_item_distinguishing_properties.to_dict()) - _dict['distinguishingProperties'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in grouping_dimensions (list) - _items = [] - if self.grouping_dimensions: - for _item_grouping_dimensions in self.grouping_dimensions: - if _item_grouping_dimensions: - _items.append(_item_grouping_dimensions.to_dict()) - _dict['groupingDimensions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PopulationConfigurationDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "changeHistoryProperties": [PropertyReferenceDTO.from_dict(_item) for _item in obj["changeHistoryProperties"]] if obj.get("changeHistoryProperties") is not None else None, - "distinguishingProperties": [PropertyReferenceDTO.from_dict(_item) for _item in obj["distinguishingProperties"]] if obj.get("distinguishingProperties") is not None else None, - "groupingDimensions": [DimensionReferenceDTO.from_dict(_item) for _item in obj["groupingDimensions"]] if obj.get("groupingDimensions") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/prediction_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/prediction_dto.py deleted file mode 100644 index 93bc3260c4..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/prediction_dto.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PredictionDTO(BaseModel): - """ - A prediction is a forecast of future events with advanced machine learning models. - """ # noqa: E501 - data_end_date: Optional[StrictStr] = Field(default=None, description="The date from which data is no longer available for this prediction. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string. Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="dataEndDate") - data_start_date: Optional[StrictStr] = Field(default=None, description="The date from which data becomes available for this prediction. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string. Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="dataStartDate") - description: Optional[StrictStr] = Field(default=None, description="The localized description of the prediction.") - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the prediction.", alias="displayName") - event: Optional[StrictStr] = Field(default=None, description="The object name of the event to predict. The prediction's training data uses past occurrences of the event to make predictions. For example, the Predicted Risk of Resignation model uses the Employee_Exit event to estimate likelihood of exit from the organization.") - event_filter: Optional[StrictStr] = Field(default=None, description="The object name of a selection concept to filter event occurrences in the prediction's training data.", alias="eventFilter") - factor_concepts: Optional[List[StrictStr]] = Field(default=None, description="The list of unique IDs of the concepts used as prediction factors.", alias="factorConcepts") - factor_dimensions: Optional[List[StrictStr]] = Field(default=None, description="The list of unique IDs of the dimensions used as prediction factors.", alias="factorDimensions") - factor_properties: Optional[List[StrictStr]] = Field(default=None, description="The list of unique IDs of the properties used as prediction factors. Note: Factors are conditions used as part of a Visier prediction. For example, Compensation might be a factor in predicting an individual's risk of resignation. Factors are chosen based on: - Availability in tenants. - Prediction impact, such as salary. - Reducing bias.", alias="factorProperties") - factors_name: Optional[StrictStr] = Field(default=None, description="The unique name of the factor property. The prediction's formula references the factor property as an object. This is automatically generated.", alias="factorsName") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the prediction. Note: See `Predictions` to get the ID.") - is_multi_tenant: Optional[StrictBool] = Field(default=None, description="If `true`, this prediction applies to more than one tenant. If \"false\", the prediction only applies to the current tenant.", alias="isMultiTenant") - label_property: Optional[StrictStr] = Field(default=None, description="The unique ID of the property label for the prediction. This is automatically generated.", alias="labelProperty") - minimum_training_months: Optional[StrictStr] = Field(default=None, description="The minimum amount of time, in months, to train the prediction model.", alias="minimumTrainingMonths") - score_name: Optional[StrictStr] = Field(default=None, description="The unique name of the score property. The prediction's formula references the score property as an object. This is automatically generated.", alias="scoreName") - subject: Optional[StrictStr] = Field(default=None, description="The object name of the subject that the prediction applies to. For example, Employee.") - subject_filter: Optional[StrictStr] = Field(default=None, description="The object name of a selection concept to filter the subject population. Filtering the population selects specific subject members in the prediction's training data. For example, using the isHighPerformer concept will filter the prediction to only high performing employees.", alias="subjectFilter") - subject_key: Optional[StrictStr] = Field(default=None, description="The unique ID of the subject's property that the prediction applies to. For example, Employee.EmployeeID.", alias="subjectKey") - subject_parent_key: Optional[StrictStr] = Field(default=None, description="The unique ID of the reference that connects a subject member to other members. For example, Employee.Direct_Manager. Note: The `subjectParentKey` defines parent, child, and peer relationships between subject members.", alias="subjectParentKey") - __properties: ClassVar[List[str]] = ["dataEndDate", "dataStartDate", "description", "displayName", "event", "eventFilter", "factorConcepts", "factorDimensions", "factorProperties", "factorsName", "id", "isMultiTenant", "labelProperty", "minimumTrainingMonths", "scoreName", "subject", "subjectFilter", "subjectKey", "subjectParentKey"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PredictionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PredictionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataEndDate": obj.get("dataEndDate"), - "dataStartDate": obj.get("dataStartDate"), - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "event": obj.get("event"), - "eventFilter": obj.get("eventFilter"), - "factorConcepts": obj.get("factorConcepts"), - "factorDimensions": obj.get("factorDimensions"), - "factorProperties": obj.get("factorProperties"), - "factorsName": obj.get("factorsName"), - "id": obj.get("id"), - "isMultiTenant": obj.get("isMultiTenant"), - "labelProperty": obj.get("labelProperty"), - "minimumTrainingMonths": obj.get("minimumTrainingMonths"), - "scoreName": obj.get("scoreName"), - "subject": obj.get("subject"), - "subjectFilter": obj.get("subjectFilter"), - "subjectKey": obj.get("subjectKey"), - "subjectParentKey": obj.get("subjectParentKey") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/predictions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/predictions_dto.py deleted file mode 100644 index 4cb1d4afa6..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/predictions_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.prediction_dto import PredictionDTO -from typing import Optional, Set -from typing_extensions import Self - -class PredictionsDTO(BaseModel): - """ - A collection of predictions. - """ # noqa: E501 - predictions: Optional[List[PredictionDTO]] = None - __properties: ClassVar[List[str]] = ["predictions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PredictionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in predictions (list) - _items = [] - if self.predictions: - for _item_predictions in self.predictions: - if _item_predictions: - _items.append(_item_predictions.to_dict()) - _dict['predictions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PredictionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "predictions": [PredictionDTO.from_dict(_item) for _item in obj["predictions"]] if obj.get("predictions") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/properties_change_definitions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/properties_change_definitions_dto.py deleted file mode 100644 index 3e2895c2ec..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/properties_change_definitions_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.property_change_definitions_by_tenant_dto import PropertyChangeDefinitionsByTenantDTO -from typing import Optional, Set -from typing_extensions import Self - -class PropertiesChangeDefinitionsDTO(BaseModel): - """ - PropertiesChangeDefinitionsDTO - """ # noqa: E501 - properties_by_tenant: Optional[List[PropertyChangeDefinitionsByTenantDTO]] = Field(default=None, description="The property updates to make in each tenant.", alias="propertiesByTenant") - __properties: ClassVar[List[str]] = ["propertiesByTenant"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertiesChangeDefinitionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in properties_by_tenant (list) - _items = [] - if self.properties_by_tenant: - for _item_properties_by_tenant in self.properties_by_tenant: - if _item_properties_by_tenant: - _items.append(_item_properties_by_tenant.to_dict()) - _dict['propertiesByTenant'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertiesChangeDefinitionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "propertiesByTenant": [PropertyChangeDefinitionsByTenantDTO.from_dict(_item) for _item in obj["propertiesByTenant"]] if obj.get("propertiesByTenant") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/properties_delete_definitions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/properties_delete_definitions_dto.py deleted file mode 100644 index c9b6cf754e..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/properties_delete_definitions_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.property_delete_definitions_by_tenant_dto import PropertyDeleteDefinitionsByTenantDTO -from typing import Optional, Set -from typing_extensions import Self - -class PropertiesDeleteDefinitionsDTO(BaseModel): - """ - Property deletion options. - """ # noqa: E501 - delete_derived_properties: Optional[StrictBool] = Field(default=None, description="If `true`, deletes derived properties along with the properties to delete. Default is `false`.", alias="deleteDerivedProperties") - ignore_property_references: Optional[StrictBool] = Field(default=None, description="If `true`, ignores properties that reference the properties to delete. Default is `false`.", alias="ignorePropertyReferences") - properties_by_tenant: Optional[List[PropertyDeleteDefinitionsByTenantDTO]] = Field(default=None, description="The properties to delete for each tenant.", alias="propertiesByTenant") - __properties: ClassVar[List[str]] = ["deleteDerivedProperties", "ignorePropertyReferences", "propertiesByTenant"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertiesDeleteDefinitionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in properties_by_tenant (list) - _items = [] - if self.properties_by_tenant: - for _item_properties_by_tenant in self.properties_by_tenant: - if _item_properties_by_tenant: - _items.append(_item_properties_by_tenant.to_dict()) - _dict['propertiesByTenant'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertiesDeleteDefinitionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "deleteDerivedProperties": obj.get("deleteDerivedProperties"), - "ignorePropertyReferences": obj.get("ignorePropertyReferences"), - "propertiesByTenant": [PropertyDeleteDefinitionsByTenantDTO.from_dict(_item) for _item in obj["propertiesByTenant"]] if obj.get("propertiesByTenant") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/properties_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/properties_dto.py deleted file mode 100644 index 455013f5d6..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/properties_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.property_dto import PropertyDTO -from typing import Optional, Set -from typing_extensions import Self - -class PropertiesDTO(BaseModel): - """ - A collection of properties. - """ # noqa: E501 - properties: Optional[List[PropertyDTO]] = None - __properties: ClassVar[List[str]] = ["properties"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertiesDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in properties (list) - _items = [] - if self.properties: - for _item_properties in self.properties: - if _item_properties: - _items.append(_item_properties.to_dict()) - _dict['properties'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertiesDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "properties": [PropertyDTO.from_dict(_item) for _item in obj["properties"]] if obj.get("properties") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_bulk_delete_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/property_bulk_delete_response_dto.py deleted file mode 100644 index 6c5e4da64a..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_bulk_delete_response_dto.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.property_delete_failure_dto import PropertyDeleteFailureDTO -from visier_api_analytic_model.models.property_delete_success_dto import PropertyDeleteSuccessDTO -from typing import Optional, Set -from typing_extensions import Self - -class PropertyBulkDeleteResponseDTO(BaseModel): - """ - Results of a bulk delete operation. - """ # noqa: E501 - failures: Optional[List[PropertyDeleteFailureDTO]] = Field(default=None, description="Properties that were not successfully deleted.") - successes: Optional[List[PropertyDeleteSuccessDTO]] = Field(default=None, description="Properties that were successfully deleted.") - __properties: ClassVar[List[str]] = ["failures", "successes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertyBulkDeleteResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in failures (list) - _items = [] - if self.failures: - for _item_failures in self.failures: - if _item_failures: - _items.append(_item_failures.to_dict()) - _dict['failures'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in successes (list) - _items = [] - if self.successes: - for _item_successes in self.successes: - if _item_successes: - _items.append(_item_successes.to_dict()) - _dict['successes'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertyBulkDeleteResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "failures": [PropertyDeleteFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, - "successes": [PropertyDeleteSuccessDTO.from_dict(_item) for _item in obj["successes"]] if obj.get("successes") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_change_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/property_change_definition_dto.py deleted file mode 100644 index 410314fc74..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_change_definition_dto.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.property_type_dto import PropertyTypeDTO -from visier_api_analytic_model.models.tags_dto import TagsDTO -from typing import Optional, Set -from typing_extensions import Self - -class PropertyChangeDefinitionDTO(BaseModel): - """ - PropertyChangeDefinitionDTO - """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="A short description of the property. Descriptions provide in-context help for your users while working in Visier.") - designer_notes: Optional[StrictStr] = Field(default=None, description="Notes for the designer. This field is used to provide additional information about the property.", alias="designerNotes") - display_name: Optional[StrictStr] = Field(default=None, description="The user-friendly name for the property.", alias="displayName") - explanation: Optional[StrictStr] = Field(default=None, description="Explanation of the property. This field is used to provide additional information about the property.") - id: Optional[StrictStr] = Field(default=None, description="The symbol name of the property; for example, Employee.Birth_Date") - include_with_vee: Optional[StrictBool] = Field(default=None, description="If 'true', the property is included with Vee.", alias="includeWithVee") - short_display_name: Optional[StrictStr] = Field(default=None, description="A shortened version of the display name. If the property is visible in the solution experience, this name is displayed in visualization titles.", alias="shortDisplayName") - tags: Optional[TagsDTO] = Field(default=None, description="The tags associated with the property.") - type: Optional[PropertyTypeDTO] = Field(default=None, description="The type of the property.") - __properties: ClassVar[List[str]] = ["description", "designerNotes", "displayName", "explanation", "id", "includeWithVee", "shortDisplayName", "tags", "type"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertyChangeDefinitionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of tags - if self.tags: - _dict['tags'] = self.tags.to_dict() - # override the default output from pydantic by calling `to_dict()` of type - if self.type: - _dict['type'] = self.type.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertyChangeDefinitionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "designerNotes": obj.get("designerNotes"), - "displayName": obj.get("displayName"), - "explanation": obj.get("explanation"), - "id": obj.get("id"), - "includeWithVee": obj.get("includeWithVee"), - "shortDisplayName": obj.get("shortDisplayName"), - "tags": TagsDTO.from_dict(obj["tags"]) if obj.get("tags") is not None else None, - "type": PropertyTypeDTO.from_dict(obj["type"]) if obj.get("type") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_change_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/property_change_definitions_by_tenant_dto.py deleted file mode 100644 index a463290fc2..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_change_definitions_by_tenant_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.property_change_definition_dto import PropertyChangeDefinitionDTO -from typing import Optional, Set -from typing_extensions import Self - -class PropertyChangeDefinitionsByTenantDTO(BaseModel): - """ - PropertyChangeDefinitionsByTenantDTO - """ # noqa: E501 - project_id: Optional[StrictStr] = Field(default=None, description="To make changes in a project, specify a project ID.", alias="projectId") - properties: Optional[List[PropertyChangeDefinitionDTO]] = Field(default=None, description="The list of properties to update.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the tenant in which to update properties.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["projectId", "properties", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertyChangeDefinitionsByTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in properties (list) - _items = [] - if self.properties: - for _item_properties in self.properties: - if _item_properties: - _items.append(_item_properties.to_dict()) - _dict['properties'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertyChangeDefinitionsByTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "projectId": obj.get("projectId"), - "properties": [PropertyChangeDefinitionDTO.from_dict(_item) for _item in obj["properties"]] if obj.get("properties") is not None else None, - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_delete_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/property_delete_definitions_by_tenant_dto.py deleted file mode 100644 index 135dd5223a..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_delete_definitions_by_tenant_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PropertyDeleteDefinitionsByTenantDTO(BaseModel): - """ - The properties to delete for a specific tenant. - """ # noqa: E501 - project_id: Optional[StrictStr] = Field(default=None, description="The project in which to delete properties. If omitted and the ProjectID request header is not defined, the change is published to production immediately.", alias="projectId") - property_ids: Optional[List[StrictStr]] = Field(default=None, description="The IDs of the properties to delete.", alias="propertyIds") - tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant to delete properties from. Default is the current tenant.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["projectId", "propertyIds", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertyDeleteDefinitionsByTenantDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertyDeleteDefinitionsByTenantDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "projectId": obj.get("projectId"), - "propertyIds": obj.get("propertyIds"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_delete_failure_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/property_delete_failure_dto.py deleted file mode 100644 index 9f9a670987..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_delete_failure_dto.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.dependent_dto import DependentDTO -from typing import Optional, Set -from typing_extensions import Self - -class PropertyDeleteFailureDTO(BaseModel): - """ - Details about a failed property deletion. - """ # noqa: E501 - derived_dependents_to_delete: Optional[List[DependentDTO]] = Field(default=None, description="The derived dependents that would have been deleted if the deletion was successful.", alias="derivedDependentsToDelete") - display_name: Optional[StrictStr] = Field(default=None, description="The display name of the property.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the property.") - message: Optional[StrictStr] = Field(default=None, description="An error message describing the cause of the failure.") - project_id: Optional[StrictStr] = Field(default=None, description="The project in which the property wasn't deleted.", alias="projectId") - rci: Optional[StrictStr] = Field(default=None, description="The root cause identifier to provide to Visier Technical Support if you require further troubleshooting.") - reference_dependents_to_ignore: Optional[List[DependentDTO]] = Field(default=None, description="Dependents that reference this property and could be affected.", alias="referenceDependentsToIgnore") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant in which the property wasn't deleted.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["derivedDependentsToDelete", "displayName", "id", "message", "projectId", "rci", "referenceDependentsToIgnore", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertyDeleteFailureDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in derived_dependents_to_delete (list) - _items = [] - if self.derived_dependents_to_delete: - for _item_derived_dependents_to_delete in self.derived_dependents_to_delete: - if _item_derived_dependents_to_delete: - _items.append(_item_derived_dependents_to_delete.to_dict()) - _dict['derivedDependentsToDelete'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in reference_dependents_to_ignore (list) - _items = [] - if self.reference_dependents_to_ignore: - for _item_reference_dependents_to_ignore in self.reference_dependents_to_ignore: - if _item_reference_dependents_to_ignore: - _items.append(_item_reference_dependents_to_ignore.to_dict()) - _dict['referenceDependentsToIgnore'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertyDeleteFailureDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "derivedDependentsToDelete": [DependentDTO.from_dict(_item) for _item in obj["derivedDependentsToDelete"]] if obj.get("derivedDependentsToDelete") is not None else None, - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "message": obj.get("message"), - "projectId": obj.get("projectId"), - "rci": obj.get("rci"), - "referenceDependentsToIgnore": [DependentDTO.from_dict(_item) for _item in obj["referenceDependentsToIgnore"]] if obj.get("referenceDependentsToIgnore") is not None else None, - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_delete_success_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/property_delete_success_dto.py deleted file mode 100644 index d04bf43f50..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_delete_success_dto.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.dependent_dto import DependentDTO -from typing import Optional, Set -from typing_extensions import Self - -class PropertyDeleteSuccessDTO(BaseModel): - """ - Details about a successful property deletion. - """ # noqa: E501 - derived_dependents_deleted: Optional[List[DependentDTO]] = Field(default=None, description="The derived dependents that were deleted along with the property.", alias="derivedDependentsDeleted") - display_name: Optional[StrictStr] = Field(default=None, description="The display name of the property.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the property.") - project_id: Optional[StrictStr] = Field(default=None, description="The project in which the property was deleted.", alias="projectId") - reference_dependents_ignored: Optional[List[DependentDTO]] = Field(default=None, description="Dependents that reference the property and were ignored during deletion.", alias="referenceDependentsIgnored") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant in which the property was deleted.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["derivedDependentsDeleted", "displayName", "id", "projectId", "referenceDependentsIgnored", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertyDeleteSuccessDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in derived_dependents_deleted (list) - _items = [] - if self.derived_dependents_deleted: - for _item_derived_dependents_deleted in self.derived_dependents_deleted: - if _item_derived_dependents_deleted: - _items.append(_item_derived_dependents_deleted.to_dict()) - _dict['derivedDependentsDeleted'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in reference_dependents_ignored (list) - _items = [] - if self.reference_dependents_ignored: - for _item_reference_dependents_ignored in self.reference_dependents_ignored: - if _item_reference_dependents_ignored: - _items.append(_item_reference_dependents_ignored.to_dict()) - _dict['referenceDependentsIgnored'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertyDeleteSuccessDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "derivedDependentsDeleted": [DependentDTO.from_dict(_item) for _item in obj["derivedDependentsDeleted"]] if obj.get("derivedDependentsDeleted") is not None else None, - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "projectId": obj.get("projectId"), - "referenceDependentsIgnored": [DependentDTO.from_dict(_item) for _item in obj["referenceDependentsIgnored"]] if obj.get("referenceDependentsIgnored") is not None else None, - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/property_dto.py deleted file mode 100644 index 4e567bc0e8..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_dto.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.parameter_definition_dto import ParameterDefinitionDTO -from visier_api_analytic_model.models.tag_map_element_dto import TagMapElementDTO -from typing import Optional, Set -from typing_extensions import Self - -class PropertyDTO(BaseModel): - """ - Properties are qualities of an analytic object. - """ # noqa: E501 - data_type: Optional[StrictStr] = Field(default=None, description="The data type of the property, such as Categorical, HourDuration, or Ratio.", alias="dataType") - description: Optional[StrictStr] = Field(default=None, description="The localized description of the property.") - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the property.", alias="displayName") - explanation: Optional[StrictStr] = Field(default=None, description="The localized explanation of the property.") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the property. **Note:** See `Properties` to get the ID.") - parameters: Optional[List[ParameterDefinitionDTO]] = Field(default=None, description="The collection of parameters defined for the property.") - primitive_data_type: Optional[StrictStr] = Field(default=None, description="The primitive data type of the property, such as Number, String, or Boolean.", alias="primitiveDataType") - tags: Optional[List[TagMapElementDTO]] = Field(default=None, description="The optional collection of tags defined for this element.") - __properties: ClassVar[List[str]] = ["dataType", "description", "displayName", "explanation", "id", "parameters", "primitiveDataType", "tags"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertyDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in parameters (list) - _items = [] - if self.parameters: - for _item_parameters in self.parameters: - if _item_parameters: - _items.append(_item_parameters.to_dict()) - _dict['parameters'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item_tags in self.tags: - if _item_tags: - _items.append(_item_tags.to_dict()) - _dict['tags'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertyDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataType": obj.get("dataType"), - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "explanation": obj.get("explanation"), - "id": obj.get("id"), - "parameters": [ParameterDefinitionDTO.from_dict(_item) for _item in obj["parameters"]] if obj.get("parameters") is not None else None, - "primitiveDataType": obj.get("primitiveDataType"), - "tags": [TagMapElementDTO.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_reference_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/property_reference_dto.py deleted file mode 100644 index af641cf631..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_reference_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PropertyReferenceDTO(BaseModel): - """ - The name and qualifying path of a property to query. - """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, description="The ID of the property. See `Properties` to get the ID.") - qualifying_path: Optional[StrictStr] = Field(default=None, description="The qualifying path to the property in Visier, such as the analytic object or event the property is associated with. If the path has multiple objects, each object is separated by a period.", alias="qualifyingPath") - __properties: ClassVar[List[str]] = ["name", "qualifyingPath"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertyReferenceDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertyReferenceDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "qualifyingPath": obj.get("qualifyingPath") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_type_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/property_type_dto.py deleted file mode 100644 index 3caf1a3f1d..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/property_type_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.calculated_property_type_dto import CalculatedPropertyTypeDTO -from visier_api_analytic_model.models.simple_property_type_dto import SimplePropertyTypeDTO -from typing import Optional, Set -from typing_extensions import Self - -class PropertyTypeDTO(BaseModel): - """ - PropertyTypeDTO - """ # noqa: E501 - calculated: Optional[CalculatedPropertyTypeDTO] = Field(default=None, description="The calculated property type, which derives its value using a formula.") - simple: Optional[SimplePropertyTypeDTO] = Field(default=None, description="The simple property type, which provides a single value directly from the data.") - __properties: ClassVar[List[str]] = ["calculated", "simple"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertyTypeDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of calculated - if self.calculated: - _dict['calculated'] = self.calculated.to_dict() - # override the default output from pydantic by calling `to_dict()` of simple - if self.simple: - _dict['simple'] = self.simple.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertyTypeDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "calculated": CalculatedPropertyTypeDTO.from_dict(obj["calculated"]) if obj.get("calculated") is not None else None, - "simple": SimplePropertyTypeDTO.from_dict(obj["simple"]) if obj.get("simple") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/scenario_info_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/scenario_info_dto.py deleted file mode 100644 index a287d143a5..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/scenario_info_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ScenarioInfoDTO(BaseModel): - """ - Information about a plan's scenario. - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="The full display name of the scenario.", alias="displayName") - uuid: Optional[StrictStr] = Field(default=None, description="The UUID of the scenario.") - versioned_scenario_id: Optional[StrictStr] = Field(default=None, description="If the scenario belongs to a managed plan, the response returns the scenario's user-readable symbol name.", alias="versionedScenarioId") - __properties: ClassVar[List[str]] = ["displayName", "uuid", "versionedScenarioId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ScenarioInfoDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ScenarioInfoDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "uuid": obj.get("uuid"), - "versionedScenarioId": obj.get("versionedScenarioId") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/scenario_or_snapshot_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/scenario_or_snapshot_dto.py deleted file mode 100644 index d67bf2f1de..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/scenario_or_snapshot_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ScenarioOrSnapshotDTO(BaseModel): - """ - The unique identifier and display name for plan scenarios and snapshots. - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="The scenario or snapshot display name.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The identifier of the scenario or snapshot.") - __properties: ClassVar[List[str]] = ["displayName", "id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ScenarioOrSnapshotDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ScenarioOrSnapshotDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "id": obj.get("id") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/selection_concept_configuration_map_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/selection_concept_configuration_map_dto.py deleted file mode 100644 index d1a531d956..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/selection_concept_configuration_map_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.analytic_object_filter_dto import AnalyticObjectFilterDTO -from typing import Optional, Set -from typing_extensions import Self - -class SelectionConceptConfigurationMapDTO(BaseModel): - """ - SelectionConceptConfigurationMapDTO - """ # noqa: E501 - analytic_object_filters_to_map: Optional[List[AnalyticObjectFilterDTO]] = Field(default=None, description="A list of analytic object filters indicating the analytic object and dimension members used for the selection concept. Note: If this array is empty, all filters will be removed for the concept.", alias="analyticObjectFiltersToMap") - __properties: ClassVar[List[str]] = ["analyticObjectFiltersToMap"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SelectionConceptConfigurationMapDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in analytic_object_filters_to_map (list) - _items = [] - if self.analytic_object_filters_to_map: - for _item_analytic_object_filters_to_map in self.analytic_object_filters_to_map: - if _item_analytic_object_filters_to_map: - _items.append(_item_analytic_object_filters_to_map.to_dict()) - _dict['analyticObjectFiltersToMap'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SelectionConceptConfigurationMapDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObjectFiltersToMap": [AnalyticObjectFilterDTO.from_dict(_item) for _item in obj["analyticObjectFiltersToMap"]] if obj.get("analyticObjectFiltersToMap") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/selection_concept_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/selection_concept_dto.py deleted file mode 100644 index 60aab49da7..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/selection_concept_dto.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.tag_map_element_dto import TagMapElementDTO -from typing import Optional, Set -from typing_extensions import Self - -class SelectionConceptDTO(BaseModel): - """ - Selection concepts select a population of subject members of a given subject or event. - """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="The localized description of the selection concept.") - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the selection concept.", alias="displayName") - explanation: Optional[StrictStr] = Field(default=None, description="The localized explanation of the selection concept.") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the selection concept Note: See `SelectionConcepts` to get the ID.") - tags: Optional[List[TagMapElementDTO]] = Field(default=None, description="The optional collection of tags defined for this element.") - visible_in_app: Optional[StrictBool] = Field(default=None, description="`true` if this selection concept is set to be visible in your solution.", alias="visibleInApp") - __properties: ClassVar[List[str]] = ["description", "displayName", "explanation", "id", "tags", "visibleInApp"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SelectionConceptDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item_tags in self.tags: - if _item_tags: - _items.append(_item_tags.to_dict()) - _dict['tags'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SelectionConceptDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "explanation": obj.get("explanation"), - "id": obj.get("id"), - "tags": [TagMapElementDTO.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None, - "visibleInApp": obj.get("visibleInApp") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/selection_concept_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/selection_concept_list_dto.py deleted file mode 100644 index 427d02ddee..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/selection_concept_list_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.selection_concept_dto import SelectionConceptDTO -from typing import Optional, Set -from typing_extensions import Self - -class SelectionConceptListDTO(BaseModel): - """ - SelectionConceptListDTO - """ # noqa: E501 - concepts: Optional[List[SelectionConceptDTO]] = Field(default=None, description="A list of objects representing selection concepts.") - __properties: ClassVar[List[str]] = ["concepts"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SelectionConceptListDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in concepts (list) - _items = [] - if self.concepts: - for _item_concepts in self.concepts: - if _item_concepts: - _items.append(_item_concepts.to_dict()) - _dict['concepts'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SelectionConceptListDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "concepts": [SelectionConceptDTO.from_dict(_item) for _item in obj["concepts"]] if obj.get("concepts") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/selection_concepts_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/selection_concepts_dto.py deleted file mode 100644 index 8049fed03e..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/selection_concepts_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_analytic_model.models.selection_concept_dto import SelectionConceptDTO -from typing import Optional, Set -from typing_extensions import Self - -class SelectionConceptsDTO(BaseModel): - """ - A collection of selection concepts - """ # noqa: E501 - selection_concepts: Optional[List[SelectionConceptDTO]] = Field(default=None, alias="selectionConcepts") - __properties: ClassVar[List[str]] = ["selectionConcepts"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SelectionConceptsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in selection_concepts (list) - _items = [] - if self.selection_concepts: - for _item_selection_concepts in self.selection_concepts: - if _item_selection_concepts: - _items.append(_item_selection_concepts.to_dict()) - _dict['selectionConcepts'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SelectionConceptsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "selectionConcepts": [SelectionConceptDTO.from_dict(_item) for _item in obj["selectionConcepts"]] if obj.get("selectionConcepts") is not None else None - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_calculated_property_type_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_calculated_property_type_dto.py new file mode 100644 index 0000000000..0ec186033d --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_calculated_property_type_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO(BaseModel): + """ + ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO + """ # noqa: E501 + data_type: Optional[StrictStr] = Field(default=None, description="The data type of the property, such as Categorical, HourDuration, or Ratio.", alias="dataType") + formula: Optional[StrictStr] = Field(default=None, description="The formula used to calculate the property's value, written in Visier Formula Language.") + __properties: ClassVar[List[str]] = ["dataType", "formula"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataType": obj.get("dataType"), + "formula": obj.get("formula") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dependent_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dependent_dto.py new file mode 100644 index 0000000000..62938b9ba1 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dependent_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationDependentDTO(BaseModel): + """ + Details about a dependent object related to the property to delete. + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the dependent object.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the dependent object.") + object_type: Optional[StrictStr] = Field(default=None, description="The type of dependent object, such as a property or parameter.", alias="objectType") + __properties: ClassVar[List[str]] = ["displayName", "id", "objectType"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationDependentDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationDependentDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "objectType": obj.get("objectType") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dimension_change_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dimension_change_definition_dto.py new file mode 100644 index 0000000000..fd4634456f --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dimension_change_definition_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO(BaseModel): + """ + ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="A short description of the dimension. Descriptions provide in-context help for your users while working in Visier.") + display_name: Optional[StrictStr] = Field(default=None, description="The user-friendly name for the dimension.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The symbol name of the dimension; for example, `Career_Level` or `Employee.Vaccination_Status`") + short_display_name: Optional[StrictStr] = Field(default=None, description="A shortened version of the display name. If the dimension is visible in the solution experience, this name is displayed in visualization titles.", alias="shortDisplayName") + __properties: ClassVar[List[str]] = ["description", "displayName", "id", "shortDisplayName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "shortDisplayName": obj.get("shortDisplayName") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dimension_change_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dimension_change_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..108c5a9769 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dimension_change_definitions_by_tenant_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dimension_change_definition_dto import ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO(BaseModel): + """ + ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO + """ # noqa: E501 + dimensions: Optional[List[ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO]] = Field(default=None, description="The list of dimensions to update.") + project_id: Optional[StrictStr] = Field(default=None, description="To make changes in a project, specify a project ID.", alias="projectId") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the tenant in which to update dimensions.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["dimensions", "projectId", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in dimensions (list) + _items = [] + if self.dimensions: + for _item_dimensions in self.dimensions: + if _item_dimensions: + _items.append(_item_dimensions.to_dict()) + _dict['dimensions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensions": [ServicingPublicapiObjectconfigurationDimensionChangeDefinitionDTO.from_dict(_item) for _item in obj["dimensions"]] if obj.get("dimensions") is not None else None, + "projectId": obj.get("projectId"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto.py new file mode 100644 index 0000000000..36b3c876af --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dimension_change_definitions_by_tenant_dto import ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO(BaseModel): + """ + ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO + """ # noqa: E501 + dimensions_by_tenant: Optional[List[ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO]] = Field(default=None, description="The dimension updates to make in each tenant.", alias="dimensionsByTenant") + __properties: ClassVar[List[str]] = ["dimensionsByTenant"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in dimensions_by_tenant (list) + _items = [] + if self.dimensions_by_tenant: + for _item_dimensions_by_tenant in self.dimensions_by_tenant: + if _item_dimensions_by_tenant: + _items.append(_item_dimensions_by_tenant.to_dict()) + _dict['dimensionsByTenant'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensionsByTenant": [ServicingPublicapiObjectconfigurationDimensionChangeDefinitionsByTenantDTO.from_dict(_item) for _item in obj["dimensionsByTenant"]] if obj.get("dimensionsByTenant") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_object_change_failure_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_object_change_failure_dto.py new file mode 100644 index 0000000000..d695883bcb --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_object_change_failure_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationObjectChangeFailureDTO(BaseModel): + """ + ServicingPublicapiObjectconfigurationObjectChangeFailureDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the object.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The symbol name of the object that was not successfully changed.") + message: Optional[StrictStr] = Field(default=None, description="An error message describing the cause of the failure.") + project_id: Optional[StrictStr] = Field(default=None, description="The project that the object was not successfully changed in.", alias="projectId") + rci: Optional[StrictStr] = Field(default=None, description="The root cause identifier to provide to Visier Technical Support if you require further troubleshooting.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant that the object was not successfully changed in.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["displayName", "id", "message", "projectId", "rci", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationObjectChangeFailureDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationObjectChangeFailureDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "message": obj.get("message"), + "projectId": obj.get("projectId"), + "rci": obj.get("rci"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_object_change_success_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_object_change_success_dto.py new file mode 100644 index 0000000000..f28b71fd7a --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_object_change_success_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO(BaseModel): + """ + ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the object.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The symbol name of the object that was successfully changed.") + project_id: Optional[StrictStr] = Field(default=None, description="The project that the object was changed in.", alias="projectId") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant that the object was changed in.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["displayName", "id", "projectId", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "projectId": obj.get("projectId"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_objects_bulk_change_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_objects_bulk_change_response_dto.py new file mode 100644 index 0000000000..66a32f77d2 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_objects_bulk_change_response_dto.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_object_change_failure_dto import ServicingPublicapiObjectconfigurationObjectChangeFailureDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_object_change_success_dto import ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO(BaseModel): + """ + ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO + """ # noqa: E501 + failures: Optional[List[ServicingPublicapiObjectconfigurationObjectChangeFailureDTO]] = Field(default=None, description="The objects that were not successfully changed.") + successes: Optional[List[ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO]] = Field(default=None, description="The objects that were successfully changed.") + __properties: ClassVar[List[str]] = ["failures", "successes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in failures (list) + _items = [] + if self.failures: + for _item_failures in self.failures: + if _item_failures: + _items.append(_item_failures.to_dict()) + _dict['failures'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in successes (list) + _items = [] + if self.successes: + for _item_successes in self.successes: + if _item_successes: + _items.append(_item_successes.to_dict()) + _dict['successes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [ServicingPublicapiObjectconfigurationObjectChangeFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [ServicingPublicapiObjectconfigurationObjectChangeSuccessDTO.from_dict(_item) for _item in obj["successes"]] if obj.get("successes") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_properties_change_definitions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_properties_change_definitions_dto.py new file mode 100644 index 0000000000..7db5f6e704 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_properties_change_definitions_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_change_definitions_by_tenant_dto import ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO(BaseModel): + """ + ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO + """ # noqa: E501 + properties_by_tenant: Optional[List[ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO]] = Field(default=None, description="The property updates to make in each tenant.", alias="propertiesByTenant") + __properties: ClassVar[List[str]] = ["propertiesByTenant"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in properties_by_tenant (list) + _items = [] + if self.properties_by_tenant: + for _item_properties_by_tenant in self.properties_by_tenant: + if _item_properties_by_tenant: + _items.append(_item_properties_by_tenant.to_dict()) + _dict['propertiesByTenant'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertiesByTenant": [ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO.from_dict(_item) for _item in obj["propertiesByTenant"]] if obj.get("propertiesByTenant") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_properties_delete_definitions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_properties_delete_definitions_dto.py new file mode 100644 index 0000000000..d1cbe683b1 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_properties_delete_definitions_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_delete_definitions_by_tenant_dto import ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO(BaseModel): + """ + Property deletion options. + """ # noqa: E501 + delete_derived_properties: Optional[StrictBool] = Field(default=None, description="If `true`, deletes derived properties along with the properties to delete. Default is `false`.", alias="deleteDerivedProperties") + ignore_property_references: Optional[StrictBool] = Field(default=None, description="If `true`, ignores properties that reference the properties to delete. Default is `false`.", alias="ignorePropertyReferences") + properties_by_tenant: Optional[List[ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO]] = Field(default=None, description="The properties to delete for each tenant.", alias="propertiesByTenant") + __properties: ClassVar[List[str]] = ["deleteDerivedProperties", "ignorePropertyReferences", "propertiesByTenant"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in properties_by_tenant (list) + _items = [] + if self.properties_by_tenant: + for _item_properties_by_tenant in self.properties_by_tenant: + if _item_properties_by_tenant: + _items.append(_item_properties_by_tenant.to_dict()) + _dict['propertiesByTenant'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "deleteDerivedProperties": obj.get("deleteDerivedProperties"), + "ignorePropertyReferences": obj.get("ignorePropertyReferences"), + "propertiesByTenant": [ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO.from_dict(_item) for _item in obj["propertiesByTenant"]] if obj.get("propertiesByTenant") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_bulk_delete_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_bulk_delete_response_dto.py new file mode 100644 index 0000000000..1074f54ce0 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_bulk_delete_response_dto.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_delete_failure_dto import ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_delete_success_dto import ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO(BaseModel): + """ + Results of a bulk delete operation. + """ # noqa: E501 + failures: Optional[List[ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO]] = Field(default=None, description="Properties that were not successfully deleted.") + successes: Optional[List[ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO]] = Field(default=None, description="Properties that were successfully deleted.") + __properties: ClassVar[List[str]] = ["failures", "successes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in failures (list) + _items = [] + if self.failures: + for _item_failures in self.failures: + if _item_failures: + _items.append(_item_failures.to_dict()) + _dict['failures'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in successes (list) + _items = [] + if self.successes: + for _item_successes in self.successes: + if _item_successes: + _items.append(_item_successes.to_dict()) + _dict['successes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO.from_dict(_item) for _item in obj["successes"]] if obj.get("successes") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_change_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_change_definition_dto.py new file mode 100644 index 0000000000..263c001bce --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_change_definition_dto.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_type_dto import ServicingPublicapiObjectconfigurationPropertyTypeDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_tags_dto import ServicingPublicapiObjectconfigurationTagsDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO(BaseModel): + """ + ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="A short description of the property. Descriptions provide in-context help for your users while working in Visier.") + designer_notes: Optional[StrictStr] = Field(default=None, description="Notes for the designer. This field is used to provide additional information about the property.", alias="designerNotes") + display_name: Optional[StrictStr] = Field(default=None, description="The user-friendly name for the property.", alias="displayName") + explanation: Optional[StrictStr] = Field(default=None, description="Explanation of the property. This field is used to provide additional information about the property.") + id: Optional[StrictStr] = Field(default=None, description="The symbol name of the property; for example, Employee.Birth_Date") + include_with_vee: Optional[StrictBool] = Field(default=None, description="If 'true', the property is included with Vee.", alias="includeWithVee") + short_display_name: Optional[StrictStr] = Field(default=None, description="A shortened version of the display name. If the property is visible in the solution experience, this name is displayed in visualization titles.", alias="shortDisplayName") + tags: Optional[ServicingPublicapiObjectconfigurationTagsDTO] = Field(default=None, description="The tags associated with the property.") + type: Optional[ServicingPublicapiObjectconfigurationPropertyTypeDTO] = Field(default=None, description="The type of the property.") + __properties: ClassVar[List[str]] = ["description", "designerNotes", "displayName", "explanation", "id", "includeWithVee", "shortDisplayName", "tags", "type"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of tags + if self.tags: + _dict['tags'] = self.tags.to_dict() + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "designerNotes": obj.get("designerNotes"), + "displayName": obj.get("displayName"), + "explanation": obj.get("explanation"), + "id": obj.get("id"), + "includeWithVee": obj.get("includeWithVee"), + "shortDisplayName": obj.get("shortDisplayName"), + "tags": ServicingPublicapiObjectconfigurationTagsDTO.from_dict(obj["tags"]) if obj.get("tags") is not None else None, + "type": ServicingPublicapiObjectconfigurationPropertyTypeDTO.from_dict(obj["type"]) if obj.get("type") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_change_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_change_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..64e1b7ef0a --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_change_definitions_by_tenant_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_property_change_definition_dto import ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO(BaseModel): + """ + ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO + """ # noqa: E501 + project_id: Optional[StrictStr] = Field(default=None, description="To make changes in a project, specify a project ID.", alias="projectId") + properties: Optional[List[ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO]] = Field(default=None, description="The list of properties to update.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the tenant in which to update properties.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["projectId", "properties", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in properties (list) + _items = [] + if self.properties: + for _item_properties in self.properties: + if _item_properties: + _items.append(_item_properties.to_dict()) + _dict['properties'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertyChangeDefinitionsByTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "projectId": obj.get("projectId"), + "properties": [ServicingPublicapiObjectconfigurationPropertyChangeDefinitionDTO.from_dict(_item) for _item in obj["properties"]] if obj.get("properties") is not None else None, + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_delete_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_delete_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..b1c5a48e04 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_delete_definitions_by_tenant_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO(BaseModel): + """ + The properties to delete for a specific tenant. + """ # noqa: E501 + project_id: Optional[StrictStr] = Field(default=None, description="The project in which to delete properties. If omitted and the ProjectID request header is not defined, the change is published to production immediately.", alias="projectId") + property_ids: Optional[List[StrictStr]] = Field(default=None, description="The IDs of the properties to delete.", alias="propertyIds") + tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant to delete properties from. Default is the current tenant.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["projectId", "propertyIds", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertyDeleteDefinitionsByTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "projectId": obj.get("projectId"), + "propertyIds": obj.get("propertyIds"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_delete_failure_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_delete_failure_dto.py new file mode 100644 index 0000000000..1353fc4305 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_delete_failure_dto.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dependent_dto import ServicingPublicapiObjectconfigurationDependentDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO(BaseModel): + """ + Details about a failed property deletion. + """ # noqa: E501 + derived_dependents_to_delete: Optional[List[ServicingPublicapiObjectconfigurationDependentDTO]] = Field(default=None, description="The derived dependents that would have been deleted if the deletion was successful.", alias="derivedDependentsToDelete") + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the property.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the property.") + message: Optional[StrictStr] = Field(default=None, description="An error message describing the cause of the failure.") + project_id: Optional[StrictStr] = Field(default=None, description="The project in which the property wasn't deleted.", alias="projectId") + rci: Optional[StrictStr] = Field(default=None, description="The root cause identifier to provide to Visier Technical Support if you require further troubleshooting.") + reference_dependents_to_ignore: Optional[List[ServicingPublicapiObjectconfigurationDependentDTO]] = Field(default=None, description="Dependents that reference this property and could be affected.", alias="referenceDependentsToIgnore") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant in which the property wasn't deleted.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["derivedDependentsToDelete", "displayName", "id", "message", "projectId", "rci", "referenceDependentsToIgnore", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in derived_dependents_to_delete (list) + _items = [] + if self.derived_dependents_to_delete: + for _item_derived_dependents_to_delete in self.derived_dependents_to_delete: + if _item_derived_dependents_to_delete: + _items.append(_item_derived_dependents_to_delete.to_dict()) + _dict['derivedDependentsToDelete'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in reference_dependents_to_ignore (list) + _items = [] + if self.reference_dependents_to_ignore: + for _item_reference_dependents_to_ignore in self.reference_dependents_to_ignore: + if _item_reference_dependents_to_ignore: + _items.append(_item_reference_dependents_to_ignore.to_dict()) + _dict['referenceDependentsToIgnore'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertyDeleteFailureDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "derivedDependentsToDelete": [ServicingPublicapiObjectconfigurationDependentDTO.from_dict(_item) for _item in obj["derivedDependentsToDelete"]] if obj.get("derivedDependentsToDelete") is not None else None, + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "message": obj.get("message"), + "projectId": obj.get("projectId"), + "rci": obj.get("rci"), + "referenceDependentsToIgnore": [ServicingPublicapiObjectconfigurationDependentDTO.from_dict(_item) for _item in obj["referenceDependentsToIgnore"]] if obj.get("referenceDependentsToIgnore") is not None else None, + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_delete_success_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_delete_success_dto.py new file mode 100644 index 0000000000..d949e273f9 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_delete_success_dto.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_dependent_dto import ServicingPublicapiObjectconfigurationDependentDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO(BaseModel): + """ + Details about a successful property deletion. + """ # noqa: E501 + derived_dependents_deleted: Optional[List[ServicingPublicapiObjectconfigurationDependentDTO]] = Field(default=None, description="The derived dependents that were deleted along with the property.", alias="derivedDependentsDeleted") + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the property.", alias="displayName") + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the property.") + project_id: Optional[StrictStr] = Field(default=None, description="The project in which the property was deleted.", alias="projectId") + reference_dependents_ignored: Optional[List[ServicingPublicapiObjectconfigurationDependentDTO]] = Field(default=None, description="Dependents that reference the property and were ignored during deletion.", alias="referenceDependentsIgnored") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant in which the property was deleted.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["derivedDependentsDeleted", "displayName", "id", "projectId", "referenceDependentsIgnored", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in derived_dependents_deleted (list) + _items = [] + if self.derived_dependents_deleted: + for _item_derived_dependents_deleted in self.derived_dependents_deleted: + if _item_derived_dependents_deleted: + _items.append(_item_derived_dependents_deleted.to_dict()) + _dict['derivedDependentsDeleted'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in reference_dependents_ignored (list) + _items = [] + if self.reference_dependents_ignored: + for _item_reference_dependents_ignored in self.reference_dependents_ignored: + if _item_reference_dependents_ignored: + _items.append(_item_reference_dependents_ignored.to_dict()) + _dict['referenceDependentsIgnored'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertyDeleteSuccessDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "derivedDependentsDeleted": [ServicingPublicapiObjectconfigurationDependentDTO.from_dict(_item) for _item in obj["derivedDependentsDeleted"]] if obj.get("derivedDependentsDeleted") is not None else None, + "displayName": obj.get("displayName"), + "id": obj.get("id"), + "projectId": obj.get("projectId"), + "referenceDependentsIgnored": [ServicingPublicapiObjectconfigurationDependentDTO.from_dict(_item) for _item in obj["referenceDependentsIgnored"]] if obj.get("referenceDependentsIgnored") is not None else None, + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_type_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_type_dto.py new file mode 100644 index 0000000000..c47edc4951 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_property_type_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_calculated_property_type_dto import ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO +from visier_api_analytic_model.models.servicing_publicapi_objectconfiguration_simple_property_type_dto import ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationPropertyTypeDTO(BaseModel): + """ + ServicingPublicapiObjectconfigurationPropertyTypeDTO + """ # noqa: E501 + calculated: Optional[ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO] = Field(default=None, description="The calculated property type, which derives its value using a formula.") + simple: Optional[ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO] = Field(default=None, description="The simple property type, which provides a single value directly from the data.") + __properties: ClassVar[List[str]] = ["calculated", "simple"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertyTypeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of calculated + if self.calculated: + _dict['calculated'] = self.calculated.to_dict() + # override the default output from pydantic by calling `to_dict()` of simple + if self.simple: + _dict['simple'] = self.simple.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationPropertyTypeDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "calculated": ServicingPublicapiObjectconfigurationCalculatedPropertyTypeDTO.from_dict(obj["calculated"]) if obj.get("calculated") is not None else None, + "simple": ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO.from_dict(obj["simple"]) if obj.get("simple") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_simple_property_type_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_simple_property_type_dto.py new file mode 100644 index 0000000000..d4a4355951 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_simple_property_type_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO(BaseModel): + """ + ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO + """ # noqa: E501 + data_type: Optional[StrictStr] = Field(default=None, description="The data type of the property, such as Categorical, HourDuration, or Ratio.", alias="dataType") + __properties: ClassVar[List[str]] = ["dataType"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationSimplePropertyTypeDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataType": obj.get("dataType") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_tags_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_tags_dto.py new file mode 100644 index 0000000000..c73fb606c1 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_tags_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiObjectconfigurationTagsDTO(BaseModel): + """ + Wrapper to distinguish between an empty list and a null/unset list. + """ # noqa: E501 + ids: Optional[List[StrictStr]] = Field(default=None, description="The tag ids.") + __properties: ClassVar[List[str]] = ["ids"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationTagsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiObjectconfigurationTagsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ids": obj.get("ids") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/simple_property_type_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/simple_property_type_dto.py deleted file mode 100644 index 0d83f12763..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/simple_property_type_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SimplePropertyTypeDTO(BaseModel): - """ - SimplePropertyTypeDTO - """ # noqa: E501 - data_type: Optional[StrictStr] = Field(default=None, description="The data type of the property, such as Categorical, HourDuration, or Ratio.", alias="dataType") - __properties: ClassVar[List[str]] = ["dataType"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SimplePropertyTypeDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SimplePropertyTypeDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataType": obj.get("dataType") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/status.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/status.py index 041df03de5..715c6938a2 100644 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/status.py +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/status.py @@ -5,7 +5,7 @@ Visier APIs for retrieving and configuring your analytic model in Visier. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -19,7 +19,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -28,10 +28,12 @@ class Status(BaseModel): """ The response structure for errors. """ # noqa: E501 - error_code: Optional[StrictStr] = Field(default=None, description="Error classification.", alias="errorCode") - message: Optional[StrictStr] = Field(default=None, description="Error message describing the root cause of the error.") + code: Optional[StrictStr] = Field(default=None, description="Error classification.") + localized_message: Optional[StrictStr] = Field(default=None, description="Localized error message describing the root cause of the error.", alias="localizedMessage") + message: Optional[StrictStr] = Field(default=None, description="Not used.") rci: Optional[StrictStr] = Field(default=None, description="Optional root cause identifier.") - __properties: ClassVar[List[str]] = ["errorCode", "message", "rci"] + user_error: Optional[StrictBool] = Field(default=None, description="Indicates whether the error is a user error.", alias="userError") + __properties: ClassVar[List[str]] = ["code", "localizedMessage", "message", "rci", "userError"] model_config = ConfigDict( populate_by_name=True, @@ -84,9 +86,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "errorCode": obj.get("errorCode"), + "code": obj.get("code"), + "localizedMessage": obj.get("localizedMessage"), "message": obj.get("message"), - "rci": obj.get("rci") + "rci": obj.get("rci"), + "userError": obj.get("userError") }) return _obj diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/tag_map_element_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/tag_map_element_dto.py deleted file mode 100644 index 0bbad9d9d4..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/tag_map_element_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class TagMapElementDTO(BaseModel): - """ - Tag identifier and display name pair. - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="The localized display name of the tag.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the tag.") - __properties: ClassVar[List[str]] = ["displayName", "id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TagMapElementDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TagMapElementDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "id": obj.get("id") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/tags_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/tags_dto.py deleted file mode 100644 index 15ac1738f6..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/tags_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class TagsDTO(BaseModel): - """ - Wrapper to distinguish between an empty list and a null/unset list. - """ # noqa: E501 - ids: Optional[List[StrictStr]] = Field(default=None, description="The tag ids.") - __properties: ClassVar[List[str]] = ["ids"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TagsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TagsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "ids": obj.get("ids") - }) - return _obj - - diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/validity_range_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/validity_range_dto.py deleted file mode 100644 index 2bab0af1b5..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/validity_range_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Analytic Model APIs - - Visier APIs for retrieving and configuring your analytic model in Visier. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ValidityRangeDTO(BaseModel): - """ - A pair of values that represent the time interval to which the data is valid. The validity range is defined in Unix epoch format and UTC timezone. Note: Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers. - """ # noqa: E501 - end: Optional[StrictStr] = Field(default=None, description="The date from which data is no longer available. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string.") - start: Optional[StrictStr] = Field(default=None, description="The date from which data becomes available. Note: Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string.") - __properties: ClassVar[List[str]] = ["end", "start"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ValidityRangeDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ValidityRangeDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "end": obj.get("end"), - "start": obj.get("start") - }) - return _obj - - diff --git a/src/visier_api_core/pyproject.toml b/src/visier_api_core/pyproject.toml index e77ae3c467..5d7aafb0ec 100644 --- a/src/visier_api_core/pyproject.toml +++ b/src/visier_api_core/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "visier_api_core" -version = "0.99201.1772" +version = "0.99201.1793" description = "Visier Authentication APIs" authors = ["Visier "] license = "Apache License, Version 2.0" diff --git a/src/visier_api_core/setup.py b/src/visier_api_core/setup.py index f940979cc4..e5bd630109 100644 --- a/src/visier_api_core/setup.py +++ b/src/visier_api_core/setup.py @@ -5,7 +5,7 @@ Visier APIs for authenticating with Visier. To use Visier's public APIs, you must first authenticate yourself as a Visier user who is allowed to use Visier APIs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,7 +23,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "visier-api-core" -VERSION = "0.99201.1772" +VERSION = "0.99201.1793" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", diff --git a/src/visier_api_core/visier_api_core/__init__.py b/src/visier_api_core/visier_api_core/__init__.py index 48b655b635..c7570e6341 100644 --- a/src/visier_api_core/visier_api_core/__init__.py +++ b/src/visier_api_core/visier_api_core/__init__.py @@ -7,7 +7,7 @@ Visier APIs for authenticating with Visier. To use Visier's public APIs, you must first authenticate yourself as a Visier user who is allowed to use Visier APIs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,7 +16,7 @@ """ # noqa: E501 -__version__ = "0.99201.1772" +__version__ = "0.99201.1793" # import ApiClient from visier_api_core.api_response import ApiResponse diff --git a/src/visier_api_core/visier_api_core/api_client.py b/src/visier_api_core/visier_api_core/api_client.py index 7b5e563192..63ab77ce33 100644 --- a/src/visier_api_core/visier_api_core/api_client.py +++ b/src/visier_api_core/visier_api_core/api_client.py @@ -5,7 +5,7 @@ Visier APIs for authenticating with Visier. To use Visier's public APIs, you must first authenticate yourself as a Visier user who is allowed to use Visier APIs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -88,7 +88,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Visier-SDK/0.99201.1772/python' + self.user_agent = 'Visier-SDK/0.99201.1793/python' self.client_side_validation = configuration.client_side_validation self.auth_retries = auth_retries diff --git a/src/visier_api_core/visier_api_core/configuration.py b/src/visier_api_core/visier_api_core/configuration.py index 9e72ac43fd..e35de3e5ad 100644 --- a/src/visier_api_core/visier_api_core/configuration.py +++ b/src/visier_api_core/visier_api_core/configuration.py @@ -5,7 +5,7 @@ Visier APIs for authenticating with Visier. To use Visier's public APIs, you must first authenticate yourself as a Visier user who is allowed to use Visier APIs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -478,8 +478,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 22222222.99201.1772\n"\ - "SDK Package Version: 0.99201.1772".\ + "Version of the API: 22222222.99201.1793\n"\ + "SDK Package Version: 0.99201.1793".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/src/visier_api_core/visier_api_core/exceptions.py b/src/visier_api_core/visier_api_core/exceptions.py index 044926a6d3..de7763798d 100644 --- a/src/visier_api_core/visier_api_core/exceptions.py +++ b/src/visier_api_core/visier_api_core/exceptions.py @@ -5,7 +5,7 @@ Visier APIs for authenticating with Visier. To use Visier's public APIs, you must first authenticate yourself as a Visier user who is allowed to use Visier APIs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_core/visier_api_core/rest.py b/src/visier_api_core/visier_api_core/rest.py index eac7aa41a7..2bb9d8826e 100644 --- a/src/visier_api_core/visier_api_core/rest.py +++ b/src/visier_api_core/visier_api_core/rest.py @@ -5,7 +5,7 @@ Visier APIs for authenticating with Visier. To use Visier's public APIs, you must first authenticate yourself as a Visier user who is allowed to use Visier APIs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/.openapi-generator/FILES b/src/visier_api_data_in/.openapi-generator/FILES index c96855f3c8..624e7ad7bc 100644 --- a/src/visier_api_data_in/.openapi-generator/FILES +++ b/src/visier_api_data_in/.openapi-generator/FILES @@ -4,154 +4,152 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_adp_auth_params_dto.py -test/test_assign_connector_credential_request.py -test/test_assign_connector_credentials_by_tenant_response_dto.py -test/test_assign_connector_credentials_response_dto.py -test/test_assign_connector_with_credentials_response_dto.py -test/test_assigned_credential_info_response_dto.py -test/test_bamboo_auth_params_dto.py -test/test_basic_s3_auth_params_dto.py -test/test_big_query_auth_params_dto.py -test/test_big_query_service_account_params_dto.py -test/test_cancel_job_batch_from_job_id_dto.py -test/test_connector.py -test/test_connector_info_response_dto.py -test/test_connector_setting_request_dto.py -test/test_connector_setting_response_dto.py -test/test_connector_settings_response_dto.py -test/test_consolidated_analytics_job_request_dto.py -test/test_copy_s3_auth_params_dto.py -test/test_credential_creation_api_response_dto.py +test/test_admin_data_transfers_import_definition_apidto.py +test/test_admin_data_transfers_import_definitions_apidto.py +test/test_admin_jobs_consolidated_analytics_job_request_dto.py +test/test_admin_jobs_extract_data_and_load_dto.py +test/test_admin_jobs_processing_job_request_dto.py +test/test_admin_transfers_assign_connector_credentials_by_tenant_response_dto.py +test/test_admin_transfers_assign_connector_credentials_response_dto.py +test/test_admin_transfers_assign_connector_with_credentials_response_dto.py +test/test_admin_transfers_assigned_credential_info_response_dto.py +test/test_admin_transfers_connector_info_response_dto.py +test/test_admin_transfers_connector_setting_request_dto.py +test/test_admin_transfers_connector_setting_response_dto.py +test/test_admin_transfers_connector_settings_response_dto.py +test/test_admin_transfers_data_version_and_date_dto.py +test/test_admin_transfers_extractor_setting_apidto.py +test/test_admin_transfers_extractor_setting_key_value_apidto.py +test/test_admin_transfers_extractor_settings_apidto.py +test/test_admin_transfers_multiple_tenant_data_versions_details_dto.py +test/test_admin_transfers_multiple_tenant_data_versions_list_dto.py +test/test_admin_transfers_set_connector_setting_request_dto.py +test/test_admin_transfers_set_connector_setting_response_dto.py +test/test_admin_transfers_set_connector_settings_request_dto.py +test/test_admin_transfers_set_connector_settings_response_dto.py +test/test_admin_transfers_tenant_connector_settings_request_dto.py test/test_data_and_job_handling_api.py -test/test_data_categories_response_dto.py -test/test_data_category_response_dto.py +test/test_data_in_assign_connector_credential_request.py +test/test_data_in_connector.py +test/test_data_in_data_load_request.py +test/test_data_in_data_load_request_model.py +test/test_data_in_data_load_response.py +test/test_data_in_data_transfer_result_detail.py +test/test_data_in_data_version_object.py +test/test_data_in_disable_dv_model.py +test/test_data_in_disable_dv_request.py +test/test_data_in_disable_dv_response.py +test/test_data_in_dispatching_job_status_response.py +test/test_data_in_exclude_data_uploads_request.py +test/test_data_in_extraction_job.py +test/test_data_in_extraction_job_and_status_response.py +test/test_data_in_include_data_uploads_request.py +test/test_data_in_job_status_list_response.py +test/test_data_in_job_status_with_start_time.py +test/test_data_in_processing_job.py +test/test_data_in_processing_job_and_status_response.py +test/test_data_in_processing_job_status_response.py +test/test_data_in_push_data_cancel_response.py +test/test_data_in_push_data_complete_request.py +test/test_data_in_push_data_complete_response.py +test/test_data_in_push_data_response.py +test/test_data_in_receiving_job.py +test/test_data_in_receiving_job_and_status_response.py +test/test_data_in_receiving_job_status_response.py +test/test_data_in_result.py +test/test_data_in_source.py +test/test_data_in_start_extraction_response.py +test/test_data_in_start_transfer_response.py +test/test_data_in_tenant.py +test/test_data_in_tenant_and_credential.py +test/test_data_in_upload_to_exclude.py +test/test_data_in_upload_to_include.py test/test_data_intake_api.py -test/test_data_load_request.py -test/test_data_load_request_model.py -test/test_data_load_response.py -test/test_data_provider_auth_information_dto.py -test/test_data_provider_auth_params_dto.py -test/test_data_provider_basic_information_dto.py -test/test_data_provider_basic_metadata_dto.py -test/test_data_transfer_result_detail.py test/test_data_upload_api.py -test/test_data_version_and_date_dto.py -test/test_data_version_object.py -test/test_dayforce_v2_auth_params_dto.py -test/test_dimensions_auth_params_dto.py +test/test_designer_crypto_key_pair_delete_response_dto.py +test/test_designer_crypto_key_pair_generate_request_dto.py +test/test_designer_crypto_public_key_dto.py +test/test_designer_crypto_public_keys_dto.py +test/test_designer_transfers_adp_auth_params_dto.py +test/test_designer_transfers_bamboo_auth_params_dto.py +test/test_designer_transfers_basic_s3_auth_params_dto.py +test/test_designer_transfers_big_query_auth_params_dto.py +test/test_designer_transfers_big_query_service_account_params_dto.py +test/test_designer_transfers_copy_s3_auth_params_dto.py +test/test_designer_transfers_credential_creation_api_response_dto.py +test/test_designer_transfers_data_provider_auth_information_dto.py +test/test_designer_transfers_data_provider_auth_params_dto.py +test/test_designer_transfers_data_provider_basic_information_dto.py +test/test_designer_transfers_data_provider_basic_metadata_dto.py +test/test_designer_transfers_dayforce_v2_auth_params_dto.py +test/test_designer_transfers_dimensions_auth_params_dto.py +test/test_designer_transfers_extractor_credential_apidto.py +test/test_designer_transfers_extractor_credentials_apidto.py +test/test_designer_transfers_fusion_auth_params_dto.py +test/test_designer_transfers_gong_auth_params_dto.py +test/test_designer_transfers_google_sheets_auth_params_dto.py +test/test_designer_transfers_google_workspace_auth_params_dto.py +test/test_designer_transfers_greenhouse_auth_params_dto.py +test/test_designer_transfers_icims_auth_params_dto.py +test/test_designer_transfers_internal_s3_auth_params_dto.py +test/test_designer_transfers_jdbc_auth_params_dto.py +test/test_designer_transfers_jira_auth_params_dto.py +test/test_designer_transfers_jira_connect_params_dto.py +test/test_designer_transfers_lever_auth_params_dto.py +test/test_designer_transfers_medallia_auth_params_dto.py +test/test_designer_transfers_microsoft365_auth_params_dto.py +test/test_designer_transfers_my_sql_auth_params_dto.py +test/test_designer_transfers_namely_auth_params_dto.py +test/test_designer_transfers_oracle_db_auth_params_dto.py +test/test_designer_transfers_push_data_column_definition_dto.py +test/test_designer_transfers_push_data_source_definition_dto.py +test/test_designer_transfers_push_data_source_definitions_dto.py +test/test_designer_transfers_qualtrics_auth_params_dto.py +test/test_designer_transfers_redshift_auth_params_dto.py +test/test_designer_transfers_salesforce_auth_params_dto.py +test/test_designer_transfers_salesforce_v2_auth_params_dto.py +test/test_designer_transfers_service_now_auth_params_dto.py +test/test_designer_transfers_service_now_v2_auth_params_dto.py +test/test_designer_transfers_slack_auth_params_dto.py +test/test_designer_transfers_snowflake_auth_params_dto.py +test/test_designer_transfers_sql_server_auth_params_dto.py +test/test_designer_transfers_subject_missing_access_dto.py +test/test_designer_transfers_success_factors_auth_params_dto.py +test/test_designer_transfers_success_factors_o_auth_params_dto.py +test/test_designer_transfers_ultimate_auth_params_dto.py +test/test_designer_transfers_willow_auth_params_dto.py +test/test_designer_transfers_workday_auth_params_dto.py +test/test_designer_transfers_workday_o_auth_params_dto.py +test/test_designer_transfers_workday_raas_auth_params_dto.py +test/test_designer_transfers_workday_refresh_token_params_dto.py +test/test_designer_transfers_zoom_auth_params_dto.py test/test_direct_data_intake_api.py -test/test_direct_data_job_config_dto.py -test/test_direct_data_job_status_response_dto.py -test/test_direct_data_load_config_dto.py -test/test_direct_data_schema_dto.py -test/test_direct_data_schema_field_dto.py -test/test_direct_data_transaction_start_response_dto.py test/test_direct_data_upload_file_response_dto.py -test/test_disable_dv_model.py -test/test_disable_dv_request.py -test/test_disable_dv_response.py -test/test_dispatching_job_status_response.py -test/test_exclude_data_uploads_request.py -test/test_extract_data_and_load_dto.py -test/test_extraction_job.py -test/test_extraction_job_and_status_response.py -test/test_extractor_credential_apidto.py -test/test_extractor_credentials_apidto.py -test/test_extractor_setting_apidto.py -test/test_extractor_setting_key_value_apidto.py -test/test_extractor_settings_apidto.py -test/test_fusion_auth_params_dto.py -test/test_gong_auth_params_dto.py -test/test_google_protobuf_any.py -test/test_google_sheets_auth_params_dto.py -test/test_google_workspace_auth_params_dto.py -test/test_greenhouse_auth_params_dto.py -test/test_icims_auth_params_dto.py -test/test_import_definition_apidto.py -test/test_import_definitions_apidto.py -test/test_include_data_uploads_request.py -test/test_internal_s3_auth_params_dto.py -test/test_jdbc_auth_params_dto.py -test/test_jira_auth_params_dto.py -test/test_jira_connect_params_dto.py -test/test_job_cancellation_result_dto.py -test/test_job_cancellation_results_dto.py -test/test_job_id_response.py -test/test_job_status_list_response.py -test/test_job_status_with_start_time.py -test/test_key_pair_delete_response_dto.py -test/test_key_pair_generate_request_dto.py -test/test_lever_auth_params_dto.py -test/test_medallia_auth_params_dto.py -test/test_microsoft365_auth_params_dto.py -test/test_multiple_tenant_data_versions_details_dto.py -test/test_multiple_tenant_data_versions_list_dto.py -test/test_my_sql_auth_params_dto.py -test/test_namely_auth_params_dto.py -test/test_oracle_db_auth_params_dto.py +test/test_dp_transfers_cancel_job_batch_from_job_id_dto.py +test/test_dp_transfers_job_cancellation_result_dto.py +test/test_dp_transfers_job_cancellation_results_dto.py test/test_pgp_key_api.py test/test_plan_data_load_change_dto.py test/test_plan_data_load_change_list_dto.py -test/test_plan_data_load_error_dto.py test/test_plan_data_upload_response_dto.py test/test_plan_row_data_load_response_dto.py -test/test_plan_segment_level_member_dto.py test/test_planning_data_load_api.py -test/test_processing_job.py -test/test_processing_job_and_status_response.py -test/test_processing_job_request_dto.py -test/test_processing_job_status_response.py -test/test_public_key_dto.py -test/test_public_keys_dto.py -test/test_push_data_cancel_response.py -test/test_push_data_column_definition_dto.py -test/test_push_data_complete_request.py -test/test_push_data_complete_response.py -test/test_push_data_response.py -test/test_push_data_source_definition_dto.py -test/test_push_data_source_definitions_dto.py -test/test_qualtrics_auth_params_dto.py -test/test_receiving_job.py -test/test_receiving_job_and_status_response.py -test/test_receiving_job_status_response.py -test/test_redshift_auth_params_dto.py -test/test_result.py -test/test_salesforce_auth_params_dto.py -test/test_salesforce_v2_auth_params_dto.py -test/test_service_now_auth_params_dto.py -test/test_service_now_v2_auth_params_dto.py -test/test_set_connector_setting_request_dto.py -test/test_set_connector_setting_response_dto.py -test/test_set_connector_settings_request_dto.py -test/test_set_connector_settings_response_dto.py -test/test_slack_auth_params_dto.py -test/test_snowflake_auth_params_dto.py -test/test_source.py -test/test_sql_server_auth_params_dto.py -test/test_start_extraction_response.py -test/test_start_transfer_response.py +test/test_servicing_publicapi_transfers_data_categories_response_dto.py +test/test_servicing_publicapi_transfers_data_category_response_dto.py +test/test_servicing_publicapi_transfers_direct_data_job_config_dto.py +test/test_servicing_publicapi_transfers_direct_data_job_status_response_dto.py +test/test_servicing_publicapi_transfers_direct_data_load_config_dto.py +test/test_servicing_publicapi_transfers_direct_data_schema_dto.py +test/test_servicing_publicapi_transfers_direct_data_schema_field_dto.py +test/test_servicing_publicapi_transfers_direct_data_transaction_start_response_dto.py +test/test_servicing_publicapi_transfers_direct_data_upload_file_response_dto.py +test/test_servicing_publicapi_transfers_job_id_response.py +test/test_servicing_publicapi_transfers_tenant_data_upload_status_response_dto.py +test/test_servicing_publicapi_transfers_tenant_data_upload_update_status_response_dto.py +test/test_servicing_publicapi_transfers_tenant_data_uploads_list_response_dto.py +test/test_servicing_publicapi_transfers_tenant_data_uploads_response_dto.py +test/test_servicing_publicapi_transfers_tenant_data_uploads_update_response_dto.py test/test_status.py -test/test_subject_missing_access_dto.py -test/test_success_factors_auth_params_dto.py -test/test_success_factors_o_auth_params_dto.py -test/test_tenant.py -test/test_tenant_and_credential.py -test/test_tenant_connector_settings_request_dto.py -test/test_tenant_data_upload_status_response_dto.py -test/test_tenant_data_upload_update_status_response_dto.py -test/test_tenant_data_uploads_list_response_dto.py -test/test_tenant_data_uploads_response_dto.py -test/test_tenant_data_uploads_update_response_dto.py -test/test_ultimate_auth_params_dto.py -test/test_upload_to_exclude.py -test/test_upload_to_include.py -test/test_willow_auth_params_dto.py -test/test_workday_auth_params_dto.py -test/test_workday_o_auth_params_dto.py -test/test_workday_raas_auth_params_dto.py -test/test_workday_refresh_token_params_dto.py -test/test_zoom_auth_params_dto.py tox.ini visier_api_data_in/__init__.py visier_api_data_in/api/__init__.py @@ -162,146 +160,144 @@ visier_api_data_in/api/direct_data_intake_api.py visier_api_data_in/api/pgp_key_api.py visier_api_data_in/api/planning_data_load_api.py visier_api_data_in/models/__init__.py -visier_api_data_in/models/adp_auth_params_dto.py -visier_api_data_in/models/assign_connector_credential_request.py -visier_api_data_in/models/assign_connector_credentials_by_tenant_response_dto.py -visier_api_data_in/models/assign_connector_credentials_response_dto.py -visier_api_data_in/models/assign_connector_with_credentials_response_dto.py -visier_api_data_in/models/assigned_credential_info_response_dto.py -visier_api_data_in/models/bamboo_auth_params_dto.py -visier_api_data_in/models/basic_s3_auth_params_dto.py -visier_api_data_in/models/big_query_auth_params_dto.py -visier_api_data_in/models/big_query_service_account_params_dto.py -visier_api_data_in/models/cancel_job_batch_from_job_id_dto.py -visier_api_data_in/models/connector.py -visier_api_data_in/models/connector_info_response_dto.py -visier_api_data_in/models/connector_setting_request_dto.py -visier_api_data_in/models/connector_setting_response_dto.py -visier_api_data_in/models/connector_settings_response_dto.py -visier_api_data_in/models/consolidated_analytics_job_request_dto.py -visier_api_data_in/models/copy_s3_auth_params_dto.py -visier_api_data_in/models/credential_creation_api_response_dto.py -visier_api_data_in/models/data_categories_response_dto.py -visier_api_data_in/models/data_category_response_dto.py -visier_api_data_in/models/data_load_request.py -visier_api_data_in/models/data_load_request_model.py -visier_api_data_in/models/data_load_response.py -visier_api_data_in/models/data_provider_auth_information_dto.py -visier_api_data_in/models/data_provider_auth_params_dto.py -visier_api_data_in/models/data_provider_basic_information_dto.py -visier_api_data_in/models/data_provider_basic_metadata_dto.py -visier_api_data_in/models/data_transfer_result_detail.py -visier_api_data_in/models/data_version_and_date_dto.py -visier_api_data_in/models/data_version_object.py -visier_api_data_in/models/dayforce_v2_auth_params_dto.py -visier_api_data_in/models/dimensions_auth_params_dto.py -visier_api_data_in/models/direct_data_job_config_dto.py -visier_api_data_in/models/direct_data_job_status_response_dto.py -visier_api_data_in/models/direct_data_load_config_dto.py -visier_api_data_in/models/direct_data_schema_dto.py -visier_api_data_in/models/direct_data_schema_field_dto.py -visier_api_data_in/models/direct_data_transaction_start_response_dto.py +visier_api_data_in/models/admin_data_transfers_import_definition_apidto.py +visier_api_data_in/models/admin_data_transfers_import_definitions_apidto.py +visier_api_data_in/models/admin_jobs_consolidated_analytics_job_request_dto.py +visier_api_data_in/models/admin_jobs_extract_data_and_load_dto.py +visier_api_data_in/models/admin_jobs_processing_job_request_dto.py +visier_api_data_in/models/admin_transfers_assign_connector_credentials_by_tenant_response_dto.py +visier_api_data_in/models/admin_transfers_assign_connector_credentials_response_dto.py +visier_api_data_in/models/admin_transfers_assign_connector_with_credentials_response_dto.py +visier_api_data_in/models/admin_transfers_assigned_credential_info_response_dto.py +visier_api_data_in/models/admin_transfers_connector_info_response_dto.py +visier_api_data_in/models/admin_transfers_connector_setting_request_dto.py +visier_api_data_in/models/admin_transfers_connector_setting_response_dto.py +visier_api_data_in/models/admin_transfers_connector_settings_response_dto.py +visier_api_data_in/models/admin_transfers_data_version_and_date_dto.py +visier_api_data_in/models/admin_transfers_extractor_setting_apidto.py +visier_api_data_in/models/admin_transfers_extractor_setting_key_value_apidto.py +visier_api_data_in/models/admin_transfers_extractor_settings_apidto.py +visier_api_data_in/models/admin_transfers_multiple_tenant_data_versions_details_dto.py +visier_api_data_in/models/admin_transfers_multiple_tenant_data_versions_list_dto.py +visier_api_data_in/models/admin_transfers_set_connector_setting_request_dto.py +visier_api_data_in/models/admin_transfers_set_connector_setting_response_dto.py +visier_api_data_in/models/admin_transfers_set_connector_settings_request_dto.py +visier_api_data_in/models/admin_transfers_set_connector_settings_response_dto.py +visier_api_data_in/models/admin_transfers_tenant_connector_settings_request_dto.py +visier_api_data_in/models/data_in_assign_connector_credential_request.py +visier_api_data_in/models/data_in_connector.py +visier_api_data_in/models/data_in_data_load_request.py +visier_api_data_in/models/data_in_data_load_request_model.py +visier_api_data_in/models/data_in_data_load_response.py +visier_api_data_in/models/data_in_data_transfer_result_detail.py +visier_api_data_in/models/data_in_data_version_object.py +visier_api_data_in/models/data_in_disable_dv_model.py +visier_api_data_in/models/data_in_disable_dv_request.py +visier_api_data_in/models/data_in_disable_dv_response.py +visier_api_data_in/models/data_in_dispatching_job_status_response.py +visier_api_data_in/models/data_in_exclude_data_uploads_request.py +visier_api_data_in/models/data_in_extraction_job.py +visier_api_data_in/models/data_in_extraction_job_and_status_response.py +visier_api_data_in/models/data_in_include_data_uploads_request.py +visier_api_data_in/models/data_in_job_status_list_response.py +visier_api_data_in/models/data_in_job_status_with_start_time.py +visier_api_data_in/models/data_in_processing_job.py +visier_api_data_in/models/data_in_processing_job_and_status_response.py +visier_api_data_in/models/data_in_processing_job_status_response.py +visier_api_data_in/models/data_in_push_data_cancel_response.py +visier_api_data_in/models/data_in_push_data_complete_request.py +visier_api_data_in/models/data_in_push_data_complete_response.py +visier_api_data_in/models/data_in_push_data_response.py +visier_api_data_in/models/data_in_receiving_job.py +visier_api_data_in/models/data_in_receiving_job_and_status_response.py +visier_api_data_in/models/data_in_receiving_job_status_response.py +visier_api_data_in/models/data_in_result.py +visier_api_data_in/models/data_in_source.py +visier_api_data_in/models/data_in_start_extraction_response.py +visier_api_data_in/models/data_in_start_transfer_response.py +visier_api_data_in/models/data_in_tenant.py +visier_api_data_in/models/data_in_tenant_and_credential.py +visier_api_data_in/models/data_in_upload_to_exclude.py +visier_api_data_in/models/data_in_upload_to_include.py +visier_api_data_in/models/designer_crypto_key_pair_delete_response_dto.py +visier_api_data_in/models/designer_crypto_key_pair_generate_request_dto.py +visier_api_data_in/models/designer_crypto_public_key_dto.py +visier_api_data_in/models/designer_crypto_public_keys_dto.py +visier_api_data_in/models/designer_transfers_adp_auth_params_dto.py +visier_api_data_in/models/designer_transfers_bamboo_auth_params_dto.py +visier_api_data_in/models/designer_transfers_basic_s3_auth_params_dto.py +visier_api_data_in/models/designer_transfers_big_query_auth_params_dto.py +visier_api_data_in/models/designer_transfers_big_query_service_account_params_dto.py +visier_api_data_in/models/designer_transfers_copy_s3_auth_params_dto.py +visier_api_data_in/models/designer_transfers_credential_creation_api_response_dto.py +visier_api_data_in/models/designer_transfers_data_provider_auth_information_dto.py +visier_api_data_in/models/designer_transfers_data_provider_auth_params_dto.py +visier_api_data_in/models/designer_transfers_data_provider_basic_information_dto.py +visier_api_data_in/models/designer_transfers_data_provider_basic_metadata_dto.py +visier_api_data_in/models/designer_transfers_dayforce_v2_auth_params_dto.py +visier_api_data_in/models/designer_transfers_dimensions_auth_params_dto.py +visier_api_data_in/models/designer_transfers_extractor_credential_apidto.py +visier_api_data_in/models/designer_transfers_extractor_credentials_apidto.py +visier_api_data_in/models/designer_transfers_fusion_auth_params_dto.py +visier_api_data_in/models/designer_transfers_gong_auth_params_dto.py +visier_api_data_in/models/designer_transfers_google_sheets_auth_params_dto.py +visier_api_data_in/models/designer_transfers_google_workspace_auth_params_dto.py +visier_api_data_in/models/designer_transfers_greenhouse_auth_params_dto.py +visier_api_data_in/models/designer_transfers_icims_auth_params_dto.py +visier_api_data_in/models/designer_transfers_internal_s3_auth_params_dto.py +visier_api_data_in/models/designer_transfers_jdbc_auth_params_dto.py +visier_api_data_in/models/designer_transfers_jira_auth_params_dto.py +visier_api_data_in/models/designer_transfers_jira_connect_params_dto.py +visier_api_data_in/models/designer_transfers_lever_auth_params_dto.py +visier_api_data_in/models/designer_transfers_medallia_auth_params_dto.py +visier_api_data_in/models/designer_transfers_microsoft365_auth_params_dto.py +visier_api_data_in/models/designer_transfers_my_sql_auth_params_dto.py +visier_api_data_in/models/designer_transfers_namely_auth_params_dto.py +visier_api_data_in/models/designer_transfers_oracle_db_auth_params_dto.py +visier_api_data_in/models/designer_transfers_push_data_column_definition_dto.py +visier_api_data_in/models/designer_transfers_push_data_source_definition_dto.py +visier_api_data_in/models/designer_transfers_push_data_source_definitions_dto.py +visier_api_data_in/models/designer_transfers_qualtrics_auth_params_dto.py +visier_api_data_in/models/designer_transfers_redshift_auth_params_dto.py +visier_api_data_in/models/designer_transfers_salesforce_auth_params_dto.py +visier_api_data_in/models/designer_transfers_salesforce_v2_auth_params_dto.py +visier_api_data_in/models/designer_transfers_service_now_auth_params_dto.py +visier_api_data_in/models/designer_transfers_service_now_v2_auth_params_dto.py +visier_api_data_in/models/designer_transfers_slack_auth_params_dto.py +visier_api_data_in/models/designer_transfers_snowflake_auth_params_dto.py +visier_api_data_in/models/designer_transfers_sql_server_auth_params_dto.py +visier_api_data_in/models/designer_transfers_subject_missing_access_dto.py +visier_api_data_in/models/designer_transfers_success_factors_auth_params_dto.py +visier_api_data_in/models/designer_transfers_success_factors_o_auth_params_dto.py +visier_api_data_in/models/designer_transfers_ultimate_auth_params_dto.py +visier_api_data_in/models/designer_transfers_willow_auth_params_dto.py +visier_api_data_in/models/designer_transfers_workday_auth_params_dto.py +visier_api_data_in/models/designer_transfers_workday_o_auth_params_dto.py +visier_api_data_in/models/designer_transfers_workday_raas_auth_params_dto.py +visier_api_data_in/models/designer_transfers_workday_refresh_token_params_dto.py +visier_api_data_in/models/designer_transfers_zoom_auth_params_dto.py visier_api_data_in/models/direct_data_upload_file_response_dto.py -visier_api_data_in/models/disable_dv_model.py -visier_api_data_in/models/disable_dv_request.py -visier_api_data_in/models/disable_dv_response.py -visier_api_data_in/models/dispatching_job_status_response.py -visier_api_data_in/models/exclude_data_uploads_request.py -visier_api_data_in/models/extract_data_and_load_dto.py -visier_api_data_in/models/extraction_job.py -visier_api_data_in/models/extraction_job_and_status_response.py -visier_api_data_in/models/extractor_credential_apidto.py -visier_api_data_in/models/extractor_credentials_apidto.py -visier_api_data_in/models/extractor_setting_apidto.py -visier_api_data_in/models/extractor_setting_key_value_apidto.py -visier_api_data_in/models/extractor_settings_apidto.py -visier_api_data_in/models/fusion_auth_params_dto.py -visier_api_data_in/models/gong_auth_params_dto.py -visier_api_data_in/models/google_protobuf_any.py -visier_api_data_in/models/google_sheets_auth_params_dto.py -visier_api_data_in/models/google_workspace_auth_params_dto.py -visier_api_data_in/models/greenhouse_auth_params_dto.py -visier_api_data_in/models/icims_auth_params_dto.py -visier_api_data_in/models/import_definition_apidto.py -visier_api_data_in/models/import_definitions_apidto.py -visier_api_data_in/models/include_data_uploads_request.py -visier_api_data_in/models/internal_s3_auth_params_dto.py -visier_api_data_in/models/jdbc_auth_params_dto.py -visier_api_data_in/models/jira_auth_params_dto.py -visier_api_data_in/models/jira_connect_params_dto.py -visier_api_data_in/models/job_cancellation_result_dto.py -visier_api_data_in/models/job_cancellation_results_dto.py -visier_api_data_in/models/job_id_response.py -visier_api_data_in/models/job_status_list_response.py -visier_api_data_in/models/job_status_with_start_time.py -visier_api_data_in/models/key_pair_delete_response_dto.py -visier_api_data_in/models/key_pair_generate_request_dto.py -visier_api_data_in/models/lever_auth_params_dto.py -visier_api_data_in/models/medallia_auth_params_dto.py -visier_api_data_in/models/microsoft365_auth_params_dto.py -visier_api_data_in/models/multiple_tenant_data_versions_details_dto.py -visier_api_data_in/models/multiple_tenant_data_versions_list_dto.py -visier_api_data_in/models/my_sql_auth_params_dto.py -visier_api_data_in/models/namely_auth_params_dto.py -visier_api_data_in/models/oracle_db_auth_params_dto.py +visier_api_data_in/models/dp_transfers_cancel_job_batch_from_job_id_dto.py +visier_api_data_in/models/dp_transfers_job_cancellation_result_dto.py +visier_api_data_in/models/dp_transfers_job_cancellation_results_dto.py visier_api_data_in/models/plan_data_load_change_dto.py visier_api_data_in/models/plan_data_load_change_list_dto.py -visier_api_data_in/models/plan_data_load_error_dto.py visier_api_data_in/models/plan_data_upload_response_dto.py visier_api_data_in/models/plan_row_data_load_response_dto.py -visier_api_data_in/models/plan_segment_level_member_dto.py -visier_api_data_in/models/processing_job.py -visier_api_data_in/models/processing_job_and_status_response.py -visier_api_data_in/models/processing_job_request_dto.py -visier_api_data_in/models/processing_job_status_response.py -visier_api_data_in/models/public_key_dto.py -visier_api_data_in/models/public_keys_dto.py -visier_api_data_in/models/push_data_cancel_response.py -visier_api_data_in/models/push_data_column_definition_dto.py -visier_api_data_in/models/push_data_complete_request.py -visier_api_data_in/models/push_data_complete_response.py -visier_api_data_in/models/push_data_response.py -visier_api_data_in/models/push_data_source_definition_dto.py -visier_api_data_in/models/push_data_source_definitions_dto.py -visier_api_data_in/models/qualtrics_auth_params_dto.py -visier_api_data_in/models/receiving_job.py -visier_api_data_in/models/receiving_job_and_status_response.py -visier_api_data_in/models/receiving_job_status_response.py -visier_api_data_in/models/redshift_auth_params_dto.py -visier_api_data_in/models/result.py -visier_api_data_in/models/salesforce_auth_params_dto.py -visier_api_data_in/models/salesforce_v2_auth_params_dto.py -visier_api_data_in/models/service_now_auth_params_dto.py -visier_api_data_in/models/service_now_v2_auth_params_dto.py -visier_api_data_in/models/set_connector_setting_request_dto.py -visier_api_data_in/models/set_connector_setting_response_dto.py -visier_api_data_in/models/set_connector_settings_request_dto.py -visier_api_data_in/models/set_connector_settings_response_dto.py -visier_api_data_in/models/slack_auth_params_dto.py -visier_api_data_in/models/snowflake_auth_params_dto.py -visier_api_data_in/models/source.py -visier_api_data_in/models/sql_server_auth_params_dto.py -visier_api_data_in/models/start_extraction_response.py -visier_api_data_in/models/start_transfer_response.py +visier_api_data_in/models/servicing_publicapi_transfers_data_categories_response_dto.py +visier_api_data_in/models/servicing_publicapi_transfers_data_category_response_dto.py +visier_api_data_in/models/servicing_publicapi_transfers_direct_data_job_config_dto.py +visier_api_data_in/models/servicing_publicapi_transfers_direct_data_job_status_response_dto.py +visier_api_data_in/models/servicing_publicapi_transfers_direct_data_load_config_dto.py +visier_api_data_in/models/servicing_publicapi_transfers_direct_data_schema_dto.py +visier_api_data_in/models/servicing_publicapi_transfers_direct_data_schema_field_dto.py +visier_api_data_in/models/servicing_publicapi_transfers_direct_data_transaction_start_response_dto.py +visier_api_data_in/models/servicing_publicapi_transfers_direct_data_upload_file_response_dto.py +visier_api_data_in/models/servicing_publicapi_transfers_job_id_response.py +visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_upload_status_response_dto.py +visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_upload_update_status_response_dto.py +visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_uploads_list_response_dto.py +visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_uploads_response_dto.py +visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_uploads_update_response_dto.py visier_api_data_in/models/status.py -visier_api_data_in/models/subject_missing_access_dto.py -visier_api_data_in/models/success_factors_auth_params_dto.py -visier_api_data_in/models/success_factors_o_auth_params_dto.py -visier_api_data_in/models/tenant.py -visier_api_data_in/models/tenant_and_credential.py -visier_api_data_in/models/tenant_connector_settings_request_dto.py -visier_api_data_in/models/tenant_data_upload_status_response_dto.py -visier_api_data_in/models/tenant_data_upload_update_status_response_dto.py -visier_api_data_in/models/tenant_data_uploads_list_response_dto.py -visier_api_data_in/models/tenant_data_uploads_response_dto.py -visier_api_data_in/models/tenant_data_uploads_update_response_dto.py -visier_api_data_in/models/ultimate_auth_params_dto.py -visier_api_data_in/models/upload_to_exclude.py -visier_api_data_in/models/upload_to_include.py -visier_api_data_in/models/willow_auth_params_dto.py -visier_api_data_in/models/workday_auth_params_dto.py -visier_api_data_in/models/workday_o_auth_params_dto.py -visier_api_data_in/models/workday_raas_auth_params_dto.py -visier_api_data_in/models/workday_refresh_token_params_dto.py -visier_api_data_in/models/zoom_auth_params_dto.py visier_api_data_in/py.typed diff --git a/src/visier_api_data_in/pyproject.toml b/src/visier_api_data_in/pyproject.toml index bf41786cbd..60b65707c0 100644 --- a/src/visier_api_data_in/pyproject.toml +++ b/src/visier_api_data_in/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "visier_api_data_in" -version = "0.99201.1772" +version = "0.99201.1793" description = "Visier Data In APIs" authors = ["Visier "] license = "Apache License, Version 2.0" @@ -12,7 +12,7 @@ include = ["visier_api_data_in/py.typed"] [tool.poetry.dependencies] python = "^3.8" -visier-api-core = "~= 0.99201.1772" +visier-api-core = "~= 0.99201.1793" [tool.poetry.dev-dependencies] pytest = ">=7.2.1" diff --git a/src/visier_api_data_in/requirements.txt b/src/visier_api_data_in/requirements.txt index abc44fc65a..ebf9a91559 100644 --- a/src/visier_api_data_in/requirements.txt +++ b/src/visier_api_data_in/requirements.txt @@ -1 +1 @@ -visier-api-core ~= 0.99201.1772 \ No newline at end of file +visier-api-core ~= 0.99201.1793 \ No newline at end of file diff --git a/src/visier_api_data_in/setup.py b/src/visier_api_data_in/setup.py index 782843dd9b..b61bd273f3 100644 --- a/src/visier_api_data_in/setup.py +++ b/src/visier_api_data_in/setup.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,10 +23,10 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "visier-api-data-in" -VERSION = "0.99201.1772" +VERSION = "0.99201.1793" PYTHON_REQUIRES = ">=3.8" REQUIRES = [ - "visier-api-core ~= 0.99201.1772", + "visier-api-core ~= 0.99201.1793", ] setup( diff --git a/src/visier_api_data_in/test/test_admin_data_transfers_import_definition_apidto.py b/src/visier_api_data_in/test/test_admin_data_transfers_import_definition_apidto.py new file mode 100644 index 0000000000..66f242738b --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_data_transfers_import_definition_apidto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_data_transfers_import_definition_apidto import AdminDataTransfersImportDefinitionAPIDTO + +class TestAdminDataTransfersImportDefinitionAPIDTO(unittest.TestCase): + """AdminDataTransfersImportDefinitionAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminDataTransfersImportDefinitionAPIDTO: + """Test AdminDataTransfersImportDefinitionAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminDataTransfersImportDefinitionAPIDTO( + connector_id = '', + credential_id = '', + display_name = '' + ) + else: + return AdminDataTransfersImportDefinitionAPIDTO( + ) + + def testAdminDataTransfersImportDefinitionAPIDTO(self): + """Test AdminDataTransfersImportDefinitionAPIDTO""" + def validate_instance(instance): + AdminDataTransfersImportDefinitionAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminDataTransfersImportDefinitionAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_data_transfers_import_definitions_apidto.py b/src/visier_api_data_in/test/test_admin_data_transfers_import_definitions_apidto.py new file mode 100644 index 0000000000..7f05e66ce5 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_data_transfers_import_definitions_apidto.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_data_transfers_import_definitions_apidto import AdminDataTransfersImportDefinitionsAPIDTO + +class TestAdminDataTransfersImportDefinitionsAPIDTO(unittest.TestCase): + """AdminDataTransfersImportDefinitionsAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminDataTransfersImportDefinitionsAPIDTO: + """Test AdminDataTransfersImportDefinitionsAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminDataTransfersImportDefinitionsAPIDTO( + data_connectors = [ + visier_api_data_in.models.admin/data/transfers/import_definition_apidto.admin.data.transfers.ImportDefinitionAPIDTO( + connector_id = '', + credential_id = '', + display_name = '', ) + ], + limit = 56, + start = 56 + ) + else: + return AdminDataTransfersImportDefinitionsAPIDTO( + ) + + def testAdminDataTransfersImportDefinitionsAPIDTO(self): + """Test AdminDataTransfersImportDefinitionsAPIDTO""" + def validate_instance(instance): + AdminDataTransfersImportDefinitionsAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminDataTransfersImportDefinitionsAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_jobs_consolidated_analytics_job_request_dto.py b/src/visier_api_data_in/test/test_admin_jobs_consolidated_analytics_job_request_dto.py new file mode 100644 index 0000000000..2fdd5d8041 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_jobs_consolidated_analytics_job_request_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_jobs_consolidated_analytics_job_request_dto import AdminJobsConsolidatedAnalyticsJobRequestDTO + +class TestAdminJobsConsolidatedAnalyticsJobRequestDTO(unittest.TestCase): + """AdminJobsConsolidatedAnalyticsJobRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminJobsConsolidatedAnalyticsJobRequestDTO: + """Test AdminJobsConsolidatedAnalyticsJobRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminJobsConsolidatedAnalyticsJobRequestDTO( + tenant_code = '' + ) + else: + return AdminJobsConsolidatedAnalyticsJobRequestDTO( + ) + + def testAdminJobsConsolidatedAnalyticsJobRequestDTO(self): + """Test AdminJobsConsolidatedAnalyticsJobRequestDTO""" + def validate_instance(instance): + AdminJobsConsolidatedAnalyticsJobRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminJobsConsolidatedAnalyticsJobRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_jobs_extract_data_and_load_dto.py b/src/visier_api_data_in/test/test_admin_jobs_extract_data_and_load_dto.py new file mode 100644 index 0000000000..6ad98a40e1 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_jobs_extract_data_and_load_dto.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_jobs_extract_data_and_load_dto import AdminJobsExtractDataAndLoadDTO + +class TestAdminJobsExtractDataAndLoadDTO(unittest.TestCase): + """AdminJobsExtractDataAndLoadDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminJobsExtractDataAndLoadDTO: + """Test AdminJobsExtractDataAndLoadDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminJobsExtractDataAndLoadDTO( + all_tenants = True, + batch_size_override = 56, + connector_ids = [ + '' + ], + data_category_id = '', + disable_artifact_generation = True, + excluded_tenants = [ + '' + ], + extract_to_time_override = '', + force_update_existing_artifacts = True, + last_extraction_time_offset_mode = '', + last_extraction_time_offset_months = 56, + last_extraction_time_offset_weeks = 56, + months_to_extract = 56, + offset_month_option = '', + offset_week_option = '', + override_last_extraction_timestamp = '', + publish_data_load_artifacts = True, + run_processing_job = True, + spill_debug_info_detail_level_dto = 'fileAndLine', + spill_debug_info_partitions_dto = 'spillNone', + sql_batch_size = 56, + tenants = [ + '' + ] + ) + else: + return AdminJobsExtractDataAndLoadDTO( + ) + + def testAdminJobsExtractDataAndLoadDTO(self): + """Test AdminJobsExtractDataAndLoadDTO""" + def validate_instance(instance): + AdminJobsExtractDataAndLoadDTO.model_validate(inst_req_only) + instance_deserialized = AdminJobsExtractDataAndLoadDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_jobs_processing_job_request_dto.py b/src/visier_api_data_in/test/test_admin_jobs_processing_job_request_dto.py new file mode 100644 index 0000000000..a76dcefc40 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_jobs_processing_job_request_dto.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_jobs_processing_job_request_dto import AdminJobsProcessingJobRequestDTO + +class TestAdminJobsProcessingJobRequestDTO(unittest.TestCase): + """AdminJobsProcessingJobRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminJobsProcessingJobRequestDTO: + """Test AdminJobsProcessingJobRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminJobsProcessingJobRequestDTO( + all_tenants = True, + data_category_id = '', + excluded_tenants = [ + '' + ], + publish_to_production = True, + tenants = [ + '' + ] + ) + else: + return AdminJobsProcessingJobRequestDTO( + ) + + def testAdminJobsProcessingJobRequestDTO(self): + """Test AdminJobsProcessingJobRequestDTO""" + def validate_instance(instance): + AdminJobsProcessingJobRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminJobsProcessingJobRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_assign_connector_credentials_by_tenant_response_dto.py b/src/visier_api_data_in/test/test_admin_transfers_assign_connector_credentials_by_tenant_response_dto.py new file mode 100644 index 0000000000..d45d8d3814 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_assign_connector_credentials_by_tenant_response_dto.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_assign_connector_credentials_by_tenant_response_dto import AdminTransfersAssignConnectorCredentialsByTenantResponseDTO + +class TestAdminTransfersAssignConnectorCredentialsByTenantResponseDTO(unittest.TestCase): + """AdminTransfersAssignConnectorCredentialsByTenantResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersAssignConnectorCredentialsByTenantResponseDTO: + """Test AdminTransfersAssignConnectorCredentialsByTenantResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersAssignConnectorCredentialsByTenantResponseDTO( + connectors = [ + visier_api_data_in.models.admin/transfers/assign_connector_with_credentials_response_dto.admin.transfers.AssignConnectorWithCredentialsResponseDTO( + connector = None, + credential = None, ) + ], + message = '', + status = 'Unknown', + tenant_code = '' + ) + else: + return AdminTransfersAssignConnectorCredentialsByTenantResponseDTO( + ) + + def testAdminTransfersAssignConnectorCredentialsByTenantResponseDTO(self): + """Test AdminTransfersAssignConnectorCredentialsByTenantResponseDTO""" + def validate_instance(instance): + AdminTransfersAssignConnectorCredentialsByTenantResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersAssignConnectorCredentialsByTenantResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_assign_connector_credentials_response_dto.py b/src/visier_api_data_in/test/test_admin_transfers_assign_connector_credentials_response_dto.py new file mode 100644 index 0000000000..484428a138 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_assign_connector_credentials_response_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_assign_connector_credentials_response_dto import AdminTransfersAssignConnectorCredentialsResponseDTO + +class TestAdminTransfersAssignConnectorCredentialsResponseDTO(unittest.TestCase): + """AdminTransfersAssignConnectorCredentialsResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersAssignConnectorCredentialsResponseDTO: + """Test AdminTransfersAssignConnectorCredentialsResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersAssignConnectorCredentialsResponseDTO( + tenants = [ + visier_api_data_in.models.admin/transfers/assign_connector_credentials_by_tenant_response_dto.admin.transfers.AssignConnectorCredentialsByTenantResponseDTO( + connectors = [ + visier_api_data_in.models.admin/transfers/assign_connector_with_credentials_response_dto.admin.transfers.AssignConnectorWithCredentialsResponseDTO( + connector = None, + credential = None, ) + ], + message = '', + status = 'Unknown', + tenant_code = '', ) + ] + ) + else: + return AdminTransfersAssignConnectorCredentialsResponseDTO( + ) + + def testAdminTransfersAssignConnectorCredentialsResponseDTO(self): + """Test AdminTransfersAssignConnectorCredentialsResponseDTO""" + def validate_instance(instance): + AdminTransfersAssignConnectorCredentialsResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersAssignConnectorCredentialsResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_assign_connector_with_credentials_response_dto.py b/src/visier_api_data_in/test/test_admin_transfers_assign_connector_with_credentials_response_dto.py new file mode 100644 index 0000000000..33f967ea84 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_assign_connector_with_credentials_response_dto.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_assign_connector_with_credentials_response_dto import AdminTransfersAssignConnectorWithCredentialsResponseDTO + +class TestAdminTransfersAssignConnectorWithCredentialsResponseDTO(unittest.TestCase): + """AdminTransfersAssignConnectorWithCredentialsResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersAssignConnectorWithCredentialsResponseDTO: + """Test AdminTransfersAssignConnectorWithCredentialsResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersAssignConnectorWithCredentialsResponseDTO( + connector = visier_api_data_in.models.admin/transfers/connector_info_response_dto.admin.transfers.ConnectorInfoResponseDTO( + connector_id = '', + description = '', + display_name = '', ), + credential = visier_api_data_in.models.admin/transfers/assigned_credential_info_response_dto.admin.transfers.AssignedCredentialInfoResponseDTO( + credential_id = '', + display_name = '', + message = '', ) + ) + else: + return AdminTransfersAssignConnectorWithCredentialsResponseDTO( + ) + + def testAdminTransfersAssignConnectorWithCredentialsResponseDTO(self): + """Test AdminTransfersAssignConnectorWithCredentialsResponseDTO""" + def validate_instance(instance): + AdminTransfersAssignConnectorWithCredentialsResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersAssignConnectorWithCredentialsResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_assigned_credential_info_response_dto.py b/src/visier_api_data_in/test/test_admin_transfers_assigned_credential_info_response_dto.py new file mode 100644 index 0000000000..2db083ba66 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_assigned_credential_info_response_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_assigned_credential_info_response_dto import AdminTransfersAssignedCredentialInfoResponseDTO + +class TestAdminTransfersAssignedCredentialInfoResponseDTO(unittest.TestCase): + """AdminTransfersAssignedCredentialInfoResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersAssignedCredentialInfoResponseDTO: + """Test AdminTransfersAssignedCredentialInfoResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersAssignedCredentialInfoResponseDTO( + credential_id = '', + display_name = '', + message = '' + ) + else: + return AdminTransfersAssignedCredentialInfoResponseDTO( + ) + + def testAdminTransfersAssignedCredentialInfoResponseDTO(self): + """Test AdminTransfersAssignedCredentialInfoResponseDTO""" + def validate_instance(instance): + AdminTransfersAssignedCredentialInfoResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersAssignedCredentialInfoResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_connector_info_response_dto.py b/src/visier_api_data_in/test/test_admin_transfers_connector_info_response_dto.py new file mode 100644 index 0000000000..957118cf2c --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_connector_info_response_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_connector_info_response_dto import AdminTransfersConnectorInfoResponseDTO + +class TestAdminTransfersConnectorInfoResponseDTO(unittest.TestCase): + """AdminTransfersConnectorInfoResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersConnectorInfoResponseDTO: + """Test AdminTransfersConnectorInfoResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersConnectorInfoResponseDTO( + connector_id = '', + description = '', + display_name = '' + ) + else: + return AdminTransfersConnectorInfoResponseDTO( + ) + + def testAdminTransfersConnectorInfoResponseDTO(self): + """Test AdminTransfersConnectorInfoResponseDTO""" + def validate_instance(instance): + AdminTransfersConnectorInfoResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersConnectorInfoResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_connector_setting_request_dto.py b/src/visier_api_data_in/test/test_admin_transfers_connector_setting_request_dto.py new file mode 100644 index 0000000000..0a5e6c7f6d --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_connector_setting_request_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_connector_setting_request_dto import AdminTransfersConnectorSettingRequestDTO + +class TestAdminTransfersConnectorSettingRequestDTO(unittest.TestCase): + """AdminTransfersConnectorSettingRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersConnectorSettingRequestDTO: + """Test AdminTransfersConnectorSettingRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersConnectorSettingRequestDTO( + setting_key = '', + value = '' + ) + else: + return AdminTransfersConnectorSettingRequestDTO( + ) + + def testAdminTransfersConnectorSettingRequestDTO(self): + """Test AdminTransfersConnectorSettingRequestDTO""" + def validate_instance(instance): + AdminTransfersConnectorSettingRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersConnectorSettingRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_connector_setting_response_dto.py b/src/visier_api_data_in/test/test_admin_transfers_connector_setting_response_dto.py new file mode 100644 index 0000000000..27238e7fe2 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_connector_setting_response_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_connector_setting_response_dto import AdminTransfersConnectorSettingResponseDTO + +class TestAdminTransfersConnectorSettingResponseDTO(unittest.TestCase): + """AdminTransfersConnectorSettingResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersConnectorSettingResponseDTO: + """Test AdminTransfersConnectorSettingResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersConnectorSettingResponseDTO( + key = '', + message = '', + value = '' + ) + else: + return AdminTransfersConnectorSettingResponseDTO( + ) + + def testAdminTransfersConnectorSettingResponseDTO(self): + """Test AdminTransfersConnectorSettingResponseDTO""" + def validate_instance(instance): + AdminTransfersConnectorSettingResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersConnectorSettingResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_connector_settings_response_dto.py b/src/visier_api_data_in/test/test_admin_transfers_connector_settings_response_dto.py new file mode 100644 index 0000000000..e1d16394e6 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_connector_settings_response_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_connector_settings_response_dto import AdminTransfersConnectorSettingsResponseDTO + +class TestAdminTransfersConnectorSettingsResponseDTO(unittest.TestCase): + """AdminTransfersConnectorSettingsResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersConnectorSettingsResponseDTO: + """Test AdminTransfersConnectorSettingsResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersConnectorSettingsResponseDTO( + connector = visier_api_data_in.models.admin/transfers/connector_info_response_dto.admin.transfers.ConnectorInfoResponseDTO( + connector_id = '', + description = '', + display_name = '', ), + settings = [ + visier_api_data_in.models.admin/transfers/connector_setting_response_dto.admin.transfers.ConnectorSettingResponseDTO( + key = '', + message = '', + value = '', ) + ] + ) + else: + return AdminTransfersConnectorSettingsResponseDTO( + ) + + def testAdminTransfersConnectorSettingsResponseDTO(self): + """Test AdminTransfersConnectorSettingsResponseDTO""" + def validate_instance(instance): + AdminTransfersConnectorSettingsResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersConnectorSettingsResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_data_version_and_date_dto.py b/src/visier_api_data_in/test/test_admin_transfers_data_version_and_date_dto.py new file mode 100644 index 0000000000..50a0e10597 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_data_version_and_date_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_data_version_and_date_dto import AdminTransfersDataVersionAndDateDTO + +class TestAdminTransfersDataVersionAndDateDTO(unittest.TestCase): + """AdminTransfersDataVersionAndDateDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersDataVersionAndDateDTO: + """Test AdminTransfersDataVersionAndDateDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersDataVersionAndDateDTO( + data_version = '', + data_version_date = '' + ) + else: + return AdminTransfersDataVersionAndDateDTO( + ) + + def testAdminTransfersDataVersionAndDateDTO(self): + """Test AdminTransfersDataVersionAndDateDTO""" + def validate_instance(instance): + AdminTransfersDataVersionAndDateDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersDataVersionAndDateDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_extractor_setting_apidto.py b/src/visier_api_data_in/test/test_admin_transfers_extractor_setting_apidto.py new file mode 100644 index 0000000000..2e80586b7d --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_extractor_setting_apidto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_extractor_setting_apidto import AdminTransfersExtractorSettingAPIDTO + +class TestAdminTransfersExtractorSettingAPIDTO(unittest.TestCase): + """AdminTransfersExtractorSettingAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersExtractorSettingAPIDTO: + """Test AdminTransfersExtractorSettingAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersExtractorSettingAPIDTO( + connector_id = '', + connector_settings = [ + visier_api_data_in.models.admin/transfers/extractor_setting_key_value_apidto.admin.transfers.ExtractorSettingKeyValueAPIDTO( + setting_key = '', + value = '', ) + ], + display_name = '' + ) + else: + return AdminTransfersExtractorSettingAPIDTO( + ) + + def testAdminTransfersExtractorSettingAPIDTO(self): + """Test AdminTransfersExtractorSettingAPIDTO""" + def validate_instance(instance): + AdminTransfersExtractorSettingAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersExtractorSettingAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_extractor_setting_key_value_apidto.py b/src/visier_api_data_in/test/test_admin_transfers_extractor_setting_key_value_apidto.py new file mode 100644 index 0000000000..1b3f5d945d --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_extractor_setting_key_value_apidto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_extractor_setting_key_value_apidto import AdminTransfersExtractorSettingKeyValueAPIDTO + +class TestAdminTransfersExtractorSettingKeyValueAPIDTO(unittest.TestCase): + """AdminTransfersExtractorSettingKeyValueAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersExtractorSettingKeyValueAPIDTO: + """Test AdminTransfersExtractorSettingKeyValueAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersExtractorSettingKeyValueAPIDTO( + setting_key = '', + value = '' + ) + else: + return AdminTransfersExtractorSettingKeyValueAPIDTO( + ) + + def testAdminTransfersExtractorSettingKeyValueAPIDTO(self): + """Test AdminTransfersExtractorSettingKeyValueAPIDTO""" + def validate_instance(instance): + AdminTransfersExtractorSettingKeyValueAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersExtractorSettingKeyValueAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_extractor_settings_apidto.py b/src/visier_api_data_in/test/test_admin_transfers_extractor_settings_apidto.py new file mode 100644 index 0000000000..931fdf99cc --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_extractor_settings_apidto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_extractor_settings_apidto import AdminTransfersExtractorSettingsAPIDTO + +class TestAdminTransfersExtractorSettingsAPIDTO(unittest.TestCase): + """AdminTransfersExtractorSettingsAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersExtractorSettingsAPIDTO: + """Test AdminTransfersExtractorSettingsAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersExtractorSettingsAPIDTO( + connectors = [ + visier_api_data_in.models.admin/transfers/extractor_setting_apidto.admin.transfers.ExtractorSettingAPIDTO( + connector_id = '', + connector_settings = [ + visier_api_data_in.models.admin/transfers/extractor_setting_key_value_apidto.admin.transfers.ExtractorSettingKeyValueAPIDTO( + setting_key = '', + value = '', ) + ], + display_name = '', ) + ] + ) + else: + return AdminTransfersExtractorSettingsAPIDTO( + ) + + def testAdminTransfersExtractorSettingsAPIDTO(self): + """Test AdminTransfersExtractorSettingsAPIDTO""" + def validate_instance(instance): + AdminTransfersExtractorSettingsAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersExtractorSettingsAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_multiple_tenant_data_versions_details_dto.py b/src/visier_api_data_in/test/test_admin_transfers_multiple_tenant_data_versions_details_dto.py new file mode 100644 index 0000000000..61624e9438 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_multiple_tenant_data_versions_details_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_multiple_tenant_data_versions_details_dto import AdminTransfersMultipleTenantDataVersionsDetailsDTO + +class TestAdminTransfersMultipleTenantDataVersionsDetailsDTO(unittest.TestCase): + """AdminTransfersMultipleTenantDataVersionsDetailsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersMultipleTenantDataVersionsDetailsDTO: + """Test AdminTransfersMultipleTenantDataVersionsDetailsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersMultipleTenantDataVersionsDetailsDTO( + data_versions = [ + visier_api_data_in.models.admin/transfers/data_version_and_date_dto.admin.transfers.DataVersionAndDateDTO( + data_version = '', + data_version_date = '', ) + ], + tenant_code = '' + ) + else: + return AdminTransfersMultipleTenantDataVersionsDetailsDTO( + ) + + def testAdminTransfersMultipleTenantDataVersionsDetailsDTO(self): + """Test AdminTransfersMultipleTenantDataVersionsDetailsDTO""" + def validate_instance(instance): + AdminTransfersMultipleTenantDataVersionsDetailsDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersMultipleTenantDataVersionsDetailsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_multiple_tenant_data_versions_list_dto.py b/src/visier_api_data_in/test/test_admin_transfers_multiple_tenant_data_versions_list_dto.py new file mode 100644 index 0000000000..aadbaf3d18 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_multiple_tenant_data_versions_list_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_multiple_tenant_data_versions_list_dto import AdminTransfersMultipleTenantDataVersionsListDTO + +class TestAdminTransfersMultipleTenantDataVersionsListDTO(unittest.TestCase): + """AdminTransfersMultipleTenantDataVersionsListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersMultipleTenantDataVersionsListDTO: + """Test AdminTransfersMultipleTenantDataVersionsListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersMultipleTenantDataVersionsListDTO( + limit = 56, + start = 56, + tenants = [ + visier_api_data_in.models.admin/transfers/multiple_tenant_data_versions_details_dto.admin.transfers.MultipleTenantDataVersionsDetailsDTO( + data_versions = [ + visier_api_data_in.models.admin/transfers/data_version_and_date_dto.admin.transfers.DataVersionAndDateDTO( + data_version = '', + data_version_date = '', ) + ], + tenant_code = '', ) + ] + ) + else: + return AdminTransfersMultipleTenantDataVersionsListDTO( + ) + + def testAdminTransfersMultipleTenantDataVersionsListDTO(self): + """Test AdminTransfersMultipleTenantDataVersionsListDTO""" + def validate_instance(instance): + AdminTransfersMultipleTenantDataVersionsListDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersMultipleTenantDataVersionsListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_set_connector_setting_request_dto.py b/src/visier_api_data_in/test/test_admin_transfers_set_connector_setting_request_dto.py new file mode 100644 index 0000000000..e36f1d04c4 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_set_connector_setting_request_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_set_connector_setting_request_dto import AdminTransfersSetConnectorSettingRequestDTO + +class TestAdminTransfersSetConnectorSettingRequestDTO(unittest.TestCase): + """AdminTransfersSetConnectorSettingRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersSetConnectorSettingRequestDTO: + """Test AdminTransfersSetConnectorSettingRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersSetConnectorSettingRequestDTO( + connector_id = '', + tenants = [ + visier_api_data_in.models.admin/transfers/tenant_connector_settings_request_dto.admin.transfers.TenantConnectorSettingsRequestDTO( + connector_settings = [ + visier_api_data_in.models.admin/transfers/connector_setting_request_dto.admin.transfers.ConnectorSettingRequestDTO( + setting_key = '', + value = '', ) + ], + tenant_code = '', ) + ] + ) + else: + return AdminTransfersSetConnectorSettingRequestDTO( + ) + + def testAdminTransfersSetConnectorSettingRequestDTO(self): + """Test AdminTransfersSetConnectorSettingRequestDTO""" + def validate_instance(instance): + AdminTransfersSetConnectorSettingRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersSetConnectorSettingRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_set_connector_setting_response_dto.py b/src/visier_api_data_in/test/test_admin_transfers_set_connector_setting_response_dto.py new file mode 100644 index 0000000000..4131c6f621 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_set_connector_setting_response_dto.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_set_connector_setting_response_dto import AdminTransfersSetConnectorSettingResponseDTO + +class TestAdminTransfersSetConnectorSettingResponseDTO(unittest.TestCase): + """AdminTransfersSetConnectorSettingResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersSetConnectorSettingResponseDTO: + """Test AdminTransfersSetConnectorSettingResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersSetConnectorSettingResponseDTO( + connectors = [ + visier_api_data_in.models.admin/transfers/connector_settings_response_dto.admin.transfers.ConnectorSettingsResponseDTO( + connector = None, + settings = [ + visier_api_data_in.models.admin/transfers/connector_setting_response_dto.admin.transfers.ConnectorSettingResponseDTO( + key = '', + message = '', + value = '', ) + ], ) + ], + message = '', + status = 'Unknown', + tenant_code = '' + ) + else: + return AdminTransfersSetConnectorSettingResponseDTO( + ) + + def testAdminTransfersSetConnectorSettingResponseDTO(self): + """Test AdminTransfersSetConnectorSettingResponseDTO""" + def validate_instance(instance): + AdminTransfersSetConnectorSettingResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersSetConnectorSettingResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_set_connector_settings_request_dto.py b/src/visier_api_data_in/test/test_admin_transfers_set_connector_settings_request_dto.py new file mode 100644 index 0000000000..136262a1c5 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_set_connector_settings_request_dto.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_set_connector_settings_request_dto import AdminTransfersSetConnectorSettingsRequestDTO + +class TestAdminTransfersSetConnectorSettingsRequestDTO(unittest.TestCase): + """AdminTransfersSetConnectorSettingsRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersSetConnectorSettingsRequestDTO: + """Test AdminTransfersSetConnectorSettingsRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersSetConnectorSettingsRequestDTO( + connectors = [ + visier_api_data_in.models.admin/transfers/set_connector_setting_request_dto.admin.transfers.SetConnectorSettingRequestDTO( + connector_id = '', + tenants = [ + visier_api_data_in.models.admin/transfers/tenant_connector_settings_request_dto.admin.transfers.TenantConnectorSettingsRequestDTO( + connector_settings = [ + visier_api_data_in.models.admin/transfers/connector_setting_request_dto.admin.transfers.ConnectorSettingRequestDTO( + setting_key = '', + value = '', ) + ], + tenant_code = '', ) + ], ) + ] + ) + else: + return AdminTransfersSetConnectorSettingsRequestDTO( + ) + + def testAdminTransfersSetConnectorSettingsRequestDTO(self): + """Test AdminTransfersSetConnectorSettingsRequestDTO""" + def validate_instance(instance): + AdminTransfersSetConnectorSettingsRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersSetConnectorSettingsRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_set_connector_settings_response_dto.py b/src/visier_api_data_in/test/test_admin_transfers_set_connector_settings_response_dto.py new file mode 100644 index 0000000000..74825f25ad --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_set_connector_settings_response_dto.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_set_connector_settings_response_dto import AdminTransfersSetConnectorSettingsResponseDTO + +class TestAdminTransfersSetConnectorSettingsResponseDTO(unittest.TestCase): + """AdminTransfersSetConnectorSettingsResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersSetConnectorSettingsResponseDTO: + """Test AdminTransfersSetConnectorSettingsResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersSetConnectorSettingsResponseDTO( + tenants = [ + visier_api_data_in.models.admin/transfers/set_connector_setting_response_dto.admin.transfers.SetConnectorSettingResponseDTO( + connectors = [ + visier_api_data_in.models.admin/transfers/connector_settings_response_dto.admin.transfers.ConnectorSettingsResponseDTO( + connector = None, + settings = [ + visier_api_data_in.models.admin/transfers/connector_setting_response_dto.admin.transfers.ConnectorSettingResponseDTO( + key = '', + message = '', + value = '', ) + ], ) + ], + message = '', + status = 'Unknown', + tenant_code = '', ) + ] + ) + else: + return AdminTransfersSetConnectorSettingsResponseDTO( + ) + + def testAdminTransfersSetConnectorSettingsResponseDTO(self): + """Test AdminTransfersSetConnectorSettingsResponseDTO""" + def validate_instance(instance): + AdminTransfersSetConnectorSettingsResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersSetConnectorSettingsResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_admin_transfers_tenant_connector_settings_request_dto.py b/src/visier_api_data_in/test/test_admin_transfers_tenant_connector_settings_request_dto.py new file mode 100644 index 0000000000..59cd229943 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_transfers_tenant_connector_settings_request_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.admin_transfers_tenant_connector_settings_request_dto import AdminTransfersTenantConnectorSettingsRequestDTO + +class TestAdminTransfersTenantConnectorSettingsRequestDTO(unittest.TestCase): + """AdminTransfersTenantConnectorSettingsRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTransfersTenantConnectorSettingsRequestDTO: + """Test AdminTransfersTenantConnectorSettingsRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTransfersTenantConnectorSettingsRequestDTO( + connector_settings = [ + visier_api_data_in.models.admin/transfers/connector_setting_request_dto.admin.transfers.ConnectorSettingRequestDTO( + setting_key = '', + value = '', ) + ], + tenant_code = '' + ) + else: + return AdminTransfersTenantConnectorSettingsRequestDTO( + ) + + def testAdminTransfersTenantConnectorSettingsRequestDTO(self): + """Test AdminTransfersTenantConnectorSettingsRequestDTO""" + def validate_instance(instance): + AdminTransfersTenantConnectorSettingsRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminTransfersTenantConnectorSettingsRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_adp_auth_params_dto.py b/src/visier_api_data_in/test/test_adp_auth_params_dto.py deleted file mode 100644 index 5e3767fbfe..0000000000 --- a/src/visier_api_data_in/test/test_adp_auth_params_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.adp_auth_params_dto import AdpAuthParamsDTO - -class TestAdpAuthParamsDTO(unittest.TestCase): - """AdpAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AdpAuthParamsDTO: - """Test AdpAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AdpAuthParamsDTO( - auth_code = '' - ) - else: - return AdpAuthParamsDTO( - ) - - def testAdpAuthParamsDTO(self): - """Test AdpAuthParamsDTO""" - def validate_instance(instance): - AdpAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = AdpAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_assign_connector_credential_request.py b/src/visier_api_data_in/test/test_assign_connector_credential_request.py deleted file mode 100644 index 3ed68e7bef..0000000000 --- a/src/visier_api_data_in/test/test_assign_connector_credential_request.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.assign_connector_credential_request import AssignConnectorCredentialRequest - -class TestAssignConnectorCredentialRequest(unittest.TestCase): - """AssignConnectorCredentialRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AssignConnectorCredentialRequest: - """Test AssignConnectorCredentialRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AssignConnectorCredentialRequest( - connectors = [ - visier_api_data_in.models.connector.Connector( - connector_id = '', - tenants = [ - visier_api_data_in.models.tenant_and_credential.TenantAndCredential( - credential_id = '', - tenant_code = '', ) - ], ) - ] - ) - else: - return AssignConnectorCredentialRequest( - ) - - def testAssignConnectorCredentialRequest(self): - """Test AssignConnectorCredentialRequest""" - def validate_instance(instance): - AssignConnectorCredentialRequest.model_validate(inst_req_only) - instance_deserialized = AssignConnectorCredentialRequest.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_assign_connector_credentials_by_tenant_response_dto.py b/src/visier_api_data_in/test/test_assign_connector_credentials_by_tenant_response_dto.py deleted file mode 100644 index caa8a0612e..0000000000 --- a/src/visier_api_data_in/test/test_assign_connector_credentials_by_tenant_response_dto.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.assign_connector_credentials_by_tenant_response_dto import AssignConnectorCredentialsByTenantResponseDTO - -class TestAssignConnectorCredentialsByTenantResponseDTO(unittest.TestCase): - """AssignConnectorCredentialsByTenantResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AssignConnectorCredentialsByTenantResponseDTO: - """Test AssignConnectorCredentialsByTenantResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AssignConnectorCredentialsByTenantResponseDTO( - connectors = [ - visier_api_data_in.models.assign_connector_with_credentials_response_dto.AssignConnectorWithCredentialsResponseDTO( - connector = None, - credential = None, ) - ], - message = '', - status = 'Unknown', - tenant_code = '' - ) - else: - return AssignConnectorCredentialsByTenantResponseDTO( - ) - - def testAssignConnectorCredentialsByTenantResponseDTO(self): - """Test AssignConnectorCredentialsByTenantResponseDTO""" - def validate_instance(instance): - AssignConnectorCredentialsByTenantResponseDTO.model_validate(inst_req_only) - instance_deserialized = AssignConnectorCredentialsByTenantResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_assign_connector_credentials_response_dto.py b/src/visier_api_data_in/test/test_assign_connector_credentials_response_dto.py deleted file mode 100644 index 27147b03c7..0000000000 --- a/src/visier_api_data_in/test/test_assign_connector_credentials_response_dto.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.assign_connector_credentials_response_dto import AssignConnectorCredentialsResponseDTO - -class TestAssignConnectorCredentialsResponseDTO(unittest.TestCase): - """AssignConnectorCredentialsResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AssignConnectorCredentialsResponseDTO: - """Test AssignConnectorCredentialsResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AssignConnectorCredentialsResponseDTO( - tenants = [ - visier_api_data_in.models.assign_connector_credentials_by_tenant_response_dto.AssignConnectorCredentialsByTenantResponseDTO( - connectors = [ - visier_api_data_in.models.assign_connector_with_credentials_response_dto.AssignConnectorWithCredentialsResponseDTO( - connector = None, - credential = None, ) - ], - message = '', - status = 'Unknown', - tenant_code = '', ) - ] - ) - else: - return AssignConnectorCredentialsResponseDTO( - ) - - def testAssignConnectorCredentialsResponseDTO(self): - """Test AssignConnectorCredentialsResponseDTO""" - def validate_instance(instance): - AssignConnectorCredentialsResponseDTO.model_validate(inst_req_only) - instance_deserialized = AssignConnectorCredentialsResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_assign_connector_with_credentials_response_dto.py b/src/visier_api_data_in/test/test_assign_connector_with_credentials_response_dto.py deleted file mode 100644 index 2dbf6399ba..0000000000 --- a/src/visier_api_data_in/test/test_assign_connector_with_credentials_response_dto.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.assign_connector_with_credentials_response_dto import AssignConnectorWithCredentialsResponseDTO - -class TestAssignConnectorWithCredentialsResponseDTO(unittest.TestCase): - """AssignConnectorWithCredentialsResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AssignConnectorWithCredentialsResponseDTO: - """Test AssignConnectorWithCredentialsResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AssignConnectorWithCredentialsResponseDTO( - connector = visier_api_data_in.models.connector_info_response_dto.ConnectorInfoResponseDTO( - connector_id = '', - description = '', - display_name = '', ), - credential = visier_api_data_in.models.assigned_credential_info_response_dto.AssignedCredentialInfoResponseDTO( - credential_id = '', - display_name = '', - message = '', ) - ) - else: - return AssignConnectorWithCredentialsResponseDTO( - ) - - def testAssignConnectorWithCredentialsResponseDTO(self): - """Test AssignConnectorWithCredentialsResponseDTO""" - def validate_instance(instance): - AssignConnectorWithCredentialsResponseDTO.model_validate(inst_req_only) - instance_deserialized = AssignConnectorWithCredentialsResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_assigned_credential_info_response_dto.py b/src/visier_api_data_in/test/test_assigned_credential_info_response_dto.py deleted file mode 100644 index 5113409775..0000000000 --- a/src/visier_api_data_in/test/test_assigned_credential_info_response_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.assigned_credential_info_response_dto import AssignedCredentialInfoResponseDTO - -class TestAssignedCredentialInfoResponseDTO(unittest.TestCase): - """AssignedCredentialInfoResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AssignedCredentialInfoResponseDTO: - """Test AssignedCredentialInfoResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AssignedCredentialInfoResponseDTO( - credential_id = '', - display_name = '', - message = '' - ) - else: - return AssignedCredentialInfoResponseDTO( - ) - - def testAssignedCredentialInfoResponseDTO(self): - """Test AssignedCredentialInfoResponseDTO""" - def validate_instance(instance): - AssignedCredentialInfoResponseDTO.model_validate(inst_req_only) - instance_deserialized = AssignedCredentialInfoResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_bamboo_auth_params_dto.py b/src/visier_api_data_in/test/test_bamboo_auth_params_dto.py deleted file mode 100644 index f6ffca0a84..0000000000 --- a/src/visier_api_data_in/test/test_bamboo_auth_params_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.bamboo_auth_params_dto import BambooAuthParamsDTO - -class TestBambooAuthParamsDTO(unittest.TestCase): - """BambooAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BambooAuthParamsDTO: - """Test BambooAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return BambooAuthParamsDTO( - access_key = '', - tenant_domain_name = '' - ) - else: - return BambooAuthParamsDTO( - ) - - def testBambooAuthParamsDTO(self): - """Test BambooAuthParamsDTO""" - def validate_instance(instance): - BambooAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = BambooAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_basic_s3_auth_params_dto.py b/src/visier_api_data_in/test/test_basic_s3_auth_params_dto.py deleted file mode 100644 index 77b44673b9..0000000000 --- a/src/visier_api_data_in/test/test_basic_s3_auth_params_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.basic_s3_auth_params_dto import BasicS3AuthParamsDTO - -class TestBasicS3AuthParamsDTO(unittest.TestCase): - """BasicS3AuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BasicS3AuthParamsDTO: - """Test BasicS3AuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return BasicS3AuthParamsDTO( - access_key = '', - bucket_name = '', - bucket_region = '', - path = '', - secret_key = '' - ) - else: - return BasicS3AuthParamsDTO( - ) - - def testBasicS3AuthParamsDTO(self): - """Test BasicS3AuthParamsDTO""" - def validate_instance(instance): - BasicS3AuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = BasicS3AuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_big_query_auth_params_dto.py b/src/visier_api_data_in/test/test_big_query_auth_params_dto.py deleted file mode 100644 index cdc4584200..0000000000 --- a/src/visier_api_data_in/test/test_big_query_auth_params_dto.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.big_query_auth_params_dto import BigQueryAuthParamsDTO - -class TestBigQueryAuthParamsDTO(unittest.TestCase): - """BigQueryAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BigQueryAuthParamsDTO: - """Test BigQueryAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return BigQueryAuthParamsDTO( - client_id = '', - client_secret = '', - dataset_location = '', - default_dataset = '', - project_id = '', - refresh_token = '', - service_account_params = visier_api_data_in.models.big_query_service_account_params_dto.BigQueryServiceAccountParamsDTO( - private_key = '', - service_account_email = '', ) - ) - else: - return BigQueryAuthParamsDTO( - ) - - def testBigQueryAuthParamsDTO(self): - """Test BigQueryAuthParamsDTO""" - def validate_instance(instance): - BigQueryAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = BigQueryAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_big_query_service_account_params_dto.py b/src/visier_api_data_in/test/test_big_query_service_account_params_dto.py deleted file mode 100644 index 78bc7b2fbf..0000000000 --- a/src/visier_api_data_in/test/test_big_query_service_account_params_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.big_query_service_account_params_dto import BigQueryServiceAccountParamsDTO - -class TestBigQueryServiceAccountParamsDTO(unittest.TestCase): - """BigQueryServiceAccountParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BigQueryServiceAccountParamsDTO: - """Test BigQueryServiceAccountParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return BigQueryServiceAccountParamsDTO( - private_key = '', - service_account_email = '' - ) - else: - return BigQueryServiceAccountParamsDTO( - ) - - def testBigQueryServiceAccountParamsDTO(self): - """Test BigQueryServiceAccountParamsDTO""" - def validate_instance(instance): - BigQueryServiceAccountParamsDTO.model_validate(inst_req_only) - instance_deserialized = BigQueryServiceAccountParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_cancel_job_batch_from_job_id_dto.py b/src/visier_api_data_in/test/test_cancel_job_batch_from_job_id_dto.py deleted file mode 100644 index b07ed4b2cd..0000000000 --- a/src/visier_api_data_in/test/test_cancel_job_batch_from_job_id_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.cancel_job_batch_from_job_id_dto import CancelJobBatchFromJobIdDTO - -class TestCancelJobBatchFromJobIdDTO(unittest.TestCase): - """CancelJobBatchFromJobIdDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CancelJobBatchFromJobIdDTO: - """Test CancelJobBatchFromJobIdDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CancelJobBatchFromJobIdDTO( - job_ids = [ - '' - ] - ) - else: - return CancelJobBatchFromJobIdDTO( - ) - - def testCancelJobBatchFromJobIdDTO(self): - """Test CancelJobBatchFromJobIdDTO""" - def validate_instance(instance): - CancelJobBatchFromJobIdDTO.model_validate(inst_req_only) - instance_deserialized = CancelJobBatchFromJobIdDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_connector.py b/src/visier_api_data_in/test/test_connector.py deleted file mode 100644 index 2e9bec89b5..0000000000 --- a/src/visier_api_data_in/test/test_connector.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.connector import Connector - -class TestConnector(unittest.TestCase): - """Connector unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Connector: - """Test Connector - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return Connector( - connector_id = '', - tenants = [ - visier_api_data_in.models.tenant_and_credential.TenantAndCredential( - credential_id = '', - tenant_code = '', ) - ] - ) - else: - return Connector( - ) - - def testConnector(self): - """Test Connector""" - def validate_instance(instance): - Connector.model_validate(inst_req_only) - instance_deserialized = Connector.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_connector_info_response_dto.py b/src/visier_api_data_in/test/test_connector_info_response_dto.py deleted file mode 100644 index 0c49ae4cc5..0000000000 --- a/src/visier_api_data_in/test/test_connector_info_response_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.connector_info_response_dto import ConnectorInfoResponseDTO - -class TestConnectorInfoResponseDTO(unittest.TestCase): - """ConnectorInfoResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConnectorInfoResponseDTO: - """Test ConnectorInfoResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ConnectorInfoResponseDTO( - connector_id = '', - description = '', - display_name = '' - ) - else: - return ConnectorInfoResponseDTO( - ) - - def testConnectorInfoResponseDTO(self): - """Test ConnectorInfoResponseDTO""" - def validate_instance(instance): - ConnectorInfoResponseDTO.model_validate(inst_req_only) - instance_deserialized = ConnectorInfoResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_connector_setting_request_dto.py b/src/visier_api_data_in/test/test_connector_setting_request_dto.py deleted file mode 100644 index 45a2c55cf6..0000000000 --- a/src/visier_api_data_in/test/test_connector_setting_request_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.connector_setting_request_dto import ConnectorSettingRequestDTO - -class TestConnectorSettingRequestDTO(unittest.TestCase): - """ConnectorSettingRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConnectorSettingRequestDTO: - """Test ConnectorSettingRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ConnectorSettingRequestDTO( - setting_key = '', - value = '' - ) - else: - return ConnectorSettingRequestDTO( - ) - - def testConnectorSettingRequestDTO(self): - """Test ConnectorSettingRequestDTO""" - def validate_instance(instance): - ConnectorSettingRequestDTO.model_validate(inst_req_only) - instance_deserialized = ConnectorSettingRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_connector_setting_response_dto.py b/src/visier_api_data_in/test/test_connector_setting_response_dto.py deleted file mode 100644 index ea1bb1f2c0..0000000000 --- a/src/visier_api_data_in/test/test_connector_setting_response_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.connector_setting_response_dto import ConnectorSettingResponseDTO - -class TestConnectorSettingResponseDTO(unittest.TestCase): - """ConnectorSettingResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConnectorSettingResponseDTO: - """Test ConnectorSettingResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ConnectorSettingResponseDTO( - key = '', - message = '', - value = '' - ) - else: - return ConnectorSettingResponseDTO( - ) - - def testConnectorSettingResponseDTO(self): - """Test ConnectorSettingResponseDTO""" - def validate_instance(instance): - ConnectorSettingResponseDTO.model_validate(inst_req_only) - instance_deserialized = ConnectorSettingResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_connector_settings_response_dto.py b/src/visier_api_data_in/test/test_connector_settings_response_dto.py deleted file mode 100644 index 23b102b0b8..0000000000 --- a/src/visier_api_data_in/test/test_connector_settings_response_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.connector_settings_response_dto import ConnectorSettingsResponseDTO - -class TestConnectorSettingsResponseDTO(unittest.TestCase): - """ConnectorSettingsResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConnectorSettingsResponseDTO: - """Test ConnectorSettingsResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ConnectorSettingsResponseDTO( - connector = visier_api_data_in.models.connector_info_response_dto.ConnectorInfoResponseDTO( - connector_id = '', - description = '', - display_name = '', ), - settings = [ - visier_api_data_in.models.connector_setting_response_dto.ConnectorSettingResponseDTO( - key = '', - message = '', - value = '', ) - ] - ) - else: - return ConnectorSettingsResponseDTO( - ) - - def testConnectorSettingsResponseDTO(self): - """Test ConnectorSettingsResponseDTO""" - def validate_instance(instance): - ConnectorSettingsResponseDTO.model_validate(inst_req_only) - instance_deserialized = ConnectorSettingsResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_consolidated_analytics_job_request_dto.py b/src/visier_api_data_in/test/test_consolidated_analytics_job_request_dto.py deleted file mode 100644 index a1b8e2ee47..0000000000 --- a/src/visier_api_data_in/test/test_consolidated_analytics_job_request_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.consolidated_analytics_job_request_dto import ConsolidatedAnalyticsJobRequestDTO - -class TestConsolidatedAnalyticsJobRequestDTO(unittest.TestCase): - """ConsolidatedAnalyticsJobRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConsolidatedAnalyticsJobRequestDTO: - """Test ConsolidatedAnalyticsJobRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ConsolidatedAnalyticsJobRequestDTO( - tenant_code = '' - ) - else: - return ConsolidatedAnalyticsJobRequestDTO( - ) - - def testConsolidatedAnalyticsJobRequestDTO(self): - """Test ConsolidatedAnalyticsJobRequestDTO""" - def validate_instance(instance): - ConsolidatedAnalyticsJobRequestDTO.model_validate(inst_req_only) - instance_deserialized = ConsolidatedAnalyticsJobRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_copy_s3_auth_params_dto.py b/src/visier_api_data_in/test/test_copy_s3_auth_params_dto.py deleted file mode 100644 index 3e26aeeb08..0000000000 --- a/src/visier_api_data_in/test/test_copy_s3_auth_params_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.copy_s3_auth_params_dto import CopyS3AuthParamsDTO - -class TestCopyS3AuthParamsDTO(unittest.TestCase): - """CopyS3AuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CopyS3AuthParamsDTO: - """Test CopyS3AuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CopyS3AuthParamsDTO( - iam_role = '' - ) - else: - return CopyS3AuthParamsDTO( - ) - - def testCopyS3AuthParamsDTO(self): - """Test CopyS3AuthParamsDTO""" - def validate_instance(instance): - CopyS3AuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = CopyS3AuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_credential_creation_api_response_dto.py b/src/visier_api_data_in/test/test_credential_creation_api_response_dto.py deleted file mode 100644 index afa5cf03e9..0000000000 --- a/src/visier_api_data_in/test/test_credential_creation_api_response_dto.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.credential_creation_api_response_dto import CredentialCreationAPIResponseDTO - -class TestCredentialCreationAPIResponseDTO(unittest.TestCase): - """CredentialCreationAPIResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CredentialCreationAPIResponseDTO: - """Test CredentialCreationAPIResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CredentialCreationAPIResponseDTO( - missing_connection_properties = [ - visier_api_data_in.models.subject_missing_access_dto.SubjectMissingAccessDTO( - attributes = [ - '' - ], - error_message = '', - subject = 'Employee', ) - ], - object_name = '', - symbol_name = '', - uuid = '' - ) - else: - return CredentialCreationAPIResponseDTO( - ) - - def testCredentialCreationAPIResponseDTO(self): - """Test CredentialCreationAPIResponseDTO""" - def validate_instance(instance): - CredentialCreationAPIResponseDTO.model_validate(inst_req_only) - instance_deserialized = CredentialCreationAPIResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_data_and_job_handling_api.py b/src/visier_api_data_in/test/test_data_and_job_handling_api.py index 2477a33f49..a27c5805a7 100644 --- a/src/visier_api_data_in/test/test_data_and_job_handling_api.py +++ b/src/visier_api_data_in/test/test_data_and_job_handling_api.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/test/test_data_categories_response_dto.py b/src/visier_api_data_in/test/test_data_categories_response_dto.py deleted file mode 100644 index 98bdcdb3e3..0000000000 --- a/src/visier_api_data_in/test/test_data_categories_response_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.data_categories_response_dto import DataCategoriesResponseDTO - -class TestDataCategoriesResponseDTO(unittest.TestCase): - """DataCategoriesResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataCategoriesResponseDTO: - """Test DataCategoriesResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataCategoriesResponseDTO( - categories = [ - visier_api_data_in.models.data_category_response_dto.DataCategoryResponseDTO( - id = '', - name = '', ) - ] - ) - else: - return DataCategoriesResponseDTO( - ) - - def testDataCategoriesResponseDTO(self): - """Test DataCategoriesResponseDTO""" - def validate_instance(instance): - DataCategoriesResponseDTO.model_validate(inst_req_only) - instance_deserialized = DataCategoriesResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_data_category_response_dto.py b/src/visier_api_data_in/test/test_data_category_response_dto.py deleted file mode 100644 index d502856e4e..0000000000 --- a/src/visier_api_data_in/test/test_data_category_response_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.data_category_response_dto import DataCategoryResponseDTO - -class TestDataCategoryResponseDTO(unittest.TestCase): - """DataCategoryResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataCategoryResponseDTO: - """Test DataCategoryResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataCategoryResponseDTO( - id = '', - name = '' - ) - else: - return DataCategoryResponseDTO( - ) - - def testDataCategoryResponseDTO(self): - """Test DataCategoryResponseDTO""" - def validate_instance(instance): - DataCategoryResponseDTO.model_validate(inst_req_only) - instance_deserialized = DataCategoryResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_assign_connector_credential_request.py b/src/visier_api_data_in/test/test_data_in_assign_connector_credential_request.py new file mode 100644 index 0000000000..914f7f1e36 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_assign_connector_credential_request.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_assign_connector_credential_request import DataInAssignConnectorCredentialRequest + +class TestDataInAssignConnectorCredentialRequest(unittest.TestCase): + """DataInAssignConnectorCredentialRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInAssignConnectorCredentialRequest: + """Test DataInAssignConnectorCredentialRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInAssignConnectorCredentialRequest( + connectors = [ + visier_api_data_in.models.data_in/connector.data_in.Connector( + connector_id = '', + tenants = [ + visier_api_data_in.models.data_in/tenant_and_credential.data_in.TenantAndCredential( + credential_id = '', + tenant_code = '', ) + ], ) + ] + ) + else: + return DataInAssignConnectorCredentialRequest( + ) + + def testDataInAssignConnectorCredentialRequest(self): + """Test DataInAssignConnectorCredentialRequest""" + def validate_instance(instance): + DataInAssignConnectorCredentialRequest.model_validate(inst_req_only) + instance_deserialized = DataInAssignConnectorCredentialRequest.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_connector.py b/src/visier_api_data_in/test/test_data_in_connector.py new file mode 100644 index 0000000000..f85a506caa --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_connector.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_connector import DataInConnector + +class TestDataInConnector(unittest.TestCase): + """DataInConnector unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInConnector: + """Test DataInConnector + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInConnector( + connector_id = '', + tenants = [ + visier_api_data_in.models.data_in/tenant_and_credential.data_in.TenantAndCredential( + credential_id = '', + tenant_code = '', ) + ] + ) + else: + return DataInConnector( + ) + + def testDataInConnector(self): + """Test DataInConnector""" + def validate_instance(instance): + DataInConnector.model_validate(inst_req_only) + instance_deserialized = DataInConnector.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_data_load_request.py b/src/visier_api_data_in/test/test_data_in_data_load_request.py new file mode 100644 index 0000000000..8b12d2c72a --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_data_load_request.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_data_load_request import DataInDataLoadRequest + +class TestDataInDataLoadRequest(unittest.TestCase): + """DataInDataLoadRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInDataLoadRequest: + """Test DataInDataLoadRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInDataLoadRequest( + model = visier_api_data_in.models.data_in/data_load_request_model.data_in.DataLoadRequestModel( + files = [ + '' + ], + skip_data_load = True, ) + ) + else: + return DataInDataLoadRequest( + ) + + def testDataInDataLoadRequest(self): + """Test DataInDataLoadRequest""" + def validate_instance(instance): + DataInDataLoadRequest.model_validate(inst_req_only) + instance_deserialized = DataInDataLoadRequest.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_data_load_request_model.py b/src/visier_api_data_in/test/test_data_in_data_load_request_model.py new file mode 100644 index 0000000000..83c851abd8 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_data_load_request_model.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_data_load_request_model import DataInDataLoadRequestModel + +class TestDataInDataLoadRequestModel(unittest.TestCase): + """DataInDataLoadRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInDataLoadRequestModel: + """Test DataInDataLoadRequestModel + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInDataLoadRequestModel( + files = [ + '' + ], + skip_data_load = True + ) + else: + return DataInDataLoadRequestModel( + ) + + def testDataInDataLoadRequestModel(self): + """Test DataInDataLoadRequestModel""" + def validate_instance(instance): + DataInDataLoadRequestModel.model_validate(inst_req_only) + instance_deserialized = DataInDataLoadRequestModel.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_data_load_response.py b/src/visier_api_data_in/test/test_data_in_data_load_response.py new file mode 100644 index 0000000000..f1c6d2dec8 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_data_load_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_data_load_response import DataInDataLoadResponse + +class TestDataInDataLoadResponse(unittest.TestCase): + """DataInDataLoadResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInDataLoadResponse: + """Test DataInDataLoadResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInDataLoadResponse( + job_id = '' + ) + else: + return DataInDataLoadResponse( + ) + + def testDataInDataLoadResponse(self): + """Test DataInDataLoadResponse""" + def validate_instance(instance): + DataInDataLoadResponse.model_validate(inst_req_only) + instance_deserialized = DataInDataLoadResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_data_transfer_result_detail.py b/src/visier_api_data_in/test/test_data_in_data_transfer_result_detail.py new file mode 100644 index 0000000000..e8813cc310 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_data_transfer_result_detail.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_data_transfer_result_detail import DataInDataTransferResultDetail + +class TestDataInDataTransferResultDetail(unittest.TestCase): + """DataInDataTransferResultDetail unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInDataTransferResultDetail: + """Test DataInDataTransferResultDetail + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInDataTransferResultDetail( + data_size = '', + rows = '', + source_names = [ + '' + ], + tenant_code = '' + ) + else: + return DataInDataTransferResultDetail( + ) + + def testDataInDataTransferResultDetail(self): + """Test DataInDataTransferResultDetail""" + def validate_instance(instance): + DataInDataTransferResultDetail.model_validate(inst_req_only) + instance_deserialized = DataInDataTransferResultDetail.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_data_version_object.py b/src/visier_api_data_in/test/test_data_in_data_version_object.py new file mode 100644 index 0000000000..8f9548b15f --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_data_version_object.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_data_version_object import DataInDataVersionObject + +class TestDataInDataVersionObject(unittest.TestCase): + """DataInDataVersionObject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInDataVersionObject: + """Test DataInDataVersionObject + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInDataVersionObject( + data_versions = '', + tenant_code = '' + ) + else: + return DataInDataVersionObject( + ) + + def testDataInDataVersionObject(self): + """Test DataInDataVersionObject""" + def validate_instance(instance): + DataInDataVersionObject.model_validate(inst_req_only) + instance_deserialized = DataInDataVersionObject.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_disable_dv_model.py b/src/visier_api_data_in/test/test_data_in_disable_dv_model.py new file mode 100644 index 0000000000..748e4f07ec --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_disable_dv_model.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_disable_dv_model import DataInDisableDVModel + +class TestDataInDisableDVModel(unittest.TestCase): + """DataInDisableDVModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInDisableDVModel: + """Test DataInDisableDVModel + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInDisableDVModel( + data_version_objects = [ + visier_api_data_in.models.data_in/data_version_object.data_in.DataVersionObject( + data_versions = '', + tenant_code = '', ) + ] + ) + else: + return DataInDisableDVModel( + ) + + def testDataInDisableDVModel(self): + """Test DataInDisableDVModel""" + def validate_instance(instance): + DataInDisableDVModel.model_validate(inst_req_only) + instance_deserialized = DataInDisableDVModel.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_disable_dv_request.py b/src/visier_api_data_in/test/test_data_in_disable_dv_request.py new file mode 100644 index 0000000000..a79e41ad3e --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_disable_dv_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_disable_dv_request import DataInDisableDVRequest + +class TestDataInDisableDVRequest(unittest.TestCase): + """DataInDisableDVRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInDisableDVRequest: + """Test DataInDisableDVRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInDisableDVRequest( + model = visier_api_data_in.models.data_in/disable_dv_model.data_in.DisableDVModel( + data_version_objects = [ + visier_api_data_in.models.data_in/data_version_object.data_in.DataVersionObject( + data_versions = '', + tenant_code = '', ) + ], ) + ) + else: + return DataInDisableDVRequest( + ) + + def testDataInDisableDVRequest(self): + """Test DataInDisableDVRequest""" + def validate_instance(instance): + DataInDisableDVRequest.model_validate(inst_req_only) + instance_deserialized = DataInDisableDVRequest.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_disable_dv_response.py b/src/visier_api_data_in/test/test_data_in_disable_dv_response.py new file mode 100644 index 0000000000..d704b01b27 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_disable_dv_response.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_disable_dv_response import DataInDisableDVResponse + +class TestDataInDisableDVResponse(unittest.TestCase): + """DataInDisableDVResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInDisableDVResponse: + """Test DataInDisableDVResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInDisableDVResponse( + results = [ + visier_api_data_in.models.data_in/result.data_in.Result( + data_version = '', + job_id = '', + message = '', + status = '', + tenant_code = '', ) + ], + total_failures = 56, + total_success = 56 + ) + else: + return DataInDisableDVResponse( + ) + + def testDataInDisableDVResponse(self): + """Test DataInDisableDVResponse""" + def validate_instance(instance): + DataInDisableDVResponse.model_validate(inst_req_only) + instance_deserialized = DataInDisableDVResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_dispatching_job_status_response.py b/src/visier_api_data_in/test/test_data_in_dispatching_job_status_response.py new file mode 100644 index 0000000000..d7d9bc899c --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_dispatching_job_status_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_dispatching_job_status_response import DataInDispatchingJobStatusResponse + +class TestDataInDispatchingJobStatusResponse(unittest.TestCase): + """DataInDispatchingJobStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInDispatchingJobStatusResponse: + """Test DataInDispatchingJobStatusResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInDispatchingJobStatusResponse( + job_id = '', + status = '', + tenant_code = '', + total_jobs_dispatched = 56 + ) + else: + return DataInDispatchingJobStatusResponse( + ) + + def testDataInDispatchingJobStatusResponse(self): + """Test DataInDispatchingJobStatusResponse""" + def validate_instance(instance): + DataInDispatchingJobStatusResponse.model_validate(inst_req_only) + instance_deserialized = DataInDispatchingJobStatusResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_exclude_data_uploads_request.py b/src/visier_api_data_in/test/test_data_in_exclude_data_uploads_request.py new file mode 100644 index 0000000000..b415f7786a --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_exclude_data_uploads_request.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_exclude_data_uploads_request import DataInExcludeDataUploadsRequest + +class TestDataInExcludeDataUploadsRequest(unittest.TestCase): + """DataInExcludeDataUploadsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInExcludeDataUploadsRequest: + """Test DataInExcludeDataUploadsRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInExcludeDataUploadsRequest( + uploads = [ + visier_api_data_in.models.data_in/upload_to_exclude.data_in.UploadToExclude( + exclude_all = True, + max_upload_time = '', + min_upload_time = '', + sources = [ + '' + ], + tenant_code = '', + upload_times = [ + '' + ], ) + ] + ) + else: + return DataInExcludeDataUploadsRequest( + ) + + def testDataInExcludeDataUploadsRequest(self): + """Test DataInExcludeDataUploadsRequest""" + def validate_instance(instance): + DataInExcludeDataUploadsRequest.model_validate(inst_req_only) + instance_deserialized = DataInExcludeDataUploadsRequest.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_extraction_job.py b/src/visier_api_data_in/test/test_data_in_extraction_job.py new file mode 100644 index 0000000000..d28362b426 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_extraction_job.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_extraction_job import DataInExtractionJob + +class TestDataInExtractionJob(unittest.TestCase): + """DataInExtractionJob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInExtractionJob: + """Test DataInExtractionJob + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInExtractionJob( + current_stage = '', + extraction_job_id = '', + status = '', + tenant_code = '' + ) + else: + return DataInExtractionJob( + ) + + def testDataInExtractionJob(self): + """Test DataInExtractionJob""" + def validate_instance(instance): + DataInExtractionJob.model_validate(inst_req_only) + instance_deserialized = DataInExtractionJob.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_extraction_job_and_status_response.py b/src/visier_api_data_in/test/test_data_in_extraction_job_and_status_response.py new file mode 100644 index 0000000000..31d11f3e5c --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_extraction_job_and_status_response.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_extraction_job_and_status_response import DataInExtractionJobAndStatusResponse + +class TestDataInExtractionJobAndStatusResponse(unittest.TestCase): + """DataInExtractionJobAndStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInExtractionJobAndStatusResponse: + """Test DataInExtractionJobAndStatusResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInExtractionJobAndStatusResponse( + extraction_jobs = [ + visier_api_data_in.models.data_in/extraction_job.data_in.ExtractionJob( + current_stage = '', + extraction_job_id = '', + status = '', + tenant_code = '', ) + ], + limit = 56, + parent_job_id = '', + parent_tenant_code = '', + start = 56 + ) + else: + return DataInExtractionJobAndStatusResponse( + ) + + def testDataInExtractionJobAndStatusResponse(self): + """Test DataInExtractionJobAndStatusResponse""" + def validate_instance(instance): + DataInExtractionJobAndStatusResponse.model_validate(inst_req_only) + instance_deserialized = DataInExtractionJobAndStatusResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_include_data_uploads_request.py b/src/visier_api_data_in/test/test_data_in_include_data_uploads_request.py new file mode 100644 index 0000000000..9d3d712781 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_include_data_uploads_request.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_include_data_uploads_request import DataInIncludeDataUploadsRequest + +class TestDataInIncludeDataUploadsRequest(unittest.TestCase): + """DataInIncludeDataUploadsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInIncludeDataUploadsRequest: + """Test DataInIncludeDataUploadsRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInIncludeDataUploadsRequest( + uploads = [ + visier_api_data_in.models.data_in/upload_to_include.data_in.UploadToInclude( + include_all = True, + max_upload_time = '', + min_upload_time = '', + sources = [ + '' + ], + tenant_code = '', + upload_times = [ + '' + ], ) + ] + ) + else: + return DataInIncludeDataUploadsRequest( + ) + + def testDataInIncludeDataUploadsRequest(self): + """Test DataInIncludeDataUploadsRequest""" + def validate_instance(instance): + DataInIncludeDataUploadsRequest.model_validate(inst_req_only) + instance_deserialized = DataInIncludeDataUploadsRequest.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_job_status_list_response.py b/src/visier_api_data_in/test/test_data_in_job_status_list_response.py new file mode 100644 index 0000000000..8b75621a6f --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_job_status_list_response.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_job_status_list_response import DataInJobStatusListResponse + +class TestDataInJobStatusListResponse(unittest.TestCase): + """DataInJobStatusListResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInJobStatusListResponse: + """Test DataInJobStatusListResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInJobStatusListResponse( + job_status = [ + visier_api_data_in.models.data_in/job_status_with_start_time.data_in.JobStatusWithStartTime( + job_id = '', + job_type = '', + start_time = '', + status = '', + tenant = '', ) + ], + query_end_time = '', + query_start_time = '' + ) + else: + return DataInJobStatusListResponse( + ) + + def testDataInJobStatusListResponse(self): + """Test DataInJobStatusListResponse""" + def validate_instance(instance): + DataInJobStatusListResponse.model_validate(inst_req_only) + instance_deserialized = DataInJobStatusListResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_job_status_with_start_time.py b/src/visier_api_data_in/test/test_data_in_job_status_with_start_time.py new file mode 100644 index 0000000000..65fac8f046 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_job_status_with_start_time.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_job_status_with_start_time import DataInJobStatusWithStartTime + +class TestDataInJobStatusWithStartTime(unittest.TestCase): + """DataInJobStatusWithStartTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInJobStatusWithStartTime: + """Test DataInJobStatusWithStartTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInJobStatusWithStartTime( + job_id = '', + job_type = '', + start_time = '', + status = '', + tenant = '' + ) + else: + return DataInJobStatusWithStartTime( + ) + + def testDataInJobStatusWithStartTime(self): + """Test DataInJobStatusWithStartTime""" + def validate_instance(instance): + DataInJobStatusWithStartTime.model_validate(inst_req_only) + instance_deserialized = DataInJobStatusWithStartTime.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_processing_job.py b/src/visier_api_data_in/test/test_data_in_processing_job.py new file mode 100644 index 0000000000..31f1cc0568 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_processing_job.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_processing_job import DataInProcessingJob + +class TestDataInProcessingJob(unittest.TestCase): + """DataInProcessingJob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInProcessingJob: + """Test DataInProcessingJob + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInProcessingJob( + data_version = '', + job_id = '', + message = '', + status = '', + tenant_code = '' + ) + else: + return DataInProcessingJob( + ) + + def testDataInProcessingJob(self): + """Test DataInProcessingJob""" + def validate_instance(instance): + DataInProcessingJob.model_validate(inst_req_only) + instance_deserialized = DataInProcessingJob.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_processing_job_and_status_response.py b/src/visier_api_data_in/test/test_data_in_processing_job_and_status_response.py new file mode 100644 index 0000000000..654e129ee0 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_processing_job_and_status_response.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_processing_job_and_status_response import DataInProcessingJobAndStatusResponse + +class TestDataInProcessingJobAndStatusResponse(unittest.TestCase): + """DataInProcessingJobAndStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInProcessingJobAndStatusResponse: + """Test DataInProcessingJobAndStatusResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInProcessingJobAndStatusResponse( + limit = 56, + parent_job_id = '', + parent_tenant_code = '', + processing_jobs = [ + visier_api_data_in.models.data_in/processing_job.data_in.ProcessingJob( + data_version = '', + job_id = '', + message = '', + status = '', + tenant_code = '', ) + ], + start = 56 + ) + else: + return DataInProcessingJobAndStatusResponse( + ) + + def testDataInProcessingJobAndStatusResponse(self): + """Test DataInProcessingJobAndStatusResponse""" + def validate_instance(instance): + DataInProcessingJobAndStatusResponse.model_validate(inst_req_only) + instance_deserialized = DataInProcessingJobAndStatusResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_processing_job_status_response.py b/src/visier_api_data_in/test/test_data_in_processing_job_status_response.py new file mode 100644 index 0000000000..0647408e14 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_processing_job_status_response.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_processing_job_status_response import DataInProcessingJobStatusResponse + +class TestDataInProcessingJobStatusResponse(unittest.TestCase): + """DataInProcessingJobStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInProcessingJobStatusResponse: + """Test DataInProcessingJobStatusResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInProcessingJobStatusResponse( + limit = 56, + parent_job_id = '', + parent_tenant_code = '', + processing_jobs = [ + visier_api_data_in.models.data_in/processing_job.data_in.ProcessingJob( + data_version = '', + job_id = '', + message = '', + status = '', + tenant_code = '', ) + ], + start = 56 + ) + else: + return DataInProcessingJobStatusResponse( + ) + + def testDataInProcessingJobStatusResponse(self): + """Test DataInProcessingJobStatusResponse""" + def validate_instance(instance): + DataInProcessingJobStatusResponse.model_validate(inst_req_only) + instance_deserialized = DataInProcessingJobStatusResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_push_data_cancel_response.py b/src/visier_api_data_in/test/test_data_in_push_data_cancel_response.py new file mode 100644 index 0000000000..3fe7c0fd27 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_push_data_cancel_response.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_push_data_cancel_response import DataInPushDataCancelResponse + +class TestDataInPushDataCancelResponse(unittest.TestCase): + """DataInPushDataCancelResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInPushDataCancelResponse: + """Test DataInPushDataCancelResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInPushDataCancelResponse( + data_transfer_result_details = [ + visier_api_data_in.models.data_in/data_transfer_result_detail.data_in.DataTransferResultDetail( + data_size = '', + rows = '', + source_names = [ + '' + ], + tenant_code = '', ) + ], + message = '', + status = '', + transfer_session_id = '' + ) + else: + return DataInPushDataCancelResponse( + ) + + def testDataInPushDataCancelResponse(self): + """Test DataInPushDataCancelResponse""" + def validate_instance(instance): + DataInPushDataCancelResponse.model_validate(inst_req_only) + instance_deserialized = DataInPushDataCancelResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_push_data_complete_request.py b/src/visier_api_data_in/test/test_data_in_push_data_complete_request.py new file mode 100644 index 0000000000..4383bdbdcc --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_push_data_complete_request.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_push_data_complete_request import DataInPushDataCompleteRequest + +class TestDataInPushDataCompleteRequest(unittest.TestCase): + """DataInPushDataCompleteRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInPushDataCompleteRequest: + """Test DataInPushDataCompleteRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInPushDataCompleteRequest( + processing_data = True, + transfer_session_id = '' + ) + else: + return DataInPushDataCompleteRequest( + ) + + def testDataInPushDataCompleteRequest(self): + """Test DataInPushDataCompleteRequest""" + def validate_instance(instance): + DataInPushDataCompleteRequest.model_validate(inst_req_only) + instance_deserialized = DataInPushDataCompleteRequest.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_push_data_complete_response.py b/src/visier_api_data_in/test/test_data_in_push_data_complete_response.py new file mode 100644 index 0000000000..21c3f489b5 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_push_data_complete_response.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_push_data_complete_response import DataInPushDataCompleteResponse + +class TestDataInPushDataCompleteResponse(unittest.TestCase): + """DataInPushDataCompleteResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInPushDataCompleteResponse: + """Test DataInPushDataCompleteResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInPushDataCompleteResponse( + data_receiving_job_id = '', + data_transfer_result_details = [ + visier_api_data_in.models.data_in/data_transfer_result_detail.data_in.DataTransferResultDetail( + data_size = '', + rows = '', + source_names = [ + '' + ], + tenant_code = '', ) + ], + message = '', + status = '', + transfer_session_id = '' + ) + else: + return DataInPushDataCompleteResponse( + ) + + def testDataInPushDataCompleteResponse(self): + """Test DataInPushDataCompleteResponse""" + def validate_instance(instance): + DataInPushDataCompleteResponse.model_validate(inst_req_only) + instance_deserialized = DataInPushDataCompleteResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_push_data_response.py b/src/visier_api_data_in/test/test_data_in_push_data_response.py new file mode 100644 index 0000000000..a67188b2d5 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_push_data_response.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_push_data_response import DataInPushDataResponse + +class TestDataInPushDataResponse(unittest.TestCase): + """DataInPushDataResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInPushDataResponse: + """Test DataInPushDataResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInPushDataResponse( + message = '', + sequence = 56, + status = '', + tenants = [ + visier_api_data_in.models.data_in/tenant.data_in.Tenant( + sources = [ + visier_api_data_in.models.data_in/source.data_in.Source( + data_size = '', + message = '', + rows = '', + source_id = '', + source_name = '', + status = '', ) + ], + status = '', + tenant_code = '', ) + ], + transfer_session_id = '' + ) + else: + return DataInPushDataResponse( + ) + + def testDataInPushDataResponse(self): + """Test DataInPushDataResponse""" + def validate_instance(instance): + DataInPushDataResponse.model_validate(inst_req_only) + instance_deserialized = DataInPushDataResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_receiving_job.py b/src/visier_api_data_in/test/test_data_in_receiving_job.py new file mode 100644 index 0000000000..9624e2b997 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_receiving_job.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_receiving_job import DataInReceivingJob + +class TestDataInReceivingJob(unittest.TestCase): + """DataInReceivingJob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInReceivingJob: + """Test DataInReceivingJob + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInReceivingJob( + receiving_job_id = '', + status = '', + tenant_code = '' + ) + else: + return DataInReceivingJob( + ) + + def testDataInReceivingJob(self): + """Test DataInReceivingJob""" + def validate_instance(instance): + DataInReceivingJob.model_validate(inst_req_only) + instance_deserialized = DataInReceivingJob.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_receiving_job_and_status_response.py b/src/visier_api_data_in/test/test_data_in_receiving_job_and_status_response.py new file mode 100644 index 0000000000..f41f499235 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_receiving_job_and_status_response.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_receiving_job_and_status_response import DataInReceivingJobAndStatusResponse + +class TestDataInReceivingJobAndStatusResponse(unittest.TestCase): + """DataInReceivingJobAndStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInReceivingJobAndStatusResponse: + """Test DataInReceivingJobAndStatusResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInReceivingJobAndStatusResponse( + limit = 56, + parent_job_id = '', + parent_tenant_code = '', + receiving_jobs = [ + visier_api_data_in.models.data_in/receiving_job.data_in.ReceivingJob( + receiving_job_id = '', + status = '', + tenant_code = '', ) + ], + start = 56 + ) + else: + return DataInReceivingJobAndStatusResponse( + ) + + def testDataInReceivingJobAndStatusResponse(self): + """Test DataInReceivingJobAndStatusResponse""" + def validate_instance(instance): + DataInReceivingJobAndStatusResponse.model_validate(inst_req_only) + instance_deserialized = DataInReceivingJobAndStatusResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_receiving_job_status_response.py b/src/visier_api_data_in/test/test_data_in_receiving_job_status_response.py new file mode 100644 index 0000000000..f5430762f9 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_receiving_job_status_response.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_receiving_job_status_response import DataInReceivingJobStatusResponse + +class TestDataInReceivingJobStatusResponse(unittest.TestCase): + """DataInReceivingJobStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInReceivingJobStatusResponse: + """Test DataInReceivingJobStatusResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInReceivingJobStatusResponse( + job_id = '', + parent_job_id = '', + parent_tenant_code = '', + receiving_jobs = [ + visier_api_data_in.models.data_in/receiving_job.data_in.ReceivingJob( + receiving_job_id = '', + status = '', + tenant_code = '', ) + ], + status = '' + ) + else: + return DataInReceivingJobStatusResponse( + ) + + def testDataInReceivingJobStatusResponse(self): + """Test DataInReceivingJobStatusResponse""" + def validate_instance(instance): + DataInReceivingJobStatusResponse.model_validate(inst_req_only) + instance_deserialized = DataInReceivingJobStatusResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_result.py b/src/visier_api_data_in/test/test_data_in_result.py new file mode 100644 index 0000000000..2ac8ee1daa --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_result.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_result import DataInResult + +class TestDataInResult(unittest.TestCase): + """DataInResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInResult: + """Test DataInResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInResult( + data_version = '', + job_id = '', + message = '', + status = '', + tenant_code = '' + ) + else: + return DataInResult( + ) + + def testDataInResult(self): + """Test DataInResult""" + def validate_instance(instance): + DataInResult.model_validate(inst_req_only) + instance_deserialized = DataInResult.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_source.py b/src/visier_api_data_in/test/test_data_in_source.py new file mode 100644 index 0000000000..f0d6665b48 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_source.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_source import DataInSource + +class TestDataInSource(unittest.TestCase): + """DataInSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInSource: + """Test DataInSource + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInSource( + data_size = '', + message = '', + rows = '', + source_id = '', + source_name = '', + status = '' + ) + else: + return DataInSource( + ) + + def testDataInSource(self): + """Test DataInSource""" + def validate_instance(instance): + DataInSource.model_validate(inst_req_only) + instance_deserialized = DataInSource.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_start_extraction_response.py b/src/visier_api_data_in/test/test_data_in_start_extraction_response.py new file mode 100644 index 0000000000..4844a81ea5 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_start_extraction_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_start_extraction_response import DataInStartExtractionResponse + +class TestDataInStartExtractionResponse(unittest.TestCase): + """DataInStartExtractionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInStartExtractionResponse: + """Test DataInStartExtractionResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInStartExtractionResponse( + job_id = '' + ) + else: + return DataInStartExtractionResponse( + ) + + def testDataInStartExtractionResponse(self): + """Test DataInStartExtractionResponse""" + def validate_instance(instance): + DataInStartExtractionResponse.model_validate(inst_req_only) + instance_deserialized = DataInStartExtractionResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_start_transfer_response.py b/src/visier_api_data_in/test/test_data_in_start_transfer_response.py new file mode 100644 index 0000000000..a784cd61b7 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_start_transfer_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_start_transfer_response import DataInStartTransferResponse + +class TestDataInStartTransferResponse(unittest.TestCase): + """DataInStartTransferResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInStartTransferResponse: + """Test DataInStartTransferResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInStartTransferResponse( + transfer_session_id = '' + ) + else: + return DataInStartTransferResponse( + ) + + def testDataInStartTransferResponse(self): + """Test DataInStartTransferResponse""" + def validate_instance(instance): + DataInStartTransferResponse.model_validate(inst_req_only) + instance_deserialized = DataInStartTransferResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_tenant.py b/src/visier_api_data_in/test/test_data_in_tenant.py new file mode 100644 index 0000000000..0816bdd60e --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_tenant.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_tenant import DataInTenant + +class TestDataInTenant(unittest.TestCase): + """DataInTenant unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInTenant: + """Test DataInTenant + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInTenant( + sources = [ + visier_api_data_in.models.data_in/source.data_in.Source( + data_size = '', + message = '', + rows = '', + source_id = '', + source_name = '', + status = '', ) + ], + status = '', + tenant_code = '' + ) + else: + return DataInTenant( + ) + + def testDataInTenant(self): + """Test DataInTenant""" + def validate_instance(instance): + DataInTenant.model_validate(inst_req_only) + instance_deserialized = DataInTenant.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_tenant_and_credential.py b/src/visier_api_data_in/test/test_data_in_tenant_and_credential.py new file mode 100644 index 0000000000..5c4796e254 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_tenant_and_credential.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_tenant_and_credential import DataInTenantAndCredential + +class TestDataInTenantAndCredential(unittest.TestCase): + """DataInTenantAndCredential unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInTenantAndCredential: + """Test DataInTenantAndCredential + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInTenantAndCredential( + credential_id = '', + tenant_code = '' + ) + else: + return DataInTenantAndCredential( + ) + + def testDataInTenantAndCredential(self): + """Test DataInTenantAndCredential""" + def validate_instance(instance): + DataInTenantAndCredential.model_validate(inst_req_only) + instance_deserialized = DataInTenantAndCredential.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_upload_to_exclude.py b/src/visier_api_data_in/test/test_data_in_upload_to_exclude.py new file mode 100644 index 0000000000..a587f8fae8 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_upload_to_exclude.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_upload_to_exclude import DataInUploadToExclude + +class TestDataInUploadToExclude(unittest.TestCase): + """DataInUploadToExclude unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInUploadToExclude: + """Test DataInUploadToExclude + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInUploadToExclude( + exclude_all = True, + max_upload_time = '', + min_upload_time = '', + sources = [ + '' + ], + tenant_code = '', + upload_times = [ + '' + ] + ) + else: + return DataInUploadToExclude( + ) + + def testDataInUploadToExclude(self): + """Test DataInUploadToExclude""" + def validate_instance(instance): + DataInUploadToExclude.model_validate(inst_req_only) + instance_deserialized = DataInUploadToExclude.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_in_upload_to_include.py b/src/visier_api_data_in/test/test_data_in_upload_to_include.py new file mode 100644 index 0000000000..ded2419cb1 --- /dev/null +++ b/src/visier_api_data_in/test/test_data_in_upload_to_include.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.data_in_upload_to_include import DataInUploadToInclude + +class TestDataInUploadToInclude(unittest.TestCase): + """DataInUploadToInclude unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataInUploadToInclude: + """Test DataInUploadToInclude + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataInUploadToInclude( + include_all = True, + max_upload_time = '', + min_upload_time = '', + sources = [ + '' + ], + tenant_code = '', + upload_times = [ + '' + ] + ) + else: + return DataInUploadToInclude( + ) + + def testDataInUploadToInclude(self): + """Test DataInUploadToInclude""" + def validate_instance(instance): + DataInUploadToInclude.model_validate(inst_req_only) + instance_deserialized = DataInUploadToInclude.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_data_intake_api.py b/src/visier_api_data_in/test/test_data_intake_api.py index b93396988a..fff3cdffb3 100644 --- a/src/visier_api_data_in/test/test_data_intake_api.py +++ b/src/visier_api_data_in/test/test_data_intake_api.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/test/test_data_load_request.py b/src/visier_api_data_in/test/test_data_load_request.py deleted file mode 100644 index 6b2ce9926b..0000000000 --- a/src/visier_api_data_in/test/test_data_load_request.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.data_load_request import DataLoadRequest - -class TestDataLoadRequest(unittest.TestCase): - """DataLoadRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataLoadRequest: - """Test DataLoadRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataLoadRequest( - model = visier_api_data_in.models.data_load_request_model.DataLoadRequestModel( - files = [ - '' - ], - skip_data_load = True, ) - ) - else: - return DataLoadRequest( - ) - - def testDataLoadRequest(self): - """Test DataLoadRequest""" - def validate_instance(instance): - DataLoadRequest.model_validate(inst_req_only) - instance_deserialized = DataLoadRequest.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_data_load_request_model.py b/src/visier_api_data_in/test/test_data_load_request_model.py deleted file mode 100644 index f20baa9a91..0000000000 --- a/src/visier_api_data_in/test/test_data_load_request_model.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.data_load_request_model import DataLoadRequestModel - -class TestDataLoadRequestModel(unittest.TestCase): - """DataLoadRequestModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataLoadRequestModel: - """Test DataLoadRequestModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataLoadRequestModel( - files = [ - '' - ], - skip_data_load = True - ) - else: - return DataLoadRequestModel( - ) - - def testDataLoadRequestModel(self): - """Test DataLoadRequestModel""" - def validate_instance(instance): - DataLoadRequestModel.model_validate(inst_req_only) - instance_deserialized = DataLoadRequestModel.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_data_load_response.py b/src/visier_api_data_in/test/test_data_load_response.py deleted file mode 100644 index d51919163c..0000000000 --- a/src/visier_api_data_in/test/test_data_load_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.data_load_response import DataLoadResponse - -class TestDataLoadResponse(unittest.TestCase): - """DataLoadResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataLoadResponse: - """Test DataLoadResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataLoadResponse( - job_id = '' - ) - else: - return DataLoadResponse( - ) - - def testDataLoadResponse(self): - """Test DataLoadResponse""" - def validate_instance(instance): - DataLoadResponse.model_validate(inst_req_only) - instance_deserialized = DataLoadResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_data_provider_auth_information_dto.py b/src/visier_api_data_in/test/test_data_provider_auth_information_dto.py deleted file mode 100644 index 4847a4dc9f..0000000000 --- a/src/visier_api_data_in/test/test_data_provider_auth_information_dto.py +++ /dev/null @@ -1,259 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.data_provider_auth_information_dto import DataProviderAuthInformationDTO - -class TestDataProviderAuthInformationDTO(unittest.TestCase): - """DataProviderAuthInformationDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataProviderAuthInformationDTO: - """Test DataProviderAuthInformationDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataProviderAuthInformationDTO( - data_provider_auth_params = visier_api_data_in.models.data_provider_auth_params_dto.DataProviderAuthParamsDTO( - adp_auth_params = visier_api_data_in.models.adp_auth_params_dto.AdpAuthParamsDTO( - auth_code = '', ), - auth_context = 'DefaultDataExtraction', - bamboo_auth_params = visier_api_data_in.models.bamboo_auth_params_dto.BambooAuthParamsDTO( - access_key = '', - tenant_domain_name = '', ), - big_query_auth_params = visier_api_data_in.models.big_query_auth_params_dto.BigQueryAuthParamsDTO( - client_id = '', - client_secret = '', - dataset_location = '', - default_dataset = '', - project_id = '', - refresh_token = '', - service_account_params = visier_api_data_in.models.big_query_service_account_params_dto.BigQueryServiceAccountParamsDTO( - private_key = '', - service_account_email = '', ), ), - copy_s3_auth_params = visier_api_data_in.models.copy_s3_auth_params_dto.CopyS3AuthParamsDTO( - iam_role = '', ), - dayforce_v2_auth_params = visier_api_data_in.models.dayforce_v2_auth_params_dto.DayforceV2AuthParamsDTO( - company_id = '', - host_domain_name = '', - password = '', - token_host = '', - username = '', ), - dimensions_auth_params = visier_api_data_in.models.dimensions_auth_params_dto.DimensionsAuthParamsDTO( - app_key = '', - client_id = '', - client_secret = '', - password = '', - username = '', - vanity_url = '', ), - empty_auth_params = {}, - fusion_auth_params = visier_api_data_in.models.fusion_auth_params_dto.FusionAuthParamsDTO( - host_domain_name = '', - password = '', - username = '', ), - gong_auth_params = visier_api_data_in.models.gong_auth_params_dto.GongAuthParamsDTO( - client_id = '', - client_secret = '', ), - google_sheets_auth_params = visier_api_data_in.models.google_sheets_auth_params_dto.GoogleSheetsAuthParamsDTO( - auth_code = '', - client_id = '', - client_secret = '', - configuration = '', ), - google_workspace_auth_params = visier_api_data_in.models.google_workspace_auth_params_dto.GoogleWorkspaceAuthParamsDTO( - auth_code = '', - client_id = '', - client_secret = '', - privacy_mode = '', - service_account = '', ), - greenhouse_auth_params = visier_api_data_in.models.greenhouse_auth_params_dto.GreenhouseAuthParamsDTO( - api_key = '', ), - has_updates = True, - icims_auth_params = visier_api_data_in.models.icims_auth_params_dto.IcimsAuthParamsDTO( - client_id = '', - client_secret = '', - customer_id = '', - password = '', - region = 'US', - username = '', ), - internal_s3_auth_params = visier_api_data_in.models.internal_s3_auth_params_dto.InternalS3AuthParamsDTO( - bucket_name = '', - path = '', ), - jdbc_auth_params = visier_api_data_in.models.jdbc_auth_params_dto.JdbcAuthParamsDTO( - jdbc_connect_string = '', - password = '', - username = '', ), - jira_auth_params = visier_api_data_in.models.jira_auth_params_dto.JiraAuthParamsDTO( - api_token = '', - connect_params = visier_api_data_in.models.jira_connect_params_dto.JiraConnectParamsDTO( - app_key = '', - client_key = '', - shared_secret = '', ), - host_name = '', ), - lever_auth_params = visier_api_data_in.models.lever_auth_params_dto.LeverAuthParamsDTO( - api_key = '', ), - medallia_auth_params = visier_api_data_in.models.medallia_auth_params_dto.MedalliaAuthParamsDTO( - client_id = '', - client_secret = '', - instance_url = '', - tenant_domain_name = '', ), - ms365_auth_params = visier_api_data_in.models.microsoft365_auth_params_dto.Microsoft365AuthParamsDTO( - client_id = '', - client_secret = '', - o_auth_tenant_id = '', - privacy_mode = '', ), - my_sql_auth_params = visier_api_data_in.models.my_sql_auth_params_dto.MySqlAuthParamsDTO( - database = '', - host = '', - password = '', - port = '', - ssl_mode = '', - username = '', ), - namely_auth_params = visier_api_data_in.models.namely_auth_params_dto.NamelyAuthParamsDTO( - auth_code = '', ), - oracle_db_auth_params = visier_api_data_in.models.oracle_db_auth_params_dto.OracleDbAuthParamsDTO( - host = '', - password = '', - port = '', - service_name = '', - username = '', ), - provider = 'Bamboo', - qualtrics_auth_params = visier_api_data_in.models.qualtrics_auth_params_dto.QualtricsAuthParamsDTO( - api_token = '', - data_center_id = '', ), - redshift_auth_params = visier_api_data_in.models.redshift_auth_params_dto.RedshiftAuthParamsDTO( - database = '', - endpoint = '', - password = '', - port = '', - schema = '', - table_prefix = '', - username = '', ), - s3_auth_params = visier_api_data_in.models.basic_s3_auth_params_dto.BasicS3AuthParamsDTO( - access_key = '', - bucket_name = '', - bucket_region = '', - path = '', - secret_key = '', ), - salesforce_auth_params = visier_api_data_in.models.salesforce_auth_params_dto.SalesforceAuthParamsDTO( - client_id = '', - refresh_token = '', ), - salesforce_v2_auth_params = visier_api_data_in.models.salesforce_v2_auth_params_dto.SalesforceV2AuthParamsDTO( - auth_code = '', - client_id = '', - client_secret = '', - login_host = '', ), - service_now_auth_params = visier_api_data_in.models.service_now_auth_params_dto.ServiceNowAuthParamsDTO( - host_domain_name = '', - password = '', - username = '', ), - service_now_v2_auth_params = visier_api_data_in.models.service_now_v2_auth_params_dto.ServiceNowV2AuthParamsDTO( - alternate_domain = '', - auth_code = '', - client_id = '', - client_secret = '', - host_domain_name = '', ), - slack_auth_params = visier_api_data_in.models.slack_auth_params_dto.SlackAuthParamsDTO( - auth_code = '', - client_id = '', - client_secret = '', ), - snowflake_auth_params = visier_api_data_in.models.snowflake_auth_params_dto.SnowflakeAuthParamsDTO( - account_identifier = '', - database = '', - password = '', - private_key = '', - schema = '', - username = '', - warehouse = '', ), - sql_server_auth_params = visier_api_data_in.models.sql_server_auth_params_dto.SqlServerAuthParamsDTO( - database = '', - host = '', - password = '', - port = '', - username = '', ), - success_factors_auth_params = visier_api_data_in.models.success_factors_auth_params_dto.SuccessFactorsAuthParamsDTO( - company_id = '', - host_domain_name = '', - o_auth = visier_api_data_in.models.success_factors_o_auth_params_dto.SuccessFactorsOAuthParamsDTO( - api_key = '', - private_x509_key = '', - public_x509_cert = '', ), - password = '', - username = '', ), - tenant_domain_name = '', - ultimate_auth_params = visier_api_data_in.models.ultimate_auth_params_dto.UltimateAuthParamsDTO( - api_key = '', - host_domain_name = '', - password = '', - user_access_key = '', - username = '', ), - willow_auth_params = visier_api_data_in.models.willow_auth_params_dto.WillowAuthParamsDTO( - api_token = '', - host_name = '', ), - workday_auth_params = visier_api_data_in.models.workday_auth_params_dto.WorkdayAuthParamsDTO( - api_key = '', - domain_name = '', - implementation_name = '', - integration_system_id = '', - password = '', - ref_token = visier_api_data_in.models.workday_refresh_token_params_dto.WorkdayRefreshTokenParamsDTO( - api_client_id = '', - client_secret = '', - refresh_token = '', ), - user_id = '', ), - workday_raas_auth_params = visier_api_data_in.models.workday_raas_auth_params_dto.WorkdayRaasAuthParamsDTO( - domain_name = '', - implementation_name = '', - password = '', - test_report_url = '', - user_id = '', ), - zoom_auth_params = visier_api_data_in.models.zoom_auth_params_dto.ZoomAuthParamsDTO( - auth_code = '', - client_id = '', - client_secret = '', ), ), - data_provider_basic_information = visier_api_data_in.models.data_provider_basic_information_dto.DataProviderBasicInformationDTO( - description = '', - display_name = '', ), - data_provider_metadata = visier_api_data_in.models.data_provider_basic_metadata_dto.DataProviderBasicMetadataDTO( - can_children_inherit = True, ) - ) - else: - return DataProviderAuthInformationDTO( - ) - - def testDataProviderAuthInformationDTO(self): - """Test DataProviderAuthInformationDTO""" - def validate_instance(instance): - DataProviderAuthInformationDTO.model_validate(inst_req_only) - instance_deserialized = DataProviderAuthInformationDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_data_provider_auth_params_dto.py b/src/visier_api_data_in/test/test_data_provider_auth_params_dto.py deleted file mode 100644 index 65e693dfb8..0000000000 --- a/src/visier_api_data_in/test/test_data_provider_auth_params_dto.py +++ /dev/null @@ -1,257 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.data_provider_auth_params_dto import DataProviderAuthParamsDTO - -class TestDataProviderAuthParamsDTO(unittest.TestCase): - """DataProviderAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataProviderAuthParamsDTO: - """Test DataProviderAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataProviderAuthParamsDTO( - adp_auth_params = visier_api_data_in.models.adp_auth_params_dto.AdpAuthParamsDTO( - auth_code = '', ), - auth_context = 'DefaultDataExtraction', - bamboo_auth_params = visier_api_data_in.models.bamboo_auth_params_dto.BambooAuthParamsDTO( - access_key = '', - tenant_domain_name = '', ), - big_query_auth_params = visier_api_data_in.models.big_query_auth_params_dto.BigQueryAuthParamsDTO( - client_id = '', - client_secret = '', - dataset_location = '', - default_dataset = '', - project_id = '', - refresh_token = '', - service_account_params = visier_api_data_in.models.big_query_service_account_params_dto.BigQueryServiceAccountParamsDTO( - private_key = '', - service_account_email = '', ), ), - copy_s3_auth_params = visier_api_data_in.models.copy_s3_auth_params_dto.CopyS3AuthParamsDTO( - iam_role = '', ), - dayforce_v2_auth_params = visier_api_data_in.models.dayforce_v2_auth_params_dto.DayforceV2AuthParamsDTO( - company_id = '', - host_domain_name = '', - password = '', - token_host = '', - username = '', ), - dimensions_auth_params = visier_api_data_in.models.dimensions_auth_params_dto.DimensionsAuthParamsDTO( - app_key = '', - client_id = '', - client_secret = '', - password = '', - username = '', - vanity_url = '', ), - empty_auth_params = {}, - fusion_auth_params = visier_api_data_in.models.fusion_auth_params_dto.FusionAuthParamsDTO( - host_domain_name = '', - password = '', - username = '', ), - gong_auth_params = visier_api_data_in.models.gong_auth_params_dto.GongAuthParamsDTO( - client_id = '', - client_secret = '', ), - google_sheets_auth_params = visier_api_data_in.models.google_sheets_auth_params_dto.GoogleSheetsAuthParamsDTO( - auth_code = '', - client_id = '', - client_secret = '', - configuration = '', ), - google_workspace_auth_params = visier_api_data_in.models.google_workspace_auth_params_dto.GoogleWorkspaceAuthParamsDTO( - auth_code = '', - client_id = '', - client_secret = '', - privacy_mode = '', - service_account = '', ), - greenhouse_auth_params = visier_api_data_in.models.greenhouse_auth_params_dto.GreenhouseAuthParamsDTO( - api_key = '', ), - has_updates = True, - icims_auth_params = visier_api_data_in.models.icims_auth_params_dto.IcimsAuthParamsDTO( - client_id = '', - client_secret = '', - customer_id = '', - password = '', - region = 'US', - username = '', ), - internal_s3_auth_params = visier_api_data_in.models.internal_s3_auth_params_dto.InternalS3AuthParamsDTO( - bucket_name = '', - path = '', ), - jdbc_auth_params = visier_api_data_in.models.jdbc_auth_params_dto.JdbcAuthParamsDTO( - jdbc_connect_string = '', - password = '', - username = '', ), - jira_auth_params = visier_api_data_in.models.jira_auth_params_dto.JiraAuthParamsDTO( - api_token = '', - connect_params = visier_api_data_in.models.jira_connect_params_dto.JiraConnectParamsDTO( - app_key = '', - client_key = '', - shared_secret = '', ), - host_name = '', ), - lever_auth_params = visier_api_data_in.models.lever_auth_params_dto.LeverAuthParamsDTO( - api_key = '', ), - medallia_auth_params = visier_api_data_in.models.medallia_auth_params_dto.MedalliaAuthParamsDTO( - client_id = '', - client_secret = '', - instance_url = '', - tenant_domain_name = '', ), - ms365_auth_params = visier_api_data_in.models.microsoft365_auth_params_dto.Microsoft365AuthParamsDTO( - client_id = '', - client_secret = '', - o_auth_tenant_id = '', - privacy_mode = '', ), - my_sql_auth_params = visier_api_data_in.models.my_sql_auth_params_dto.MySqlAuthParamsDTO( - database = '', - host = '', - password = '', - port = '', - ssl_mode = '', - username = '', ), - namely_auth_params = visier_api_data_in.models.namely_auth_params_dto.NamelyAuthParamsDTO( - auth_code = '', ), - oracle_db_auth_params = visier_api_data_in.models.oracle_db_auth_params_dto.OracleDbAuthParamsDTO( - host = '', - password = '', - port = '', - service_name = '', - username = '', ), - provider = 'Bamboo', - qualtrics_auth_params = visier_api_data_in.models.qualtrics_auth_params_dto.QualtricsAuthParamsDTO( - api_token = '', - data_center_id = '', ), - redshift_auth_params = visier_api_data_in.models.redshift_auth_params_dto.RedshiftAuthParamsDTO( - database = '', - endpoint = '', - password = '', - port = '', - schema = '', - table_prefix = '', - username = '', ), - s3_auth_params = visier_api_data_in.models.basic_s3_auth_params_dto.BasicS3AuthParamsDTO( - access_key = '', - bucket_name = '', - bucket_region = '', - path = '', - secret_key = '', ), - salesforce_auth_params = visier_api_data_in.models.salesforce_auth_params_dto.SalesforceAuthParamsDTO( - client_id = '', - refresh_token = '', ), - salesforce_v2_auth_params = visier_api_data_in.models.salesforce_v2_auth_params_dto.SalesforceV2AuthParamsDTO( - auth_code = '', - client_id = '', - client_secret = '', - login_host = '', ), - service_now_auth_params = visier_api_data_in.models.service_now_auth_params_dto.ServiceNowAuthParamsDTO( - host_domain_name = '', - password = '', - username = '', ), - service_now_v2_auth_params = visier_api_data_in.models.service_now_v2_auth_params_dto.ServiceNowV2AuthParamsDTO( - alternate_domain = '', - auth_code = '', - client_id = '', - client_secret = '', - host_domain_name = '', ), - slack_auth_params = visier_api_data_in.models.slack_auth_params_dto.SlackAuthParamsDTO( - auth_code = '', - client_id = '', - client_secret = '', ), - snowflake_auth_params = visier_api_data_in.models.snowflake_auth_params_dto.SnowflakeAuthParamsDTO( - account_identifier = '', - database = '', - password = '', - private_key = '', - schema = '', - username = '', - warehouse = '', ), - sql_server_auth_params = visier_api_data_in.models.sql_server_auth_params_dto.SqlServerAuthParamsDTO( - database = '', - host = '', - password = '', - port = '', - username = '', ), - success_factors_auth_params = visier_api_data_in.models.success_factors_auth_params_dto.SuccessFactorsAuthParamsDTO( - company_id = '', - host_domain_name = '', - o_auth = visier_api_data_in.models.success_factors_o_auth_params_dto.SuccessFactorsOAuthParamsDTO( - api_key = '', - private_x509_key = '', - public_x509_cert = '', ), - password = '', - username = '', ), - tenant_domain_name = '', - ultimate_auth_params = visier_api_data_in.models.ultimate_auth_params_dto.UltimateAuthParamsDTO( - api_key = '', - host_domain_name = '', - password = '', - user_access_key = '', - username = '', ), - willow_auth_params = visier_api_data_in.models.willow_auth_params_dto.WillowAuthParamsDTO( - api_token = '', - host_name = '', ), - workday_auth_params = visier_api_data_in.models.workday_auth_params_dto.WorkdayAuthParamsDTO( - api_key = '', - domain_name = '', - implementation_name = '', - integration_system_id = '', - o_auth = visier_api_data_in.models.workday_o_auth_params_dto.WorkdayOAuthParamsDTO( - api_client_id = '', - private_x509_key = '', - public_x509_cert = '', ), - password = '', - ref_token = visier_api_data_in.models.workday_refresh_token_params_dto.WorkdayRefreshTokenParamsDTO( - api_client_id = '', - client_secret = '', - refresh_token = '', ), - user_id = '', ), - workday_raas_auth_params = visier_api_data_in.models.workday_raas_auth_params_dto.WorkdayRaasAuthParamsDTO( - domain_name = '', - implementation_name = '', - password = '', - test_report_url = '', - user_id = '', ), - zoom_auth_params = visier_api_data_in.models.zoom_auth_params_dto.ZoomAuthParamsDTO( - auth_code = '', - client_id = '', - client_secret = '', ) - ) - else: - return DataProviderAuthParamsDTO( - ) - - def testDataProviderAuthParamsDTO(self): - """Test DataProviderAuthParamsDTO""" - def validate_instance(instance): - DataProviderAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = DataProviderAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_data_provider_basic_information_dto.py b/src/visier_api_data_in/test/test_data_provider_basic_information_dto.py deleted file mode 100644 index 2ca3b44674..0000000000 --- a/src/visier_api_data_in/test/test_data_provider_basic_information_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.data_provider_basic_information_dto import DataProviderBasicInformationDTO - -class TestDataProviderBasicInformationDTO(unittest.TestCase): - """DataProviderBasicInformationDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataProviderBasicInformationDTO: - """Test DataProviderBasicInformationDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataProviderBasicInformationDTO( - description = '', - display_name = '' - ) - else: - return DataProviderBasicInformationDTO( - ) - - def testDataProviderBasicInformationDTO(self): - """Test DataProviderBasicInformationDTO""" - def validate_instance(instance): - DataProviderBasicInformationDTO.model_validate(inst_req_only) - instance_deserialized = DataProviderBasicInformationDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_data_provider_basic_metadata_dto.py b/src/visier_api_data_in/test/test_data_provider_basic_metadata_dto.py deleted file mode 100644 index 02134084da..0000000000 --- a/src/visier_api_data_in/test/test_data_provider_basic_metadata_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.data_provider_basic_metadata_dto import DataProviderBasicMetadataDTO - -class TestDataProviderBasicMetadataDTO(unittest.TestCase): - """DataProviderBasicMetadataDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataProviderBasicMetadataDTO: - """Test DataProviderBasicMetadataDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataProviderBasicMetadataDTO( - can_children_inherit = True - ) - else: - return DataProviderBasicMetadataDTO( - ) - - def testDataProviderBasicMetadataDTO(self): - """Test DataProviderBasicMetadataDTO""" - def validate_instance(instance): - DataProviderBasicMetadataDTO.model_validate(inst_req_only) - instance_deserialized = DataProviderBasicMetadataDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_data_transfer_result_detail.py b/src/visier_api_data_in/test/test_data_transfer_result_detail.py deleted file mode 100644 index 17415c2de1..0000000000 --- a/src/visier_api_data_in/test/test_data_transfer_result_detail.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.data_transfer_result_detail import DataTransferResultDetail - -class TestDataTransferResultDetail(unittest.TestCase): - """DataTransferResultDetail unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataTransferResultDetail: - """Test DataTransferResultDetail - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataTransferResultDetail( - data_size = '', - rows = '', - source_names = [ - '' - ], - tenant_code = '' - ) - else: - return DataTransferResultDetail( - ) - - def testDataTransferResultDetail(self): - """Test DataTransferResultDetail""" - def validate_instance(instance): - DataTransferResultDetail.model_validate(inst_req_only) - instance_deserialized = DataTransferResultDetail.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_data_upload_api.py b/src/visier_api_data_in/test/test_data_upload_api.py index dfe0036ccb..a9d928beed 100644 --- a/src/visier_api_data_in/test/test_data_upload_api.py +++ b/src/visier_api_data_in/test/test_data_upload_api.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/test/test_data_version_and_date_dto.py b/src/visier_api_data_in/test/test_data_version_and_date_dto.py deleted file mode 100644 index d2bf24649f..0000000000 --- a/src/visier_api_data_in/test/test_data_version_and_date_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.data_version_and_date_dto import DataVersionAndDateDTO - -class TestDataVersionAndDateDTO(unittest.TestCase): - """DataVersionAndDateDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataVersionAndDateDTO: - """Test DataVersionAndDateDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataVersionAndDateDTO( - data_version = '', - data_version_date = '' - ) - else: - return DataVersionAndDateDTO( - ) - - def testDataVersionAndDateDTO(self): - """Test DataVersionAndDateDTO""" - def validate_instance(instance): - DataVersionAndDateDTO.model_validate(inst_req_only) - instance_deserialized = DataVersionAndDateDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_data_version_object.py b/src/visier_api_data_in/test/test_data_version_object.py deleted file mode 100644 index 24e90fe9ad..0000000000 --- a/src/visier_api_data_in/test/test_data_version_object.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.data_version_object import DataVersionObject - -class TestDataVersionObject(unittest.TestCase): - """DataVersionObject unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataVersionObject: - """Test DataVersionObject - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataVersionObject( - data_versions = '', - tenant_code = '' - ) - else: - return DataVersionObject( - ) - - def testDataVersionObject(self): - """Test DataVersionObject""" - def validate_instance(instance): - DataVersionObject.model_validate(inst_req_only) - instance_deserialized = DataVersionObject.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_dayforce_v2_auth_params_dto.py b/src/visier_api_data_in/test/test_dayforce_v2_auth_params_dto.py deleted file mode 100644 index 385144c184..0000000000 --- a/src/visier_api_data_in/test/test_dayforce_v2_auth_params_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.dayforce_v2_auth_params_dto import DayforceV2AuthParamsDTO - -class TestDayforceV2AuthParamsDTO(unittest.TestCase): - """DayforceV2AuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DayforceV2AuthParamsDTO: - """Test DayforceV2AuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DayforceV2AuthParamsDTO( - company_id = '', - host_domain_name = '', - password = '', - token_host = '', - username = '' - ) - else: - return DayforceV2AuthParamsDTO( - ) - - def testDayforceV2AuthParamsDTO(self): - """Test DayforceV2AuthParamsDTO""" - def validate_instance(instance): - DayforceV2AuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = DayforceV2AuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_crypto_key_pair_delete_response_dto.py b/src/visier_api_data_in/test/test_designer_crypto_key_pair_delete_response_dto.py new file mode 100644 index 0000000000..0219e264d2 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_crypto_key_pair_delete_response_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_crypto_key_pair_delete_response_dto import DesignerCryptoKeyPairDeleteResponseDTO + +class TestDesignerCryptoKeyPairDeleteResponseDTO(unittest.TestCase): + """DesignerCryptoKeyPairDeleteResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerCryptoKeyPairDeleteResponseDTO: + """Test DesignerCryptoKeyPairDeleteResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerCryptoKeyPairDeleteResponseDTO( + key_id = '' + ) + else: + return DesignerCryptoKeyPairDeleteResponseDTO( + ) + + def testDesignerCryptoKeyPairDeleteResponseDTO(self): + """Test DesignerCryptoKeyPairDeleteResponseDTO""" + def validate_instance(instance): + DesignerCryptoKeyPairDeleteResponseDTO.model_validate(inst_req_only) + instance_deserialized = DesignerCryptoKeyPairDeleteResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_crypto_key_pair_generate_request_dto.py b/src/visier_api_data_in/test/test_designer_crypto_key_pair_generate_request_dto.py new file mode 100644 index 0000000000..b5e65d006b --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_crypto_key_pair_generate_request_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_crypto_key_pair_generate_request_dto import DesignerCryptoKeyPairGenerateRequestDTO + +class TestDesignerCryptoKeyPairGenerateRequestDTO(unittest.TestCase): + """DesignerCryptoKeyPairGenerateRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerCryptoKeyPairGenerateRequestDTO: + """Test DesignerCryptoKeyPairGenerateRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerCryptoKeyPairGenerateRequestDTO( + expiration_date = '' + ) + else: + return DesignerCryptoKeyPairGenerateRequestDTO( + ) + + def testDesignerCryptoKeyPairGenerateRequestDTO(self): + """Test DesignerCryptoKeyPairGenerateRequestDTO""" + def validate_instance(instance): + DesignerCryptoKeyPairGenerateRequestDTO.model_validate(inst_req_only) + instance_deserialized = DesignerCryptoKeyPairGenerateRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_crypto_public_key_dto.py b/src/visier_api_data_in/test/test_designer_crypto_public_key_dto.py new file mode 100644 index 0000000000..41bf1d90fe --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_crypto_public_key_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_crypto_public_key_dto import DesignerCryptoPublicKeyDTO + +class TestDesignerCryptoPublicKeyDTO(unittest.TestCase): + """DesignerCryptoPublicKeyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerCryptoPublicKeyDTO: + """Test DesignerCryptoPublicKeyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerCryptoPublicKeyDTO( + date_generated = '', + expiry_date = '', + key_id = '', + public_key = '', + recipient = '' + ) + else: + return DesignerCryptoPublicKeyDTO( + ) + + def testDesignerCryptoPublicKeyDTO(self): + """Test DesignerCryptoPublicKeyDTO""" + def validate_instance(instance): + DesignerCryptoPublicKeyDTO.model_validate(inst_req_only) + instance_deserialized = DesignerCryptoPublicKeyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_crypto_public_keys_dto.py b/src/visier_api_data_in/test/test_designer_crypto_public_keys_dto.py new file mode 100644 index 0000000000..630c2a5d4c --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_crypto_public_keys_dto.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_crypto_public_keys_dto import DesignerCryptoPublicKeysDTO + +class TestDesignerCryptoPublicKeysDTO(unittest.TestCase): + """DesignerCryptoPublicKeysDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerCryptoPublicKeysDTO: + """Test DesignerCryptoPublicKeysDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerCryptoPublicKeysDTO( + keys = [ + visier_api_data_in.models.designer/crypto/public_key_dto.designer.crypto.PublicKeyDTO( + date_generated = '', + expiry_date = '', + key_id = '', + public_key = '', + recipient = '', ) + ] + ) + else: + return DesignerCryptoPublicKeysDTO( + ) + + def testDesignerCryptoPublicKeysDTO(self): + """Test DesignerCryptoPublicKeysDTO""" + def validate_instance(instance): + DesignerCryptoPublicKeysDTO.model_validate(inst_req_only) + instance_deserialized = DesignerCryptoPublicKeysDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_adp_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_adp_auth_params_dto.py new file mode 100644 index 0000000000..7a72543967 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_adp_auth_params_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_adp_auth_params_dto import DesignerTransfersAdpAuthParamsDTO + +class TestDesignerTransfersAdpAuthParamsDTO(unittest.TestCase): + """DesignerTransfersAdpAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersAdpAuthParamsDTO: + """Test DesignerTransfersAdpAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersAdpAuthParamsDTO( + auth_code = '' + ) + else: + return DesignerTransfersAdpAuthParamsDTO( + ) + + def testDesignerTransfersAdpAuthParamsDTO(self): + """Test DesignerTransfersAdpAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersAdpAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersAdpAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_bamboo_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_bamboo_auth_params_dto.py new file mode 100644 index 0000000000..cdf06e7cb3 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_bamboo_auth_params_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_bamboo_auth_params_dto import DesignerTransfersBambooAuthParamsDTO + +class TestDesignerTransfersBambooAuthParamsDTO(unittest.TestCase): + """DesignerTransfersBambooAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersBambooAuthParamsDTO: + """Test DesignerTransfersBambooAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersBambooAuthParamsDTO( + access_key = '', + tenant_domain_name = '' + ) + else: + return DesignerTransfersBambooAuthParamsDTO( + ) + + def testDesignerTransfersBambooAuthParamsDTO(self): + """Test DesignerTransfersBambooAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersBambooAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersBambooAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_basic_s3_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_basic_s3_auth_params_dto.py new file mode 100644 index 0000000000..9cc52e1e93 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_basic_s3_auth_params_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_basic_s3_auth_params_dto import DesignerTransfersBasicS3AuthParamsDTO + +class TestDesignerTransfersBasicS3AuthParamsDTO(unittest.TestCase): + """DesignerTransfersBasicS3AuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersBasicS3AuthParamsDTO: + """Test DesignerTransfersBasicS3AuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersBasicS3AuthParamsDTO( + access_key = '', + bucket_name = '', + bucket_region = '', + path = '', + secret_key = '' + ) + else: + return DesignerTransfersBasicS3AuthParamsDTO( + ) + + def testDesignerTransfersBasicS3AuthParamsDTO(self): + """Test DesignerTransfersBasicS3AuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersBasicS3AuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersBasicS3AuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_big_query_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_big_query_auth_params_dto.py new file mode 100644 index 0000000000..3c2cc9ab57 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_big_query_auth_params_dto.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_big_query_auth_params_dto import DesignerTransfersBigQueryAuthParamsDTO + +class TestDesignerTransfersBigQueryAuthParamsDTO(unittest.TestCase): + """DesignerTransfersBigQueryAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersBigQueryAuthParamsDTO: + """Test DesignerTransfersBigQueryAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersBigQueryAuthParamsDTO( + client_id = '', + client_secret = '', + dataset_location = '', + default_dataset = '', + project_id = '', + refresh_token = '', + service_account_params = visier_api_data_in.models.designer/transfers/big_query_service_account_params_dto.designer.transfers.BigQueryServiceAccountParamsDTO( + private_key = '', + service_account_email = '', ) + ) + else: + return DesignerTransfersBigQueryAuthParamsDTO( + ) + + def testDesignerTransfersBigQueryAuthParamsDTO(self): + """Test DesignerTransfersBigQueryAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersBigQueryAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersBigQueryAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_big_query_service_account_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_big_query_service_account_params_dto.py new file mode 100644 index 0000000000..9f907c6797 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_big_query_service_account_params_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_big_query_service_account_params_dto import DesignerTransfersBigQueryServiceAccountParamsDTO + +class TestDesignerTransfersBigQueryServiceAccountParamsDTO(unittest.TestCase): + """DesignerTransfersBigQueryServiceAccountParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersBigQueryServiceAccountParamsDTO: + """Test DesignerTransfersBigQueryServiceAccountParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersBigQueryServiceAccountParamsDTO( + private_key = '', + service_account_email = '' + ) + else: + return DesignerTransfersBigQueryServiceAccountParamsDTO( + ) + + def testDesignerTransfersBigQueryServiceAccountParamsDTO(self): + """Test DesignerTransfersBigQueryServiceAccountParamsDTO""" + def validate_instance(instance): + DesignerTransfersBigQueryServiceAccountParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersBigQueryServiceAccountParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_copy_s3_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_copy_s3_auth_params_dto.py new file mode 100644 index 0000000000..ad0a60639f --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_copy_s3_auth_params_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_copy_s3_auth_params_dto import DesignerTransfersCopyS3AuthParamsDTO + +class TestDesignerTransfersCopyS3AuthParamsDTO(unittest.TestCase): + """DesignerTransfersCopyS3AuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersCopyS3AuthParamsDTO: + """Test DesignerTransfersCopyS3AuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersCopyS3AuthParamsDTO( + iam_role = '' + ) + else: + return DesignerTransfersCopyS3AuthParamsDTO( + ) + + def testDesignerTransfersCopyS3AuthParamsDTO(self): + """Test DesignerTransfersCopyS3AuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersCopyS3AuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersCopyS3AuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_credential_creation_api_response_dto.py b/src/visier_api_data_in/test/test_designer_transfers_credential_creation_api_response_dto.py new file mode 100644 index 0000000000..14435054e2 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_credential_creation_api_response_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_credential_creation_api_response_dto import DesignerTransfersCredentialCreationAPIResponseDTO + +class TestDesignerTransfersCredentialCreationAPIResponseDTO(unittest.TestCase): + """DesignerTransfersCredentialCreationAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersCredentialCreationAPIResponseDTO: + """Test DesignerTransfersCredentialCreationAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersCredentialCreationAPIResponseDTO( + missing_connection_properties = [ + visier_api_data_in.models.designer/transfers/subject_missing_access_dto.designer.transfers.SubjectMissingAccessDTO( + attributes = [ + '' + ], + error_message = '', + subject = 'Employee', ) + ], + object_name = '', + symbol_name = '', + uuid = '' + ) + else: + return DesignerTransfersCredentialCreationAPIResponseDTO( + ) + + def testDesignerTransfersCredentialCreationAPIResponseDTO(self): + """Test DesignerTransfersCredentialCreationAPIResponseDTO""" + def validate_instance(instance): + DesignerTransfersCredentialCreationAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersCredentialCreationAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_data_provider_auth_information_dto.py b/src/visier_api_data_in/test/test_designer_transfers_data_provider_auth_information_dto.py new file mode 100644 index 0000000000..30040c01f8 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_data_provider_auth_information_dto.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_data_provider_auth_information_dto import DesignerTransfersDataProviderAuthInformationDTO + +class TestDesignerTransfersDataProviderAuthInformationDTO(unittest.TestCase): + """DesignerTransfersDataProviderAuthInformationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDataProviderAuthInformationDTO: + """Test DesignerTransfersDataProviderAuthInformationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDataProviderAuthInformationDTO( + data_provider_auth_params = visier_api_data_in.models.designer/transfers/data_provider_auth_params_dto.designer.transfers.DataProviderAuthParamsDTO( + adp_auth_params = visier_api_data_in.models.designer/transfers/adp_auth_params_dto.designer.transfers.AdpAuthParamsDTO( + auth_code = '', ), + auth_context = 'DefaultDataExtraction', + bamboo_auth_params = visier_api_data_in.models.designer/transfers/bamboo_auth_params_dto.designer.transfers.BambooAuthParamsDTO( + access_key = '', + tenant_domain_name = '', ), + big_query_auth_params = visier_api_data_in.models.designer/transfers/big_query_auth_params_dto.designer.transfers.BigQueryAuthParamsDTO( + client_id = '', + client_secret = '', + dataset_location = '', + default_dataset = '', + project_id = '', + refresh_token = '', + service_account_params = visier_api_data_in.models.designer/transfers/big_query_service_account_params_dto.designer.transfers.BigQueryServiceAccountParamsDTO( + private_key = '', + service_account_email = '', ), ), + copy_s3_auth_params = visier_api_data_in.models.designer/transfers/copy_s3_auth_params_dto.designer.transfers.CopyS3AuthParamsDTO( + iam_role = '', ), + dayforce_v2_auth_params = visier_api_data_in.models.designer/transfers/dayforce_v2_auth_params_dto.designer.transfers.DayforceV2AuthParamsDTO( + company_id = '', + host_domain_name = '', + password = '', + token_host = '', + username = '', ), + dimensions_auth_params = visier_api_data_in.models.designer/transfers/dimensions_auth_params_dto.designer.transfers.DimensionsAuthParamsDTO( + app_key = '', + client_id = '', + client_secret = '', + password = '', + username = '', + vanity_url = '', ), + empty_auth_params = visier_api_data_in.models.designer/transfers/empty_auth_params_dto.designer.transfers.EmptyAuthParamsDTO(), + fusion_auth_params = visier_api_data_in.models.designer/transfers/fusion_auth_params_dto.designer.transfers.FusionAuthParamsDTO( + host_domain_name = '', + password = '', + username = '', ), + gong_auth_params = visier_api_data_in.models.designer/transfers/gong_auth_params_dto.designer.transfers.GongAuthParamsDTO( + client_id = '', + client_secret = '', ), + google_sheets_auth_params = visier_api_data_in.models.designer/transfers/google_sheets_auth_params_dto.designer.transfers.GoogleSheetsAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + configuration = '', ), + google_workspace_auth_params = visier_api_data_in.models.designer/transfers/google_workspace_auth_params_dto.designer.transfers.GoogleWorkspaceAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + privacy_mode = '', + service_account = '', ), + greenhouse_auth_params = visier_api_data_in.models.designer/transfers/greenhouse_auth_params_dto.designer.transfers.GreenhouseAuthParamsDTO( + api_key = '', ), + has_updates = True, + icims_auth_params = visier_api_data_in.models.designer/transfers/icims_auth_params_dto.designer.transfers.IcimsAuthParamsDTO( + client_id = '', + client_secret = '', + customer_id = '', + password = '', + region = 'US', + username = '', ), + internal_s3_auth_params = visier_api_data_in.models.designer/transfers/internal_s3_auth_params_dto.designer.transfers.InternalS3AuthParamsDTO( + bucket_name = '', + path = '', ), + jdbc_auth_params = visier_api_data_in.models.designer/transfers/jdbc_auth_params_dto.designer.transfers.JdbcAuthParamsDTO( + jdbc_connect_string = '', + password = '', + username = '', ), + jira_auth_params = visier_api_data_in.models.designer/transfers/jira_auth_params_dto.designer.transfers.JiraAuthParamsDTO( + api_token = '', + connect_params = visier_api_data_in.models.designer/transfers/jira_connect_params_dto.designer.transfers.JiraConnectParamsDTO( + app_key = '', + client_key = '', + shared_secret = '', ), + host_name = '', ), + lever_auth_params = visier_api_data_in.models.designer/transfers/lever_auth_params_dto.designer.transfers.LeverAuthParamsDTO( + api_key = '', ), + medallia_auth_params = visier_api_data_in.models.designer/transfers/medallia_auth_params_dto.designer.transfers.MedalliaAuthParamsDTO( + client_id = '', + client_secret = '', + instance_url = '', + tenant_domain_name = '', ), + ms365_auth_params = visier_api_data_in.models.designer/transfers/microsoft365_auth_params_dto.designer.transfers.Microsoft365AuthParamsDTO( + client_id = '', + client_secret = '', + o_auth_tenant_id = '', + privacy_mode = '', ), + my_sql_auth_params = visier_api_data_in.models.designer/transfers/my_sql_auth_params_dto.designer.transfers.MySqlAuthParamsDTO( + database = '', + host = '', + password = '', + port = '', + ssl_mode = '', + username = '', ), + namely_auth_params = visier_api_data_in.models.designer/transfers/namely_auth_params_dto.designer.transfers.NamelyAuthParamsDTO( + auth_code = '', ), + oracle_db_auth_params = visier_api_data_in.models.designer/transfers/oracle_db_auth_params_dto.designer.transfers.OracleDbAuthParamsDTO( + host = '', + password = '', + port = '', + service_name = '', + username = '', ), + provider = 'Bamboo', + qualtrics_auth_params = visier_api_data_in.models.designer/transfers/qualtrics_auth_params_dto.designer.transfers.QualtricsAuthParamsDTO( + api_token = '', + data_center_id = '', ), + redshift_auth_params = visier_api_data_in.models.designer/transfers/redshift_auth_params_dto.designer.transfers.RedshiftAuthParamsDTO( + database = '', + endpoint = '', + password = '', + port = '', + schema = '', + table_prefix = '', + username = '', ), + s3_auth_params = visier_api_data_in.models.designer/transfers/basic_s3_auth_params_dto.designer.transfers.BasicS3AuthParamsDTO( + access_key = '', + bucket_name = '', + bucket_region = '', + path = '', + secret_key = '', ), + salesforce_auth_params = visier_api_data_in.models.designer/transfers/salesforce_auth_params_dto.designer.transfers.SalesforceAuthParamsDTO( + client_id = '', + refresh_token = '', ), + salesforce_v2_auth_params = visier_api_data_in.models.designer/transfers/salesforce_v2_auth_params_dto.designer.transfers.SalesforceV2AuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + login_host = '', ), + service_now_auth_params = visier_api_data_in.models.designer/transfers/service_now_auth_params_dto.designer.transfers.ServiceNowAuthParamsDTO( + host_domain_name = '', + password = '', + username = '', ), + service_now_v2_auth_params = visier_api_data_in.models.designer/transfers/service_now_v2_auth_params_dto.designer.transfers.ServiceNowV2AuthParamsDTO( + alternate_domain = '', + auth_code = '', + client_id = '', + client_secret = '', + host_domain_name = '', ), + slack_auth_params = visier_api_data_in.models.designer/transfers/slack_auth_params_dto.designer.transfers.SlackAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', ), + snowflake_auth_params = visier_api_data_in.models.designer/transfers/snowflake_auth_params_dto.designer.transfers.SnowflakeAuthParamsDTO( + account_identifier = '', + database = '', + password = '', + private_key = '', + schema = '', + username = '', + warehouse = '', ), + sql_server_auth_params = visier_api_data_in.models.designer/transfers/sql_server_auth_params_dto.designer.transfers.SqlServerAuthParamsDTO( + database = '', + host = '', + password = '', + port = '', + username = '', ), + success_factors_auth_params = visier_api_data_in.models.designer/transfers/success_factors_auth_params_dto.designer.transfers.SuccessFactorsAuthParamsDTO( + company_id = '', + host_domain_name = '', + o_auth = visier_api_data_in.models.designer/transfers/success_factors_o_auth_params_dto.designer.transfers.SuccessFactorsOAuthParamsDTO( + api_key = '', + private_x509_key = '', + public_x509_cert = '', ), + password = '', + username = '', ), + tenant_domain_name = '', + ultimate_auth_params = visier_api_data_in.models.designer/transfers/ultimate_auth_params_dto.designer.transfers.UltimateAuthParamsDTO( + api_key = '', + host_domain_name = '', + password = '', + user_access_key = '', + username = '', ), + willow_auth_params = visier_api_data_in.models.designer/transfers/willow_auth_params_dto.designer.transfers.WillowAuthParamsDTO( + api_token = '', + host_name = '', ), + workday_auth_params = visier_api_data_in.models.designer/transfers/workday_auth_params_dto.designer.transfers.WorkdayAuthParamsDTO( + api_key = '', + domain_name = '', + implementation_name = '', + integration_system_id = '', + password = '', + ref_token = visier_api_data_in.models.designer/transfers/workday_refresh_token_params_dto.designer.transfers.WorkdayRefreshTokenParamsDTO( + api_client_id = '', + client_secret = '', + refresh_token = '', ), + user_id = '', ), + workday_raas_auth_params = visier_api_data_in.models.designer/transfers/workday_raas_auth_params_dto.designer.transfers.WorkdayRaasAuthParamsDTO( + domain_name = '', + implementation_name = '', + password = '', + test_report_url = '', + user_id = '', ), + zoom_auth_params = visier_api_data_in.models.designer/transfers/zoom_auth_params_dto.designer.transfers.ZoomAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', ), ), + data_provider_basic_information = visier_api_data_in.models.designer/transfers/data_provider_basic_information_dto.designer.transfers.DataProviderBasicInformationDTO( + description = '', + display_name = '', ), + data_provider_metadata = visier_api_data_in.models.designer/transfers/data_provider_basic_metadata_dto.designer.transfers.DataProviderBasicMetadataDTO( + can_children_inherit = True, ) + ) + else: + return DesignerTransfersDataProviderAuthInformationDTO( + ) + + def testDesignerTransfersDataProviderAuthInformationDTO(self): + """Test DesignerTransfersDataProviderAuthInformationDTO""" + def validate_instance(instance): + DesignerTransfersDataProviderAuthInformationDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDataProviderAuthInformationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_data_provider_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_data_provider_auth_params_dto.py new file mode 100644 index 0000000000..2194cce35c --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_data_provider_auth_params_dto.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_data_provider_auth_params_dto import DesignerTransfersDataProviderAuthParamsDTO + +class TestDesignerTransfersDataProviderAuthParamsDTO(unittest.TestCase): + """DesignerTransfersDataProviderAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDataProviderAuthParamsDTO: + """Test DesignerTransfersDataProviderAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDataProviderAuthParamsDTO( + adp_auth_params = visier_api_data_in.models.designer/transfers/adp_auth_params_dto.designer.transfers.AdpAuthParamsDTO( + auth_code = '', ), + auth_context = 'DefaultDataExtraction', + bamboo_auth_params = visier_api_data_in.models.designer/transfers/bamboo_auth_params_dto.designer.transfers.BambooAuthParamsDTO( + access_key = '', + tenant_domain_name = '', ), + big_query_auth_params = visier_api_data_in.models.designer/transfers/big_query_auth_params_dto.designer.transfers.BigQueryAuthParamsDTO( + client_id = '', + client_secret = '', + dataset_location = '', + default_dataset = '', + project_id = '', + refresh_token = '', + service_account_params = visier_api_data_in.models.designer/transfers/big_query_service_account_params_dto.designer.transfers.BigQueryServiceAccountParamsDTO( + private_key = '', + service_account_email = '', ), ), + copy_s3_auth_params = visier_api_data_in.models.designer/transfers/copy_s3_auth_params_dto.designer.transfers.CopyS3AuthParamsDTO( + iam_role = '', ), + dayforce_v2_auth_params = visier_api_data_in.models.designer/transfers/dayforce_v2_auth_params_dto.designer.transfers.DayforceV2AuthParamsDTO( + company_id = '', + host_domain_name = '', + password = '', + token_host = '', + username = '', ), + dimensions_auth_params = visier_api_data_in.models.designer/transfers/dimensions_auth_params_dto.designer.transfers.DimensionsAuthParamsDTO( + app_key = '', + client_id = '', + client_secret = '', + password = '', + username = '', + vanity_url = '', ), + empty_auth_params = visier_api_data_in.models.designer/transfers/empty_auth_params_dto.designer.transfers.EmptyAuthParamsDTO(), + fusion_auth_params = visier_api_data_in.models.designer/transfers/fusion_auth_params_dto.designer.transfers.FusionAuthParamsDTO( + host_domain_name = '', + password = '', + username = '', ), + gong_auth_params = visier_api_data_in.models.designer/transfers/gong_auth_params_dto.designer.transfers.GongAuthParamsDTO( + client_id = '', + client_secret = '', ), + google_sheets_auth_params = visier_api_data_in.models.designer/transfers/google_sheets_auth_params_dto.designer.transfers.GoogleSheetsAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + configuration = '', ), + google_workspace_auth_params = visier_api_data_in.models.designer/transfers/google_workspace_auth_params_dto.designer.transfers.GoogleWorkspaceAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + privacy_mode = '', + service_account = '', ), + greenhouse_auth_params = visier_api_data_in.models.designer/transfers/greenhouse_auth_params_dto.designer.transfers.GreenhouseAuthParamsDTO( + api_key = '', ), + has_updates = True, + icims_auth_params = visier_api_data_in.models.designer/transfers/icims_auth_params_dto.designer.transfers.IcimsAuthParamsDTO( + client_id = '', + client_secret = '', + customer_id = '', + password = '', + region = 'US', + username = '', ), + internal_s3_auth_params = visier_api_data_in.models.designer/transfers/internal_s3_auth_params_dto.designer.transfers.InternalS3AuthParamsDTO( + bucket_name = '', + path = '', ), + jdbc_auth_params = visier_api_data_in.models.designer/transfers/jdbc_auth_params_dto.designer.transfers.JdbcAuthParamsDTO( + jdbc_connect_string = '', + password = '', + username = '', ), + jira_auth_params = visier_api_data_in.models.designer/transfers/jira_auth_params_dto.designer.transfers.JiraAuthParamsDTO( + api_token = '', + connect_params = visier_api_data_in.models.designer/transfers/jira_connect_params_dto.designer.transfers.JiraConnectParamsDTO( + app_key = '', + client_key = '', + shared_secret = '', ), + host_name = '', ), + lever_auth_params = visier_api_data_in.models.designer/transfers/lever_auth_params_dto.designer.transfers.LeverAuthParamsDTO( + api_key = '', ), + medallia_auth_params = visier_api_data_in.models.designer/transfers/medallia_auth_params_dto.designer.transfers.MedalliaAuthParamsDTO( + client_id = '', + client_secret = '', + instance_url = '', + tenant_domain_name = '', ), + ms365_auth_params = visier_api_data_in.models.designer/transfers/microsoft365_auth_params_dto.designer.transfers.Microsoft365AuthParamsDTO( + client_id = '', + client_secret = '', + o_auth_tenant_id = '', + privacy_mode = '', ), + my_sql_auth_params = visier_api_data_in.models.designer/transfers/my_sql_auth_params_dto.designer.transfers.MySqlAuthParamsDTO( + database = '', + host = '', + password = '', + port = '', + ssl_mode = '', + username = '', ), + namely_auth_params = visier_api_data_in.models.designer/transfers/namely_auth_params_dto.designer.transfers.NamelyAuthParamsDTO( + auth_code = '', ), + oracle_db_auth_params = visier_api_data_in.models.designer/transfers/oracle_db_auth_params_dto.designer.transfers.OracleDbAuthParamsDTO( + host = '', + password = '', + port = '', + service_name = '', + username = '', ), + provider = 'Bamboo', + qualtrics_auth_params = visier_api_data_in.models.designer/transfers/qualtrics_auth_params_dto.designer.transfers.QualtricsAuthParamsDTO( + api_token = '', + data_center_id = '', ), + redshift_auth_params = visier_api_data_in.models.designer/transfers/redshift_auth_params_dto.designer.transfers.RedshiftAuthParamsDTO( + database = '', + endpoint = '', + password = '', + port = '', + schema = '', + table_prefix = '', + username = '', ), + s3_auth_params = visier_api_data_in.models.designer/transfers/basic_s3_auth_params_dto.designer.transfers.BasicS3AuthParamsDTO( + access_key = '', + bucket_name = '', + bucket_region = '', + path = '', + secret_key = '', ), + salesforce_auth_params = visier_api_data_in.models.designer/transfers/salesforce_auth_params_dto.designer.transfers.SalesforceAuthParamsDTO( + client_id = '', + refresh_token = '', ), + salesforce_v2_auth_params = visier_api_data_in.models.designer/transfers/salesforce_v2_auth_params_dto.designer.transfers.SalesforceV2AuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + login_host = '', ), + service_now_auth_params = visier_api_data_in.models.designer/transfers/service_now_auth_params_dto.designer.transfers.ServiceNowAuthParamsDTO( + host_domain_name = '', + password = '', + username = '', ), + service_now_v2_auth_params = visier_api_data_in.models.designer/transfers/service_now_v2_auth_params_dto.designer.transfers.ServiceNowV2AuthParamsDTO( + alternate_domain = '', + auth_code = '', + client_id = '', + client_secret = '', + host_domain_name = '', ), + slack_auth_params = visier_api_data_in.models.designer/transfers/slack_auth_params_dto.designer.transfers.SlackAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', ), + snowflake_auth_params = visier_api_data_in.models.designer/transfers/snowflake_auth_params_dto.designer.transfers.SnowflakeAuthParamsDTO( + account_identifier = '', + database = '', + password = '', + private_key = '', + schema = '', + username = '', + warehouse = '', ), + sql_server_auth_params = visier_api_data_in.models.designer/transfers/sql_server_auth_params_dto.designer.transfers.SqlServerAuthParamsDTO( + database = '', + host = '', + password = '', + port = '', + username = '', ), + success_factors_auth_params = visier_api_data_in.models.designer/transfers/success_factors_auth_params_dto.designer.transfers.SuccessFactorsAuthParamsDTO( + company_id = '', + host_domain_name = '', + o_auth = visier_api_data_in.models.designer/transfers/success_factors_o_auth_params_dto.designer.transfers.SuccessFactorsOAuthParamsDTO( + api_key = '', + private_x509_key = '', + public_x509_cert = '', ), + password = '', + username = '', ), + tenant_domain_name = '', + ultimate_auth_params = visier_api_data_in.models.designer/transfers/ultimate_auth_params_dto.designer.transfers.UltimateAuthParamsDTO( + api_key = '', + host_domain_name = '', + password = '', + user_access_key = '', + username = '', ), + willow_auth_params = visier_api_data_in.models.designer/transfers/willow_auth_params_dto.designer.transfers.WillowAuthParamsDTO( + api_token = '', + host_name = '', ), + workday_auth_params = visier_api_data_in.models.designer/transfers/workday_auth_params_dto.designer.transfers.WorkdayAuthParamsDTO( + api_key = '', + domain_name = '', + implementation_name = '', + integration_system_id = '', + o_auth = visier_api_data_in.models.designer/transfers/workday_o_auth_params_dto.designer.transfers.WorkdayOAuthParamsDTO( + api_client_id = '', + private_x509_key = '', + public_x509_cert = '', ), + password = '', + ref_token = visier_api_data_in.models.designer/transfers/workday_refresh_token_params_dto.designer.transfers.WorkdayRefreshTokenParamsDTO( + api_client_id = '', + client_secret = '', + refresh_token = '', ), + user_id = '', ), + workday_raas_auth_params = visier_api_data_in.models.designer/transfers/workday_raas_auth_params_dto.designer.transfers.WorkdayRaasAuthParamsDTO( + domain_name = '', + implementation_name = '', + password = '', + test_report_url = '', + user_id = '', ), + zoom_auth_params = visier_api_data_in.models.designer/transfers/zoom_auth_params_dto.designer.transfers.ZoomAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', ) + ) + else: + return DesignerTransfersDataProviderAuthParamsDTO( + ) + + def testDesignerTransfersDataProviderAuthParamsDTO(self): + """Test DesignerTransfersDataProviderAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersDataProviderAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDataProviderAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_data_provider_basic_information_dto.py b/src/visier_api_data_in/test/test_designer_transfers_data_provider_basic_information_dto.py new file mode 100644 index 0000000000..cbdf529d6e --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_data_provider_basic_information_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_data_provider_basic_information_dto import DesignerTransfersDataProviderBasicInformationDTO + +class TestDesignerTransfersDataProviderBasicInformationDTO(unittest.TestCase): + """DesignerTransfersDataProviderBasicInformationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDataProviderBasicInformationDTO: + """Test DesignerTransfersDataProviderBasicInformationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDataProviderBasicInformationDTO( + description = '', + display_name = '' + ) + else: + return DesignerTransfersDataProviderBasicInformationDTO( + ) + + def testDesignerTransfersDataProviderBasicInformationDTO(self): + """Test DesignerTransfersDataProviderBasicInformationDTO""" + def validate_instance(instance): + DesignerTransfersDataProviderBasicInformationDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDataProviderBasicInformationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_data_provider_basic_metadata_dto.py b/src/visier_api_data_in/test/test_designer_transfers_data_provider_basic_metadata_dto.py new file mode 100644 index 0000000000..e2c641da51 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_data_provider_basic_metadata_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_data_provider_basic_metadata_dto import DesignerTransfersDataProviderBasicMetadataDTO + +class TestDesignerTransfersDataProviderBasicMetadataDTO(unittest.TestCase): + """DesignerTransfersDataProviderBasicMetadataDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDataProviderBasicMetadataDTO: + """Test DesignerTransfersDataProviderBasicMetadataDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDataProviderBasicMetadataDTO( + can_children_inherit = True + ) + else: + return DesignerTransfersDataProviderBasicMetadataDTO( + ) + + def testDesignerTransfersDataProviderBasicMetadataDTO(self): + """Test DesignerTransfersDataProviderBasicMetadataDTO""" + def validate_instance(instance): + DesignerTransfersDataProviderBasicMetadataDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDataProviderBasicMetadataDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_dayforce_v2_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_dayforce_v2_auth_params_dto.py new file mode 100644 index 0000000000..8e0d750ab0 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_dayforce_v2_auth_params_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_dayforce_v2_auth_params_dto import DesignerTransfersDayforceV2AuthParamsDTO + +class TestDesignerTransfersDayforceV2AuthParamsDTO(unittest.TestCase): + """DesignerTransfersDayforceV2AuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDayforceV2AuthParamsDTO: + """Test DesignerTransfersDayforceV2AuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDayforceV2AuthParamsDTO( + company_id = '', + host_domain_name = '', + password = '', + token_host = '', + username = '' + ) + else: + return DesignerTransfersDayforceV2AuthParamsDTO( + ) + + def testDesignerTransfersDayforceV2AuthParamsDTO(self): + """Test DesignerTransfersDayforceV2AuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersDayforceV2AuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDayforceV2AuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_dimensions_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_dimensions_auth_params_dto.py new file mode 100644 index 0000000000..02cb71ec02 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_dimensions_auth_params_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_dimensions_auth_params_dto import DesignerTransfersDimensionsAuthParamsDTO + +class TestDesignerTransfersDimensionsAuthParamsDTO(unittest.TestCase): + """DesignerTransfersDimensionsAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDimensionsAuthParamsDTO: + """Test DesignerTransfersDimensionsAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDimensionsAuthParamsDTO( + app_key = '', + client_id = '', + client_secret = '', + password = '', + username = '', + vanity_url = '' + ) + else: + return DesignerTransfersDimensionsAuthParamsDTO( + ) + + def testDesignerTransfersDimensionsAuthParamsDTO(self): + """Test DesignerTransfersDimensionsAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersDimensionsAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDimensionsAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_extractor_credential_apidto.py b/src/visier_api_data_in/test/test_designer_transfers_extractor_credential_apidto.py new file mode 100644 index 0000000000..58cae90adf --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_extractor_credential_apidto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_extractor_credential_apidto import DesignerTransfersExtractorCredentialAPIDTO + +class TestDesignerTransfersExtractorCredentialAPIDTO(unittest.TestCase): + """DesignerTransfersExtractorCredentialAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersExtractorCredentialAPIDTO: + """Test DesignerTransfersExtractorCredentialAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersExtractorCredentialAPIDTO( + auth_context = '', + credential_id = '', + data_provider = '', + display_name = '', + is_inherited = True + ) + else: + return DesignerTransfersExtractorCredentialAPIDTO( + ) + + def testDesignerTransfersExtractorCredentialAPIDTO(self): + """Test DesignerTransfersExtractorCredentialAPIDTO""" + def validate_instance(instance): + DesignerTransfersExtractorCredentialAPIDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersExtractorCredentialAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_extractor_credentials_apidto.py b/src/visier_api_data_in/test/test_designer_transfers_extractor_credentials_apidto.py new file mode 100644 index 0000000000..cde630e8a2 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_extractor_credentials_apidto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_extractor_credentials_apidto import DesignerTransfersExtractorCredentialsAPIDTO + +class TestDesignerTransfersExtractorCredentialsAPIDTO(unittest.TestCase): + """DesignerTransfersExtractorCredentialsAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersExtractorCredentialsAPIDTO: + """Test DesignerTransfersExtractorCredentialsAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersExtractorCredentialsAPIDTO( + connector_credentials = [ + visier_api_data_in.models.designer/transfers/extractor_credential_apidto.designer.transfers.ExtractorCredentialAPIDTO( + auth_context = '', + credential_id = '', + data_provider = '', + display_name = '', + is_inherited = True, ) + ], + limit = 56, + start = 56 + ) + else: + return DesignerTransfersExtractorCredentialsAPIDTO( + ) + + def testDesignerTransfersExtractorCredentialsAPIDTO(self): + """Test DesignerTransfersExtractorCredentialsAPIDTO""" + def validate_instance(instance): + DesignerTransfersExtractorCredentialsAPIDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersExtractorCredentialsAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_fusion_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_fusion_auth_params_dto.py new file mode 100644 index 0000000000..ca4d081a16 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_fusion_auth_params_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_fusion_auth_params_dto import DesignerTransfersFusionAuthParamsDTO + +class TestDesignerTransfersFusionAuthParamsDTO(unittest.TestCase): + """DesignerTransfersFusionAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersFusionAuthParamsDTO: + """Test DesignerTransfersFusionAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersFusionAuthParamsDTO( + host_domain_name = '', + password = '', + username = '' + ) + else: + return DesignerTransfersFusionAuthParamsDTO( + ) + + def testDesignerTransfersFusionAuthParamsDTO(self): + """Test DesignerTransfersFusionAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersFusionAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersFusionAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_gong_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_gong_auth_params_dto.py new file mode 100644 index 0000000000..bf3a7aab94 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_gong_auth_params_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_gong_auth_params_dto import DesignerTransfersGongAuthParamsDTO + +class TestDesignerTransfersGongAuthParamsDTO(unittest.TestCase): + """DesignerTransfersGongAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersGongAuthParamsDTO: + """Test DesignerTransfersGongAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersGongAuthParamsDTO( + client_id = '', + client_secret = '' + ) + else: + return DesignerTransfersGongAuthParamsDTO( + ) + + def testDesignerTransfersGongAuthParamsDTO(self): + """Test DesignerTransfersGongAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersGongAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersGongAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_google_sheets_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_google_sheets_auth_params_dto.py new file mode 100644 index 0000000000..4c039b51e9 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_google_sheets_auth_params_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_google_sheets_auth_params_dto import DesignerTransfersGoogleSheetsAuthParamsDTO + +class TestDesignerTransfersGoogleSheetsAuthParamsDTO(unittest.TestCase): + """DesignerTransfersGoogleSheetsAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersGoogleSheetsAuthParamsDTO: + """Test DesignerTransfersGoogleSheetsAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersGoogleSheetsAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + configuration = '' + ) + else: + return DesignerTransfersGoogleSheetsAuthParamsDTO( + ) + + def testDesignerTransfersGoogleSheetsAuthParamsDTO(self): + """Test DesignerTransfersGoogleSheetsAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersGoogleSheetsAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersGoogleSheetsAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_google_workspace_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_google_workspace_auth_params_dto.py new file mode 100644 index 0000000000..fe74a73da6 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_google_workspace_auth_params_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_google_workspace_auth_params_dto import DesignerTransfersGoogleWorkspaceAuthParamsDTO + +class TestDesignerTransfersGoogleWorkspaceAuthParamsDTO(unittest.TestCase): + """DesignerTransfersGoogleWorkspaceAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersGoogleWorkspaceAuthParamsDTO: + """Test DesignerTransfersGoogleWorkspaceAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersGoogleWorkspaceAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + privacy_mode = '', + service_account = '' + ) + else: + return DesignerTransfersGoogleWorkspaceAuthParamsDTO( + ) + + def testDesignerTransfersGoogleWorkspaceAuthParamsDTO(self): + """Test DesignerTransfersGoogleWorkspaceAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersGoogleWorkspaceAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersGoogleWorkspaceAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_greenhouse_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_greenhouse_auth_params_dto.py new file mode 100644 index 0000000000..a0cb16d135 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_greenhouse_auth_params_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_greenhouse_auth_params_dto import DesignerTransfersGreenhouseAuthParamsDTO + +class TestDesignerTransfersGreenhouseAuthParamsDTO(unittest.TestCase): + """DesignerTransfersGreenhouseAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersGreenhouseAuthParamsDTO: + """Test DesignerTransfersGreenhouseAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersGreenhouseAuthParamsDTO( + api_key = '' + ) + else: + return DesignerTransfersGreenhouseAuthParamsDTO( + ) + + def testDesignerTransfersGreenhouseAuthParamsDTO(self): + """Test DesignerTransfersGreenhouseAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersGreenhouseAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersGreenhouseAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_icims_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_icims_auth_params_dto.py new file mode 100644 index 0000000000..64ea18edf8 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_icims_auth_params_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_icims_auth_params_dto import DesignerTransfersIcimsAuthParamsDTO + +class TestDesignerTransfersIcimsAuthParamsDTO(unittest.TestCase): + """DesignerTransfersIcimsAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersIcimsAuthParamsDTO: + """Test DesignerTransfersIcimsAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersIcimsAuthParamsDTO( + client_id = '', + client_secret = '', + customer_id = '', + password = '', + region = 'US', + username = '' + ) + else: + return DesignerTransfersIcimsAuthParamsDTO( + ) + + def testDesignerTransfersIcimsAuthParamsDTO(self): + """Test DesignerTransfersIcimsAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersIcimsAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersIcimsAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_internal_s3_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_internal_s3_auth_params_dto.py new file mode 100644 index 0000000000..e29dadd53d --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_internal_s3_auth_params_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_internal_s3_auth_params_dto import DesignerTransfersInternalS3AuthParamsDTO + +class TestDesignerTransfersInternalS3AuthParamsDTO(unittest.TestCase): + """DesignerTransfersInternalS3AuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersInternalS3AuthParamsDTO: + """Test DesignerTransfersInternalS3AuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersInternalS3AuthParamsDTO( + bucket_name = '', + path = '' + ) + else: + return DesignerTransfersInternalS3AuthParamsDTO( + ) + + def testDesignerTransfersInternalS3AuthParamsDTO(self): + """Test DesignerTransfersInternalS3AuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersInternalS3AuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersInternalS3AuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_jdbc_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_jdbc_auth_params_dto.py new file mode 100644 index 0000000000..68bae12b14 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_jdbc_auth_params_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_jdbc_auth_params_dto import DesignerTransfersJdbcAuthParamsDTO + +class TestDesignerTransfersJdbcAuthParamsDTO(unittest.TestCase): + """DesignerTransfersJdbcAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersJdbcAuthParamsDTO: + """Test DesignerTransfersJdbcAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersJdbcAuthParamsDTO( + jdbc_connect_string = '', + password = '', + username = '' + ) + else: + return DesignerTransfersJdbcAuthParamsDTO( + ) + + def testDesignerTransfersJdbcAuthParamsDTO(self): + """Test DesignerTransfersJdbcAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersJdbcAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersJdbcAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_jira_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_jira_auth_params_dto.py new file mode 100644 index 0000000000..0eba1eda67 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_jira_auth_params_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_jira_auth_params_dto import DesignerTransfersJiraAuthParamsDTO + +class TestDesignerTransfersJiraAuthParamsDTO(unittest.TestCase): + """DesignerTransfersJiraAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersJiraAuthParamsDTO: + """Test DesignerTransfersJiraAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersJiraAuthParamsDTO( + api_token = '', + connect_params = visier_api_data_in.models.designer/transfers/jira_connect_params_dto.designer.transfers.JiraConnectParamsDTO( + app_key = '', + client_key = '', + shared_secret = '', ), + host_name = '' + ) + else: + return DesignerTransfersJiraAuthParamsDTO( + ) + + def testDesignerTransfersJiraAuthParamsDTO(self): + """Test DesignerTransfersJiraAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersJiraAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersJiraAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_jira_connect_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_jira_connect_params_dto.py new file mode 100644 index 0000000000..a20fa86363 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_jira_connect_params_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_jira_connect_params_dto import DesignerTransfersJiraConnectParamsDTO + +class TestDesignerTransfersJiraConnectParamsDTO(unittest.TestCase): + """DesignerTransfersJiraConnectParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersJiraConnectParamsDTO: + """Test DesignerTransfersJiraConnectParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersJiraConnectParamsDTO( + app_key = '', + client_key = '', + shared_secret = '' + ) + else: + return DesignerTransfersJiraConnectParamsDTO( + ) + + def testDesignerTransfersJiraConnectParamsDTO(self): + """Test DesignerTransfersJiraConnectParamsDTO""" + def validate_instance(instance): + DesignerTransfersJiraConnectParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersJiraConnectParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_lever_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_lever_auth_params_dto.py new file mode 100644 index 0000000000..bcf3c4f657 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_lever_auth_params_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_lever_auth_params_dto import DesignerTransfersLeverAuthParamsDTO + +class TestDesignerTransfersLeverAuthParamsDTO(unittest.TestCase): + """DesignerTransfersLeverAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersLeverAuthParamsDTO: + """Test DesignerTransfersLeverAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersLeverAuthParamsDTO( + api_key = '' + ) + else: + return DesignerTransfersLeverAuthParamsDTO( + ) + + def testDesignerTransfersLeverAuthParamsDTO(self): + """Test DesignerTransfersLeverAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersLeverAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersLeverAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_medallia_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_medallia_auth_params_dto.py new file mode 100644 index 0000000000..b2415a76f6 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_medallia_auth_params_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_medallia_auth_params_dto import DesignerTransfersMedalliaAuthParamsDTO + +class TestDesignerTransfersMedalliaAuthParamsDTO(unittest.TestCase): + """DesignerTransfersMedalliaAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersMedalliaAuthParamsDTO: + """Test DesignerTransfersMedalliaAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersMedalliaAuthParamsDTO( + client_id = '', + client_secret = '', + instance_url = '', + tenant_domain_name = '' + ) + else: + return DesignerTransfersMedalliaAuthParamsDTO( + ) + + def testDesignerTransfersMedalliaAuthParamsDTO(self): + """Test DesignerTransfersMedalliaAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersMedalliaAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersMedalliaAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_microsoft365_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_microsoft365_auth_params_dto.py new file mode 100644 index 0000000000..812504f040 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_microsoft365_auth_params_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_microsoft365_auth_params_dto import DesignerTransfersMicrosoft365AuthParamsDTO + +class TestDesignerTransfersMicrosoft365AuthParamsDTO(unittest.TestCase): + """DesignerTransfersMicrosoft365AuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersMicrosoft365AuthParamsDTO: + """Test DesignerTransfersMicrosoft365AuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersMicrosoft365AuthParamsDTO( + client_id = '', + client_secret = '', + o_auth_tenant_id = '', + privacy_mode = '' + ) + else: + return DesignerTransfersMicrosoft365AuthParamsDTO( + ) + + def testDesignerTransfersMicrosoft365AuthParamsDTO(self): + """Test DesignerTransfersMicrosoft365AuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersMicrosoft365AuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersMicrosoft365AuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_my_sql_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_my_sql_auth_params_dto.py new file mode 100644 index 0000000000..9b85a7584b --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_my_sql_auth_params_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_my_sql_auth_params_dto import DesignerTransfersMySqlAuthParamsDTO + +class TestDesignerTransfersMySqlAuthParamsDTO(unittest.TestCase): + """DesignerTransfersMySqlAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersMySqlAuthParamsDTO: + """Test DesignerTransfersMySqlAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersMySqlAuthParamsDTO( + database = '', + host = '', + password = '', + port = '', + ssl_mode = '', + username = '' + ) + else: + return DesignerTransfersMySqlAuthParamsDTO( + ) + + def testDesignerTransfersMySqlAuthParamsDTO(self): + """Test DesignerTransfersMySqlAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersMySqlAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersMySqlAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_namely_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_namely_auth_params_dto.py new file mode 100644 index 0000000000..acd8b8b107 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_namely_auth_params_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_namely_auth_params_dto import DesignerTransfersNamelyAuthParamsDTO + +class TestDesignerTransfersNamelyAuthParamsDTO(unittest.TestCase): + """DesignerTransfersNamelyAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersNamelyAuthParamsDTO: + """Test DesignerTransfersNamelyAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersNamelyAuthParamsDTO( + auth_code = '' + ) + else: + return DesignerTransfersNamelyAuthParamsDTO( + ) + + def testDesignerTransfersNamelyAuthParamsDTO(self): + """Test DesignerTransfersNamelyAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersNamelyAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersNamelyAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_oracle_db_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_oracle_db_auth_params_dto.py new file mode 100644 index 0000000000..722586656b --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_oracle_db_auth_params_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_oracle_db_auth_params_dto import DesignerTransfersOracleDbAuthParamsDTO + +class TestDesignerTransfersOracleDbAuthParamsDTO(unittest.TestCase): + """DesignerTransfersOracleDbAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersOracleDbAuthParamsDTO: + """Test DesignerTransfersOracleDbAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersOracleDbAuthParamsDTO( + host = '', + password = '', + port = '', + service_name = '', + username = '' + ) + else: + return DesignerTransfersOracleDbAuthParamsDTO( + ) + + def testDesignerTransfersOracleDbAuthParamsDTO(self): + """Test DesignerTransfersOracleDbAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersOracleDbAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersOracleDbAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_push_data_column_definition_dto.py b/src/visier_api_data_in/test/test_designer_transfers_push_data_column_definition_dto.py new file mode 100644 index 0000000000..301cf22891 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_push_data_column_definition_dto.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_push_data_column_definition_dto import DesignerTransfersPushDataColumnDefinitionDTO + +class TestDesignerTransfersPushDataColumnDefinitionDTO(unittest.TestCase): + """DesignerTransfersPushDataColumnDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersPushDataColumnDefinitionDTO: + """Test DesignerTransfersPushDataColumnDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersPushDataColumnDefinitionDTO( + allow_empty = True, + column_name = '', + data_formats = [ + '' + ], + data_type = '', + default_value = '', + is_mandatory = True + ) + else: + return DesignerTransfersPushDataColumnDefinitionDTO( + ) + + def testDesignerTransfersPushDataColumnDefinitionDTO(self): + """Test DesignerTransfersPushDataColumnDefinitionDTO""" + def validate_instance(instance): + DesignerTransfersPushDataColumnDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersPushDataColumnDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_push_data_source_definition_dto.py b/src/visier_api_data_in/test/test_designer_transfers_push_data_source_definition_dto.py new file mode 100644 index 0000000000..c5e35a1d7b --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_push_data_source_definition_dto.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_push_data_source_definition_dto import DesignerTransfersPushDataSourceDefinitionDTO + +class TestDesignerTransfersPushDataSourceDefinitionDTO(unittest.TestCase): + """DesignerTransfersPushDataSourceDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersPushDataSourceDefinitionDTO: + """Test DesignerTransfersPushDataSourceDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersPushDataSourceDefinitionDTO( + columns = [ + visier_api_data_in.models.designer/transfers/push_data_column_definition_dto.designer.transfers.PushDataColumnDefinitionDTO( + allow_empty = True, + column_name = '', + data_formats = [ + '' + ], + data_type = '', + default_value = '', + is_mandatory = True, ) + ], + is_inherited = True, + name = '', + source_id = '' + ) + else: + return DesignerTransfersPushDataSourceDefinitionDTO( + ) + + def testDesignerTransfersPushDataSourceDefinitionDTO(self): + """Test DesignerTransfersPushDataSourceDefinitionDTO""" + def validate_instance(instance): + DesignerTransfersPushDataSourceDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersPushDataSourceDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_push_data_source_definitions_dto.py b/src/visier_api_data_in/test/test_designer_transfers_push_data_source_definitions_dto.py new file mode 100644 index 0000000000..af15cf7df6 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_push_data_source_definitions_dto.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_push_data_source_definitions_dto import DesignerTransfersPushDataSourceDefinitionsDTO + +class TestDesignerTransfersPushDataSourceDefinitionsDTO(unittest.TestCase): + """DesignerTransfersPushDataSourceDefinitionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersPushDataSourceDefinitionsDTO: + """Test DesignerTransfersPushDataSourceDefinitionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersPushDataSourceDefinitionsDTO( + sources = [ + visier_api_data_in.models.designer/transfers/push_data_source_definition_dto.designer.transfers.PushDataSourceDefinitionDTO( + columns = [ + visier_api_data_in.models.designer/transfers/push_data_column_definition_dto.designer.transfers.PushDataColumnDefinitionDTO( + allow_empty = True, + column_name = '', + data_formats = [ + '' + ], + data_type = '', + default_value = '', + is_mandatory = True, ) + ], + is_inherited = True, + name = '', + source_id = '', ) + ] + ) + else: + return DesignerTransfersPushDataSourceDefinitionsDTO( + ) + + def testDesignerTransfersPushDataSourceDefinitionsDTO(self): + """Test DesignerTransfersPushDataSourceDefinitionsDTO""" + def validate_instance(instance): + DesignerTransfersPushDataSourceDefinitionsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersPushDataSourceDefinitionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_qualtrics_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_qualtrics_auth_params_dto.py new file mode 100644 index 0000000000..cda867e956 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_qualtrics_auth_params_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_qualtrics_auth_params_dto import DesignerTransfersQualtricsAuthParamsDTO + +class TestDesignerTransfersQualtricsAuthParamsDTO(unittest.TestCase): + """DesignerTransfersQualtricsAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersQualtricsAuthParamsDTO: + """Test DesignerTransfersQualtricsAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersQualtricsAuthParamsDTO( + api_token = '', + data_center_id = '' + ) + else: + return DesignerTransfersQualtricsAuthParamsDTO( + ) + + def testDesignerTransfersQualtricsAuthParamsDTO(self): + """Test DesignerTransfersQualtricsAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersQualtricsAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersQualtricsAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_redshift_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_redshift_auth_params_dto.py new file mode 100644 index 0000000000..4ecba46370 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_redshift_auth_params_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_redshift_auth_params_dto import DesignerTransfersRedshiftAuthParamsDTO + +class TestDesignerTransfersRedshiftAuthParamsDTO(unittest.TestCase): + """DesignerTransfersRedshiftAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersRedshiftAuthParamsDTO: + """Test DesignerTransfersRedshiftAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersRedshiftAuthParamsDTO( + database = '', + endpoint = '', + password = '', + port = '', + var_schema = '', + table_prefix = '', + username = '' + ) + else: + return DesignerTransfersRedshiftAuthParamsDTO( + ) + + def testDesignerTransfersRedshiftAuthParamsDTO(self): + """Test DesignerTransfersRedshiftAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersRedshiftAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersRedshiftAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_salesforce_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_salesforce_auth_params_dto.py new file mode 100644 index 0000000000..e27f78783c --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_salesforce_auth_params_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_salesforce_auth_params_dto import DesignerTransfersSalesforceAuthParamsDTO + +class TestDesignerTransfersSalesforceAuthParamsDTO(unittest.TestCase): + """DesignerTransfersSalesforceAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersSalesforceAuthParamsDTO: + """Test DesignerTransfersSalesforceAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersSalesforceAuthParamsDTO( + client_id = '', + refresh_token = '' + ) + else: + return DesignerTransfersSalesforceAuthParamsDTO( + ) + + def testDesignerTransfersSalesforceAuthParamsDTO(self): + """Test DesignerTransfersSalesforceAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersSalesforceAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersSalesforceAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_salesforce_v2_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_salesforce_v2_auth_params_dto.py new file mode 100644 index 0000000000..38a986eecd --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_salesforce_v2_auth_params_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_salesforce_v2_auth_params_dto import DesignerTransfersSalesforceV2AuthParamsDTO + +class TestDesignerTransfersSalesforceV2AuthParamsDTO(unittest.TestCase): + """DesignerTransfersSalesforceV2AuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersSalesforceV2AuthParamsDTO: + """Test DesignerTransfersSalesforceV2AuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersSalesforceV2AuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + login_host = '' + ) + else: + return DesignerTransfersSalesforceV2AuthParamsDTO( + ) + + def testDesignerTransfersSalesforceV2AuthParamsDTO(self): + """Test DesignerTransfersSalesforceV2AuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersSalesforceV2AuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersSalesforceV2AuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_service_now_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_service_now_auth_params_dto.py new file mode 100644 index 0000000000..532ef0c0f6 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_service_now_auth_params_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_service_now_auth_params_dto import DesignerTransfersServiceNowAuthParamsDTO + +class TestDesignerTransfersServiceNowAuthParamsDTO(unittest.TestCase): + """DesignerTransfersServiceNowAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersServiceNowAuthParamsDTO: + """Test DesignerTransfersServiceNowAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersServiceNowAuthParamsDTO( + host_domain_name = '', + password = '', + username = '' + ) + else: + return DesignerTransfersServiceNowAuthParamsDTO( + ) + + def testDesignerTransfersServiceNowAuthParamsDTO(self): + """Test DesignerTransfersServiceNowAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersServiceNowAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersServiceNowAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_service_now_v2_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_service_now_v2_auth_params_dto.py new file mode 100644 index 0000000000..bef157ce51 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_service_now_v2_auth_params_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_service_now_v2_auth_params_dto import DesignerTransfersServiceNowV2AuthParamsDTO + +class TestDesignerTransfersServiceNowV2AuthParamsDTO(unittest.TestCase): + """DesignerTransfersServiceNowV2AuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersServiceNowV2AuthParamsDTO: + """Test DesignerTransfersServiceNowV2AuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersServiceNowV2AuthParamsDTO( + alternate_domain = '', + auth_code = '', + client_id = '', + client_secret = '', + host_domain_name = '' + ) + else: + return DesignerTransfersServiceNowV2AuthParamsDTO( + ) + + def testDesignerTransfersServiceNowV2AuthParamsDTO(self): + """Test DesignerTransfersServiceNowV2AuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersServiceNowV2AuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersServiceNowV2AuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_slack_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_slack_auth_params_dto.py new file mode 100644 index 0000000000..6243aa582d --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_slack_auth_params_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_slack_auth_params_dto import DesignerTransfersSlackAuthParamsDTO + +class TestDesignerTransfersSlackAuthParamsDTO(unittest.TestCase): + """DesignerTransfersSlackAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersSlackAuthParamsDTO: + """Test DesignerTransfersSlackAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersSlackAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '' + ) + else: + return DesignerTransfersSlackAuthParamsDTO( + ) + + def testDesignerTransfersSlackAuthParamsDTO(self): + """Test DesignerTransfersSlackAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersSlackAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersSlackAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_snowflake_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_snowflake_auth_params_dto.py new file mode 100644 index 0000000000..9169a43882 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_snowflake_auth_params_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_snowflake_auth_params_dto import DesignerTransfersSnowflakeAuthParamsDTO + +class TestDesignerTransfersSnowflakeAuthParamsDTO(unittest.TestCase): + """DesignerTransfersSnowflakeAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersSnowflakeAuthParamsDTO: + """Test DesignerTransfersSnowflakeAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersSnowflakeAuthParamsDTO( + account_identifier = '', + database = '', + password = '', + private_key = '', + var_schema = '', + username = '', + warehouse = '' + ) + else: + return DesignerTransfersSnowflakeAuthParamsDTO( + ) + + def testDesignerTransfersSnowflakeAuthParamsDTO(self): + """Test DesignerTransfersSnowflakeAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersSnowflakeAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersSnowflakeAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_sql_server_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_sql_server_auth_params_dto.py new file mode 100644 index 0000000000..e61282bcb4 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_sql_server_auth_params_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_sql_server_auth_params_dto import DesignerTransfersSqlServerAuthParamsDTO + +class TestDesignerTransfersSqlServerAuthParamsDTO(unittest.TestCase): + """DesignerTransfersSqlServerAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersSqlServerAuthParamsDTO: + """Test DesignerTransfersSqlServerAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersSqlServerAuthParamsDTO( + database = '', + host = '', + password = '', + port = '', + username = '' + ) + else: + return DesignerTransfersSqlServerAuthParamsDTO( + ) + + def testDesignerTransfersSqlServerAuthParamsDTO(self): + """Test DesignerTransfersSqlServerAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersSqlServerAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersSqlServerAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_subject_missing_access_dto.py b/src/visier_api_data_in/test/test_designer_transfers_subject_missing_access_dto.py new file mode 100644 index 0000000000..37e0230b18 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_subject_missing_access_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_subject_missing_access_dto import DesignerTransfersSubjectMissingAccessDTO + +class TestDesignerTransfersSubjectMissingAccessDTO(unittest.TestCase): + """DesignerTransfersSubjectMissingAccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersSubjectMissingAccessDTO: + """Test DesignerTransfersSubjectMissingAccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersSubjectMissingAccessDTO( + attributes = [ + '' + ], + error_message = '', + subject = 'Employee' + ) + else: + return DesignerTransfersSubjectMissingAccessDTO( + ) + + def testDesignerTransfersSubjectMissingAccessDTO(self): + """Test DesignerTransfersSubjectMissingAccessDTO""" + def validate_instance(instance): + DesignerTransfersSubjectMissingAccessDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersSubjectMissingAccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_success_factors_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_success_factors_auth_params_dto.py new file mode 100644 index 0000000000..6578aa4bcc --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_success_factors_auth_params_dto.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_success_factors_auth_params_dto import DesignerTransfersSuccessFactorsAuthParamsDTO + +class TestDesignerTransfersSuccessFactorsAuthParamsDTO(unittest.TestCase): + """DesignerTransfersSuccessFactorsAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersSuccessFactorsAuthParamsDTO: + """Test DesignerTransfersSuccessFactorsAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersSuccessFactorsAuthParamsDTO( + company_id = '', + host_domain_name = '', + o_auth = visier_api_data_in.models.designer/transfers/success_factors_o_auth_params_dto.designer.transfers.SuccessFactorsOAuthParamsDTO( + api_key = '', + private_x509_key = '', + public_x509_cert = '', ), + password = '', + username = '' + ) + else: + return DesignerTransfersSuccessFactorsAuthParamsDTO( + ) + + def testDesignerTransfersSuccessFactorsAuthParamsDTO(self): + """Test DesignerTransfersSuccessFactorsAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersSuccessFactorsAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersSuccessFactorsAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_success_factors_o_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_success_factors_o_auth_params_dto.py new file mode 100644 index 0000000000..48c86197e0 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_success_factors_o_auth_params_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_success_factors_o_auth_params_dto import DesignerTransfersSuccessFactorsOAuthParamsDTO + +class TestDesignerTransfersSuccessFactorsOAuthParamsDTO(unittest.TestCase): + """DesignerTransfersSuccessFactorsOAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersSuccessFactorsOAuthParamsDTO: + """Test DesignerTransfersSuccessFactorsOAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersSuccessFactorsOAuthParamsDTO( + api_key = '', + private_x509_key = '', + public_x509_cert = '' + ) + else: + return DesignerTransfersSuccessFactorsOAuthParamsDTO( + ) + + def testDesignerTransfersSuccessFactorsOAuthParamsDTO(self): + """Test DesignerTransfersSuccessFactorsOAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersSuccessFactorsOAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersSuccessFactorsOAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_ultimate_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_ultimate_auth_params_dto.py new file mode 100644 index 0000000000..9b083335d1 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_ultimate_auth_params_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_ultimate_auth_params_dto import DesignerTransfersUltimateAuthParamsDTO + +class TestDesignerTransfersUltimateAuthParamsDTO(unittest.TestCase): + """DesignerTransfersUltimateAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersUltimateAuthParamsDTO: + """Test DesignerTransfersUltimateAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersUltimateAuthParamsDTO( + api_key = '', + host_domain_name = '', + password = '', + user_access_key = '', + username = '' + ) + else: + return DesignerTransfersUltimateAuthParamsDTO( + ) + + def testDesignerTransfersUltimateAuthParamsDTO(self): + """Test DesignerTransfersUltimateAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersUltimateAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersUltimateAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_willow_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_willow_auth_params_dto.py new file mode 100644 index 0000000000..d03a3daff3 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_willow_auth_params_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_willow_auth_params_dto import DesignerTransfersWillowAuthParamsDTO + +class TestDesignerTransfersWillowAuthParamsDTO(unittest.TestCase): + """DesignerTransfersWillowAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersWillowAuthParamsDTO: + """Test DesignerTransfersWillowAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersWillowAuthParamsDTO( + api_token = '', + host_name = '' + ) + else: + return DesignerTransfersWillowAuthParamsDTO( + ) + + def testDesignerTransfersWillowAuthParamsDTO(self): + """Test DesignerTransfersWillowAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersWillowAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersWillowAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_workday_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_workday_auth_params_dto.py new file mode 100644 index 0000000000..c23e848d28 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_workday_auth_params_dto.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_workday_auth_params_dto import DesignerTransfersWorkdayAuthParamsDTO + +class TestDesignerTransfersWorkdayAuthParamsDTO(unittest.TestCase): + """DesignerTransfersWorkdayAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersWorkdayAuthParamsDTO: + """Test DesignerTransfersWorkdayAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersWorkdayAuthParamsDTO( + api_key = '', + domain_name = '', + implementation_name = '', + integration_system_id = '', + o_auth = visier_api_data_in.models.designer/transfers/workday_o_auth_params_dto.designer.transfers.WorkdayOAuthParamsDTO( + api_client_id = '', + private_x509_key = '', + public_x509_cert = '', ), + password = '', + ref_token = visier_api_data_in.models.designer/transfers/workday_refresh_token_params_dto.designer.transfers.WorkdayRefreshTokenParamsDTO( + api_client_id = '', + client_secret = '', + refresh_token = '', ), + user_id = '' + ) + else: + return DesignerTransfersWorkdayAuthParamsDTO( + ) + + def testDesignerTransfersWorkdayAuthParamsDTO(self): + """Test DesignerTransfersWorkdayAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersWorkdayAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersWorkdayAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_workday_o_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_workday_o_auth_params_dto.py new file mode 100644 index 0000000000..2a5c5166da --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_workday_o_auth_params_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_workday_o_auth_params_dto import DesignerTransfersWorkdayOAuthParamsDTO + +class TestDesignerTransfersWorkdayOAuthParamsDTO(unittest.TestCase): + """DesignerTransfersWorkdayOAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersWorkdayOAuthParamsDTO: + """Test DesignerTransfersWorkdayOAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersWorkdayOAuthParamsDTO( + api_client_id = '', + private_x509_key = '', + public_x509_cert = '' + ) + else: + return DesignerTransfersWorkdayOAuthParamsDTO( + ) + + def testDesignerTransfersWorkdayOAuthParamsDTO(self): + """Test DesignerTransfersWorkdayOAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersWorkdayOAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersWorkdayOAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_workday_raas_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_workday_raas_auth_params_dto.py new file mode 100644 index 0000000000..b93e407e2b --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_workday_raas_auth_params_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_workday_raas_auth_params_dto import DesignerTransfersWorkdayRaasAuthParamsDTO + +class TestDesignerTransfersWorkdayRaasAuthParamsDTO(unittest.TestCase): + """DesignerTransfersWorkdayRaasAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersWorkdayRaasAuthParamsDTO: + """Test DesignerTransfersWorkdayRaasAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersWorkdayRaasAuthParamsDTO( + domain_name = '', + implementation_name = '', + password = '', + test_report_url = '', + user_id = '' + ) + else: + return DesignerTransfersWorkdayRaasAuthParamsDTO( + ) + + def testDesignerTransfersWorkdayRaasAuthParamsDTO(self): + """Test DesignerTransfersWorkdayRaasAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersWorkdayRaasAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersWorkdayRaasAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_workday_refresh_token_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_workday_refresh_token_params_dto.py new file mode 100644 index 0000000000..67afcb2b47 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_workday_refresh_token_params_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_workday_refresh_token_params_dto import DesignerTransfersWorkdayRefreshTokenParamsDTO + +class TestDesignerTransfersWorkdayRefreshTokenParamsDTO(unittest.TestCase): + """DesignerTransfersWorkdayRefreshTokenParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersWorkdayRefreshTokenParamsDTO: + """Test DesignerTransfersWorkdayRefreshTokenParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersWorkdayRefreshTokenParamsDTO( + api_client_id = '', + client_secret = '', + refresh_token = '' + ) + else: + return DesignerTransfersWorkdayRefreshTokenParamsDTO( + ) + + def testDesignerTransfersWorkdayRefreshTokenParamsDTO(self): + """Test DesignerTransfersWorkdayRefreshTokenParamsDTO""" + def validate_instance(instance): + DesignerTransfersWorkdayRefreshTokenParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersWorkdayRefreshTokenParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_designer_transfers_zoom_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_transfers_zoom_auth_params_dto.py new file mode 100644 index 0000000000..c46bf92ef8 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_transfers_zoom_auth_params_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.designer_transfers_zoom_auth_params_dto import DesignerTransfersZoomAuthParamsDTO + +class TestDesignerTransfersZoomAuthParamsDTO(unittest.TestCase): + """DesignerTransfersZoomAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersZoomAuthParamsDTO: + """Test DesignerTransfersZoomAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersZoomAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '' + ) + else: + return DesignerTransfersZoomAuthParamsDTO( + ) + + def testDesignerTransfersZoomAuthParamsDTO(self): + """Test DesignerTransfersZoomAuthParamsDTO""" + def validate_instance(instance): + DesignerTransfersZoomAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersZoomAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_dimensions_auth_params_dto.py b/src/visier_api_data_in/test/test_dimensions_auth_params_dto.py deleted file mode 100644 index e03d29155d..0000000000 --- a/src/visier_api_data_in/test/test_dimensions_auth_params_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.dimensions_auth_params_dto import DimensionsAuthParamsDTO - -class TestDimensionsAuthParamsDTO(unittest.TestCase): - """DimensionsAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DimensionsAuthParamsDTO: - """Test DimensionsAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DimensionsAuthParamsDTO( - app_key = '', - client_id = '', - client_secret = '', - password = '', - username = '', - vanity_url = '' - ) - else: - return DimensionsAuthParamsDTO( - ) - - def testDimensionsAuthParamsDTO(self): - """Test DimensionsAuthParamsDTO""" - def validate_instance(instance): - DimensionsAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = DimensionsAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_direct_data_intake_api.py b/src/visier_api_data_in/test/test_direct_data_intake_api.py index 33c783ebaa..177c3bcbb5 100644 --- a/src/visier_api_data_in/test/test_direct_data_intake_api.py +++ b/src/visier_api_data_in/test/test_direct_data_intake_api.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/test/test_direct_data_job_config_dto.py b/src/visier_api_data_in/test/test_direct_data_job_config_dto.py deleted file mode 100644 index abee3b3713..0000000000 --- a/src/visier_api_data_in/test/test_direct_data_job_config_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.direct_data_job_config_dto import DirectDataJobConfigDTO - -class TestDirectDataJobConfigDTO(unittest.TestCase): - """DirectDataJobConfigDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DirectDataJobConfigDTO: - """Test DirectDataJobConfigDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DirectDataJobConfigDTO( - extend_objects = [ - '' - ], - supplemental_mode = 'UNCHANGED' - ) - else: - return DirectDataJobConfigDTO( - ) - - def testDirectDataJobConfigDTO(self): - """Test DirectDataJobConfigDTO""" - def validate_instance(instance): - DirectDataJobConfigDTO.model_validate(inst_req_only) - instance_deserialized = DirectDataJobConfigDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_direct_data_job_status_response_dto.py b/src/visier_api_data_in/test/test_direct_data_job_status_response_dto.py deleted file mode 100644 index e57186d74d..0000000000 --- a/src/visier_api_data_in/test/test_direct_data_job_status_response_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.direct_data_job_status_response_dto import DirectDataJobStatusResponseDTO - -class TestDirectDataJobStatusResponseDTO(unittest.TestCase): - """DirectDataJobStatusResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DirectDataJobStatusResponseDTO: - """Test DirectDataJobStatusResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DirectDataJobStatusResponseDTO( - job_id = '', - message = '', - status = '', - tenant_code = '', - transaction_id = '' - ) - else: - return DirectDataJobStatusResponseDTO( - ) - - def testDirectDataJobStatusResponseDTO(self): - """Test DirectDataJobStatusResponseDTO""" - def validate_instance(instance): - DirectDataJobStatusResponseDTO.model_validate(inst_req_only) - instance_deserialized = DirectDataJobStatusResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_direct_data_load_config_dto.py b/src/visier_api_data_in/test/test_direct_data_load_config_dto.py deleted file mode 100644 index 200286ef15..0000000000 --- a/src/visier_api_data_in/test/test_direct_data_load_config_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.direct_data_load_config_dto import DirectDataLoadConfigDTO - -class TestDirectDataLoadConfigDTO(unittest.TestCase): - """DirectDataLoadConfigDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DirectDataLoadConfigDTO: - """Test DirectDataLoadConfigDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DirectDataLoadConfigDTO( - job = visier_api_data_in.models.direct_data_job_config_dto.DirectDataJobConfigDTO( - extend_objects = [ - '' - ], - supplemental_mode = 'UNCHANGED', ) - ) - else: - return DirectDataLoadConfigDTO( - ) - - def testDirectDataLoadConfigDTO(self): - """Test DirectDataLoadConfigDTO""" - def validate_instance(instance): - DirectDataLoadConfigDTO.model_validate(inst_req_only) - instance_deserialized = DirectDataLoadConfigDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_direct_data_schema_dto.py b/src/visier_api_data_in/test/test_direct_data_schema_dto.py deleted file mode 100644 index b0a2db19b6..0000000000 --- a/src/visier_api_data_in/test/test_direct_data_schema_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.direct_data_schema_dto import DirectDataSchemaDTO - -class TestDirectDataSchemaDTO(unittest.TestCase): - """DirectDataSchemaDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DirectDataSchemaDTO: - """Test DirectDataSchemaDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DirectDataSchemaDTO( - var_schema = [ - visier_api_data_in.models.direct_data_schema_field_dto.DirectDataSchemaFieldDTO( - data_type = '', - empty_values_allowed = True, - formats = [ - '' - ], - is_mandatory = True, - name = '', ) - ] - ) - else: - return DirectDataSchemaDTO( - ) - - def testDirectDataSchemaDTO(self): - """Test DirectDataSchemaDTO""" - def validate_instance(instance): - DirectDataSchemaDTO.model_validate(inst_req_only) - instance_deserialized = DirectDataSchemaDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_direct_data_schema_field_dto.py b/src/visier_api_data_in/test/test_direct_data_schema_field_dto.py deleted file mode 100644 index cab78b1153..0000000000 --- a/src/visier_api_data_in/test/test_direct_data_schema_field_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.direct_data_schema_field_dto import DirectDataSchemaFieldDTO - -class TestDirectDataSchemaFieldDTO(unittest.TestCase): - """DirectDataSchemaFieldDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DirectDataSchemaFieldDTO: - """Test DirectDataSchemaFieldDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DirectDataSchemaFieldDTO( - data_type = '', - empty_values_allowed = True, - formats = [ - '' - ], - is_mandatory = True, - name = '' - ) - else: - return DirectDataSchemaFieldDTO( - ) - - def testDirectDataSchemaFieldDTO(self): - """Test DirectDataSchemaFieldDTO""" - def validate_instance(instance): - DirectDataSchemaFieldDTO.model_validate(inst_req_only) - instance_deserialized = DirectDataSchemaFieldDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_direct_data_transaction_start_response_dto.py b/src/visier_api_data_in/test/test_direct_data_transaction_start_response_dto.py deleted file mode 100644 index f3eec66879..0000000000 --- a/src/visier_api_data_in/test/test_direct_data_transaction_start_response_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.direct_data_transaction_start_response_dto import DirectDataTransactionStartResponseDTO - -class TestDirectDataTransactionStartResponseDTO(unittest.TestCase): - """DirectDataTransactionStartResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DirectDataTransactionStartResponseDTO: - """Test DirectDataTransactionStartResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DirectDataTransactionStartResponseDTO( - transaction_id = '' - ) - else: - return DirectDataTransactionStartResponseDTO( - ) - - def testDirectDataTransactionStartResponseDTO(self): - """Test DirectDataTransactionStartResponseDTO""" - def validate_instance(instance): - DirectDataTransactionStartResponseDTO.model_validate(inst_req_only) - instance_deserialized = DirectDataTransactionStartResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_direct_data_upload_file_response_dto.py b/src/visier_api_data_in/test/test_direct_data_upload_file_response_dto.py index aaee6b068e..580c8cec32 100644 --- a/src/visier_api_data_in/test/test_direct_data_upload_file_response_dto.py +++ b/src/visier_api_data_in/test/test_direct_data_upload_file_response_dto.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/test/test_disable_dv_model.py b/src/visier_api_data_in/test/test_disable_dv_model.py deleted file mode 100644 index 51aad55140..0000000000 --- a/src/visier_api_data_in/test/test_disable_dv_model.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.disable_dv_model import DisableDVModel - -class TestDisableDVModel(unittest.TestCase): - """DisableDVModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DisableDVModel: - """Test DisableDVModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DisableDVModel( - data_version_objects = [ - visier_api_data_in.models.data_version_object.DataVersionObject( - data_versions = '', - tenant_code = '', ) - ] - ) - else: - return DisableDVModel( - ) - - def testDisableDVModel(self): - """Test DisableDVModel""" - def validate_instance(instance): - DisableDVModel.model_validate(inst_req_only) - instance_deserialized = DisableDVModel.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_disable_dv_request.py b/src/visier_api_data_in/test/test_disable_dv_request.py deleted file mode 100644 index 7a3c7c1529..0000000000 --- a/src/visier_api_data_in/test/test_disable_dv_request.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.disable_dv_request import DisableDVRequest - -class TestDisableDVRequest(unittest.TestCase): - """DisableDVRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DisableDVRequest: - """Test DisableDVRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DisableDVRequest( - model = visier_api_data_in.models.disable_dv_model.DisableDVModel( - data_version_objects = [ - visier_api_data_in.models.data_version_object.DataVersionObject( - data_versions = '', - tenant_code = '', ) - ], ) - ) - else: - return DisableDVRequest( - ) - - def testDisableDVRequest(self): - """Test DisableDVRequest""" - def validate_instance(instance): - DisableDVRequest.model_validate(inst_req_only) - instance_deserialized = DisableDVRequest.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_disable_dv_response.py b/src/visier_api_data_in/test/test_disable_dv_response.py deleted file mode 100644 index 18b9fb2b35..0000000000 --- a/src/visier_api_data_in/test/test_disable_dv_response.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.disable_dv_response import DisableDVResponse - -class TestDisableDVResponse(unittest.TestCase): - """DisableDVResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DisableDVResponse: - """Test DisableDVResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DisableDVResponse( - results = [ - visier_api_data_in.models.result.Result( - data_version = '', - job_id = '', - message = '', - status = '', - tenant_code = '', ) - ], - total_failures = 56, - total_success = 56 - ) - else: - return DisableDVResponse( - ) - - def testDisableDVResponse(self): - """Test DisableDVResponse""" - def validate_instance(instance): - DisableDVResponse.model_validate(inst_req_only) - instance_deserialized = DisableDVResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_dispatching_job_status_response.py b/src/visier_api_data_in/test/test_dispatching_job_status_response.py deleted file mode 100644 index 257b5bf924..0000000000 --- a/src/visier_api_data_in/test/test_dispatching_job_status_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.dispatching_job_status_response import DispatchingJobStatusResponse - -class TestDispatchingJobStatusResponse(unittest.TestCase): - """DispatchingJobStatusResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DispatchingJobStatusResponse: - """Test DispatchingJobStatusResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DispatchingJobStatusResponse( - job_id = '', - status = '', - tenant_code = '', - total_jobs_dispatched = 56 - ) - else: - return DispatchingJobStatusResponse( - ) - - def testDispatchingJobStatusResponse(self): - """Test DispatchingJobStatusResponse""" - def validate_instance(instance): - DispatchingJobStatusResponse.model_validate(inst_req_only) - instance_deserialized = DispatchingJobStatusResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_dp_transfers_cancel_job_batch_from_job_id_dto.py b/src/visier_api_data_in/test/test_dp_transfers_cancel_job_batch_from_job_id_dto.py new file mode 100644 index 0000000000..09e77404b5 --- /dev/null +++ b/src/visier_api_data_in/test/test_dp_transfers_cancel_job_batch_from_job_id_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.dp_transfers_cancel_job_batch_from_job_id_dto import DpTransfersCancelJobBatchFromJobIdDTO + +class TestDpTransfersCancelJobBatchFromJobIdDTO(unittest.TestCase): + """DpTransfersCancelJobBatchFromJobIdDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DpTransfersCancelJobBatchFromJobIdDTO: + """Test DpTransfersCancelJobBatchFromJobIdDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DpTransfersCancelJobBatchFromJobIdDTO( + job_ids = [ + '' + ] + ) + else: + return DpTransfersCancelJobBatchFromJobIdDTO( + ) + + def testDpTransfersCancelJobBatchFromJobIdDTO(self): + """Test DpTransfersCancelJobBatchFromJobIdDTO""" + def validate_instance(instance): + DpTransfersCancelJobBatchFromJobIdDTO.model_validate(inst_req_only) + instance_deserialized = DpTransfersCancelJobBatchFromJobIdDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_dp_transfers_job_cancellation_result_dto.py b/src/visier_api_data_in/test/test_dp_transfers_job_cancellation_result_dto.py new file mode 100644 index 0000000000..064b6117da --- /dev/null +++ b/src/visier_api_data_in/test/test_dp_transfers_job_cancellation_result_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.dp_transfers_job_cancellation_result_dto import DpTransfersJobCancellationResultDTO + +class TestDpTransfersJobCancellationResultDTO(unittest.TestCase): + """DpTransfersJobCancellationResultDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DpTransfersJobCancellationResultDTO: + """Test DpTransfersJobCancellationResultDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DpTransfersJobCancellationResultDTO( + cancel_status = 'CANCEL_FAILED', + job_id = '', + job_status = '', + job_type = '', + message = '', + parent_job_id = '', + tenant_code = '' + ) + else: + return DpTransfersJobCancellationResultDTO( + ) + + def testDpTransfersJobCancellationResultDTO(self): + """Test DpTransfersJobCancellationResultDTO""" + def validate_instance(instance): + DpTransfersJobCancellationResultDTO.model_validate(inst_req_only) + instance_deserialized = DpTransfersJobCancellationResultDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_dp_transfers_job_cancellation_results_dto.py b/src/visier_api_data_in/test/test_dp_transfers_job_cancellation_results_dto.py new file mode 100644 index 0000000000..53b126e4c7 --- /dev/null +++ b/src/visier_api_data_in/test/test_dp_transfers_job_cancellation_results_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.dp_transfers_job_cancellation_results_dto import DpTransfersJobCancellationResultsDTO + +class TestDpTransfersJobCancellationResultsDTO(unittest.TestCase): + """DpTransfersJobCancellationResultsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DpTransfersJobCancellationResultsDTO: + """Test DpTransfersJobCancellationResultsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DpTransfersJobCancellationResultsDTO( + job_cancellation_results = [ + visier_api_data_in.models.dp/transfers/job_cancellation_result_dto.dp.transfers.JobCancellationResultDTO( + cancel_status = 'CANCEL_FAILED', + job_id = '', + job_status = '', + job_type = '', + message = '', + parent_job_id = '', + tenant_code = '', ) + ] + ) + else: + return DpTransfersJobCancellationResultsDTO( + ) + + def testDpTransfersJobCancellationResultsDTO(self): + """Test DpTransfersJobCancellationResultsDTO""" + def validate_instance(instance): + DpTransfersJobCancellationResultsDTO.model_validate(inst_req_only) + instance_deserialized = DpTransfersJobCancellationResultsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_exclude_data_uploads_request.py b/src/visier_api_data_in/test/test_exclude_data_uploads_request.py deleted file mode 100644 index a40bdb7624..0000000000 --- a/src/visier_api_data_in/test/test_exclude_data_uploads_request.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.exclude_data_uploads_request import ExcludeDataUploadsRequest - -class TestExcludeDataUploadsRequest(unittest.TestCase): - """ExcludeDataUploadsRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExcludeDataUploadsRequest: - """Test ExcludeDataUploadsRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ExcludeDataUploadsRequest( - uploads = [ - visier_api_data_in.models.upload_to_exclude.UploadToExclude( - exclude_all = True, - max_upload_time = '', - min_upload_time = '', - sources = [ - '' - ], - tenant_code = '', - upload_times = [ - '' - ], ) - ] - ) - else: - return ExcludeDataUploadsRequest( - ) - - def testExcludeDataUploadsRequest(self): - """Test ExcludeDataUploadsRequest""" - def validate_instance(instance): - ExcludeDataUploadsRequest.model_validate(inst_req_only) - instance_deserialized = ExcludeDataUploadsRequest.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_extract_data_and_load_dto.py b/src/visier_api_data_in/test/test_extract_data_and_load_dto.py deleted file mode 100644 index 76b5cd56e4..0000000000 --- a/src/visier_api_data_in/test/test_extract_data_and_load_dto.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.extract_data_and_load_dto import ExtractDataAndLoadDTO - -class TestExtractDataAndLoadDTO(unittest.TestCase): - """ExtractDataAndLoadDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExtractDataAndLoadDTO: - """Test ExtractDataAndLoadDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ExtractDataAndLoadDTO( - all_tenants = True, - batch_size_override = 56, - connector_ids = [ - '' - ], - data_category_id = '', - disable_artifact_generation = True, - excluded_tenants = [ - '' - ], - extract_to_time_override = '', - force_update_existing_artifacts = True, - last_extraction_time_offset_mode = '', - last_extraction_time_offset_months = 56, - last_extraction_time_offset_weeks = 56, - months_to_extract = 56, - offset_month_option = '', - offset_week_option = '', - override_last_extraction_timestamp = '', - publish_data_load_artifacts = True, - run_processing_job = True, - spill_debug_info_detail_level_dto = 'fileAndLine', - spill_debug_info_partitions_dto = 'spillNone', - sql_batch_size = 56, - tenants = [ - '' - ] - ) - else: - return ExtractDataAndLoadDTO( - ) - - def testExtractDataAndLoadDTO(self): - """Test ExtractDataAndLoadDTO""" - def validate_instance(instance): - ExtractDataAndLoadDTO.model_validate(inst_req_only) - instance_deserialized = ExtractDataAndLoadDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_extraction_job.py b/src/visier_api_data_in/test/test_extraction_job.py deleted file mode 100644 index c2131c1df4..0000000000 --- a/src/visier_api_data_in/test/test_extraction_job.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.extraction_job import ExtractionJob - -class TestExtractionJob(unittest.TestCase): - """ExtractionJob unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExtractionJob: - """Test ExtractionJob - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ExtractionJob( - current_stage = '', - extraction_job_id = '', - status = '', - tenant_code = '' - ) - else: - return ExtractionJob( - ) - - def testExtractionJob(self): - """Test ExtractionJob""" - def validate_instance(instance): - ExtractionJob.model_validate(inst_req_only) - instance_deserialized = ExtractionJob.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_extraction_job_and_status_response.py b/src/visier_api_data_in/test/test_extraction_job_and_status_response.py deleted file mode 100644 index 4c351fc3ce..0000000000 --- a/src/visier_api_data_in/test/test_extraction_job_and_status_response.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.extraction_job_and_status_response import ExtractionJobAndStatusResponse - -class TestExtractionJobAndStatusResponse(unittest.TestCase): - """ExtractionJobAndStatusResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExtractionJobAndStatusResponse: - """Test ExtractionJobAndStatusResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ExtractionJobAndStatusResponse( - extraction_jobs = [ - visier_api_data_in.models.extraction_job.ExtractionJob( - current_stage = '', - extraction_job_id = '', - status = '', - tenant_code = '', ) - ], - limit = 56, - parent_job_id = '', - parent_tenant_code = '', - start = 56 - ) - else: - return ExtractionJobAndStatusResponse( - ) - - def testExtractionJobAndStatusResponse(self): - """Test ExtractionJobAndStatusResponse""" - def validate_instance(instance): - ExtractionJobAndStatusResponse.model_validate(inst_req_only) - instance_deserialized = ExtractionJobAndStatusResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_extractor_credential_apidto.py b/src/visier_api_data_in/test/test_extractor_credential_apidto.py deleted file mode 100644 index e6dc3b3b68..0000000000 --- a/src/visier_api_data_in/test/test_extractor_credential_apidto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.extractor_credential_apidto import ExtractorCredentialAPIDTO - -class TestExtractorCredentialAPIDTO(unittest.TestCase): - """ExtractorCredentialAPIDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExtractorCredentialAPIDTO: - """Test ExtractorCredentialAPIDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ExtractorCredentialAPIDTO( - auth_context = '', - credential_id = '', - data_provider = '', - display_name = '', - is_inherited = True - ) - else: - return ExtractorCredentialAPIDTO( - ) - - def testExtractorCredentialAPIDTO(self): - """Test ExtractorCredentialAPIDTO""" - def validate_instance(instance): - ExtractorCredentialAPIDTO.model_validate(inst_req_only) - instance_deserialized = ExtractorCredentialAPIDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_extractor_credentials_apidto.py b/src/visier_api_data_in/test/test_extractor_credentials_apidto.py deleted file mode 100644 index 0346107dec..0000000000 --- a/src/visier_api_data_in/test/test_extractor_credentials_apidto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.extractor_credentials_apidto import ExtractorCredentialsAPIDTO - -class TestExtractorCredentialsAPIDTO(unittest.TestCase): - """ExtractorCredentialsAPIDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExtractorCredentialsAPIDTO: - """Test ExtractorCredentialsAPIDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ExtractorCredentialsAPIDTO( - connector_credentials = [ - visier_api_data_in.models.extractor_credential_apidto.ExtractorCredentialAPIDTO( - auth_context = '', - credential_id = '', - data_provider = '', - display_name = '', - is_inherited = True, ) - ], - limit = 56, - start = 56 - ) - else: - return ExtractorCredentialsAPIDTO( - ) - - def testExtractorCredentialsAPIDTO(self): - """Test ExtractorCredentialsAPIDTO""" - def validate_instance(instance): - ExtractorCredentialsAPIDTO.model_validate(inst_req_only) - instance_deserialized = ExtractorCredentialsAPIDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_extractor_setting_apidto.py b/src/visier_api_data_in/test/test_extractor_setting_apidto.py deleted file mode 100644 index a9d3a9aec9..0000000000 --- a/src/visier_api_data_in/test/test_extractor_setting_apidto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.extractor_setting_apidto import ExtractorSettingAPIDTO - -class TestExtractorSettingAPIDTO(unittest.TestCase): - """ExtractorSettingAPIDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExtractorSettingAPIDTO: - """Test ExtractorSettingAPIDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ExtractorSettingAPIDTO( - connector_id = '', - connector_settings = [ - visier_api_data_in.models.extractor_setting_key_value_apidto.ExtractorSettingKeyValueAPIDTO( - setting_key = '', - value = '', ) - ], - display_name = '' - ) - else: - return ExtractorSettingAPIDTO( - ) - - def testExtractorSettingAPIDTO(self): - """Test ExtractorSettingAPIDTO""" - def validate_instance(instance): - ExtractorSettingAPIDTO.model_validate(inst_req_only) - instance_deserialized = ExtractorSettingAPIDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_extractor_setting_key_value_apidto.py b/src/visier_api_data_in/test/test_extractor_setting_key_value_apidto.py deleted file mode 100644 index 9da39db1ae..0000000000 --- a/src/visier_api_data_in/test/test_extractor_setting_key_value_apidto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.extractor_setting_key_value_apidto import ExtractorSettingKeyValueAPIDTO - -class TestExtractorSettingKeyValueAPIDTO(unittest.TestCase): - """ExtractorSettingKeyValueAPIDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExtractorSettingKeyValueAPIDTO: - """Test ExtractorSettingKeyValueAPIDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ExtractorSettingKeyValueAPIDTO( - setting_key = '', - value = '' - ) - else: - return ExtractorSettingKeyValueAPIDTO( - ) - - def testExtractorSettingKeyValueAPIDTO(self): - """Test ExtractorSettingKeyValueAPIDTO""" - def validate_instance(instance): - ExtractorSettingKeyValueAPIDTO.model_validate(inst_req_only) - instance_deserialized = ExtractorSettingKeyValueAPIDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_extractor_settings_apidto.py b/src/visier_api_data_in/test/test_extractor_settings_apidto.py deleted file mode 100644 index a018978df6..0000000000 --- a/src/visier_api_data_in/test/test_extractor_settings_apidto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.extractor_settings_apidto import ExtractorSettingsAPIDTO - -class TestExtractorSettingsAPIDTO(unittest.TestCase): - """ExtractorSettingsAPIDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExtractorSettingsAPIDTO: - """Test ExtractorSettingsAPIDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ExtractorSettingsAPIDTO( - connectors = [ - visier_api_data_in.models.extractor_setting_apidto.ExtractorSettingAPIDTO( - connector_id = '', - connector_settings = [ - visier_api_data_in.models.extractor_setting_key_value_apidto.ExtractorSettingKeyValueAPIDTO( - setting_key = '', - value = '', ) - ], - display_name = '', ) - ] - ) - else: - return ExtractorSettingsAPIDTO( - ) - - def testExtractorSettingsAPIDTO(self): - """Test ExtractorSettingsAPIDTO""" - def validate_instance(instance): - ExtractorSettingsAPIDTO.model_validate(inst_req_only) - instance_deserialized = ExtractorSettingsAPIDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_fusion_auth_params_dto.py b/src/visier_api_data_in/test/test_fusion_auth_params_dto.py deleted file mode 100644 index 441e620fbc..0000000000 --- a/src/visier_api_data_in/test/test_fusion_auth_params_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.fusion_auth_params_dto import FusionAuthParamsDTO - -class TestFusionAuthParamsDTO(unittest.TestCase): - """FusionAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FusionAuthParamsDTO: - """Test FusionAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return FusionAuthParamsDTO( - host_domain_name = '', - password = '', - username = '' - ) - else: - return FusionAuthParamsDTO( - ) - - def testFusionAuthParamsDTO(self): - """Test FusionAuthParamsDTO""" - def validate_instance(instance): - FusionAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = FusionAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_gong_auth_params_dto.py b/src/visier_api_data_in/test/test_gong_auth_params_dto.py deleted file mode 100644 index a76566e47a..0000000000 --- a/src/visier_api_data_in/test/test_gong_auth_params_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.gong_auth_params_dto import GongAuthParamsDTO - -class TestGongAuthParamsDTO(unittest.TestCase): - """GongAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GongAuthParamsDTO: - """Test GongAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GongAuthParamsDTO( - client_id = '', - client_secret = '' - ) - else: - return GongAuthParamsDTO( - ) - - def testGongAuthParamsDTO(self): - """Test GongAuthParamsDTO""" - def validate_instance(instance): - GongAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = GongAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_google_protobuf_any.py b/src/visier_api_data_in/test/test_google_protobuf_any.py deleted file mode 100644 index e0442fe874..0000000000 --- a/src/visier_api_data_in/test/test_google_protobuf_any.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.google_protobuf_any import GoogleProtobufAny - -class TestGoogleProtobufAny(unittest.TestCase): - """GoogleProtobufAny unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GoogleProtobufAny: - """Test GoogleProtobufAny - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GoogleProtobufAny( - type = '' - ) - else: - return GoogleProtobufAny( - ) - - def testGoogleProtobufAny(self): - """Test GoogleProtobufAny""" - def validate_instance(instance): - GoogleProtobufAny.model_validate(inst_req_only) - instance_deserialized = GoogleProtobufAny.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_google_sheets_auth_params_dto.py b/src/visier_api_data_in/test/test_google_sheets_auth_params_dto.py deleted file mode 100644 index 1da5094daf..0000000000 --- a/src/visier_api_data_in/test/test_google_sheets_auth_params_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.google_sheets_auth_params_dto import GoogleSheetsAuthParamsDTO - -class TestGoogleSheetsAuthParamsDTO(unittest.TestCase): - """GoogleSheetsAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GoogleSheetsAuthParamsDTO: - """Test GoogleSheetsAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GoogleSheetsAuthParamsDTO( - auth_code = '', - client_id = '', - client_secret = '', - configuration = '' - ) - else: - return GoogleSheetsAuthParamsDTO( - ) - - def testGoogleSheetsAuthParamsDTO(self): - """Test GoogleSheetsAuthParamsDTO""" - def validate_instance(instance): - GoogleSheetsAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = GoogleSheetsAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_google_workspace_auth_params_dto.py b/src/visier_api_data_in/test/test_google_workspace_auth_params_dto.py deleted file mode 100644 index 46e9d17500..0000000000 --- a/src/visier_api_data_in/test/test_google_workspace_auth_params_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.google_workspace_auth_params_dto import GoogleWorkspaceAuthParamsDTO - -class TestGoogleWorkspaceAuthParamsDTO(unittest.TestCase): - """GoogleWorkspaceAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GoogleWorkspaceAuthParamsDTO: - """Test GoogleWorkspaceAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GoogleWorkspaceAuthParamsDTO( - auth_code = '', - client_id = '', - client_secret = '', - privacy_mode = '', - service_account = '' - ) - else: - return GoogleWorkspaceAuthParamsDTO( - ) - - def testGoogleWorkspaceAuthParamsDTO(self): - """Test GoogleWorkspaceAuthParamsDTO""" - def validate_instance(instance): - GoogleWorkspaceAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = GoogleWorkspaceAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_greenhouse_auth_params_dto.py b/src/visier_api_data_in/test/test_greenhouse_auth_params_dto.py deleted file mode 100644 index 84fbde1700..0000000000 --- a/src/visier_api_data_in/test/test_greenhouse_auth_params_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.greenhouse_auth_params_dto import GreenhouseAuthParamsDTO - -class TestGreenhouseAuthParamsDTO(unittest.TestCase): - """GreenhouseAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GreenhouseAuthParamsDTO: - """Test GreenhouseAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return GreenhouseAuthParamsDTO( - api_key = '' - ) - else: - return GreenhouseAuthParamsDTO( - ) - - def testGreenhouseAuthParamsDTO(self): - """Test GreenhouseAuthParamsDTO""" - def validate_instance(instance): - GreenhouseAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = GreenhouseAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_icims_auth_params_dto.py b/src/visier_api_data_in/test/test_icims_auth_params_dto.py deleted file mode 100644 index afd4b6dfc9..0000000000 --- a/src/visier_api_data_in/test/test_icims_auth_params_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.icims_auth_params_dto import IcimsAuthParamsDTO - -class TestIcimsAuthParamsDTO(unittest.TestCase): - """IcimsAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IcimsAuthParamsDTO: - """Test IcimsAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return IcimsAuthParamsDTO( - client_id = '', - client_secret = '', - customer_id = '', - password = '', - region = 'US', - username = '' - ) - else: - return IcimsAuthParamsDTO( - ) - - def testIcimsAuthParamsDTO(self): - """Test IcimsAuthParamsDTO""" - def validate_instance(instance): - IcimsAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = IcimsAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_import_definition_apidto.py b/src/visier_api_data_in/test/test_import_definition_apidto.py deleted file mode 100644 index e91de00874..0000000000 --- a/src/visier_api_data_in/test/test_import_definition_apidto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.import_definition_apidto import ImportDefinitionAPIDTO - -class TestImportDefinitionAPIDTO(unittest.TestCase): - """ImportDefinitionAPIDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ImportDefinitionAPIDTO: - """Test ImportDefinitionAPIDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ImportDefinitionAPIDTO( - connector_id = '', - credential_id = '', - display_name = '' - ) - else: - return ImportDefinitionAPIDTO( - ) - - def testImportDefinitionAPIDTO(self): - """Test ImportDefinitionAPIDTO""" - def validate_instance(instance): - ImportDefinitionAPIDTO.model_validate(inst_req_only) - instance_deserialized = ImportDefinitionAPIDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_import_definitions_apidto.py b/src/visier_api_data_in/test/test_import_definitions_apidto.py deleted file mode 100644 index 0f10ddee1f..0000000000 --- a/src/visier_api_data_in/test/test_import_definitions_apidto.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.import_definitions_apidto import ImportDefinitionsAPIDTO - -class TestImportDefinitionsAPIDTO(unittest.TestCase): - """ImportDefinitionsAPIDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ImportDefinitionsAPIDTO: - """Test ImportDefinitionsAPIDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ImportDefinitionsAPIDTO( - data_connectors = [ - visier_api_data_in.models.import_definition_apidto.ImportDefinitionAPIDTO( - connector_id = '', - credential_id = '', - display_name = '', ) - ], - limit = 56, - start = 56 - ) - else: - return ImportDefinitionsAPIDTO( - ) - - def testImportDefinitionsAPIDTO(self): - """Test ImportDefinitionsAPIDTO""" - def validate_instance(instance): - ImportDefinitionsAPIDTO.model_validate(inst_req_only) - instance_deserialized = ImportDefinitionsAPIDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_include_data_uploads_request.py b/src/visier_api_data_in/test/test_include_data_uploads_request.py deleted file mode 100644 index 97fdc91953..0000000000 --- a/src/visier_api_data_in/test/test_include_data_uploads_request.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.include_data_uploads_request import IncludeDataUploadsRequest - -class TestIncludeDataUploadsRequest(unittest.TestCase): - """IncludeDataUploadsRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IncludeDataUploadsRequest: - """Test IncludeDataUploadsRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return IncludeDataUploadsRequest( - uploads = [ - visier_api_data_in.models.upload_to_include.UploadToInclude( - include_all = True, - max_upload_time = '', - min_upload_time = '', - sources = [ - '' - ], - tenant_code = '', - upload_times = [ - '' - ], ) - ] - ) - else: - return IncludeDataUploadsRequest( - ) - - def testIncludeDataUploadsRequest(self): - """Test IncludeDataUploadsRequest""" - def validate_instance(instance): - IncludeDataUploadsRequest.model_validate(inst_req_only) - instance_deserialized = IncludeDataUploadsRequest.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_internal_s3_auth_params_dto.py b/src/visier_api_data_in/test/test_internal_s3_auth_params_dto.py deleted file mode 100644 index fd29373bde..0000000000 --- a/src/visier_api_data_in/test/test_internal_s3_auth_params_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.internal_s3_auth_params_dto import InternalS3AuthParamsDTO - -class TestInternalS3AuthParamsDTO(unittest.TestCase): - """InternalS3AuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> InternalS3AuthParamsDTO: - """Test InternalS3AuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return InternalS3AuthParamsDTO( - bucket_name = '', - path = '' - ) - else: - return InternalS3AuthParamsDTO( - ) - - def testInternalS3AuthParamsDTO(self): - """Test InternalS3AuthParamsDTO""" - def validate_instance(instance): - InternalS3AuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = InternalS3AuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_jdbc_auth_params_dto.py b/src/visier_api_data_in/test/test_jdbc_auth_params_dto.py deleted file mode 100644 index caccd25281..0000000000 --- a/src/visier_api_data_in/test/test_jdbc_auth_params_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.jdbc_auth_params_dto import JdbcAuthParamsDTO - -class TestJdbcAuthParamsDTO(unittest.TestCase): - """JdbcAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> JdbcAuthParamsDTO: - """Test JdbcAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return JdbcAuthParamsDTO( - jdbc_connect_string = '', - password = '', - username = '' - ) - else: - return JdbcAuthParamsDTO( - ) - - def testJdbcAuthParamsDTO(self): - """Test JdbcAuthParamsDTO""" - def validate_instance(instance): - JdbcAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = JdbcAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_jira_auth_params_dto.py b/src/visier_api_data_in/test/test_jira_auth_params_dto.py deleted file mode 100644 index 6f5a6bc163..0000000000 --- a/src/visier_api_data_in/test/test_jira_auth_params_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.jira_auth_params_dto import JiraAuthParamsDTO - -class TestJiraAuthParamsDTO(unittest.TestCase): - """JiraAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> JiraAuthParamsDTO: - """Test JiraAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return JiraAuthParamsDTO( - api_token = '', - connect_params = visier_api_data_in.models.jira_connect_params_dto.JiraConnectParamsDTO( - app_key = '', - client_key = '', - shared_secret = '', ), - host_name = '' - ) - else: - return JiraAuthParamsDTO( - ) - - def testJiraAuthParamsDTO(self): - """Test JiraAuthParamsDTO""" - def validate_instance(instance): - JiraAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = JiraAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_jira_connect_params_dto.py b/src/visier_api_data_in/test/test_jira_connect_params_dto.py deleted file mode 100644 index 45cbecfb6d..0000000000 --- a/src/visier_api_data_in/test/test_jira_connect_params_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.jira_connect_params_dto import JiraConnectParamsDTO - -class TestJiraConnectParamsDTO(unittest.TestCase): - """JiraConnectParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> JiraConnectParamsDTO: - """Test JiraConnectParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return JiraConnectParamsDTO( - app_key = '', - client_key = '', - shared_secret = '' - ) - else: - return JiraConnectParamsDTO( - ) - - def testJiraConnectParamsDTO(self): - """Test JiraConnectParamsDTO""" - def validate_instance(instance): - JiraConnectParamsDTO.model_validate(inst_req_only) - instance_deserialized = JiraConnectParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_job_cancellation_result_dto.py b/src/visier_api_data_in/test/test_job_cancellation_result_dto.py deleted file mode 100644 index a217e03baf..0000000000 --- a/src/visier_api_data_in/test/test_job_cancellation_result_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.job_cancellation_result_dto import JobCancellationResultDTO - -class TestJobCancellationResultDTO(unittest.TestCase): - """JobCancellationResultDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> JobCancellationResultDTO: - """Test JobCancellationResultDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return JobCancellationResultDTO( - cancel_status = 'CANCEL_FAILED', - job_id = '', - job_status = '', - job_type = '', - message = '', - parent_job_id = '', - tenant_code = '' - ) - else: - return JobCancellationResultDTO( - ) - - def testJobCancellationResultDTO(self): - """Test JobCancellationResultDTO""" - def validate_instance(instance): - JobCancellationResultDTO.model_validate(inst_req_only) - instance_deserialized = JobCancellationResultDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_job_cancellation_results_dto.py b/src/visier_api_data_in/test/test_job_cancellation_results_dto.py deleted file mode 100644 index 2829fd64a6..0000000000 --- a/src/visier_api_data_in/test/test_job_cancellation_results_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.job_cancellation_results_dto import JobCancellationResultsDTO - -class TestJobCancellationResultsDTO(unittest.TestCase): - """JobCancellationResultsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> JobCancellationResultsDTO: - """Test JobCancellationResultsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return JobCancellationResultsDTO( - job_cancellation_results = [ - visier_api_data_in.models.job_cancellation_result_dto.JobCancellationResultDTO( - cancel_status = 'CANCEL_FAILED', - job_id = '', - job_status = '', - job_type = '', - message = '', - parent_job_id = '', - tenant_code = '', ) - ] - ) - else: - return JobCancellationResultsDTO( - ) - - def testJobCancellationResultsDTO(self): - """Test JobCancellationResultsDTO""" - def validate_instance(instance): - JobCancellationResultsDTO.model_validate(inst_req_only) - instance_deserialized = JobCancellationResultsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_job_id_response.py b/src/visier_api_data_in/test/test_job_id_response.py deleted file mode 100644 index 722f932ceb..0000000000 --- a/src/visier_api_data_in/test/test_job_id_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.job_id_response import JobIdResponse - -class TestJobIdResponse(unittest.TestCase): - """JobIdResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> JobIdResponse: - """Test JobIdResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return JobIdResponse( - job_id = '' - ) - else: - return JobIdResponse( - ) - - def testJobIdResponse(self): - """Test JobIdResponse""" - def validate_instance(instance): - JobIdResponse.model_validate(inst_req_only) - instance_deserialized = JobIdResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_job_status_list_response.py b/src/visier_api_data_in/test/test_job_status_list_response.py deleted file mode 100644 index 2a8de2a77e..0000000000 --- a/src/visier_api_data_in/test/test_job_status_list_response.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.job_status_list_response import JobStatusListResponse - -class TestJobStatusListResponse(unittest.TestCase): - """JobStatusListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> JobStatusListResponse: - """Test JobStatusListResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return JobStatusListResponse( - job_status = [ - visier_api_data_in.models.job_status_with_start_time.JobStatusWithStartTime( - job_id = '', - job_type = '', - start_time = '', - status = '', - tenant = '', ) - ], - query_end_time = '', - query_start_time = '' - ) - else: - return JobStatusListResponse( - ) - - def testJobStatusListResponse(self): - """Test JobStatusListResponse""" - def validate_instance(instance): - JobStatusListResponse.model_validate(inst_req_only) - instance_deserialized = JobStatusListResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_job_status_with_start_time.py b/src/visier_api_data_in/test/test_job_status_with_start_time.py deleted file mode 100644 index 650aca9e40..0000000000 --- a/src/visier_api_data_in/test/test_job_status_with_start_time.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.job_status_with_start_time import JobStatusWithStartTime - -class TestJobStatusWithStartTime(unittest.TestCase): - """JobStatusWithStartTime unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> JobStatusWithStartTime: - """Test JobStatusWithStartTime - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return JobStatusWithStartTime( - job_id = '', - job_type = '', - start_time = '', - status = '', - tenant = '' - ) - else: - return JobStatusWithStartTime( - ) - - def testJobStatusWithStartTime(self): - """Test JobStatusWithStartTime""" - def validate_instance(instance): - JobStatusWithStartTime.model_validate(inst_req_only) - instance_deserialized = JobStatusWithStartTime.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_key_pair_delete_response_dto.py b/src/visier_api_data_in/test/test_key_pair_delete_response_dto.py deleted file mode 100644 index 35c7d58437..0000000000 --- a/src/visier_api_data_in/test/test_key_pair_delete_response_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.key_pair_delete_response_dto import KeyPairDeleteResponseDTO - -class TestKeyPairDeleteResponseDTO(unittest.TestCase): - """KeyPairDeleteResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> KeyPairDeleteResponseDTO: - """Test KeyPairDeleteResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return KeyPairDeleteResponseDTO( - key_id = '' - ) - else: - return KeyPairDeleteResponseDTO( - ) - - def testKeyPairDeleteResponseDTO(self): - """Test KeyPairDeleteResponseDTO""" - def validate_instance(instance): - KeyPairDeleteResponseDTO.model_validate(inst_req_only) - instance_deserialized = KeyPairDeleteResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_key_pair_generate_request_dto.py b/src/visier_api_data_in/test/test_key_pair_generate_request_dto.py deleted file mode 100644 index 1cc8c4014e..0000000000 --- a/src/visier_api_data_in/test/test_key_pair_generate_request_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.key_pair_generate_request_dto import KeyPairGenerateRequestDTO - -class TestKeyPairGenerateRequestDTO(unittest.TestCase): - """KeyPairGenerateRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> KeyPairGenerateRequestDTO: - """Test KeyPairGenerateRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return KeyPairGenerateRequestDTO( - expiration_date = '' - ) - else: - return KeyPairGenerateRequestDTO( - ) - - def testKeyPairGenerateRequestDTO(self): - """Test KeyPairGenerateRequestDTO""" - def validate_instance(instance): - KeyPairGenerateRequestDTO.model_validate(inst_req_only) - instance_deserialized = KeyPairGenerateRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_lever_auth_params_dto.py b/src/visier_api_data_in/test/test_lever_auth_params_dto.py deleted file mode 100644 index 654377d8f0..0000000000 --- a/src/visier_api_data_in/test/test_lever_auth_params_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.lever_auth_params_dto import LeverAuthParamsDTO - -class TestLeverAuthParamsDTO(unittest.TestCase): - """LeverAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LeverAuthParamsDTO: - """Test LeverAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return LeverAuthParamsDTO( - api_key = '' - ) - else: - return LeverAuthParamsDTO( - ) - - def testLeverAuthParamsDTO(self): - """Test LeverAuthParamsDTO""" - def validate_instance(instance): - LeverAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = LeverAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_medallia_auth_params_dto.py b/src/visier_api_data_in/test/test_medallia_auth_params_dto.py deleted file mode 100644 index 56b0452413..0000000000 --- a/src/visier_api_data_in/test/test_medallia_auth_params_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.medallia_auth_params_dto import MedalliaAuthParamsDTO - -class TestMedalliaAuthParamsDTO(unittest.TestCase): - """MedalliaAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MedalliaAuthParamsDTO: - """Test MedalliaAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MedalliaAuthParamsDTO( - client_id = '', - client_secret = '', - instance_url = '', - tenant_domain_name = '' - ) - else: - return MedalliaAuthParamsDTO( - ) - - def testMedalliaAuthParamsDTO(self): - """Test MedalliaAuthParamsDTO""" - def validate_instance(instance): - MedalliaAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = MedalliaAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_microsoft365_auth_params_dto.py b/src/visier_api_data_in/test/test_microsoft365_auth_params_dto.py deleted file mode 100644 index 04abae7dfb..0000000000 --- a/src/visier_api_data_in/test/test_microsoft365_auth_params_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.microsoft365_auth_params_dto import Microsoft365AuthParamsDTO - -class TestMicrosoft365AuthParamsDTO(unittest.TestCase): - """Microsoft365AuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Microsoft365AuthParamsDTO: - """Test Microsoft365AuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return Microsoft365AuthParamsDTO( - client_id = '', - client_secret = '', - o_auth_tenant_id = '', - privacy_mode = '' - ) - else: - return Microsoft365AuthParamsDTO( - ) - - def testMicrosoft365AuthParamsDTO(self): - """Test Microsoft365AuthParamsDTO""" - def validate_instance(instance): - Microsoft365AuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = Microsoft365AuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_multiple_tenant_data_versions_details_dto.py b/src/visier_api_data_in/test/test_multiple_tenant_data_versions_details_dto.py deleted file mode 100644 index af378f6abc..0000000000 --- a/src/visier_api_data_in/test/test_multiple_tenant_data_versions_details_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.multiple_tenant_data_versions_details_dto import MultipleTenantDataVersionsDetailsDTO - -class TestMultipleTenantDataVersionsDetailsDTO(unittest.TestCase): - """MultipleTenantDataVersionsDetailsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MultipleTenantDataVersionsDetailsDTO: - """Test MultipleTenantDataVersionsDetailsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MultipleTenantDataVersionsDetailsDTO( - data_versions = [ - visier_api_data_in.models.data_version_and_date_dto.DataVersionAndDateDTO( - data_version = '', - data_version_date = '', ) - ], - tenant_code = '' - ) - else: - return MultipleTenantDataVersionsDetailsDTO( - ) - - def testMultipleTenantDataVersionsDetailsDTO(self): - """Test MultipleTenantDataVersionsDetailsDTO""" - def validate_instance(instance): - MultipleTenantDataVersionsDetailsDTO.model_validate(inst_req_only) - instance_deserialized = MultipleTenantDataVersionsDetailsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_multiple_tenant_data_versions_list_dto.py b/src/visier_api_data_in/test/test_multiple_tenant_data_versions_list_dto.py deleted file mode 100644 index 707235f3a7..0000000000 --- a/src/visier_api_data_in/test/test_multiple_tenant_data_versions_list_dto.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.multiple_tenant_data_versions_list_dto import MultipleTenantDataVersionsListDTO - -class TestMultipleTenantDataVersionsListDTO(unittest.TestCase): - """MultipleTenantDataVersionsListDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MultipleTenantDataVersionsListDTO: - """Test MultipleTenantDataVersionsListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MultipleTenantDataVersionsListDTO( - limit = 56, - start = 56, - tenants = [ - visier_api_data_in.models.multiple_tenant_data_versions_details_dto.MultipleTenantDataVersionsDetailsDTO( - data_versions = [ - visier_api_data_in.models.data_version_and_date_dto.DataVersionAndDateDTO( - data_version = '', - data_version_date = '', ) - ], - tenant_code = '', ) - ] - ) - else: - return MultipleTenantDataVersionsListDTO( - ) - - def testMultipleTenantDataVersionsListDTO(self): - """Test MultipleTenantDataVersionsListDTO""" - def validate_instance(instance): - MultipleTenantDataVersionsListDTO.model_validate(inst_req_only) - instance_deserialized = MultipleTenantDataVersionsListDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_my_sql_auth_params_dto.py b/src/visier_api_data_in/test/test_my_sql_auth_params_dto.py deleted file mode 100644 index 5721e1fcab..0000000000 --- a/src/visier_api_data_in/test/test_my_sql_auth_params_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.my_sql_auth_params_dto import MySqlAuthParamsDTO - -class TestMySqlAuthParamsDTO(unittest.TestCase): - """MySqlAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MySqlAuthParamsDTO: - """Test MySqlAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MySqlAuthParamsDTO( - database = '', - host = '', - password = '', - port = '', - ssl_mode = '', - username = '' - ) - else: - return MySqlAuthParamsDTO( - ) - - def testMySqlAuthParamsDTO(self): - """Test MySqlAuthParamsDTO""" - def validate_instance(instance): - MySqlAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = MySqlAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_namely_auth_params_dto.py b/src/visier_api_data_in/test/test_namely_auth_params_dto.py deleted file mode 100644 index c3daa50dc8..0000000000 --- a/src/visier_api_data_in/test/test_namely_auth_params_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.namely_auth_params_dto import NamelyAuthParamsDTO - -class TestNamelyAuthParamsDTO(unittest.TestCase): - """NamelyAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NamelyAuthParamsDTO: - """Test NamelyAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return NamelyAuthParamsDTO( - auth_code = '' - ) - else: - return NamelyAuthParamsDTO( - ) - - def testNamelyAuthParamsDTO(self): - """Test NamelyAuthParamsDTO""" - def validate_instance(instance): - NamelyAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = NamelyAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_oracle_db_auth_params_dto.py b/src/visier_api_data_in/test/test_oracle_db_auth_params_dto.py deleted file mode 100644 index 8088243803..0000000000 --- a/src/visier_api_data_in/test/test_oracle_db_auth_params_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.oracle_db_auth_params_dto import OracleDbAuthParamsDTO - -class TestOracleDbAuthParamsDTO(unittest.TestCase): - """OracleDbAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> OracleDbAuthParamsDTO: - """Test OracleDbAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return OracleDbAuthParamsDTO( - host = '', - password = '', - port = '', - service_name = '', - username = '' - ) - else: - return OracleDbAuthParamsDTO( - ) - - def testOracleDbAuthParamsDTO(self): - """Test OracleDbAuthParamsDTO""" - def validate_instance(instance): - OracleDbAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = OracleDbAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_pgp_key_api.py b/src/visier_api_data_in/test/test_pgp_key_api.py index f18af45a1b..6fcc69544d 100644 --- a/src/visier_api_data_in/test/test_pgp_key_api.py +++ b/src/visier_api_data_in/test/test_pgp_key_api.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/test/test_plan_data_load_change_dto.py b/src/visier_api_data_in/test/test_plan_data_load_change_dto.py index 65ff3989d4..e99b4f6cf7 100644 --- a/src/visier_api_data_in/test/test_plan_data_load_change_dto.py +++ b/src/visier_api_data_in/test/test_plan_data_load_change_dto.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/test/test_plan_data_load_change_list_dto.py b/src/visier_api_data_in/test/test_plan_data_load_change_list_dto.py index 346e6affc0..0e65a11dc7 100644 --- a/src/visier_api_data_in/test/test_plan_data_load_change_list_dto.py +++ b/src/visier_api_data_in/test/test_plan_data_load_change_list_dto.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/test/test_plan_data_load_error_dto.py b/src/visier_api_data_in/test/test_plan_data_load_error_dto.py deleted file mode 100644 index 1ac78299a9..0000000000 --- a/src/visier_api_data_in/test/test_plan_data_load_error_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.plan_data_load_error_dto import PlanDataLoadErrorDTO - -class TestPlanDataLoadErrorDTO(unittest.TestCase): - """PlanDataLoadErrorDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanDataLoadErrorDTO: - """Test PlanDataLoadErrorDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanDataLoadErrorDTO( - error_message = '', - rci = '', - row = 56 - ) - else: - return PlanDataLoadErrorDTO( - ) - - def testPlanDataLoadErrorDTO(self): - """Test PlanDataLoadErrorDTO""" - def validate_instance(instance): - PlanDataLoadErrorDTO.model_validate(inst_req_only) - instance_deserialized = PlanDataLoadErrorDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_plan_data_upload_response_dto.py b/src/visier_api_data_in/test/test_plan_data_upload_response_dto.py index 0767961d05..3b555939e3 100644 --- a/src/visier_api_data_in/test/test_plan_data_upload_response_dto.py +++ b/src/visier_api_data_in/test/test_plan_data_upload_response_dto.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -50,10 +50,7 @@ def make_instance(self, include_optional) -> PlanDataUploadResponseDTO: plan_item = '', ) ], errors = [ - visier_api_data_in.models.plan_data_load_error_dto.PlanDataLoadErrorDTO( - error_message = '', - rci = '', - row = 56, ) + None ], potential_updated_cells_count = 56, updated_cells_count = 56 diff --git a/src/visier_api_data_in/test/test_plan_row_data_load_response_dto.py b/src/visier_api_data_in/test/test_plan_row_data_load_response_dto.py index f60245961a..d7e2986a9d 100644 --- a/src/visier_api_data_in/test/test_plan_row_data_load_response_dto.py +++ b/src/visier_api_data_in/test/test_plan_row_data_load_response_dto.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -38,17 +38,10 @@ def make_instance(self, include_optional) -> PlanRowDataLoadResponseDTO: return PlanRowDataLoadResponseDTO( added_rows_count = 56, custom_members = [ - visier_api_data_in.models.plan_segment_level_member_dto.PlanSegmentLevelMemberDTO( - display_name = '', - id = '', - is_custom = True, - parent_id = '', ) + None ], errors = [ - visier_api_data_in.models.plan_data_load_error_dto.PlanDataLoadErrorDTO( - error_message = '', - rci = '', - row = 56, ) + None ], potential_added_rows_count = 56, potential_removed_rows_count = 56, diff --git a/src/visier_api_data_in/test/test_plan_segment_level_member_dto.py b/src/visier_api_data_in/test/test_plan_segment_level_member_dto.py deleted file mode 100644 index afc7a3808d..0000000000 --- a/src/visier_api_data_in/test/test_plan_segment_level_member_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.plan_segment_level_member_dto import PlanSegmentLevelMemberDTO - -class TestPlanSegmentLevelMemberDTO(unittest.TestCase): - """PlanSegmentLevelMemberDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanSegmentLevelMemberDTO: - """Test PlanSegmentLevelMemberDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanSegmentLevelMemberDTO( - display_name = '', - id = '', - is_custom = True, - parent_id = '' - ) - else: - return PlanSegmentLevelMemberDTO( - ) - - def testPlanSegmentLevelMemberDTO(self): - """Test PlanSegmentLevelMemberDTO""" - def validate_instance(instance): - PlanSegmentLevelMemberDTO.model_validate(inst_req_only) - instance_deserialized = PlanSegmentLevelMemberDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_planning_data_load_api.py b/src/visier_api_data_in/test/test_planning_data_load_api.py index 61208d5f7d..b5981498d1 100644 --- a/src/visier_api_data_in/test/test_planning_data_load_api.py +++ b/src/visier_api_data_in/test/test_planning_data_load_api.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/test/test_processing_job.py b/src/visier_api_data_in/test/test_processing_job.py deleted file mode 100644 index 9c05ff3b14..0000000000 --- a/src/visier_api_data_in/test/test_processing_job.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.processing_job import ProcessingJob - -class TestProcessingJob(unittest.TestCase): - """ProcessingJob unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProcessingJob: - """Test ProcessingJob - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProcessingJob( - data_version = '', - job_id = '', - message = '', - status = '', - tenant_code = '' - ) - else: - return ProcessingJob( - ) - - def testProcessingJob(self): - """Test ProcessingJob""" - def validate_instance(instance): - ProcessingJob.model_validate(inst_req_only) - instance_deserialized = ProcessingJob.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_processing_job_and_status_response.py b/src/visier_api_data_in/test/test_processing_job_and_status_response.py deleted file mode 100644 index b9b092f532..0000000000 --- a/src/visier_api_data_in/test/test_processing_job_and_status_response.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.processing_job_and_status_response import ProcessingJobAndStatusResponse - -class TestProcessingJobAndStatusResponse(unittest.TestCase): - """ProcessingJobAndStatusResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProcessingJobAndStatusResponse: - """Test ProcessingJobAndStatusResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProcessingJobAndStatusResponse( - limit = 56, - parent_job_id = '', - parent_tenant_code = '', - processing_jobs = [ - visier_api_data_in.models.processing_job.ProcessingJob( - data_version = '', - job_id = '', - message = '', - status = '', - tenant_code = '', ) - ], - start = 56 - ) - else: - return ProcessingJobAndStatusResponse( - ) - - def testProcessingJobAndStatusResponse(self): - """Test ProcessingJobAndStatusResponse""" - def validate_instance(instance): - ProcessingJobAndStatusResponse.model_validate(inst_req_only) - instance_deserialized = ProcessingJobAndStatusResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_processing_job_request_dto.py b/src/visier_api_data_in/test/test_processing_job_request_dto.py deleted file mode 100644 index 2fe4f3b23b..0000000000 --- a/src/visier_api_data_in/test/test_processing_job_request_dto.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.processing_job_request_dto import ProcessingJobRequestDTO - -class TestProcessingJobRequestDTO(unittest.TestCase): - """ProcessingJobRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProcessingJobRequestDTO: - """Test ProcessingJobRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProcessingJobRequestDTO( - all_tenants = True, - data_category_id = '', - excluded_tenants = [ - '' - ], - publish_to_production = True, - tenants = [ - '' - ] - ) - else: - return ProcessingJobRequestDTO( - ) - - def testProcessingJobRequestDTO(self): - """Test ProcessingJobRequestDTO""" - def validate_instance(instance): - ProcessingJobRequestDTO.model_validate(inst_req_only) - instance_deserialized = ProcessingJobRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_processing_job_status_response.py b/src/visier_api_data_in/test/test_processing_job_status_response.py deleted file mode 100644 index a24d9ceefd..0000000000 --- a/src/visier_api_data_in/test/test_processing_job_status_response.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.processing_job_status_response import ProcessingJobStatusResponse - -class TestProcessingJobStatusResponse(unittest.TestCase): - """ProcessingJobStatusResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProcessingJobStatusResponse: - """Test ProcessingJobStatusResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ProcessingJobStatusResponse( - limit = 56, - parent_job_id = '', - parent_tenant_code = '', - processing_jobs = [ - visier_api_data_in.models.processing_job.ProcessingJob( - data_version = '', - job_id = '', - message = '', - status = '', - tenant_code = '', ) - ], - start = 56 - ) - else: - return ProcessingJobStatusResponse( - ) - - def testProcessingJobStatusResponse(self): - """Test ProcessingJobStatusResponse""" - def validate_instance(instance): - ProcessingJobStatusResponse.model_validate(inst_req_only) - instance_deserialized = ProcessingJobStatusResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_public_key_dto.py b/src/visier_api_data_in/test/test_public_key_dto.py deleted file mode 100644 index 2b23bee6a4..0000000000 --- a/src/visier_api_data_in/test/test_public_key_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.public_key_dto import PublicKeyDTO - -class TestPublicKeyDTO(unittest.TestCase): - """PublicKeyDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PublicKeyDTO: - """Test PublicKeyDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PublicKeyDTO( - date_generated = '', - expiry_date = '', - key_id = '', - public_key = '', - recipient = '' - ) - else: - return PublicKeyDTO( - ) - - def testPublicKeyDTO(self): - """Test PublicKeyDTO""" - def validate_instance(instance): - PublicKeyDTO.model_validate(inst_req_only) - instance_deserialized = PublicKeyDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_public_keys_dto.py b/src/visier_api_data_in/test/test_public_keys_dto.py deleted file mode 100644 index fb3f8eaf5a..0000000000 --- a/src/visier_api_data_in/test/test_public_keys_dto.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.public_keys_dto import PublicKeysDTO - -class TestPublicKeysDTO(unittest.TestCase): - """PublicKeysDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PublicKeysDTO: - """Test PublicKeysDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PublicKeysDTO( - keys = [ - visier_api_data_in.models.public_key_dto.PublicKeyDTO( - date_generated = '', - expiry_date = '', - key_id = '', - public_key = '', - recipient = '', ) - ] - ) - else: - return PublicKeysDTO( - ) - - def testPublicKeysDTO(self): - """Test PublicKeysDTO""" - def validate_instance(instance): - PublicKeysDTO.model_validate(inst_req_only) - instance_deserialized = PublicKeysDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_push_data_cancel_response.py b/src/visier_api_data_in/test/test_push_data_cancel_response.py deleted file mode 100644 index aaa3050c3a..0000000000 --- a/src/visier_api_data_in/test/test_push_data_cancel_response.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.push_data_cancel_response import PushDataCancelResponse - -class TestPushDataCancelResponse(unittest.TestCase): - """PushDataCancelResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PushDataCancelResponse: - """Test PushDataCancelResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PushDataCancelResponse( - data_transfer_result_details = [ - visier_api_data_in.models.data_transfer_result_detail.DataTransferResultDetail( - data_size = '', - rows = '', - source_names = [ - '' - ], - tenant_code = '', ) - ], - message = '', - status = '', - transfer_session_id = '' - ) - else: - return PushDataCancelResponse( - ) - - def testPushDataCancelResponse(self): - """Test PushDataCancelResponse""" - def validate_instance(instance): - PushDataCancelResponse.model_validate(inst_req_only) - instance_deserialized = PushDataCancelResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_push_data_column_definition_dto.py b/src/visier_api_data_in/test/test_push_data_column_definition_dto.py deleted file mode 100644 index 7d8fb63d33..0000000000 --- a/src/visier_api_data_in/test/test_push_data_column_definition_dto.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.push_data_column_definition_dto import PushDataColumnDefinitionDTO - -class TestPushDataColumnDefinitionDTO(unittest.TestCase): - """PushDataColumnDefinitionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PushDataColumnDefinitionDTO: - """Test PushDataColumnDefinitionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PushDataColumnDefinitionDTO( - allow_empty = True, - column_name = '', - data_formats = [ - '' - ], - data_type = '', - default_value = '', - is_mandatory = True - ) - else: - return PushDataColumnDefinitionDTO( - ) - - def testPushDataColumnDefinitionDTO(self): - """Test PushDataColumnDefinitionDTO""" - def validate_instance(instance): - PushDataColumnDefinitionDTO.model_validate(inst_req_only) - instance_deserialized = PushDataColumnDefinitionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_push_data_complete_request.py b/src/visier_api_data_in/test/test_push_data_complete_request.py deleted file mode 100644 index b89e4cfd7d..0000000000 --- a/src/visier_api_data_in/test/test_push_data_complete_request.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.push_data_complete_request import PushDataCompleteRequest - -class TestPushDataCompleteRequest(unittest.TestCase): - """PushDataCompleteRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PushDataCompleteRequest: - """Test PushDataCompleteRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PushDataCompleteRequest( - processing_data = True, - transfer_session_id = '' - ) - else: - return PushDataCompleteRequest( - ) - - def testPushDataCompleteRequest(self): - """Test PushDataCompleteRequest""" - def validate_instance(instance): - PushDataCompleteRequest.model_validate(inst_req_only) - instance_deserialized = PushDataCompleteRequest.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_push_data_complete_response.py b/src/visier_api_data_in/test/test_push_data_complete_response.py deleted file mode 100644 index fb9dcf532c..0000000000 --- a/src/visier_api_data_in/test/test_push_data_complete_response.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.push_data_complete_response import PushDataCompleteResponse - -class TestPushDataCompleteResponse(unittest.TestCase): - """PushDataCompleteResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PushDataCompleteResponse: - """Test PushDataCompleteResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PushDataCompleteResponse( - data_receiving_job_id = '', - data_transfer_result_details = [ - visier_api_data_in.models.data_transfer_result_detail.DataTransferResultDetail( - data_size = '', - rows = '', - source_names = [ - '' - ], - tenant_code = '', ) - ], - message = '', - status = '', - transfer_session_id = '' - ) - else: - return PushDataCompleteResponse( - ) - - def testPushDataCompleteResponse(self): - """Test PushDataCompleteResponse""" - def validate_instance(instance): - PushDataCompleteResponse.model_validate(inst_req_only) - instance_deserialized = PushDataCompleteResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_push_data_response.py b/src/visier_api_data_in/test/test_push_data_response.py deleted file mode 100644 index 3a9c2e8d43..0000000000 --- a/src/visier_api_data_in/test/test_push_data_response.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.push_data_response import PushDataResponse - -class TestPushDataResponse(unittest.TestCase): - """PushDataResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PushDataResponse: - """Test PushDataResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PushDataResponse( - message = '', - sequence = 56, - status = '', - tenants = [ - visier_api_data_in.models.tenant.Tenant( - sources = [ - visier_api_data_in.models.source.Source( - data_size = '', - message = '', - rows = '', - source_id = '', - source_name = '', - status = '', ) - ], - status = '', - tenant_code = '', ) - ], - transfer_session_id = '' - ) - else: - return PushDataResponse( - ) - - def testPushDataResponse(self): - """Test PushDataResponse""" - def validate_instance(instance): - PushDataResponse.model_validate(inst_req_only) - instance_deserialized = PushDataResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_push_data_source_definition_dto.py b/src/visier_api_data_in/test/test_push_data_source_definition_dto.py deleted file mode 100644 index 69ad6ad218..0000000000 --- a/src/visier_api_data_in/test/test_push_data_source_definition_dto.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.push_data_source_definition_dto import PushDataSourceDefinitionDTO - -class TestPushDataSourceDefinitionDTO(unittest.TestCase): - """PushDataSourceDefinitionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PushDataSourceDefinitionDTO: - """Test PushDataSourceDefinitionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PushDataSourceDefinitionDTO( - columns = [ - visier_api_data_in.models.push_data_column_definition_dto.PushDataColumnDefinitionDTO( - allow_empty = True, - column_name = '', - data_formats = [ - '' - ], - data_type = '', - default_value = '', - is_mandatory = True, ) - ], - is_inherited = True, - name = '', - source_id = '' - ) - else: - return PushDataSourceDefinitionDTO( - ) - - def testPushDataSourceDefinitionDTO(self): - """Test PushDataSourceDefinitionDTO""" - def validate_instance(instance): - PushDataSourceDefinitionDTO.model_validate(inst_req_only) - instance_deserialized = PushDataSourceDefinitionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_push_data_source_definitions_dto.py b/src/visier_api_data_in/test/test_push_data_source_definitions_dto.py deleted file mode 100644 index 5f30ced746..0000000000 --- a/src/visier_api_data_in/test/test_push_data_source_definitions_dto.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.push_data_source_definitions_dto import PushDataSourceDefinitionsDTO - -class TestPushDataSourceDefinitionsDTO(unittest.TestCase): - """PushDataSourceDefinitionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PushDataSourceDefinitionsDTO: - """Test PushDataSourceDefinitionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PushDataSourceDefinitionsDTO( - sources = [ - visier_api_data_in.models.push_data_source_definition_dto.PushDataSourceDefinitionDTO( - columns = [ - visier_api_data_in.models.push_data_column_definition_dto.PushDataColumnDefinitionDTO( - allow_empty = True, - column_name = '', - data_formats = [ - '' - ], - data_type = '', - default_value = '', - is_mandatory = True, ) - ], - is_inherited = True, - name = '', - source_id = '', ) - ] - ) - else: - return PushDataSourceDefinitionsDTO( - ) - - def testPushDataSourceDefinitionsDTO(self): - """Test PushDataSourceDefinitionsDTO""" - def validate_instance(instance): - PushDataSourceDefinitionsDTO.model_validate(inst_req_only) - instance_deserialized = PushDataSourceDefinitionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_qualtrics_auth_params_dto.py b/src/visier_api_data_in/test/test_qualtrics_auth_params_dto.py deleted file mode 100644 index 107d3666cc..0000000000 --- a/src/visier_api_data_in/test/test_qualtrics_auth_params_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.qualtrics_auth_params_dto import QualtricsAuthParamsDTO - -class TestQualtricsAuthParamsDTO(unittest.TestCase): - """QualtricsAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QualtricsAuthParamsDTO: - """Test QualtricsAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QualtricsAuthParamsDTO( - api_token = '', - data_center_id = '' - ) - else: - return QualtricsAuthParamsDTO( - ) - - def testQualtricsAuthParamsDTO(self): - """Test QualtricsAuthParamsDTO""" - def validate_instance(instance): - QualtricsAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = QualtricsAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_receiving_job.py b/src/visier_api_data_in/test/test_receiving_job.py deleted file mode 100644 index 480ab3a509..0000000000 --- a/src/visier_api_data_in/test/test_receiving_job.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.receiving_job import ReceivingJob - -class TestReceivingJob(unittest.TestCase): - """ReceivingJob unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReceivingJob: - """Test ReceivingJob - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ReceivingJob( - receiving_job_id = '', - status = '', - tenant_code = '' - ) - else: - return ReceivingJob( - ) - - def testReceivingJob(self): - """Test ReceivingJob""" - def validate_instance(instance): - ReceivingJob.model_validate(inst_req_only) - instance_deserialized = ReceivingJob.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_receiving_job_and_status_response.py b/src/visier_api_data_in/test/test_receiving_job_and_status_response.py deleted file mode 100644 index c889b46f46..0000000000 --- a/src/visier_api_data_in/test/test_receiving_job_and_status_response.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.receiving_job_and_status_response import ReceivingJobAndStatusResponse - -class TestReceivingJobAndStatusResponse(unittest.TestCase): - """ReceivingJobAndStatusResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReceivingJobAndStatusResponse: - """Test ReceivingJobAndStatusResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ReceivingJobAndStatusResponse( - limit = 56, - parent_job_id = '', - parent_tenant_code = '', - receiving_jobs = [ - visier_api_data_in.models.receiving_job.ReceivingJob( - receiving_job_id = '', - status = '', - tenant_code = '', ) - ], - start = 56 - ) - else: - return ReceivingJobAndStatusResponse( - ) - - def testReceivingJobAndStatusResponse(self): - """Test ReceivingJobAndStatusResponse""" - def validate_instance(instance): - ReceivingJobAndStatusResponse.model_validate(inst_req_only) - instance_deserialized = ReceivingJobAndStatusResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_receiving_job_status_response.py b/src/visier_api_data_in/test/test_receiving_job_status_response.py deleted file mode 100644 index adbc36d8f4..0000000000 --- a/src/visier_api_data_in/test/test_receiving_job_status_response.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.receiving_job_status_response import ReceivingJobStatusResponse - -class TestReceivingJobStatusResponse(unittest.TestCase): - """ReceivingJobStatusResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReceivingJobStatusResponse: - """Test ReceivingJobStatusResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ReceivingJobStatusResponse( - job_id = '', - parent_job_id = '', - parent_tenant_code = '', - receiving_jobs = [ - visier_api_data_in.models.receiving_job.ReceivingJob( - receiving_job_id = '', - status = '', - tenant_code = '', ) - ], - status = '' - ) - else: - return ReceivingJobStatusResponse( - ) - - def testReceivingJobStatusResponse(self): - """Test ReceivingJobStatusResponse""" - def validate_instance(instance): - ReceivingJobStatusResponse.model_validate(inst_req_only) - instance_deserialized = ReceivingJobStatusResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_redshift_auth_params_dto.py b/src/visier_api_data_in/test/test_redshift_auth_params_dto.py deleted file mode 100644 index f87a13d44a..0000000000 --- a/src/visier_api_data_in/test/test_redshift_auth_params_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.redshift_auth_params_dto import RedshiftAuthParamsDTO - -class TestRedshiftAuthParamsDTO(unittest.TestCase): - """RedshiftAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RedshiftAuthParamsDTO: - """Test RedshiftAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return RedshiftAuthParamsDTO( - database = '', - endpoint = '', - password = '', - port = '', - var_schema = '', - table_prefix = '', - username = '' - ) - else: - return RedshiftAuthParamsDTO( - ) - - def testRedshiftAuthParamsDTO(self): - """Test RedshiftAuthParamsDTO""" - def validate_instance(instance): - RedshiftAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = RedshiftAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_result.py b/src/visier_api_data_in/test/test_result.py deleted file mode 100644 index 2d961ed907..0000000000 --- a/src/visier_api_data_in/test/test_result.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.result import Result - -class TestResult(unittest.TestCase): - """Result unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Result: - """Test Result - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return Result( - data_version = '', - job_id = '', - message = '', - status = '', - tenant_code = '' - ) - else: - return Result( - ) - - def testResult(self): - """Test Result""" - def validate_instance(instance): - Result.model_validate(inst_req_only) - instance_deserialized = Result.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_salesforce_auth_params_dto.py b/src/visier_api_data_in/test/test_salesforce_auth_params_dto.py deleted file mode 100644 index ae68643fd9..0000000000 --- a/src/visier_api_data_in/test/test_salesforce_auth_params_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.salesforce_auth_params_dto import SalesforceAuthParamsDTO - -class TestSalesforceAuthParamsDTO(unittest.TestCase): - """SalesforceAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SalesforceAuthParamsDTO: - """Test SalesforceAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SalesforceAuthParamsDTO( - client_id = '', - refresh_token = '' - ) - else: - return SalesforceAuthParamsDTO( - ) - - def testSalesforceAuthParamsDTO(self): - """Test SalesforceAuthParamsDTO""" - def validate_instance(instance): - SalesforceAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = SalesforceAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_salesforce_v2_auth_params_dto.py b/src/visier_api_data_in/test/test_salesforce_v2_auth_params_dto.py deleted file mode 100644 index 9cb13ad647..0000000000 --- a/src/visier_api_data_in/test/test_salesforce_v2_auth_params_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.salesforce_v2_auth_params_dto import SalesforceV2AuthParamsDTO - -class TestSalesforceV2AuthParamsDTO(unittest.TestCase): - """SalesforceV2AuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SalesforceV2AuthParamsDTO: - """Test SalesforceV2AuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SalesforceV2AuthParamsDTO( - auth_code = '', - client_id = '', - client_secret = '', - login_host = '' - ) - else: - return SalesforceV2AuthParamsDTO( - ) - - def testSalesforceV2AuthParamsDTO(self): - """Test SalesforceV2AuthParamsDTO""" - def validate_instance(instance): - SalesforceV2AuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = SalesforceV2AuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_service_now_auth_params_dto.py b/src/visier_api_data_in/test/test_service_now_auth_params_dto.py deleted file mode 100644 index d1ffc6aaa9..0000000000 --- a/src/visier_api_data_in/test/test_service_now_auth_params_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.service_now_auth_params_dto import ServiceNowAuthParamsDTO - -class TestServiceNowAuthParamsDTO(unittest.TestCase): - """ServiceNowAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ServiceNowAuthParamsDTO: - """Test ServiceNowAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ServiceNowAuthParamsDTO( - host_domain_name = '', - password = '', - username = '' - ) - else: - return ServiceNowAuthParamsDTO( - ) - - def testServiceNowAuthParamsDTO(self): - """Test ServiceNowAuthParamsDTO""" - def validate_instance(instance): - ServiceNowAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = ServiceNowAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_service_now_v2_auth_params_dto.py b/src/visier_api_data_in/test/test_service_now_v2_auth_params_dto.py deleted file mode 100644 index 0b294856d8..0000000000 --- a/src/visier_api_data_in/test/test_service_now_v2_auth_params_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.service_now_v2_auth_params_dto import ServiceNowV2AuthParamsDTO - -class TestServiceNowV2AuthParamsDTO(unittest.TestCase): - """ServiceNowV2AuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ServiceNowV2AuthParamsDTO: - """Test ServiceNowV2AuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ServiceNowV2AuthParamsDTO( - alternate_domain = '', - auth_code = '', - client_id = '', - client_secret = '', - host_domain_name = '' - ) - else: - return ServiceNowV2AuthParamsDTO( - ) - - def testServiceNowV2AuthParamsDTO(self): - """Test ServiceNowV2AuthParamsDTO""" - def validate_instance(instance): - ServiceNowV2AuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = ServiceNowV2AuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_data_categories_response_dto.py b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_data_categories_response_dto.py new file mode 100644 index 0000000000..4bae69650e --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_data_categories_response_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.servicing_publicapi_transfers_data_categories_response_dto import ServicingPublicapiTransfersDataCategoriesResponseDTO + +class TestServicingPublicapiTransfersDataCategoriesResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersDataCategoriesResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDataCategoriesResponseDTO: + """Test ServicingPublicapiTransfersDataCategoriesResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDataCategoriesResponseDTO( + categories = [ + visier_api_data_in.models.servicing/publicapi/transfers/data_category_response_dto.servicing.publicapi.transfers.DataCategoryResponseDTO( + id = '', + name = '', ) + ] + ) + else: + return ServicingPublicapiTransfersDataCategoriesResponseDTO( + ) + + def testServicingPublicapiTransfersDataCategoriesResponseDTO(self): + """Test ServicingPublicapiTransfersDataCategoriesResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDataCategoriesResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDataCategoriesResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_data_category_response_dto.py b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_data_category_response_dto.py new file mode 100644 index 0000000000..62542ddd55 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_data_category_response_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.servicing_publicapi_transfers_data_category_response_dto import ServicingPublicapiTransfersDataCategoryResponseDTO + +class TestServicingPublicapiTransfersDataCategoryResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersDataCategoryResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDataCategoryResponseDTO: + """Test ServicingPublicapiTransfersDataCategoryResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDataCategoryResponseDTO( + id = '', + name = '' + ) + else: + return ServicingPublicapiTransfersDataCategoryResponseDTO( + ) + + def testServicingPublicapiTransfersDataCategoryResponseDTO(self): + """Test ServicingPublicapiTransfersDataCategoryResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDataCategoryResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDataCategoryResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_job_config_dto.py b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_job_config_dto.py new file mode 100644 index 0000000000..075ea251a5 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_job_config_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_job_config_dto import ServicingPublicapiTransfersDirectDataJobConfigDTO + +class TestServicingPublicapiTransfersDirectDataJobConfigDTO(unittest.TestCase): + """ServicingPublicapiTransfersDirectDataJobConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDirectDataJobConfigDTO: + """Test ServicingPublicapiTransfersDirectDataJobConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDirectDataJobConfigDTO( + extend_objects = [ + '' + ], + supplemental_mode = 'UNCHANGED' + ) + else: + return ServicingPublicapiTransfersDirectDataJobConfigDTO( + ) + + def testServicingPublicapiTransfersDirectDataJobConfigDTO(self): + """Test ServicingPublicapiTransfersDirectDataJobConfigDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDirectDataJobConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDirectDataJobConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_job_status_response_dto.py b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_job_status_response_dto.py new file mode 100644 index 0000000000..712b66a909 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_job_status_response_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_job_status_response_dto import ServicingPublicapiTransfersDirectDataJobStatusResponseDTO + +class TestServicingPublicapiTransfersDirectDataJobStatusResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersDirectDataJobStatusResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDirectDataJobStatusResponseDTO: + """Test ServicingPublicapiTransfersDirectDataJobStatusResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDirectDataJobStatusResponseDTO( + job_id = '', + message = '', + status = '', + tenant_code = '', + transaction_id = '' + ) + else: + return ServicingPublicapiTransfersDirectDataJobStatusResponseDTO( + ) + + def testServicingPublicapiTransfersDirectDataJobStatusResponseDTO(self): + """Test ServicingPublicapiTransfersDirectDataJobStatusResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDirectDataJobStatusResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDirectDataJobStatusResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_load_config_dto.py b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_load_config_dto.py new file mode 100644 index 0000000000..254493cfdf --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_load_config_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_load_config_dto import ServicingPublicapiTransfersDirectDataLoadConfigDTO + +class TestServicingPublicapiTransfersDirectDataLoadConfigDTO(unittest.TestCase): + """ServicingPublicapiTransfersDirectDataLoadConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDirectDataLoadConfigDTO: + """Test ServicingPublicapiTransfersDirectDataLoadConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDirectDataLoadConfigDTO( + job = visier_api_data_in.models.servicing/publicapi/transfers/direct_data_job_config_dto.servicing.publicapi.transfers.DirectDataJobConfigDTO( + extend_objects = [ + '' + ], + supplemental_mode = 'UNCHANGED', ) + ) + else: + return ServicingPublicapiTransfersDirectDataLoadConfigDTO( + ) + + def testServicingPublicapiTransfersDirectDataLoadConfigDTO(self): + """Test ServicingPublicapiTransfersDirectDataLoadConfigDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDirectDataLoadConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDirectDataLoadConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_schema_dto.py b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_schema_dto.py new file mode 100644 index 0000000000..979bfbb3a6 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_schema_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_schema_dto import ServicingPublicapiTransfersDirectDataSchemaDTO + +class TestServicingPublicapiTransfersDirectDataSchemaDTO(unittest.TestCase): + """ServicingPublicapiTransfersDirectDataSchemaDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDirectDataSchemaDTO: + """Test ServicingPublicapiTransfersDirectDataSchemaDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDirectDataSchemaDTO( + var_schema = [ + visier_api_data_in.models.servicing/publicapi/transfers/direct_data_schema_field_dto.servicing.publicapi.transfers.DirectDataSchemaFieldDTO( + data_type = '', + empty_values_allowed = True, + formats = [ + '' + ], + is_mandatory = True, + name = '', ) + ] + ) + else: + return ServicingPublicapiTransfersDirectDataSchemaDTO( + ) + + def testServicingPublicapiTransfersDirectDataSchemaDTO(self): + """Test ServicingPublicapiTransfersDirectDataSchemaDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDirectDataSchemaDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDirectDataSchemaDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_schema_field_dto.py b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_schema_field_dto.py new file mode 100644 index 0000000000..d86dfe8542 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_schema_field_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_schema_field_dto import ServicingPublicapiTransfersDirectDataSchemaFieldDTO + +class TestServicingPublicapiTransfersDirectDataSchemaFieldDTO(unittest.TestCase): + """ServicingPublicapiTransfersDirectDataSchemaFieldDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDirectDataSchemaFieldDTO: + """Test ServicingPublicapiTransfersDirectDataSchemaFieldDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDirectDataSchemaFieldDTO( + data_type = '', + empty_values_allowed = True, + formats = [ + '' + ], + is_mandatory = True, + name = '' + ) + else: + return ServicingPublicapiTransfersDirectDataSchemaFieldDTO( + ) + + def testServicingPublicapiTransfersDirectDataSchemaFieldDTO(self): + """Test ServicingPublicapiTransfersDirectDataSchemaFieldDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDirectDataSchemaFieldDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDirectDataSchemaFieldDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_transaction_start_response_dto.py b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_transaction_start_response_dto.py new file mode 100644 index 0000000000..fcb7a41089 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_transaction_start_response_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_transaction_start_response_dto import ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO + +class TestServicingPublicapiTransfersDirectDataTransactionStartResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO: + """Test ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO( + transaction_id = '' + ) + else: + return ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO( + ) + + def testServicingPublicapiTransfersDirectDataTransactionStartResponseDTO(self): + """Test ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_upload_file_response_dto.py b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_upload_file_response_dto.py new file mode 100644 index 0000000000..c460eccfbf --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_upload_file_response_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_upload_file_response_dto import ServicingPublicapiTransfersDirectDataUploadFileResponseDTO + +class TestServicingPublicapiTransfersDirectDataUploadFileResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersDirectDataUploadFileResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDirectDataUploadFileResponseDTO: + """Test ServicingPublicapiTransfersDirectDataUploadFileResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDirectDataUploadFileResponseDTO( + message = '', + status = '', + transaction_id = '' + ) + else: + return ServicingPublicapiTransfersDirectDataUploadFileResponseDTO( + ) + + def testServicingPublicapiTransfersDirectDataUploadFileResponseDTO(self): + """Test ServicingPublicapiTransfersDirectDataUploadFileResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDirectDataUploadFileResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDirectDataUploadFileResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_job_id_response.py b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_job_id_response.py new file mode 100644 index 0000000000..f8b00a8825 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_job_id_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.servicing_publicapi_transfers_job_id_response import ServicingPublicapiTransfersJobIdResponse + +class TestServicingPublicapiTransfersJobIdResponse(unittest.TestCase): + """ServicingPublicapiTransfersJobIdResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersJobIdResponse: + """Test ServicingPublicapiTransfersJobIdResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersJobIdResponse( + job_id = '' + ) + else: + return ServicingPublicapiTransfersJobIdResponse( + ) + + def testServicingPublicapiTransfersJobIdResponse(self): + """Test ServicingPublicapiTransfersJobIdResponse""" + def validate_instance(instance): + ServicingPublicapiTransfersJobIdResponse.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersJobIdResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_tenant_data_upload_status_response_dto.py b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_tenant_data_upload_status_response_dto.py new file mode 100644 index 0000000000..7a92acae9d --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_tenant_data_upload_status_response_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_upload_status_response_dto import ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO + +class TestServicingPublicapiTransfersTenantDataUploadStatusResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO: + """Test ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO( + included = True, + upload_time = '' + ) + else: + return ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO( + ) + + def testServicingPublicapiTransfersTenantDataUploadStatusResponseDTO(self): + """Test ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_tenant_data_upload_update_status_response_dto.py b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_tenant_data_upload_update_status_response_dto.py new file mode 100644 index 0000000000..1163af3308 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_tenant_data_upload_update_status_response_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_upload_update_status_response_dto import ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO + +class TestServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO: + """Test ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO( + message = '', + status = '', + tenant_code = '', + upload_time = '' + ) + else: + return ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO( + ) + + def testServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO(self): + """Test ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_tenant_data_uploads_list_response_dto.py b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_tenant_data_uploads_list_response_dto.py new file mode 100644 index 0000000000..ff68af08d0 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_tenant_data_uploads_list_response_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_uploads_list_response_dto import ServicingPublicapiTransfersTenantDataUploadsListResponseDTO + +class TestServicingPublicapiTransfersTenantDataUploadsListResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersTenantDataUploadsListResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersTenantDataUploadsListResponseDTO: + """Test ServicingPublicapiTransfersTenantDataUploadsListResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersTenantDataUploadsListResponseDTO( + limit = 56, + start = 56, + tenants = [ + visier_api_data_in.models.servicing/publicapi/transfers/tenant_data_uploads_response_dto.servicing.publicapi.transfers.TenantDataUploadsResponseDTO( + tenant_code = '', + uploads = [ + visier_api_data_in.models.servicing/publicapi/transfers/tenant_data_upload_status_response_dto.servicing.publicapi.transfers.TenantDataUploadStatusResponseDTO( + included = True, + upload_time = '', ) + ], ) + ] + ) + else: + return ServicingPublicapiTransfersTenantDataUploadsListResponseDTO( + ) + + def testServicingPublicapiTransfersTenantDataUploadsListResponseDTO(self): + """Test ServicingPublicapiTransfersTenantDataUploadsListResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersTenantDataUploadsListResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersTenantDataUploadsListResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_tenant_data_uploads_response_dto.py b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_tenant_data_uploads_response_dto.py new file mode 100644 index 0000000000..431da56ddd --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_tenant_data_uploads_response_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_uploads_response_dto import ServicingPublicapiTransfersTenantDataUploadsResponseDTO + +class TestServicingPublicapiTransfersTenantDataUploadsResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersTenantDataUploadsResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersTenantDataUploadsResponseDTO: + """Test ServicingPublicapiTransfersTenantDataUploadsResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersTenantDataUploadsResponseDTO( + tenant_code = '', + uploads = [ + visier_api_data_in.models.servicing/publicapi/transfers/tenant_data_upload_status_response_dto.servicing.publicapi.transfers.TenantDataUploadStatusResponseDTO( + included = True, + upload_time = '', ) + ] + ) + else: + return ServicingPublicapiTransfersTenantDataUploadsResponseDTO( + ) + + def testServicingPublicapiTransfersTenantDataUploadsResponseDTO(self): + """Test ServicingPublicapiTransfersTenantDataUploadsResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersTenantDataUploadsResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersTenantDataUploadsResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_tenant_data_uploads_update_response_dto.py b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_tenant_data_uploads_update_response_dto.py new file mode 100644 index 0000000000..b29a617611 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_publicapi_transfers_tenant_data_uploads_update_response_dto.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_in.models +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_uploads_update_response_dto import ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO + +class TestServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO: + """Test ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO( + total_failures = 56, + total_success = 56, + uploads = [ + visier_api_data_in.models.servicing/publicapi/transfers/tenant_data_upload_update_status_response_dto.servicing.publicapi.transfers.TenantDataUploadUpdateStatusResponseDTO( + message = '', + status = '', + tenant_code = '', + upload_time = '', ) + ] + ) + else: + return ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO( + ) + + def testServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO(self): + """Test ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_in/test/test_set_connector_setting_request_dto.py b/src/visier_api_data_in/test/test_set_connector_setting_request_dto.py deleted file mode 100644 index bce8521305..0000000000 --- a/src/visier_api_data_in/test/test_set_connector_setting_request_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.set_connector_setting_request_dto import SetConnectorSettingRequestDTO - -class TestSetConnectorSettingRequestDTO(unittest.TestCase): - """SetConnectorSettingRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetConnectorSettingRequestDTO: - """Test SetConnectorSettingRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SetConnectorSettingRequestDTO( - connector_id = '', - tenants = [ - visier_api_data_in.models.tenant_connector_settings_request_dto.TenantConnectorSettingsRequestDTO( - connector_settings = [ - visier_api_data_in.models.connector_setting_request_dto.ConnectorSettingRequestDTO( - setting_key = '', - value = '', ) - ], - tenant_code = '', ) - ] - ) - else: - return SetConnectorSettingRequestDTO( - ) - - def testSetConnectorSettingRequestDTO(self): - """Test SetConnectorSettingRequestDTO""" - def validate_instance(instance): - SetConnectorSettingRequestDTO.model_validate(inst_req_only) - instance_deserialized = SetConnectorSettingRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_set_connector_setting_response_dto.py b/src/visier_api_data_in/test/test_set_connector_setting_response_dto.py deleted file mode 100644 index 024b2eec01..0000000000 --- a/src/visier_api_data_in/test/test_set_connector_setting_response_dto.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.set_connector_setting_response_dto import SetConnectorSettingResponseDTO - -class TestSetConnectorSettingResponseDTO(unittest.TestCase): - """SetConnectorSettingResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetConnectorSettingResponseDTO: - """Test SetConnectorSettingResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SetConnectorSettingResponseDTO( - connectors = [ - visier_api_data_in.models.connector_settings_response_dto.ConnectorSettingsResponseDTO( - connector = None, - settings = [ - visier_api_data_in.models.connector_setting_response_dto.ConnectorSettingResponseDTO( - key = '', - message = '', - value = '', ) - ], ) - ], - message = '', - status = 'Unknown', - tenant_code = '' - ) - else: - return SetConnectorSettingResponseDTO( - ) - - def testSetConnectorSettingResponseDTO(self): - """Test SetConnectorSettingResponseDTO""" - def validate_instance(instance): - SetConnectorSettingResponseDTO.model_validate(inst_req_only) - instance_deserialized = SetConnectorSettingResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_set_connector_settings_request_dto.py b/src/visier_api_data_in/test/test_set_connector_settings_request_dto.py deleted file mode 100644 index 5fe0ef3219..0000000000 --- a/src/visier_api_data_in/test/test_set_connector_settings_request_dto.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.set_connector_settings_request_dto import SetConnectorSettingsRequestDTO - -class TestSetConnectorSettingsRequestDTO(unittest.TestCase): - """SetConnectorSettingsRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetConnectorSettingsRequestDTO: - """Test SetConnectorSettingsRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SetConnectorSettingsRequestDTO( - connectors = [ - visier_api_data_in.models.set_connector_setting_request_dto.SetConnectorSettingRequestDTO( - connector_id = '', - tenants = [ - visier_api_data_in.models.tenant_connector_settings_request_dto.TenantConnectorSettingsRequestDTO( - connector_settings = [ - visier_api_data_in.models.connector_setting_request_dto.ConnectorSettingRequestDTO( - setting_key = '', - value = '', ) - ], - tenant_code = '', ) - ], ) - ] - ) - else: - return SetConnectorSettingsRequestDTO( - ) - - def testSetConnectorSettingsRequestDTO(self): - """Test SetConnectorSettingsRequestDTO""" - def validate_instance(instance): - SetConnectorSettingsRequestDTO.model_validate(inst_req_only) - instance_deserialized = SetConnectorSettingsRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_set_connector_settings_response_dto.py b/src/visier_api_data_in/test/test_set_connector_settings_response_dto.py deleted file mode 100644 index b73f911688..0000000000 --- a/src/visier_api_data_in/test/test_set_connector_settings_response_dto.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.set_connector_settings_response_dto import SetConnectorSettingsResponseDTO - -class TestSetConnectorSettingsResponseDTO(unittest.TestCase): - """SetConnectorSettingsResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetConnectorSettingsResponseDTO: - """Test SetConnectorSettingsResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SetConnectorSettingsResponseDTO( - tenants = [ - visier_api_data_in.models.set_connector_setting_response_dto.SetConnectorSettingResponseDTO( - connectors = [ - visier_api_data_in.models.connector_settings_response_dto.ConnectorSettingsResponseDTO( - connector = None, - settings = [ - visier_api_data_in.models.connector_setting_response_dto.ConnectorSettingResponseDTO( - key = '', - message = '', - value = '', ) - ], ) - ], - message = '', - status = 'Unknown', - tenant_code = '', ) - ] - ) - else: - return SetConnectorSettingsResponseDTO( - ) - - def testSetConnectorSettingsResponseDTO(self): - """Test SetConnectorSettingsResponseDTO""" - def validate_instance(instance): - SetConnectorSettingsResponseDTO.model_validate(inst_req_only) - instance_deserialized = SetConnectorSettingsResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_slack_auth_params_dto.py b/src/visier_api_data_in/test/test_slack_auth_params_dto.py deleted file mode 100644 index 9b21b4b981..0000000000 --- a/src/visier_api_data_in/test/test_slack_auth_params_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.slack_auth_params_dto import SlackAuthParamsDTO - -class TestSlackAuthParamsDTO(unittest.TestCase): - """SlackAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SlackAuthParamsDTO: - """Test SlackAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SlackAuthParamsDTO( - auth_code = '', - client_id = '', - client_secret = '' - ) - else: - return SlackAuthParamsDTO( - ) - - def testSlackAuthParamsDTO(self): - """Test SlackAuthParamsDTO""" - def validate_instance(instance): - SlackAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = SlackAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_snowflake_auth_params_dto.py b/src/visier_api_data_in/test/test_snowflake_auth_params_dto.py deleted file mode 100644 index a5224b8718..0000000000 --- a/src/visier_api_data_in/test/test_snowflake_auth_params_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.snowflake_auth_params_dto import SnowflakeAuthParamsDTO - -class TestSnowflakeAuthParamsDTO(unittest.TestCase): - """SnowflakeAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SnowflakeAuthParamsDTO: - """Test SnowflakeAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SnowflakeAuthParamsDTO( - account_identifier = '', - database = '', - password = '', - private_key = '', - var_schema = '', - username = '', - warehouse = '' - ) - else: - return SnowflakeAuthParamsDTO( - ) - - def testSnowflakeAuthParamsDTO(self): - """Test SnowflakeAuthParamsDTO""" - def validate_instance(instance): - SnowflakeAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = SnowflakeAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_source.py b/src/visier_api_data_in/test/test_source.py deleted file mode 100644 index d066af00bf..0000000000 --- a/src/visier_api_data_in/test/test_source.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.source import Source - -class TestSource(unittest.TestCase): - """Source unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Source: - """Test Source - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return Source( - data_size = '', - message = '', - rows = '', - source_id = '', - source_name = '', - status = '' - ) - else: - return Source( - ) - - def testSource(self): - """Test Source""" - def validate_instance(instance): - Source.model_validate(inst_req_only) - instance_deserialized = Source.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_sql_server_auth_params_dto.py b/src/visier_api_data_in/test/test_sql_server_auth_params_dto.py deleted file mode 100644 index 6640230c7a..0000000000 --- a/src/visier_api_data_in/test/test_sql_server_auth_params_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.sql_server_auth_params_dto import SqlServerAuthParamsDTO - -class TestSqlServerAuthParamsDTO(unittest.TestCase): - """SqlServerAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SqlServerAuthParamsDTO: - """Test SqlServerAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SqlServerAuthParamsDTO( - database = '', - host = '', - password = '', - port = '', - username = '' - ) - else: - return SqlServerAuthParamsDTO( - ) - - def testSqlServerAuthParamsDTO(self): - """Test SqlServerAuthParamsDTO""" - def validate_instance(instance): - SqlServerAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = SqlServerAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_start_extraction_response.py b/src/visier_api_data_in/test/test_start_extraction_response.py deleted file mode 100644 index b930fcc535..0000000000 --- a/src/visier_api_data_in/test/test_start_extraction_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.start_extraction_response import StartExtractionResponse - -class TestStartExtractionResponse(unittest.TestCase): - """StartExtractionResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StartExtractionResponse: - """Test StartExtractionResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return StartExtractionResponse( - job_id = '' - ) - else: - return StartExtractionResponse( - ) - - def testStartExtractionResponse(self): - """Test StartExtractionResponse""" - def validate_instance(instance): - StartExtractionResponse.model_validate(inst_req_only) - instance_deserialized = StartExtractionResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_start_transfer_response.py b/src/visier_api_data_in/test/test_start_transfer_response.py deleted file mode 100644 index a10d669778..0000000000 --- a/src/visier_api_data_in/test/test_start_transfer_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.start_transfer_response import StartTransferResponse - -class TestStartTransferResponse(unittest.TestCase): - """StartTransferResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StartTransferResponse: - """Test StartTransferResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return StartTransferResponse( - transfer_session_id = '' - ) - else: - return StartTransferResponse( - ) - - def testStartTransferResponse(self): - """Test StartTransferResponse""" - def validate_instance(instance): - StartTransferResponse.model_validate(inst_req_only) - instance_deserialized = StartTransferResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_status.py b/src/visier_api_data_in/test/test_status.py index 2610cd5218..a907026690 100644 --- a/src/visier_api_data_in/test/test_status.py +++ b/src/visier_api_data_in/test/test_status.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> Status: if include_optional: return Status( - error_code = '', + code = '', localized_message = '', message = '', rci = '', diff --git a/src/visier_api_data_in/test/test_subject_missing_access_dto.py b/src/visier_api_data_in/test/test_subject_missing_access_dto.py deleted file mode 100644 index 87f233172b..0000000000 --- a/src/visier_api_data_in/test/test_subject_missing_access_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.subject_missing_access_dto import SubjectMissingAccessDTO - -class TestSubjectMissingAccessDTO(unittest.TestCase): - """SubjectMissingAccessDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SubjectMissingAccessDTO: - """Test SubjectMissingAccessDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SubjectMissingAccessDTO( - attributes = [ - '' - ], - error_message = '', - subject = 'Employee' - ) - else: - return SubjectMissingAccessDTO( - ) - - def testSubjectMissingAccessDTO(self): - """Test SubjectMissingAccessDTO""" - def validate_instance(instance): - SubjectMissingAccessDTO.model_validate(inst_req_only) - instance_deserialized = SubjectMissingAccessDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_success_factors_auth_params_dto.py b/src/visier_api_data_in/test/test_success_factors_auth_params_dto.py deleted file mode 100644 index 15b29b80ba..0000000000 --- a/src/visier_api_data_in/test/test_success_factors_auth_params_dto.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.success_factors_auth_params_dto import SuccessFactorsAuthParamsDTO - -class TestSuccessFactorsAuthParamsDTO(unittest.TestCase): - """SuccessFactorsAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessFactorsAuthParamsDTO: - """Test SuccessFactorsAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SuccessFactorsAuthParamsDTO( - company_id = '', - host_domain_name = '', - o_auth = visier_api_data_in.models.success_factors_o_auth_params_dto.SuccessFactorsOAuthParamsDTO( - api_key = '', - private_x509_key = '', - public_x509_cert = '', ), - password = '', - username = '' - ) - else: - return SuccessFactorsAuthParamsDTO( - ) - - def testSuccessFactorsAuthParamsDTO(self): - """Test SuccessFactorsAuthParamsDTO""" - def validate_instance(instance): - SuccessFactorsAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = SuccessFactorsAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_success_factors_o_auth_params_dto.py b/src/visier_api_data_in/test/test_success_factors_o_auth_params_dto.py deleted file mode 100644 index 641b46707c..0000000000 --- a/src/visier_api_data_in/test/test_success_factors_o_auth_params_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.success_factors_o_auth_params_dto import SuccessFactorsOAuthParamsDTO - -class TestSuccessFactorsOAuthParamsDTO(unittest.TestCase): - """SuccessFactorsOAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessFactorsOAuthParamsDTO: - """Test SuccessFactorsOAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SuccessFactorsOAuthParamsDTO( - api_key = '', - private_x509_key = '', - public_x509_cert = '' - ) - else: - return SuccessFactorsOAuthParamsDTO( - ) - - def testSuccessFactorsOAuthParamsDTO(self): - """Test SuccessFactorsOAuthParamsDTO""" - def validate_instance(instance): - SuccessFactorsOAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = SuccessFactorsOAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_tenant.py b/src/visier_api_data_in/test/test_tenant.py deleted file mode 100644 index 449ba47412..0000000000 --- a/src/visier_api_data_in/test/test_tenant.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.tenant import Tenant - -class TestTenant(unittest.TestCase): - """Tenant unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Tenant: - """Test Tenant - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return Tenant( - sources = [ - visier_api_data_in.models.source.Source( - data_size = '', - message = '', - rows = '', - source_id = '', - source_name = '', - status = '', ) - ], - status = '', - tenant_code = '' - ) - else: - return Tenant( - ) - - def testTenant(self): - """Test Tenant""" - def validate_instance(instance): - Tenant.model_validate(inst_req_only) - instance_deserialized = Tenant.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_tenant_and_credential.py b/src/visier_api_data_in/test/test_tenant_and_credential.py deleted file mode 100644 index 71a9ddc8b4..0000000000 --- a/src/visier_api_data_in/test/test_tenant_and_credential.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.tenant_and_credential import TenantAndCredential - -class TestTenantAndCredential(unittest.TestCase): - """TenantAndCredential unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantAndCredential: - """Test TenantAndCredential - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantAndCredential( - credential_id = '', - tenant_code = '' - ) - else: - return TenantAndCredential( - ) - - def testTenantAndCredential(self): - """Test TenantAndCredential""" - def validate_instance(instance): - TenantAndCredential.model_validate(inst_req_only) - instance_deserialized = TenantAndCredential.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_tenant_connector_settings_request_dto.py b/src/visier_api_data_in/test/test_tenant_connector_settings_request_dto.py deleted file mode 100644 index eae5ce47bf..0000000000 --- a/src/visier_api_data_in/test/test_tenant_connector_settings_request_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.tenant_connector_settings_request_dto import TenantConnectorSettingsRequestDTO - -class TestTenantConnectorSettingsRequestDTO(unittest.TestCase): - """TenantConnectorSettingsRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantConnectorSettingsRequestDTO: - """Test TenantConnectorSettingsRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantConnectorSettingsRequestDTO( - connector_settings = [ - visier_api_data_in.models.connector_setting_request_dto.ConnectorSettingRequestDTO( - setting_key = '', - value = '', ) - ], - tenant_code = '' - ) - else: - return TenantConnectorSettingsRequestDTO( - ) - - def testTenantConnectorSettingsRequestDTO(self): - """Test TenantConnectorSettingsRequestDTO""" - def validate_instance(instance): - TenantConnectorSettingsRequestDTO.model_validate(inst_req_only) - instance_deserialized = TenantConnectorSettingsRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_tenant_data_upload_status_response_dto.py b/src/visier_api_data_in/test/test_tenant_data_upload_status_response_dto.py deleted file mode 100644 index a053050d43..0000000000 --- a/src/visier_api_data_in/test/test_tenant_data_upload_status_response_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.tenant_data_upload_status_response_dto import TenantDataUploadStatusResponseDTO - -class TestTenantDataUploadStatusResponseDTO(unittest.TestCase): - """TenantDataUploadStatusResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantDataUploadStatusResponseDTO: - """Test TenantDataUploadStatusResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantDataUploadStatusResponseDTO( - included = True, - upload_time = '' - ) - else: - return TenantDataUploadStatusResponseDTO( - ) - - def testTenantDataUploadStatusResponseDTO(self): - """Test TenantDataUploadStatusResponseDTO""" - def validate_instance(instance): - TenantDataUploadStatusResponseDTO.model_validate(inst_req_only) - instance_deserialized = TenantDataUploadStatusResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_tenant_data_upload_update_status_response_dto.py b/src/visier_api_data_in/test/test_tenant_data_upload_update_status_response_dto.py deleted file mode 100644 index cac95c9849..0000000000 --- a/src/visier_api_data_in/test/test_tenant_data_upload_update_status_response_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.tenant_data_upload_update_status_response_dto import TenantDataUploadUpdateStatusResponseDTO - -class TestTenantDataUploadUpdateStatusResponseDTO(unittest.TestCase): - """TenantDataUploadUpdateStatusResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantDataUploadUpdateStatusResponseDTO: - """Test TenantDataUploadUpdateStatusResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantDataUploadUpdateStatusResponseDTO( - message = '', - status = '', - tenant_code = '', - upload_time = '' - ) - else: - return TenantDataUploadUpdateStatusResponseDTO( - ) - - def testTenantDataUploadUpdateStatusResponseDTO(self): - """Test TenantDataUploadUpdateStatusResponseDTO""" - def validate_instance(instance): - TenantDataUploadUpdateStatusResponseDTO.model_validate(inst_req_only) - instance_deserialized = TenantDataUploadUpdateStatusResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_tenant_data_uploads_list_response_dto.py b/src/visier_api_data_in/test/test_tenant_data_uploads_list_response_dto.py deleted file mode 100644 index 8d07fc26fb..0000000000 --- a/src/visier_api_data_in/test/test_tenant_data_uploads_list_response_dto.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.tenant_data_uploads_list_response_dto import TenantDataUploadsListResponseDTO - -class TestTenantDataUploadsListResponseDTO(unittest.TestCase): - """TenantDataUploadsListResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantDataUploadsListResponseDTO: - """Test TenantDataUploadsListResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantDataUploadsListResponseDTO( - limit = 56, - start = 56, - tenants = [ - visier_api_data_in.models.tenant_data_uploads_response_dto.TenantDataUploadsResponseDTO( - tenant_code = '', - uploads = [ - visier_api_data_in.models.tenant_data_upload_status_response_dto.TenantDataUploadStatusResponseDTO( - included = True, - upload_time = '', ) - ], ) - ] - ) - else: - return TenantDataUploadsListResponseDTO( - ) - - def testTenantDataUploadsListResponseDTO(self): - """Test TenantDataUploadsListResponseDTO""" - def validate_instance(instance): - TenantDataUploadsListResponseDTO.model_validate(inst_req_only) - instance_deserialized = TenantDataUploadsListResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_tenant_data_uploads_response_dto.py b/src/visier_api_data_in/test/test_tenant_data_uploads_response_dto.py deleted file mode 100644 index 9f526c0851..0000000000 --- a/src/visier_api_data_in/test/test_tenant_data_uploads_response_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.tenant_data_uploads_response_dto import TenantDataUploadsResponseDTO - -class TestTenantDataUploadsResponseDTO(unittest.TestCase): - """TenantDataUploadsResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantDataUploadsResponseDTO: - """Test TenantDataUploadsResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantDataUploadsResponseDTO( - tenant_code = '', - uploads = [ - visier_api_data_in.models.tenant_data_upload_status_response_dto.TenantDataUploadStatusResponseDTO( - included = True, - upload_time = '', ) - ] - ) - else: - return TenantDataUploadsResponseDTO( - ) - - def testTenantDataUploadsResponseDTO(self): - """Test TenantDataUploadsResponseDTO""" - def validate_instance(instance): - TenantDataUploadsResponseDTO.model_validate(inst_req_only) - instance_deserialized = TenantDataUploadsResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_tenant_data_uploads_update_response_dto.py b/src/visier_api_data_in/test/test_tenant_data_uploads_update_response_dto.py deleted file mode 100644 index b72a6bc599..0000000000 --- a/src/visier_api_data_in/test/test_tenant_data_uploads_update_response_dto.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.tenant_data_uploads_update_response_dto import TenantDataUploadsUpdateResponseDTO - -class TestTenantDataUploadsUpdateResponseDTO(unittest.TestCase): - """TenantDataUploadsUpdateResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TenantDataUploadsUpdateResponseDTO: - """Test TenantDataUploadsUpdateResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TenantDataUploadsUpdateResponseDTO( - total_failures = 56, - total_success = 56, - uploads = [ - visier_api_data_in.models.tenant_data_upload_update_status_response_dto.TenantDataUploadUpdateStatusResponseDTO( - message = '', - status = '', - tenant_code = '', - upload_time = '', ) - ] - ) - else: - return TenantDataUploadsUpdateResponseDTO( - ) - - def testTenantDataUploadsUpdateResponseDTO(self): - """Test TenantDataUploadsUpdateResponseDTO""" - def validate_instance(instance): - TenantDataUploadsUpdateResponseDTO.model_validate(inst_req_only) - instance_deserialized = TenantDataUploadsUpdateResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_ultimate_auth_params_dto.py b/src/visier_api_data_in/test/test_ultimate_auth_params_dto.py deleted file mode 100644 index 1116a46b59..0000000000 --- a/src/visier_api_data_in/test/test_ultimate_auth_params_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.ultimate_auth_params_dto import UltimateAuthParamsDTO - -class TestUltimateAuthParamsDTO(unittest.TestCase): - """UltimateAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UltimateAuthParamsDTO: - """Test UltimateAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UltimateAuthParamsDTO( - api_key = '', - host_domain_name = '', - password = '', - user_access_key = '', - username = '' - ) - else: - return UltimateAuthParamsDTO( - ) - - def testUltimateAuthParamsDTO(self): - """Test UltimateAuthParamsDTO""" - def validate_instance(instance): - UltimateAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = UltimateAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_upload_to_exclude.py b/src/visier_api_data_in/test/test_upload_to_exclude.py deleted file mode 100644 index 21b27da1fe..0000000000 --- a/src/visier_api_data_in/test/test_upload_to_exclude.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.upload_to_exclude import UploadToExclude - -class TestUploadToExclude(unittest.TestCase): - """UploadToExclude unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UploadToExclude: - """Test UploadToExclude - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UploadToExclude( - exclude_all = True, - max_upload_time = '', - min_upload_time = '', - sources = [ - '' - ], - tenant_code = '', - upload_times = [ - '' - ] - ) - else: - return UploadToExclude( - ) - - def testUploadToExclude(self): - """Test UploadToExclude""" - def validate_instance(instance): - UploadToExclude.model_validate(inst_req_only) - instance_deserialized = UploadToExclude.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_upload_to_include.py b/src/visier_api_data_in/test/test_upload_to_include.py deleted file mode 100644 index 46b3cf751a..0000000000 --- a/src/visier_api_data_in/test/test_upload_to_include.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.upload_to_include import UploadToInclude - -class TestUploadToInclude(unittest.TestCase): - """UploadToInclude unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UploadToInclude: - """Test UploadToInclude - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return UploadToInclude( - include_all = True, - max_upload_time = '', - min_upload_time = '', - sources = [ - '' - ], - tenant_code = '', - upload_times = [ - '' - ] - ) - else: - return UploadToInclude( - ) - - def testUploadToInclude(self): - """Test UploadToInclude""" - def validate_instance(instance): - UploadToInclude.model_validate(inst_req_only) - instance_deserialized = UploadToInclude.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_willow_auth_params_dto.py b/src/visier_api_data_in/test/test_willow_auth_params_dto.py deleted file mode 100644 index 272f2fd20d..0000000000 --- a/src/visier_api_data_in/test/test_willow_auth_params_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.willow_auth_params_dto import WillowAuthParamsDTO - -class TestWillowAuthParamsDTO(unittest.TestCase): - """WillowAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> WillowAuthParamsDTO: - """Test WillowAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return WillowAuthParamsDTO( - api_token = '', - host_name = '' - ) - else: - return WillowAuthParamsDTO( - ) - - def testWillowAuthParamsDTO(self): - """Test WillowAuthParamsDTO""" - def validate_instance(instance): - WillowAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = WillowAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_workday_auth_params_dto.py b/src/visier_api_data_in/test/test_workday_auth_params_dto.py deleted file mode 100644 index 8f3af99bcf..0000000000 --- a/src/visier_api_data_in/test/test_workday_auth_params_dto.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.workday_auth_params_dto import WorkdayAuthParamsDTO - -class TestWorkdayAuthParamsDTO(unittest.TestCase): - """WorkdayAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> WorkdayAuthParamsDTO: - """Test WorkdayAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return WorkdayAuthParamsDTO( - api_key = '', - domain_name = '', - implementation_name = '', - integration_system_id = '', - o_auth = visier_api_data_in.models.workday_o_auth_params_dto.WorkdayOAuthParamsDTO( - api_client_id = '', - private_x509_key = '', - public_x509_cert = '', ), - password = '', - ref_token = visier_api_data_in.models.workday_refresh_token_params_dto.WorkdayRefreshTokenParamsDTO( - api_client_id = '', - client_secret = '', - refresh_token = '', ), - user_id = '' - ) - else: - return WorkdayAuthParamsDTO( - ) - - def testWorkdayAuthParamsDTO(self): - """Test WorkdayAuthParamsDTO""" - def validate_instance(instance): - WorkdayAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = WorkdayAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_workday_o_auth_params_dto.py b/src/visier_api_data_in/test/test_workday_o_auth_params_dto.py deleted file mode 100644 index cab4c1c978..0000000000 --- a/src/visier_api_data_in/test/test_workday_o_auth_params_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.workday_o_auth_params_dto import WorkdayOAuthParamsDTO - -class TestWorkdayOAuthParamsDTO(unittest.TestCase): - """WorkdayOAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> WorkdayOAuthParamsDTO: - """Test WorkdayOAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return WorkdayOAuthParamsDTO( - api_client_id = '', - private_x509_key = '', - public_x509_cert = '' - ) - else: - return WorkdayOAuthParamsDTO( - ) - - def testWorkdayOAuthParamsDTO(self): - """Test WorkdayOAuthParamsDTO""" - def validate_instance(instance): - WorkdayOAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = WorkdayOAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_workday_raas_auth_params_dto.py b/src/visier_api_data_in/test/test_workday_raas_auth_params_dto.py deleted file mode 100644 index 23c42a50fa..0000000000 --- a/src/visier_api_data_in/test/test_workday_raas_auth_params_dto.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.workday_raas_auth_params_dto import WorkdayRaasAuthParamsDTO - -class TestWorkdayRaasAuthParamsDTO(unittest.TestCase): - """WorkdayRaasAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> WorkdayRaasAuthParamsDTO: - """Test WorkdayRaasAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return WorkdayRaasAuthParamsDTO( - domain_name = '', - implementation_name = '', - password = '', - test_report_url = '', - user_id = '' - ) - else: - return WorkdayRaasAuthParamsDTO( - ) - - def testWorkdayRaasAuthParamsDTO(self): - """Test WorkdayRaasAuthParamsDTO""" - def validate_instance(instance): - WorkdayRaasAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = WorkdayRaasAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_workday_refresh_token_params_dto.py b/src/visier_api_data_in/test/test_workday_refresh_token_params_dto.py deleted file mode 100644 index 8c566398be..0000000000 --- a/src/visier_api_data_in/test/test_workday_refresh_token_params_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.workday_refresh_token_params_dto import WorkdayRefreshTokenParamsDTO - -class TestWorkdayRefreshTokenParamsDTO(unittest.TestCase): - """WorkdayRefreshTokenParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> WorkdayRefreshTokenParamsDTO: - """Test WorkdayRefreshTokenParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return WorkdayRefreshTokenParamsDTO( - api_client_id = '', - client_secret = '', - refresh_token = '' - ) - else: - return WorkdayRefreshTokenParamsDTO( - ) - - def testWorkdayRefreshTokenParamsDTO(self): - """Test WorkdayRefreshTokenParamsDTO""" - def validate_instance(instance): - WorkdayRefreshTokenParamsDTO.model_validate(inst_req_only) - instance_deserialized = WorkdayRefreshTokenParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/test/test_zoom_auth_params_dto.py b/src/visier_api_data_in/test/test_zoom_auth_params_dto.py deleted file mode 100644 index 84e9e49d50..0000000000 --- a/src/visier_api_data_in/test/test_zoom_auth_params_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_in.models -from visier_api_data_in.models.zoom_auth_params_dto import ZoomAuthParamsDTO - -class TestZoomAuthParamsDTO(unittest.TestCase): - """ZoomAuthParamsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ZoomAuthParamsDTO: - """Test ZoomAuthParamsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ZoomAuthParamsDTO( - auth_code = '', - client_id = '', - client_secret = '' - ) - else: - return ZoomAuthParamsDTO( - ) - - def testZoomAuthParamsDTO(self): - """Test ZoomAuthParamsDTO""" - def validate_instance(instance): - ZoomAuthParamsDTO.model_validate(inst_req_only) - instance_deserialized = ZoomAuthParamsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_in/visier_api_data_in/__init__.py b/src/visier_api_data_in/visier_api_data_in/__init__.py index 783a014ac2..f0ac7360a4 100644 --- a/src/visier_api_data_in/visier_api_data_in/__init__.py +++ b/src/visier_api_data_in/visier_api_data_in/__init__.py @@ -7,7 +7,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,7 +16,7 @@ """ # noqa: E501 -__version__ = "0.99201.1772" +__version__ = "0.99201.1793" # import apis into sdk package from visier_api_data_in.api.data_and_job_handling_api import DataAndJobHandlingApi @@ -28,145 +28,143 @@ # import models into sdk package -from visier_api_data_in.models.adp_auth_params_dto import AdpAuthParamsDTO -from visier_api_data_in.models.assign_connector_credential_request import AssignConnectorCredentialRequest -from visier_api_data_in.models.assign_connector_credentials_by_tenant_response_dto import AssignConnectorCredentialsByTenantResponseDTO -from visier_api_data_in.models.assign_connector_credentials_response_dto import AssignConnectorCredentialsResponseDTO -from visier_api_data_in.models.assign_connector_with_credentials_response_dto import AssignConnectorWithCredentialsResponseDTO -from visier_api_data_in.models.assigned_credential_info_response_dto import AssignedCredentialInfoResponseDTO -from visier_api_data_in.models.bamboo_auth_params_dto import BambooAuthParamsDTO -from visier_api_data_in.models.basic_s3_auth_params_dto import BasicS3AuthParamsDTO -from visier_api_data_in.models.big_query_auth_params_dto import BigQueryAuthParamsDTO -from visier_api_data_in.models.big_query_service_account_params_dto import BigQueryServiceAccountParamsDTO -from visier_api_data_in.models.cancel_job_batch_from_job_id_dto import CancelJobBatchFromJobIdDTO -from visier_api_data_in.models.connector import Connector -from visier_api_data_in.models.connector_info_response_dto import ConnectorInfoResponseDTO -from visier_api_data_in.models.connector_setting_request_dto import ConnectorSettingRequestDTO -from visier_api_data_in.models.connector_setting_response_dto import ConnectorSettingResponseDTO -from visier_api_data_in.models.connector_settings_response_dto import ConnectorSettingsResponseDTO -from visier_api_data_in.models.consolidated_analytics_job_request_dto import ConsolidatedAnalyticsJobRequestDTO -from visier_api_data_in.models.copy_s3_auth_params_dto import CopyS3AuthParamsDTO -from visier_api_data_in.models.credential_creation_api_response_dto import CredentialCreationAPIResponseDTO -from visier_api_data_in.models.data_categories_response_dto import DataCategoriesResponseDTO -from visier_api_data_in.models.data_category_response_dto import DataCategoryResponseDTO -from visier_api_data_in.models.data_load_request import DataLoadRequest -from visier_api_data_in.models.data_load_request_model import DataLoadRequestModel -from visier_api_data_in.models.data_load_response import DataLoadResponse -from visier_api_data_in.models.data_provider_auth_information_dto import DataProviderAuthInformationDTO -from visier_api_data_in.models.data_provider_auth_params_dto import DataProviderAuthParamsDTO -from visier_api_data_in.models.data_provider_basic_information_dto import DataProviderBasicInformationDTO -from visier_api_data_in.models.data_provider_basic_metadata_dto import DataProviderBasicMetadataDTO -from visier_api_data_in.models.data_transfer_result_detail import DataTransferResultDetail -from visier_api_data_in.models.data_version_and_date_dto import DataVersionAndDateDTO -from visier_api_data_in.models.data_version_object import DataVersionObject -from visier_api_data_in.models.dayforce_v2_auth_params_dto import DayforceV2AuthParamsDTO -from visier_api_data_in.models.dimensions_auth_params_dto import DimensionsAuthParamsDTO -from visier_api_data_in.models.direct_data_job_config_dto import DirectDataJobConfigDTO -from visier_api_data_in.models.direct_data_job_status_response_dto import DirectDataJobStatusResponseDTO -from visier_api_data_in.models.direct_data_load_config_dto import DirectDataLoadConfigDTO -from visier_api_data_in.models.direct_data_schema_dto import DirectDataSchemaDTO -from visier_api_data_in.models.direct_data_schema_field_dto import DirectDataSchemaFieldDTO -from visier_api_data_in.models.direct_data_transaction_start_response_dto import DirectDataTransactionStartResponseDTO +from visier_api_data_in.models.admin_data_transfers_import_definition_apidto import AdminDataTransfersImportDefinitionAPIDTO +from visier_api_data_in.models.admin_data_transfers_import_definitions_apidto import AdminDataTransfersImportDefinitionsAPIDTO +from visier_api_data_in.models.admin_jobs_consolidated_analytics_job_request_dto import AdminJobsConsolidatedAnalyticsJobRequestDTO +from visier_api_data_in.models.admin_jobs_extract_data_and_load_dto import AdminJobsExtractDataAndLoadDTO +from visier_api_data_in.models.admin_jobs_processing_job_request_dto import AdminJobsProcessingJobRequestDTO +from visier_api_data_in.models.admin_transfers_assign_connector_credentials_by_tenant_response_dto import AdminTransfersAssignConnectorCredentialsByTenantResponseDTO +from visier_api_data_in.models.admin_transfers_assign_connector_credentials_response_dto import AdminTransfersAssignConnectorCredentialsResponseDTO +from visier_api_data_in.models.admin_transfers_assign_connector_with_credentials_response_dto import AdminTransfersAssignConnectorWithCredentialsResponseDTO +from visier_api_data_in.models.admin_transfers_assigned_credential_info_response_dto import AdminTransfersAssignedCredentialInfoResponseDTO +from visier_api_data_in.models.admin_transfers_connector_info_response_dto import AdminTransfersConnectorInfoResponseDTO +from visier_api_data_in.models.admin_transfers_connector_setting_request_dto import AdminTransfersConnectorSettingRequestDTO +from visier_api_data_in.models.admin_transfers_connector_setting_response_dto import AdminTransfersConnectorSettingResponseDTO +from visier_api_data_in.models.admin_transfers_connector_settings_response_dto import AdminTransfersConnectorSettingsResponseDTO +from visier_api_data_in.models.admin_transfers_data_version_and_date_dto import AdminTransfersDataVersionAndDateDTO +from visier_api_data_in.models.admin_transfers_extractor_setting_apidto import AdminTransfersExtractorSettingAPIDTO +from visier_api_data_in.models.admin_transfers_extractor_setting_key_value_apidto import AdminTransfersExtractorSettingKeyValueAPIDTO +from visier_api_data_in.models.admin_transfers_extractor_settings_apidto import AdminTransfersExtractorSettingsAPIDTO +from visier_api_data_in.models.admin_transfers_multiple_tenant_data_versions_details_dto import AdminTransfersMultipleTenantDataVersionsDetailsDTO +from visier_api_data_in.models.admin_transfers_multiple_tenant_data_versions_list_dto import AdminTransfersMultipleTenantDataVersionsListDTO +from visier_api_data_in.models.admin_transfers_set_connector_setting_request_dto import AdminTransfersSetConnectorSettingRequestDTO +from visier_api_data_in.models.admin_transfers_set_connector_setting_response_dto import AdminTransfersSetConnectorSettingResponseDTO +from visier_api_data_in.models.admin_transfers_set_connector_settings_request_dto import AdminTransfersSetConnectorSettingsRequestDTO +from visier_api_data_in.models.admin_transfers_set_connector_settings_response_dto import AdminTransfersSetConnectorSettingsResponseDTO +from visier_api_data_in.models.admin_transfers_tenant_connector_settings_request_dto import AdminTransfersTenantConnectorSettingsRequestDTO +from visier_api_data_in.models.data_in_assign_connector_credential_request import DataInAssignConnectorCredentialRequest +from visier_api_data_in.models.data_in_connector import DataInConnector +from visier_api_data_in.models.data_in_data_load_request import DataInDataLoadRequest +from visier_api_data_in.models.data_in_data_load_request_model import DataInDataLoadRequestModel +from visier_api_data_in.models.data_in_data_load_response import DataInDataLoadResponse +from visier_api_data_in.models.data_in_data_transfer_result_detail import DataInDataTransferResultDetail +from visier_api_data_in.models.data_in_data_version_object import DataInDataVersionObject +from visier_api_data_in.models.data_in_disable_dv_model import DataInDisableDVModel +from visier_api_data_in.models.data_in_disable_dv_request import DataInDisableDVRequest +from visier_api_data_in.models.data_in_disable_dv_response import DataInDisableDVResponse +from visier_api_data_in.models.data_in_dispatching_job_status_response import DataInDispatchingJobStatusResponse +from visier_api_data_in.models.data_in_exclude_data_uploads_request import DataInExcludeDataUploadsRequest +from visier_api_data_in.models.data_in_extraction_job import DataInExtractionJob +from visier_api_data_in.models.data_in_extraction_job_and_status_response import DataInExtractionJobAndStatusResponse +from visier_api_data_in.models.data_in_include_data_uploads_request import DataInIncludeDataUploadsRequest +from visier_api_data_in.models.data_in_job_status_list_response import DataInJobStatusListResponse +from visier_api_data_in.models.data_in_job_status_with_start_time import DataInJobStatusWithStartTime +from visier_api_data_in.models.data_in_processing_job import DataInProcessingJob +from visier_api_data_in.models.data_in_processing_job_and_status_response import DataInProcessingJobAndStatusResponse +from visier_api_data_in.models.data_in_processing_job_status_response import DataInProcessingJobStatusResponse +from visier_api_data_in.models.data_in_push_data_cancel_response import DataInPushDataCancelResponse +from visier_api_data_in.models.data_in_push_data_complete_request import DataInPushDataCompleteRequest +from visier_api_data_in.models.data_in_push_data_complete_response import DataInPushDataCompleteResponse +from visier_api_data_in.models.data_in_push_data_response import DataInPushDataResponse +from visier_api_data_in.models.data_in_receiving_job import DataInReceivingJob +from visier_api_data_in.models.data_in_receiving_job_and_status_response import DataInReceivingJobAndStatusResponse +from visier_api_data_in.models.data_in_receiving_job_status_response import DataInReceivingJobStatusResponse +from visier_api_data_in.models.data_in_result import DataInResult +from visier_api_data_in.models.data_in_source import DataInSource +from visier_api_data_in.models.data_in_start_extraction_response import DataInStartExtractionResponse +from visier_api_data_in.models.data_in_start_transfer_response import DataInStartTransferResponse +from visier_api_data_in.models.data_in_tenant import DataInTenant +from visier_api_data_in.models.data_in_tenant_and_credential import DataInTenantAndCredential +from visier_api_data_in.models.data_in_upload_to_exclude import DataInUploadToExclude +from visier_api_data_in.models.data_in_upload_to_include import DataInUploadToInclude +from visier_api_data_in.models.designer_crypto_key_pair_delete_response_dto import DesignerCryptoKeyPairDeleteResponseDTO +from visier_api_data_in.models.designer_crypto_key_pair_generate_request_dto import DesignerCryptoKeyPairGenerateRequestDTO +from visier_api_data_in.models.designer_crypto_public_key_dto import DesignerCryptoPublicKeyDTO +from visier_api_data_in.models.designer_crypto_public_keys_dto import DesignerCryptoPublicKeysDTO +from visier_api_data_in.models.designer_transfers_adp_auth_params_dto import DesignerTransfersAdpAuthParamsDTO +from visier_api_data_in.models.designer_transfers_bamboo_auth_params_dto import DesignerTransfersBambooAuthParamsDTO +from visier_api_data_in.models.designer_transfers_basic_s3_auth_params_dto import DesignerTransfersBasicS3AuthParamsDTO +from visier_api_data_in.models.designer_transfers_big_query_auth_params_dto import DesignerTransfersBigQueryAuthParamsDTO +from visier_api_data_in.models.designer_transfers_big_query_service_account_params_dto import DesignerTransfersBigQueryServiceAccountParamsDTO +from visier_api_data_in.models.designer_transfers_copy_s3_auth_params_dto import DesignerTransfersCopyS3AuthParamsDTO +from visier_api_data_in.models.designer_transfers_credential_creation_api_response_dto import DesignerTransfersCredentialCreationAPIResponseDTO +from visier_api_data_in.models.designer_transfers_data_provider_auth_information_dto import DesignerTransfersDataProviderAuthInformationDTO +from visier_api_data_in.models.designer_transfers_data_provider_auth_params_dto import DesignerTransfersDataProviderAuthParamsDTO +from visier_api_data_in.models.designer_transfers_data_provider_basic_information_dto import DesignerTransfersDataProviderBasicInformationDTO +from visier_api_data_in.models.designer_transfers_data_provider_basic_metadata_dto import DesignerTransfersDataProviderBasicMetadataDTO +from visier_api_data_in.models.designer_transfers_dayforce_v2_auth_params_dto import DesignerTransfersDayforceV2AuthParamsDTO +from visier_api_data_in.models.designer_transfers_dimensions_auth_params_dto import DesignerTransfersDimensionsAuthParamsDTO +from visier_api_data_in.models.designer_transfers_extractor_credential_apidto import DesignerTransfersExtractorCredentialAPIDTO +from visier_api_data_in.models.designer_transfers_extractor_credentials_apidto import DesignerTransfersExtractorCredentialsAPIDTO +from visier_api_data_in.models.designer_transfers_fusion_auth_params_dto import DesignerTransfersFusionAuthParamsDTO +from visier_api_data_in.models.designer_transfers_gong_auth_params_dto import DesignerTransfersGongAuthParamsDTO +from visier_api_data_in.models.designer_transfers_google_sheets_auth_params_dto import DesignerTransfersGoogleSheetsAuthParamsDTO +from visier_api_data_in.models.designer_transfers_google_workspace_auth_params_dto import DesignerTransfersGoogleWorkspaceAuthParamsDTO +from visier_api_data_in.models.designer_transfers_greenhouse_auth_params_dto import DesignerTransfersGreenhouseAuthParamsDTO +from visier_api_data_in.models.designer_transfers_icims_auth_params_dto import DesignerTransfersIcimsAuthParamsDTO +from visier_api_data_in.models.designer_transfers_internal_s3_auth_params_dto import DesignerTransfersInternalS3AuthParamsDTO +from visier_api_data_in.models.designer_transfers_jdbc_auth_params_dto import DesignerTransfersJdbcAuthParamsDTO +from visier_api_data_in.models.designer_transfers_jira_auth_params_dto import DesignerTransfersJiraAuthParamsDTO +from visier_api_data_in.models.designer_transfers_jira_connect_params_dto import DesignerTransfersJiraConnectParamsDTO +from visier_api_data_in.models.designer_transfers_lever_auth_params_dto import DesignerTransfersLeverAuthParamsDTO +from visier_api_data_in.models.designer_transfers_medallia_auth_params_dto import DesignerTransfersMedalliaAuthParamsDTO +from visier_api_data_in.models.designer_transfers_microsoft365_auth_params_dto import DesignerTransfersMicrosoft365AuthParamsDTO +from visier_api_data_in.models.designer_transfers_my_sql_auth_params_dto import DesignerTransfersMySqlAuthParamsDTO +from visier_api_data_in.models.designer_transfers_namely_auth_params_dto import DesignerTransfersNamelyAuthParamsDTO +from visier_api_data_in.models.designer_transfers_oracle_db_auth_params_dto import DesignerTransfersOracleDbAuthParamsDTO +from visier_api_data_in.models.designer_transfers_push_data_column_definition_dto import DesignerTransfersPushDataColumnDefinitionDTO +from visier_api_data_in.models.designer_transfers_push_data_source_definition_dto import DesignerTransfersPushDataSourceDefinitionDTO +from visier_api_data_in.models.designer_transfers_push_data_source_definitions_dto import DesignerTransfersPushDataSourceDefinitionsDTO +from visier_api_data_in.models.designer_transfers_qualtrics_auth_params_dto import DesignerTransfersQualtricsAuthParamsDTO +from visier_api_data_in.models.designer_transfers_redshift_auth_params_dto import DesignerTransfersRedshiftAuthParamsDTO +from visier_api_data_in.models.designer_transfers_salesforce_auth_params_dto import DesignerTransfersSalesforceAuthParamsDTO +from visier_api_data_in.models.designer_transfers_salesforce_v2_auth_params_dto import DesignerTransfersSalesforceV2AuthParamsDTO +from visier_api_data_in.models.designer_transfers_service_now_auth_params_dto import DesignerTransfersServiceNowAuthParamsDTO +from visier_api_data_in.models.designer_transfers_service_now_v2_auth_params_dto import DesignerTransfersServiceNowV2AuthParamsDTO +from visier_api_data_in.models.designer_transfers_slack_auth_params_dto import DesignerTransfersSlackAuthParamsDTO +from visier_api_data_in.models.designer_transfers_snowflake_auth_params_dto import DesignerTransfersSnowflakeAuthParamsDTO +from visier_api_data_in.models.designer_transfers_sql_server_auth_params_dto import DesignerTransfersSqlServerAuthParamsDTO +from visier_api_data_in.models.designer_transfers_subject_missing_access_dto import DesignerTransfersSubjectMissingAccessDTO +from visier_api_data_in.models.designer_transfers_success_factors_auth_params_dto import DesignerTransfersSuccessFactorsAuthParamsDTO +from visier_api_data_in.models.designer_transfers_success_factors_o_auth_params_dto import DesignerTransfersSuccessFactorsOAuthParamsDTO +from visier_api_data_in.models.designer_transfers_ultimate_auth_params_dto import DesignerTransfersUltimateAuthParamsDTO +from visier_api_data_in.models.designer_transfers_willow_auth_params_dto import DesignerTransfersWillowAuthParamsDTO +from visier_api_data_in.models.designer_transfers_workday_auth_params_dto import DesignerTransfersWorkdayAuthParamsDTO +from visier_api_data_in.models.designer_transfers_workday_o_auth_params_dto import DesignerTransfersWorkdayOAuthParamsDTO +from visier_api_data_in.models.designer_transfers_workday_raas_auth_params_dto import DesignerTransfersWorkdayRaasAuthParamsDTO +from visier_api_data_in.models.designer_transfers_workday_refresh_token_params_dto import DesignerTransfersWorkdayRefreshTokenParamsDTO +from visier_api_data_in.models.designer_transfers_zoom_auth_params_dto import DesignerTransfersZoomAuthParamsDTO from visier_api_data_in.models.direct_data_upload_file_response_dto import DirectDataUploadFileResponseDTO -from visier_api_data_in.models.disable_dv_model import DisableDVModel -from visier_api_data_in.models.disable_dv_request import DisableDVRequest -from visier_api_data_in.models.disable_dv_response import DisableDVResponse -from visier_api_data_in.models.dispatching_job_status_response import DispatchingJobStatusResponse -from visier_api_data_in.models.exclude_data_uploads_request import ExcludeDataUploadsRequest -from visier_api_data_in.models.extract_data_and_load_dto import ExtractDataAndLoadDTO -from visier_api_data_in.models.extraction_job import ExtractionJob -from visier_api_data_in.models.extraction_job_and_status_response import ExtractionJobAndStatusResponse -from visier_api_data_in.models.extractor_credential_apidto import ExtractorCredentialAPIDTO -from visier_api_data_in.models.extractor_credentials_apidto import ExtractorCredentialsAPIDTO -from visier_api_data_in.models.extractor_setting_apidto import ExtractorSettingAPIDTO -from visier_api_data_in.models.extractor_setting_key_value_apidto import ExtractorSettingKeyValueAPIDTO -from visier_api_data_in.models.extractor_settings_apidto import ExtractorSettingsAPIDTO -from visier_api_data_in.models.fusion_auth_params_dto import FusionAuthParamsDTO -from visier_api_data_in.models.gong_auth_params_dto import GongAuthParamsDTO -from visier_api_data_in.models.google_protobuf_any import GoogleProtobufAny -from visier_api_data_in.models.google_sheets_auth_params_dto import GoogleSheetsAuthParamsDTO -from visier_api_data_in.models.google_workspace_auth_params_dto import GoogleWorkspaceAuthParamsDTO -from visier_api_data_in.models.greenhouse_auth_params_dto import GreenhouseAuthParamsDTO -from visier_api_data_in.models.icims_auth_params_dto import IcimsAuthParamsDTO -from visier_api_data_in.models.import_definition_apidto import ImportDefinitionAPIDTO -from visier_api_data_in.models.import_definitions_apidto import ImportDefinitionsAPIDTO -from visier_api_data_in.models.include_data_uploads_request import IncludeDataUploadsRequest -from visier_api_data_in.models.internal_s3_auth_params_dto import InternalS3AuthParamsDTO -from visier_api_data_in.models.jdbc_auth_params_dto import JdbcAuthParamsDTO -from visier_api_data_in.models.jira_auth_params_dto import JiraAuthParamsDTO -from visier_api_data_in.models.jira_connect_params_dto import JiraConnectParamsDTO -from visier_api_data_in.models.job_cancellation_result_dto import JobCancellationResultDTO -from visier_api_data_in.models.job_cancellation_results_dto import JobCancellationResultsDTO -from visier_api_data_in.models.job_id_response import JobIdResponse -from visier_api_data_in.models.job_status_list_response import JobStatusListResponse -from visier_api_data_in.models.job_status_with_start_time import JobStatusWithStartTime -from visier_api_data_in.models.key_pair_delete_response_dto import KeyPairDeleteResponseDTO -from visier_api_data_in.models.key_pair_generate_request_dto import KeyPairGenerateRequestDTO -from visier_api_data_in.models.lever_auth_params_dto import LeverAuthParamsDTO -from visier_api_data_in.models.medallia_auth_params_dto import MedalliaAuthParamsDTO -from visier_api_data_in.models.microsoft365_auth_params_dto import Microsoft365AuthParamsDTO -from visier_api_data_in.models.multiple_tenant_data_versions_details_dto import MultipleTenantDataVersionsDetailsDTO -from visier_api_data_in.models.multiple_tenant_data_versions_list_dto import MultipleTenantDataVersionsListDTO -from visier_api_data_in.models.my_sql_auth_params_dto import MySqlAuthParamsDTO -from visier_api_data_in.models.namely_auth_params_dto import NamelyAuthParamsDTO -from visier_api_data_in.models.oracle_db_auth_params_dto import OracleDbAuthParamsDTO +from visier_api_data_in.models.dp_transfers_cancel_job_batch_from_job_id_dto import DpTransfersCancelJobBatchFromJobIdDTO +from visier_api_data_in.models.dp_transfers_job_cancellation_result_dto import DpTransfersJobCancellationResultDTO +from visier_api_data_in.models.dp_transfers_job_cancellation_results_dto import DpTransfersJobCancellationResultsDTO from visier_api_data_in.models.plan_data_load_change_dto import PlanDataLoadChangeDTO from visier_api_data_in.models.plan_data_load_change_list_dto import PlanDataLoadChangeListDTO -from visier_api_data_in.models.plan_data_load_error_dto import PlanDataLoadErrorDTO from visier_api_data_in.models.plan_data_upload_response_dto import PlanDataUploadResponseDTO from visier_api_data_in.models.plan_row_data_load_response_dto import PlanRowDataLoadResponseDTO -from visier_api_data_in.models.plan_segment_level_member_dto import PlanSegmentLevelMemberDTO -from visier_api_data_in.models.processing_job import ProcessingJob -from visier_api_data_in.models.processing_job_and_status_response import ProcessingJobAndStatusResponse -from visier_api_data_in.models.processing_job_request_dto import ProcessingJobRequestDTO -from visier_api_data_in.models.processing_job_status_response import ProcessingJobStatusResponse -from visier_api_data_in.models.public_key_dto import PublicKeyDTO -from visier_api_data_in.models.public_keys_dto import PublicKeysDTO -from visier_api_data_in.models.push_data_cancel_response import PushDataCancelResponse -from visier_api_data_in.models.push_data_column_definition_dto import PushDataColumnDefinitionDTO -from visier_api_data_in.models.push_data_complete_request import PushDataCompleteRequest -from visier_api_data_in.models.push_data_complete_response import PushDataCompleteResponse -from visier_api_data_in.models.push_data_response import PushDataResponse -from visier_api_data_in.models.push_data_source_definition_dto import PushDataSourceDefinitionDTO -from visier_api_data_in.models.push_data_source_definitions_dto import PushDataSourceDefinitionsDTO -from visier_api_data_in.models.qualtrics_auth_params_dto import QualtricsAuthParamsDTO -from visier_api_data_in.models.receiving_job import ReceivingJob -from visier_api_data_in.models.receiving_job_and_status_response import ReceivingJobAndStatusResponse -from visier_api_data_in.models.receiving_job_status_response import ReceivingJobStatusResponse -from visier_api_data_in.models.redshift_auth_params_dto import RedshiftAuthParamsDTO -from visier_api_data_in.models.result import Result -from visier_api_data_in.models.salesforce_auth_params_dto import SalesforceAuthParamsDTO -from visier_api_data_in.models.salesforce_v2_auth_params_dto import SalesforceV2AuthParamsDTO -from visier_api_data_in.models.service_now_auth_params_dto import ServiceNowAuthParamsDTO -from visier_api_data_in.models.service_now_v2_auth_params_dto import ServiceNowV2AuthParamsDTO -from visier_api_data_in.models.set_connector_setting_request_dto import SetConnectorSettingRequestDTO -from visier_api_data_in.models.set_connector_setting_response_dto import SetConnectorSettingResponseDTO -from visier_api_data_in.models.set_connector_settings_request_dto import SetConnectorSettingsRequestDTO -from visier_api_data_in.models.set_connector_settings_response_dto import SetConnectorSettingsResponseDTO -from visier_api_data_in.models.slack_auth_params_dto import SlackAuthParamsDTO -from visier_api_data_in.models.snowflake_auth_params_dto import SnowflakeAuthParamsDTO -from visier_api_data_in.models.source import Source -from visier_api_data_in.models.sql_server_auth_params_dto import SqlServerAuthParamsDTO -from visier_api_data_in.models.start_extraction_response import StartExtractionResponse -from visier_api_data_in.models.start_transfer_response import StartTransferResponse +from visier_api_data_in.models.servicing_publicapi_transfers_data_categories_response_dto import ServicingPublicapiTransfersDataCategoriesResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_data_category_response_dto import ServicingPublicapiTransfersDataCategoryResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_job_config_dto import ServicingPublicapiTransfersDirectDataJobConfigDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_job_status_response_dto import ServicingPublicapiTransfersDirectDataJobStatusResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_load_config_dto import ServicingPublicapiTransfersDirectDataLoadConfigDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_schema_dto import ServicingPublicapiTransfersDirectDataSchemaDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_schema_field_dto import ServicingPublicapiTransfersDirectDataSchemaFieldDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_transaction_start_response_dto import ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_upload_file_response_dto import ServicingPublicapiTransfersDirectDataUploadFileResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_job_id_response import ServicingPublicapiTransfersJobIdResponse +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_upload_status_response_dto import ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_upload_update_status_response_dto import ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_uploads_list_response_dto import ServicingPublicapiTransfersTenantDataUploadsListResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_uploads_response_dto import ServicingPublicapiTransfersTenantDataUploadsResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_uploads_update_response_dto import ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO from visier_api_data_in.models.status import Status -from visier_api_data_in.models.subject_missing_access_dto import SubjectMissingAccessDTO -from visier_api_data_in.models.success_factors_auth_params_dto import SuccessFactorsAuthParamsDTO -from visier_api_data_in.models.success_factors_o_auth_params_dto import SuccessFactorsOAuthParamsDTO -from visier_api_data_in.models.tenant import Tenant -from visier_api_data_in.models.tenant_and_credential import TenantAndCredential -from visier_api_data_in.models.tenant_connector_settings_request_dto import TenantConnectorSettingsRequestDTO -from visier_api_data_in.models.tenant_data_upload_status_response_dto import TenantDataUploadStatusResponseDTO -from visier_api_data_in.models.tenant_data_upload_update_status_response_dto import TenantDataUploadUpdateStatusResponseDTO -from visier_api_data_in.models.tenant_data_uploads_list_response_dto import TenantDataUploadsListResponseDTO -from visier_api_data_in.models.tenant_data_uploads_response_dto import TenantDataUploadsResponseDTO -from visier_api_data_in.models.tenant_data_uploads_update_response_dto import TenantDataUploadsUpdateResponseDTO -from visier_api_data_in.models.ultimate_auth_params_dto import UltimateAuthParamsDTO -from visier_api_data_in.models.upload_to_exclude import UploadToExclude -from visier_api_data_in.models.upload_to_include import UploadToInclude -from visier_api_data_in.models.willow_auth_params_dto import WillowAuthParamsDTO -from visier_api_data_in.models.workday_auth_params_dto import WorkdayAuthParamsDTO -from visier_api_data_in.models.workday_o_auth_params_dto import WorkdayOAuthParamsDTO -from visier_api_data_in.models.workday_raas_auth_params_dto import WorkdayRaasAuthParamsDTO -from visier_api_data_in.models.workday_refresh_token_params_dto import WorkdayRefreshTokenParamsDTO -from visier_api_data_in.models.zoom_auth_params_dto import ZoomAuthParamsDTO diff --git a/src/visier_api_data_in/visier_api_data_in/api/data_and_job_handling_api.py b/src/visier_api_data_in/visier_api_data_in/api/data_and_job_handling_api.py index 15af0802fe..9f0a41819d 100644 --- a/src/visier_api_data_in/visier_api_data_in/api/data_and_job_handling_api.py +++ b/src/visier_api_data_in/visier_api_data_in/api/data_and_job_handling_api.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,39 +23,39 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_data_in.models.assign_connector_credential_request import AssignConnectorCredentialRequest -from visier_api_data_in.models.assign_connector_credentials_response_dto import AssignConnectorCredentialsResponseDTO -from visier_api_data_in.models.cancel_job_batch_from_job_id_dto import CancelJobBatchFromJobIdDTO -from visier_api_data_in.models.consolidated_analytics_job_request_dto import ConsolidatedAnalyticsJobRequestDTO -from visier_api_data_in.models.credential_creation_api_response_dto import CredentialCreationAPIResponseDTO -from visier_api_data_in.models.data_categories_response_dto import DataCategoriesResponseDTO -from visier_api_data_in.models.data_load_request import DataLoadRequest -from visier_api_data_in.models.data_load_response import DataLoadResponse -from visier_api_data_in.models.data_provider_auth_information_dto import DataProviderAuthInformationDTO -from visier_api_data_in.models.disable_dv_request import DisableDVRequest -from visier_api_data_in.models.disable_dv_response import DisableDVResponse -from visier_api_data_in.models.dispatching_job_status_response import DispatchingJobStatusResponse -from visier_api_data_in.models.exclude_data_uploads_request import ExcludeDataUploadsRequest -from visier_api_data_in.models.extract_data_and_load_dto import ExtractDataAndLoadDTO -from visier_api_data_in.models.extraction_job_and_status_response import ExtractionJobAndStatusResponse -from visier_api_data_in.models.extractor_credentials_apidto import ExtractorCredentialsAPIDTO -from visier_api_data_in.models.extractor_settings_apidto import ExtractorSettingsAPIDTO -from visier_api_data_in.models.import_definitions_apidto import ImportDefinitionsAPIDTO -from visier_api_data_in.models.include_data_uploads_request import IncludeDataUploadsRequest -from visier_api_data_in.models.job_cancellation_results_dto import JobCancellationResultsDTO -from visier_api_data_in.models.job_id_response import JobIdResponse -from visier_api_data_in.models.job_status_list_response import JobStatusListResponse -from visier_api_data_in.models.multiple_tenant_data_versions_list_dto import MultipleTenantDataVersionsListDTO -from visier_api_data_in.models.processing_job_and_status_response import ProcessingJobAndStatusResponse -from visier_api_data_in.models.processing_job_request_dto import ProcessingJobRequestDTO -from visier_api_data_in.models.processing_job_status_response import ProcessingJobStatusResponse -from visier_api_data_in.models.receiving_job_and_status_response import ReceivingJobAndStatusResponse -from visier_api_data_in.models.receiving_job_status_response import ReceivingJobStatusResponse -from visier_api_data_in.models.set_connector_settings_request_dto import SetConnectorSettingsRequestDTO -from visier_api_data_in.models.set_connector_settings_response_dto import SetConnectorSettingsResponseDTO -from visier_api_data_in.models.start_extraction_response import StartExtractionResponse -from visier_api_data_in.models.tenant_data_uploads_list_response_dto import TenantDataUploadsListResponseDTO -from visier_api_data_in.models.tenant_data_uploads_update_response_dto import TenantDataUploadsUpdateResponseDTO +from visier_api_data_in.models.admin_data_transfers_import_definitions_apidto import AdminDataTransfersImportDefinitionsAPIDTO +from visier_api_data_in.models.admin_jobs_consolidated_analytics_job_request_dto import AdminJobsConsolidatedAnalyticsJobRequestDTO +from visier_api_data_in.models.admin_jobs_extract_data_and_load_dto import AdminJobsExtractDataAndLoadDTO +from visier_api_data_in.models.admin_jobs_processing_job_request_dto import AdminJobsProcessingJobRequestDTO +from visier_api_data_in.models.admin_transfers_assign_connector_credentials_response_dto import AdminTransfersAssignConnectorCredentialsResponseDTO +from visier_api_data_in.models.admin_transfers_extractor_settings_apidto import AdminTransfersExtractorSettingsAPIDTO +from visier_api_data_in.models.admin_transfers_multiple_tenant_data_versions_list_dto import AdminTransfersMultipleTenantDataVersionsListDTO +from visier_api_data_in.models.admin_transfers_set_connector_settings_request_dto import AdminTransfersSetConnectorSettingsRequestDTO +from visier_api_data_in.models.admin_transfers_set_connector_settings_response_dto import AdminTransfersSetConnectorSettingsResponseDTO +from visier_api_data_in.models.data_in_assign_connector_credential_request import DataInAssignConnectorCredentialRequest +from visier_api_data_in.models.data_in_data_load_request import DataInDataLoadRequest +from visier_api_data_in.models.data_in_data_load_response import DataInDataLoadResponse +from visier_api_data_in.models.data_in_disable_dv_request import DataInDisableDVRequest +from visier_api_data_in.models.data_in_disable_dv_response import DataInDisableDVResponse +from visier_api_data_in.models.data_in_dispatching_job_status_response import DataInDispatchingJobStatusResponse +from visier_api_data_in.models.data_in_exclude_data_uploads_request import DataInExcludeDataUploadsRequest +from visier_api_data_in.models.data_in_extraction_job_and_status_response import DataInExtractionJobAndStatusResponse +from visier_api_data_in.models.data_in_include_data_uploads_request import DataInIncludeDataUploadsRequest +from visier_api_data_in.models.data_in_job_status_list_response import DataInJobStatusListResponse +from visier_api_data_in.models.data_in_processing_job_and_status_response import DataInProcessingJobAndStatusResponse +from visier_api_data_in.models.data_in_processing_job_status_response import DataInProcessingJobStatusResponse +from visier_api_data_in.models.data_in_receiving_job_and_status_response import DataInReceivingJobAndStatusResponse +from visier_api_data_in.models.data_in_receiving_job_status_response import DataInReceivingJobStatusResponse +from visier_api_data_in.models.data_in_start_extraction_response import DataInStartExtractionResponse +from visier_api_data_in.models.designer_transfers_credential_creation_api_response_dto import DesignerTransfersCredentialCreationAPIResponseDTO +from visier_api_data_in.models.designer_transfers_data_provider_auth_information_dto import DesignerTransfersDataProviderAuthInformationDTO +from visier_api_data_in.models.designer_transfers_extractor_credentials_apidto import DesignerTransfersExtractorCredentialsAPIDTO +from visier_api_data_in.models.dp_transfers_cancel_job_batch_from_job_id_dto import DpTransfersCancelJobBatchFromJobIdDTO +from visier_api_data_in.models.dp_transfers_job_cancellation_results_dto import DpTransfersJobCancellationResultsDTO +from visier_api_data_in.models.servicing_publicapi_transfers_data_categories_response_dto import ServicingPublicapiTransfersDataCategoriesResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_job_id_response import ServicingPublicapiTransfersJobIdResponse +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_uploads_list_response_dto import ServicingPublicapiTransfersTenantDataUploadsListResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_uploads_update_response_dto import ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO import visier_api_data_in.models @@ -74,7 +74,7 @@ def __init__(self, api_client=None) -> None: @validate_call def adhoc_consolidated_analytics_job( self, - consolidated_analytics_job_request_dto: ConsolidatedAnalyticsJobRequestDTO, + admin_jobs_consolidated_analytics_job_request_dto: AdminJobsConsolidatedAnalyticsJobRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -88,13 +88,13 @@ def adhoc_consolidated_analytics_job( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> JobIdResponse: + ) -> ServicingPublicapiTransfersJobIdResponse: """Run a consolidated analytics job Run a job for a consolidated analytics tenant. This request retrieves data for all source tenants in a consolidated analytics tenant. After the job completes, you can run a processing job to generate a data version for the consolidated analytics tenant. To run a processing job, see `POST /v1alpha/op/jobs/processing-jobs`. - :param consolidated_analytics_job_request_dto: (required) - :type consolidated_analytics_job_request_dto: ConsolidatedAnalyticsJobRequestDTO + :param admin_jobs_consolidated_analytics_job_request_dto: (required) + :type admin_jobs_consolidated_analytics_job_request_dto: AdminJobsConsolidatedAnalyticsJobRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -120,7 +120,7 @@ def adhoc_consolidated_analytics_job( """ # noqa: E501 _param = self._adhoc_consolidated_analytics_job_serialize( - consolidated_analytics_job_request_dto=consolidated_analytics_job_request_dto, + admin_jobs_consolidated_analytics_job_request_dto=admin_jobs_consolidated_analytics_job_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -129,7 +129,7 @@ def adhoc_consolidated_analytics_job( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "JobIdResponse", + '200': "ServicingPublicapiTransfersJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -146,7 +146,7 @@ def adhoc_consolidated_analytics_job( @validate_call def adhoc_consolidated_analytics_job_with_http_info( self, - consolidated_analytics_job_request_dto: ConsolidatedAnalyticsJobRequestDTO, + admin_jobs_consolidated_analytics_job_request_dto: AdminJobsConsolidatedAnalyticsJobRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -160,13 +160,13 @@ def adhoc_consolidated_analytics_job_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[JobIdResponse]: + ) -> ApiResponse[ServicingPublicapiTransfersJobIdResponse]: """Run a consolidated analytics job Run a job for a consolidated analytics tenant. This request retrieves data for all source tenants in a consolidated analytics tenant. After the job completes, you can run a processing job to generate a data version for the consolidated analytics tenant. To run a processing job, see `POST /v1alpha/op/jobs/processing-jobs`. - :param consolidated_analytics_job_request_dto: (required) - :type consolidated_analytics_job_request_dto: ConsolidatedAnalyticsJobRequestDTO + :param admin_jobs_consolidated_analytics_job_request_dto: (required) + :type admin_jobs_consolidated_analytics_job_request_dto: AdminJobsConsolidatedAnalyticsJobRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -192,7 +192,7 @@ def adhoc_consolidated_analytics_job_with_http_info( """ # noqa: E501 _param = self._adhoc_consolidated_analytics_job_serialize( - consolidated_analytics_job_request_dto=consolidated_analytics_job_request_dto, + admin_jobs_consolidated_analytics_job_request_dto=admin_jobs_consolidated_analytics_job_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -201,7 +201,7 @@ def adhoc_consolidated_analytics_job_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "JobIdResponse", + '200': "ServicingPublicapiTransfersJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -218,7 +218,7 @@ def adhoc_consolidated_analytics_job_with_http_info( @validate_call def adhoc_consolidated_analytics_job_without_preload_content( self, - consolidated_analytics_job_request_dto: ConsolidatedAnalyticsJobRequestDTO, + admin_jobs_consolidated_analytics_job_request_dto: AdminJobsConsolidatedAnalyticsJobRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -237,8 +237,8 @@ def adhoc_consolidated_analytics_job_without_preload_content( Run a job for a consolidated analytics tenant. This request retrieves data for all source tenants in a consolidated analytics tenant. After the job completes, you can run a processing job to generate a data version for the consolidated analytics tenant. To run a processing job, see `POST /v1alpha/op/jobs/processing-jobs`. - :param consolidated_analytics_job_request_dto: (required) - :type consolidated_analytics_job_request_dto: ConsolidatedAnalyticsJobRequestDTO + :param admin_jobs_consolidated_analytics_job_request_dto: (required) + :type admin_jobs_consolidated_analytics_job_request_dto: AdminJobsConsolidatedAnalyticsJobRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -264,7 +264,7 @@ def adhoc_consolidated_analytics_job_without_preload_content( """ # noqa: E501 _param = self._adhoc_consolidated_analytics_job_serialize( - consolidated_analytics_job_request_dto=consolidated_analytics_job_request_dto, + admin_jobs_consolidated_analytics_job_request_dto=admin_jobs_consolidated_analytics_job_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -273,7 +273,7 @@ def adhoc_consolidated_analytics_job_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "JobIdResponse", + '200': "ServicingPublicapiTransfersJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -284,7 +284,7 @@ def adhoc_consolidated_analytics_job_without_preload_content( def _adhoc_consolidated_analytics_job_serialize( self, - consolidated_analytics_job_request_dto, + admin_jobs_consolidated_analytics_job_request_dto, target_tenant_id, _request_auth, _content_type, @@ -311,8 +311,8 @@ def _adhoc_consolidated_analytics_job_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if consolidated_analytics_job_request_dto is not None: - _body_params = consolidated_analytics_job_request_dto + if admin_jobs_consolidated_analytics_job_request_dto is not None: + _body_params = admin_jobs_consolidated_analytics_job_request_dto # set the HTTP header `Accept` @@ -367,7 +367,7 @@ def _adhoc_consolidated_analytics_job_serialize( @validate_call def adhoc_extraction_job( self, - extract_data_and_load_dto: ExtractDataAndLoadDTO, + admin_jobs_extract_data_and_load_dto: AdminJobsExtractDataAndLoadDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -381,13 +381,13 @@ def adhoc_extraction_job( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> JobIdResponse: + ) -> ServicingPublicapiTransfersJobIdResponse: """Run a data connector extraction job Run an extraction job to retrieve data through a Visier data connector and generate a new data version. Administrating tenants can run extraction jobs for all analytic tenants, a list of analytic tenants, or the administrating tenant. If running extraction jobs for an administrating tenant or their analytic tenants, this request starts a dispatching job that generates one extraction job per tenant. The response returns the job ID of the extraction job or dispatching job. - :param extract_data_and_load_dto: (required) - :type extract_data_and_load_dto: ExtractDataAndLoadDTO + :param admin_jobs_extract_data_and_load_dto: (required) + :type admin_jobs_extract_data_and_load_dto: AdminJobsExtractDataAndLoadDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -413,7 +413,7 @@ def adhoc_extraction_job( """ # noqa: E501 _param = self._adhoc_extraction_job_serialize( - extract_data_and_load_dto=extract_data_and_load_dto, + admin_jobs_extract_data_and_load_dto=admin_jobs_extract_data_and_load_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -422,7 +422,7 @@ def adhoc_extraction_job( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "JobIdResponse", + '200': "ServicingPublicapiTransfersJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -439,7 +439,7 @@ def adhoc_extraction_job( @validate_call def adhoc_extraction_job_with_http_info( self, - extract_data_and_load_dto: ExtractDataAndLoadDTO, + admin_jobs_extract_data_and_load_dto: AdminJobsExtractDataAndLoadDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -453,13 +453,13 @@ def adhoc_extraction_job_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[JobIdResponse]: + ) -> ApiResponse[ServicingPublicapiTransfersJobIdResponse]: """Run a data connector extraction job Run an extraction job to retrieve data through a Visier data connector and generate a new data version. Administrating tenants can run extraction jobs for all analytic tenants, a list of analytic tenants, or the administrating tenant. If running extraction jobs for an administrating tenant or their analytic tenants, this request starts a dispatching job that generates one extraction job per tenant. The response returns the job ID of the extraction job or dispatching job. - :param extract_data_and_load_dto: (required) - :type extract_data_and_load_dto: ExtractDataAndLoadDTO + :param admin_jobs_extract_data_and_load_dto: (required) + :type admin_jobs_extract_data_and_load_dto: AdminJobsExtractDataAndLoadDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -485,7 +485,7 @@ def adhoc_extraction_job_with_http_info( """ # noqa: E501 _param = self._adhoc_extraction_job_serialize( - extract_data_and_load_dto=extract_data_and_load_dto, + admin_jobs_extract_data_and_load_dto=admin_jobs_extract_data_and_load_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -494,7 +494,7 @@ def adhoc_extraction_job_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "JobIdResponse", + '200': "ServicingPublicapiTransfersJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -511,7 +511,7 @@ def adhoc_extraction_job_with_http_info( @validate_call def adhoc_extraction_job_without_preload_content( self, - extract_data_and_load_dto: ExtractDataAndLoadDTO, + admin_jobs_extract_data_and_load_dto: AdminJobsExtractDataAndLoadDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -530,8 +530,8 @@ def adhoc_extraction_job_without_preload_content( Run an extraction job to retrieve data through a Visier data connector and generate a new data version. Administrating tenants can run extraction jobs for all analytic tenants, a list of analytic tenants, or the administrating tenant. If running extraction jobs for an administrating tenant or their analytic tenants, this request starts a dispatching job that generates one extraction job per tenant. The response returns the job ID of the extraction job or dispatching job. - :param extract_data_and_load_dto: (required) - :type extract_data_and_load_dto: ExtractDataAndLoadDTO + :param admin_jobs_extract_data_and_load_dto: (required) + :type admin_jobs_extract_data_and_load_dto: AdminJobsExtractDataAndLoadDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -557,7 +557,7 @@ def adhoc_extraction_job_without_preload_content( """ # noqa: E501 _param = self._adhoc_extraction_job_serialize( - extract_data_and_load_dto=extract_data_and_load_dto, + admin_jobs_extract_data_and_load_dto=admin_jobs_extract_data_and_load_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -566,7 +566,7 @@ def adhoc_extraction_job_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "JobIdResponse", + '200': "ServicingPublicapiTransfersJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -577,7 +577,7 @@ def adhoc_extraction_job_without_preload_content( def _adhoc_extraction_job_serialize( self, - extract_data_and_load_dto, + admin_jobs_extract_data_and_load_dto, target_tenant_id, _request_auth, _content_type, @@ -604,8 +604,8 @@ def _adhoc_extraction_job_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if extract_data_and_load_dto is not None: - _body_params = extract_data_and_load_dto + if admin_jobs_extract_data_and_load_dto is not None: + _body_params = admin_jobs_extract_data_and_load_dto # set the HTTP header `Accept` @@ -660,7 +660,7 @@ def _adhoc_extraction_job_serialize( @validate_call def adhoc_processing_jobs( self, - processing_job_request_dto: ProcessingJobRequestDTO, + admin_jobs_processing_job_request_dto: AdminJobsProcessingJobRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -674,13 +674,13 @@ def adhoc_processing_jobs( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> JobIdResponse: + ) -> ServicingPublicapiTransfersJobIdResponse: """Run a processing job Run a processing job to generate a new data version. Administrating tenants can run processing jobs for all analytic tenants, a list of analytic tenants, or the administrating tenant. If running processing jobs for an administrating tenant or their analytic tenants, this request starts a dispatching job that generates one processing job per tenant. The response returns the job ID of the processing job or dispatching job. - :param processing_job_request_dto: (required) - :type processing_job_request_dto: ProcessingJobRequestDTO + :param admin_jobs_processing_job_request_dto: (required) + :type admin_jobs_processing_job_request_dto: AdminJobsProcessingJobRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -706,7 +706,7 @@ def adhoc_processing_jobs( """ # noqa: E501 _param = self._adhoc_processing_jobs_serialize( - processing_job_request_dto=processing_job_request_dto, + admin_jobs_processing_job_request_dto=admin_jobs_processing_job_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -715,7 +715,7 @@ def adhoc_processing_jobs( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "JobIdResponse", + '200': "ServicingPublicapiTransfersJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -732,7 +732,7 @@ def adhoc_processing_jobs( @validate_call def adhoc_processing_jobs_with_http_info( self, - processing_job_request_dto: ProcessingJobRequestDTO, + admin_jobs_processing_job_request_dto: AdminJobsProcessingJobRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -746,13 +746,13 @@ def adhoc_processing_jobs_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[JobIdResponse]: + ) -> ApiResponse[ServicingPublicapiTransfersJobIdResponse]: """Run a processing job Run a processing job to generate a new data version. Administrating tenants can run processing jobs for all analytic tenants, a list of analytic tenants, or the administrating tenant. If running processing jobs for an administrating tenant or their analytic tenants, this request starts a dispatching job that generates one processing job per tenant. The response returns the job ID of the processing job or dispatching job. - :param processing_job_request_dto: (required) - :type processing_job_request_dto: ProcessingJobRequestDTO + :param admin_jobs_processing_job_request_dto: (required) + :type admin_jobs_processing_job_request_dto: AdminJobsProcessingJobRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -778,7 +778,7 @@ def adhoc_processing_jobs_with_http_info( """ # noqa: E501 _param = self._adhoc_processing_jobs_serialize( - processing_job_request_dto=processing_job_request_dto, + admin_jobs_processing_job_request_dto=admin_jobs_processing_job_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -787,7 +787,7 @@ def adhoc_processing_jobs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "JobIdResponse", + '200': "ServicingPublicapiTransfersJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -804,7 +804,7 @@ def adhoc_processing_jobs_with_http_info( @validate_call def adhoc_processing_jobs_without_preload_content( self, - processing_job_request_dto: ProcessingJobRequestDTO, + admin_jobs_processing_job_request_dto: AdminJobsProcessingJobRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -823,8 +823,8 @@ def adhoc_processing_jobs_without_preload_content( Run a processing job to generate a new data version. Administrating tenants can run processing jobs for all analytic tenants, a list of analytic tenants, or the administrating tenant. If running processing jobs for an administrating tenant or their analytic tenants, this request starts a dispatching job that generates one processing job per tenant. The response returns the job ID of the processing job or dispatching job. - :param processing_job_request_dto: (required) - :type processing_job_request_dto: ProcessingJobRequestDTO + :param admin_jobs_processing_job_request_dto: (required) + :type admin_jobs_processing_job_request_dto: AdminJobsProcessingJobRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -850,7 +850,7 @@ def adhoc_processing_jobs_without_preload_content( """ # noqa: E501 _param = self._adhoc_processing_jobs_serialize( - processing_job_request_dto=processing_job_request_dto, + admin_jobs_processing_job_request_dto=admin_jobs_processing_job_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -859,7 +859,7 @@ def adhoc_processing_jobs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "JobIdResponse", + '200': "ServicingPublicapiTransfersJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -870,7 +870,7 @@ def adhoc_processing_jobs_without_preload_content( def _adhoc_processing_jobs_serialize( self, - processing_job_request_dto, + admin_jobs_processing_job_request_dto, target_tenant_id, _request_auth, _content_type, @@ -897,8 +897,8 @@ def _adhoc_processing_jobs_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if processing_job_request_dto is not None: - _body_params = processing_job_request_dto + if admin_jobs_processing_job_request_dto is not None: + _body_params = admin_jobs_processing_job_request_dto # set the HTTP header `Accept` @@ -953,7 +953,7 @@ def _adhoc_processing_jobs_serialize( @validate_call def assign_connector_credential( self, - assign_connector_credential_request: AssignConnectorCredentialRequest, + data_in_assign_connector_credential_request: DataInAssignConnectorCredentialRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -967,13 +967,13 @@ def assign_connector_credential( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AssignConnectorCredentialsResponseDTO: + ) -> AdminTransfersAssignConnectorCredentialsResponseDTO: """Assign connector credentials to data connectors Assign a connector credential to a data connector. - :param assign_connector_credential_request: (required) - :type assign_connector_credential_request: AssignConnectorCredentialRequest + :param data_in_assign_connector_credential_request: (required) + :type data_in_assign_connector_credential_request: DataInAssignConnectorCredentialRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -999,7 +999,7 @@ def assign_connector_credential( """ # noqa: E501 _param = self._assign_connector_credential_serialize( - assign_connector_credential_request=assign_connector_credential_request, + data_in_assign_connector_credential_request=data_in_assign_connector_credential_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1008,7 +1008,7 @@ def assign_connector_credential( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AssignConnectorCredentialsResponseDTO", + '200': "AdminTransfersAssignConnectorCredentialsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1025,7 +1025,7 @@ def assign_connector_credential( @validate_call def assign_connector_credential_with_http_info( self, - assign_connector_credential_request: AssignConnectorCredentialRequest, + data_in_assign_connector_credential_request: DataInAssignConnectorCredentialRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1039,13 +1039,13 @@ def assign_connector_credential_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AssignConnectorCredentialsResponseDTO]: + ) -> ApiResponse[AdminTransfersAssignConnectorCredentialsResponseDTO]: """Assign connector credentials to data connectors Assign a connector credential to a data connector. - :param assign_connector_credential_request: (required) - :type assign_connector_credential_request: AssignConnectorCredentialRequest + :param data_in_assign_connector_credential_request: (required) + :type data_in_assign_connector_credential_request: DataInAssignConnectorCredentialRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1071,7 +1071,7 @@ def assign_connector_credential_with_http_info( """ # noqa: E501 _param = self._assign_connector_credential_serialize( - assign_connector_credential_request=assign_connector_credential_request, + data_in_assign_connector_credential_request=data_in_assign_connector_credential_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1080,7 +1080,7 @@ def assign_connector_credential_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AssignConnectorCredentialsResponseDTO", + '200': "AdminTransfersAssignConnectorCredentialsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1097,7 +1097,7 @@ def assign_connector_credential_with_http_info( @validate_call def assign_connector_credential_without_preload_content( self, - assign_connector_credential_request: AssignConnectorCredentialRequest, + data_in_assign_connector_credential_request: DataInAssignConnectorCredentialRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1116,8 +1116,8 @@ def assign_connector_credential_without_preload_content( Assign a connector credential to a data connector. - :param assign_connector_credential_request: (required) - :type assign_connector_credential_request: AssignConnectorCredentialRequest + :param data_in_assign_connector_credential_request: (required) + :type data_in_assign_connector_credential_request: DataInAssignConnectorCredentialRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1143,7 +1143,7 @@ def assign_connector_credential_without_preload_content( """ # noqa: E501 _param = self._assign_connector_credential_serialize( - assign_connector_credential_request=assign_connector_credential_request, + data_in_assign_connector_credential_request=data_in_assign_connector_credential_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1152,7 +1152,7 @@ def assign_connector_credential_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AssignConnectorCredentialsResponseDTO", + '200': "AdminTransfersAssignConnectorCredentialsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1163,7 +1163,7 @@ def assign_connector_credential_without_preload_content( def _assign_connector_credential_serialize( self, - assign_connector_credential_request, + data_in_assign_connector_credential_request, target_tenant_id, _request_auth, _content_type, @@ -1190,8 +1190,8 @@ def _assign_connector_credential_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if assign_connector_credential_request is not None: - _body_params = assign_connector_credential_request + if data_in_assign_connector_credential_request is not None: + _body_params = data_in_assign_connector_credential_request # set the HTTP header `Accept` @@ -1246,7 +1246,7 @@ def _assign_connector_credential_serialize( @validate_call def cancel_jobs( self, - cancel_job_batch_from_job_id_dto: CancelJobBatchFromJobIdDTO, + dp_transfers_cancel_job_batch_from_job_id_dto: DpTransfersCancelJobBatchFromJobIdDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1260,13 +1260,13 @@ def cancel_jobs( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> JobCancellationResultsDTO: + ) -> DpTransfersJobCancellationResultsDTO: """Cancel a list of jobs Cancel a list of processing jobs, upload jobs, receiving jobs, and extraction jobs. **Note:** Receiving jobs with the Running status cannot be cancelled. - :param cancel_job_batch_from_job_id_dto: (required) - :type cancel_job_batch_from_job_id_dto: CancelJobBatchFromJobIdDTO + :param dp_transfers_cancel_job_batch_from_job_id_dto: (required) + :type dp_transfers_cancel_job_batch_from_job_id_dto: DpTransfersCancelJobBatchFromJobIdDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1292,7 +1292,7 @@ def cancel_jobs( """ # noqa: E501 _param = self._cancel_jobs_serialize( - cancel_job_batch_from_job_id_dto=cancel_job_batch_from_job_id_dto, + dp_transfers_cancel_job_batch_from_job_id_dto=dp_transfers_cancel_job_batch_from_job_id_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1301,7 +1301,7 @@ def cancel_jobs( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "JobCancellationResultsDTO", + '200': "DpTransfersJobCancellationResultsDTO", } response_data = self.api_client.call_api( *_param, @@ -1318,7 +1318,7 @@ def cancel_jobs( @validate_call def cancel_jobs_with_http_info( self, - cancel_job_batch_from_job_id_dto: CancelJobBatchFromJobIdDTO, + dp_transfers_cancel_job_batch_from_job_id_dto: DpTransfersCancelJobBatchFromJobIdDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1332,13 +1332,13 @@ def cancel_jobs_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[JobCancellationResultsDTO]: + ) -> ApiResponse[DpTransfersJobCancellationResultsDTO]: """Cancel a list of jobs Cancel a list of processing jobs, upload jobs, receiving jobs, and extraction jobs. **Note:** Receiving jobs with the Running status cannot be cancelled. - :param cancel_job_batch_from_job_id_dto: (required) - :type cancel_job_batch_from_job_id_dto: CancelJobBatchFromJobIdDTO + :param dp_transfers_cancel_job_batch_from_job_id_dto: (required) + :type dp_transfers_cancel_job_batch_from_job_id_dto: DpTransfersCancelJobBatchFromJobIdDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1364,7 +1364,7 @@ def cancel_jobs_with_http_info( """ # noqa: E501 _param = self._cancel_jobs_serialize( - cancel_job_batch_from_job_id_dto=cancel_job_batch_from_job_id_dto, + dp_transfers_cancel_job_batch_from_job_id_dto=dp_transfers_cancel_job_batch_from_job_id_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1373,7 +1373,7 @@ def cancel_jobs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "JobCancellationResultsDTO", + '200': "DpTransfersJobCancellationResultsDTO", } response_data = self.api_client.call_api( *_param, @@ -1390,7 +1390,7 @@ def cancel_jobs_with_http_info( @validate_call def cancel_jobs_without_preload_content( self, - cancel_job_batch_from_job_id_dto: CancelJobBatchFromJobIdDTO, + dp_transfers_cancel_job_batch_from_job_id_dto: DpTransfersCancelJobBatchFromJobIdDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1409,8 +1409,8 @@ def cancel_jobs_without_preload_content( Cancel a list of processing jobs, upload jobs, receiving jobs, and extraction jobs. **Note:** Receiving jobs with the Running status cannot be cancelled. - :param cancel_job_batch_from_job_id_dto: (required) - :type cancel_job_batch_from_job_id_dto: CancelJobBatchFromJobIdDTO + :param dp_transfers_cancel_job_batch_from_job_id_dto: (required) + :type dp_transfers_cancel_job_batch_from_job_id_dto: DpTransfersCancelJobBatchFromJobIdDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1436,7 +1436,7 @@ def cancel_jobs_without_preload_content( """ # noqa: E501 _param = self._cancel_jobs_serialize( - cancel_job_batch_from_job_id_dto=cancel_job_batch_from_job_id_dto, + dp_transfers_cancel_job_batch_from_job_id_dto=dp_transfers_cancel_job_batch_from_job_id_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1445,7 +1445,7 @@ def cancel_jobs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "JobCancellationResultsDTO", + '200': "DpTransfersJobCancellationResultsDTO", } response_data = self.api_client.call_api( *_param, @@ -1456,7 +1456,7 @@ def cancel_jobs_without_preload_content( def _cancel_jobs_serialize( self, - cancel_job_batch_from_job_id_dto, + dp_transfers_cancel_job_batch_from_job_id_dto, target_tenant_id, _request_auth, _content_type, @@ -1483,8 +1483,8 @@ def _cancel_jobs_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if cancel_job_batch_from_job_id_dto is not None: - _body_params = cancel_job_batch_from_job_id_dto + if dp_transfers_cancel_job_batch_from_job_id_dto is not None: + _body_params = dp_transfers_cancel_job_batch_from_job_id_dto # set the HTTP header `Accept` @@ -1539,7 +1539,7 @@ def _cancel_jobs_serialize( @validate_call def create_connector_credential( self, - data_provider_auth_information_dto: DataProviderAuthInformationDTO, + designer_transfers_data_provider_auth_information_dto: DesignerTransfersDataProviderAuthInformationDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="The tenant code of a specific analytic tenant that you want to create the credential for.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -1554,13 +1554,13 @@ def create_connector_credential( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CredentialCreationAPIResponseDTO: + ) -> DesignerTransfersCredentialCreationAPIResponseDTO: """Create a connector credential Create credentials for a data connector. Connector credentials allow Visier to retrieve data from your source systems through an integration user in the source system. In the request body, specify one data provider in the `dataProviderAuthParams` parameter. For example, to create connector credentials for a UKG data connector, your request body might look like the following sample. ```json { model={ \"dataProviderAuthParams\": { \"provider\": \"UKG\", \"ultimateAuthParams\": { \"hostDomainName\": \"exampleHostDomain\", \"apiKey\": \"apiKey1234\", \"username\": \"username1234\", \"password\": \"password1234\", \"userAccessKey\": \"accessKey1234\" } }, \"dataProviderBasicInformation\": { \"displayName\": \"exampleDisplayName\", \"description\": \"exampleDescription\" } } ``` - :param data_provider_auth_information_dto: (required) - :type data_provider_auth_information_dto: DataProviderAuthInformationDTO + :param designer_transfers_data_provider_auth_information_dto: (required) + :type designer_transfers_data_provider_auth_information_dto: DesignerTransfersDataProviderAuthInformationDTO :param tenant_code: The tenant code of a specific analytic tenant that you want to create the credential for. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -1588,7 +1588,7 @@ def create_connector_credential( """ # noqa: E501 _param = self._create_connector_credential_serialize( - data_provider_auth_information_dto=data_provider_auth_information_dto, + designer_transfers_data_provider_auth_information_dto=designer_transfers_data_provider_auth_information_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -1598,7 +1598,7 @@ def create_connector_credential( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CredentialCreationAPIResponseDTO", + '200': "DesignerTransfersCredentialCreationAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1615,7 +1615,7 @@ def create_connector_credential( @validate_call def create_connector_credential_with_http_info( self, - data_provider_auth_information_dto: DataProviderAuthInformationDTO, + designer_transfers_data_provider_auth_information_dto: DesignerTransfersDataProviderAuthInformationDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="The tenant code of a specific analytic tenant that you want to create the credential for.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -1630,13 +1630,13 @@ def create_connector_credential_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CredentialCreationAPIResponseDTO]: + ) -> ApiResponse[DesignerTransfersCredentialCreationAPIResponseDTO]: """Create a connector credential Create credentials for a data connector. Connector credentials allow Visier to retrieve data from your source systems through an integration user in the source system. In the request body, specify one data provider in the `dataProviderAuthParams` parameter. For example, to create connector credentials for a UKG data connector, your request body might look like the following sample. ```json { model={ \"dataProviderAuthParams\": { \"provider\": \"UKG\", \"ultimateAuthParams\": { \"hostDomainName\": \"exampleHostDomain\", \"apiKey\": \"apiKey1234\", \"username\": \"username1234\", \"password\": \"password1234\", \"userAccessKey\": \"accessKey1234\" } }, \"dataProviderBasicInformation\": { \"displayName\": \"exampleDisplayName\", \"description\": \"exampleDescription\" } } ``` - :param data_provider_auth_information_dto: (required) - :type data_provider_auth_information_dto: DataProviderAuthInformationDTO + :param designer_transfers_data_provider_auth_information_dto: (required) + :type designer_transfers_data_provider_auth_information_dto: DesignerTransfersDataProviderAuthInformationDTO :param tenant_code: The tenant code of a specific analytic tenant that you want to create the credential for. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -1664,7 +1664,7 @@ def create_connector_credential_with_http_info( """ # noqa: E501 _param = self._create_connector_credential_serialize( - data_provider_auth_information_dto=data_provider_auth_information_dto, + designer_transfers_data_provider_auth_information_dto=designer_transfers_data_provider_auth_information_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -1674,7 +1674,7 @@ def create_connector_credential_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CredentialCreationAPIResponseDTO", + '200': "DesignerTransfersCredentialCreationAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1691,7 +1691,7 @@ def create_connector_credential_with_http_info( @validate_call def create_connector_credential_without_preload_content( self, - data_provider_auth_information_dto: DataProviderAuthInformationDTO, + designer_transfers_data_provider_auth_information_dto: DesignerTransfersDataProviderAuthInformationDTO, tenant_code: Annotated[Optional[StrictStr], Field(description="The tenant code of a specific analytic tenant that you want to create the credential for.")] = None, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ @@ -1711,8 +1711,8 @@ def create_connector_credential_without_preload_content( Create credentials for a data connector. Connector credentials allow Visier to retrieve data from your source systems through an integration user in the source system. In the request body, specify one data provider in the `dataProviderAuthParams` parameter. For example, to create connector credentials for a UKG data connector, your request body might look like the following sample. ```json { model={ \"dataProviderAuthParams\": { \"provider\": \"UKG\", \"ultimateAuthParams\": { \"hostDomainName\": \"exampleHostDomain\", \"apiKey\": \"apiKey1234\", \"username\": \"username1234\", \"password\": \"password1234\", \"userAccessKey\": \"accessKey1234\" } }, \"dataProviderBasicInformation\": { \"displayName\": \"exampleDisplayName\", \"description\": \"exampleDescription\" } } ``` - :param data_provider_auth_information_dto: (required) - :type data_provider_auth_information_dto: DataProviderAuthInformationDTO + :param designer_transfers_data_provider_auth_information_dto: (required) + :type designer_transfers_data_provider_auth_information_dto: DesignerTransfersDataProviderAuthInformationDTO :param tenant_code: The tenant code of a specific analytic tenant that you want to create the credential for. :type tenant_code: str :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. @@ -1740,7 +1740,7 @@ def create_connector_credential_without_preload_content( """ # noqa: E501 _param = self._create_connector_credential_serialize( - data_provider_auth_information_dto=data_provider_auth_information_dto, + designer_transfers_data_provider_auth_information_dto=designer_transfers_data_provider_auth_information_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -1750,7 +1750,7 @@ def create_connector_credential_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CredentialCreationAPIResponseDTO", + '200': "DesignerTransfersCredentialCreationAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1761,7 +1761,7 @@ def create_connector_credential_without_preload_content( def _create_connector_credential_serialize( self, - data_provider_auth_information_dto, + designer_transfers_data_provider_auth_information_dto, tenant_code, target_tenant_id, _request_auth, @@ -1793,8 +1793,8 @@ def _create_connector_credential_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if data_provider_auth_information_dto is not None: - _body_params = data_provider_auth_information_dto + if designer_transfers_data_provider_auth_information_dto is not None: + _body_params = designer_transfers_data_provider_auth_information_dto # set the HTTP header `Accept` @@ -1865,7 +1865,7 @@ def data_connector_credentials( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ExtractorCredentialsAPIDTO: + ) -> DesignerTransfersExtractorCredentialsAPIDTO: """Retrieve a list of all data connector credentials Retrieve a list of the connector credentials in a specified tenant. Connector credentials allow Visier to retrieve data from your source systems through an integration user in the source system. @@ -1912,7 +1912,7 @@ def data_connector_credentials( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtractorCredentialsAPIDTO", + '200': "DesignerTransfersExtractorCredentialsAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1945,7 +1945,7 @@ def data_connector_credentials_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ExtractorCredentialsAPIDTO]: + ) -> ApiResponse[DesignerTransfersExtractorCredentialsAPIDTO]: """Retrieve a list of all data connector credentials Retrieve a list of the connector credentials in a specified tenant. Connector credentials allow Visier to retrieve data from your source systems through an integration user in the source system. @@ -1992,7 +1992,7 @@ def data_connector_credentials_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtractorCredentialsAPIDTO", + '200': "DesignerTransfersExtractorCredentialsAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -2072,7 +2072,7 @@ def data_connector_credentials_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtractorCredentialsAPIDTO", + '200': "DesignerTransfersExtractorCredentialsAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -2181,7 +2181,7 @@ def data_connectors( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ImportDefinitionsAPIDTO: + ) -> AdminDataTransfersImportDefinitionsAPIDTO: """Retrieve a list of all data connectors Retrieve a list of the data connectors in a specified tenant. Data connectors are an alternative to generating flat files and transferring them to Visier via SFTP. @@ -2228,7 +2228,7 @@ def data_connectors( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ImportDefinitionsAPIDTO", + '200': "AdminDataTransfersImportDefinitionsAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -2261,7 +2261,7 @@ def data_connectors_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ImportDefinitionsAPIDTO]: + ) -> ApiResponse[AdminDataTransfersImportDefinitionsAPIDTO]: """Retrieve a list of all data connectors Retrieve a list of the data connectors in a specified tenant. Data connectors are an alternative to generating flat files and transferring them to Visier via SFTP. @@ -2308,7 +2308,7 @@ def data_connectors_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ImportDefinitionsAPIDTO", + '200': "AdminDataTransfersImportDefinitionsAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -2388,7 +2388,7 @@ def data_connectors_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ImportDefinitionsAPIDTO", + '200': "AdminDataTransfersImportDefinitionsAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -2778,7 +2778,7 @@ def _delete_connector_credential_serialize( @validate_call def disable_dv( self, - disable_dv_request: DisableDVRequest, + data_in_disable_dv_request: DataInDisableDVRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -2792,13 +2792,13 @@ def disable_dv( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DisableDVResponse: + ) -> DataInDisableDVResponse: """Disable data versions for a list of analytic tenants If you discover that a data version is not what is expected after running metric value validation on a data load, you may want to disable the data version for that processing job. Disable the latest enabled data versions for affected analytic tenants or to disable a particular data version for each analytic tenant. **Note:** Disabling an older data version may not have an effect on the state of the solution. - :param disable_dv_request: (required) - :type disable_dv_request: DisableDVRequest + :param data_in_disable_dv_request: (required) + :type data_in_disable_dv_request: DataInDisableDVRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -2824,7 +2824,7 @@ def disable_dv( """ # noqa: E501 _param = self._disable_dv_serialize( - disable_dv_request=disable_dv_request, + data_in_disable_dv_request=data_in_disable_dv_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2833,7 +2833,7 @@ def disable_dv( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DisableDVResponse", + '200': "DataInDisableDVResponse", } response_data = self.api_client.call_api( *_param, @@ -2850,7 +2850,7 @@ def disable_dv( @validate_call def disable_dv_with_http_info( self, - disable_dv_request: DisableDVRequest, + data_in_disable_dv_request: DataInDisableDVRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -2864,13 +2864,13 @@ def disable_dv_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DisableDVResponse]: + ) -> ApiResponse[DataInDisableDVResponse]: """Disable data versions for a list of analytic tenants If you discover that a data version is not what is expected after running metric value validation on a data load, you may want to disable the data version for that processing job. Disable the latest enabled data versions for affected analytic tenants or to disable a particular data version for each analytic tenant. **Note:** Disabling an older data version may not have an effect on the state of the solution. - :param disable_dv_request: (required) - :type disable_dv_request: DisableDVRequest + :param data_in_disable_dv_request: (required) + :type data_in_disable_dv_request: DataInDisableDVRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -2896,7 +2896,7 @@ def disable_dv_with_http_info( """ # noqa: E501 _param = self._disable_dv_serialize( - disable_dv_request=disable_dv_request, + data_in_disable_dv_request=data_in_disable_dv_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2905,7 +2905,7 @@ def disable_dv_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DisableDVResponse", + '200': "DataInDisableDVResponse", } response_data = self.api_client.call_api( *_param, @@ -2922,7 +2922,7 @@ def disable_dv_with_http_info( @validate_call def disable_dv_without_preload_content( self, - disable_dv_request: DisableDVRequest, + data_in_disable_dv_request: DataInDisableDVRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -2941,8 +2941,8 @@ def disable_dv_without_preload_content( If you discover that a data version is not what is expected after running metric value validation on a data load, you may want to disable the data version for that processing job. Disable the latest enabled data versions for affected analytic tenants or to disable a particular data version for each analytic tenant. **Note:** Disabling an older data version may not have an effect on the state of the solution. - :param disable_dv_request: (required) - :type disable_dv_request: DisableDVRequest + :param data_in_disable_dv_request: (required) + :type data_in_disable_dv_request: DataInDisableDVRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -2968,7 +2968,7 @@ def disable_dv_without_preload_content( """ # noqa: E501 _param = self._disable_dv_serialize( - disable_dv_request=disable_dv_request, + data_in_disable_dv_request=data_in_disable_dv_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2977,7 +2977,7 @@ def disable_dv_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DisableDVResponse", + '200': "DataInDisableDVResponse", } response_data = self.api_client.call_api( *_param, @@ -2988,7 +2988,7 @@ def disable_dv_without_preload_content( def _disable_dv_serialize( self, - disable_dv_request, + data_in_disable_dv_request, target_tenant_id, _request_auth, _content_type, @@ -3015,8 +3015,8 @@ def _disable_dv_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if disable_dv_request is not None: - _body_params = disable_dv_request + if data_in_disable_dv_request is not None: + _body_params = data_in_disable_dv_request # set the HTTP header `Accept` @@ -3085,7 +3085,7 @@ def dispatching_job_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DispatchingJobStatusResponse: + ) -> DataInDispatchingJobStatusResponse: """Retrieve a dispatching job's status Retrieve the status of a dispatching job, including its job ID and the number of jobs it generated. @@ -3126,7 +3126,7 @@ def dispatching_job_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DispatchingJobStatusResponse", + '200': "DataInDispatchingJobStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -3157,7 +3157,7 @@ def dispatching_job_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DispatchingJobStatusResponse]: + ) -> ApiResponse[DataInDispatchingJobStatusResponse]: """Retrieve a dispatching job's status Retrieve the status of a dispatching job, including its job ID and the number of jobs it generated. @@ -3198,7 +3198,7 @@ def dispatching_job_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DispatchingJobStatusResponse", + '200': "DataInDispatchingJobStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -3270,7 +3270,7 @@ def dispatching_job_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DispatchingJobStatusResponse", + '200': "DataInDispatchingJobStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -3351,7 +3351,7 @@ def _dispatching_job_status_serialize( @validate_call def exclude_data_uplaods( self, - exclude_data_uploads_request: ExcludeDataUploadsRequest, + data_in_exclude_data_uploads_request: DataInExcludeDataUploadsRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -3365,13 +3365,13 @@ def exclude_data_uplaods( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantDataUploadsUpdateResponseDTO: + ) -> ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO: """Exclude data uploads Exclude either a specified list of data uploads or all data uploads for each analytic tenant. - :param exclude_data_uploads_request: (required) - :type exclude_data_uploads_request: ExcludeDataUploadsRequest + :param data_in_exclude_data_uploads_request: (required) + :type data_in_exclude_data_uploads_request: DataInExcludeDataUploadsRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -3397,7 +3397,7 @@ def exclude_data_uplaods( """ # noqa: E501 _param = self._exclude_data_uplaods_serialize( - exclude_data_uploads_request=exclude_data_uploads_request, + data_in_exclude_data_uploads_request=data_in_exclude_data_uploads_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3406,7 +3406,7 @@ def exclude_data_uplaods( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantDataUploadsUpdateResponseDTO", + '200': "ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3423,7 +3423,7 @@ def exclude_data_uplaods( @validate_call def exclude_data_uplaods_with_http_info( self, - exclude_data_uploads_request: ExcludeDataUploadsRequest, + data_in_exclude_data_uploads_request: DataInExcludeDataUploadsRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -3437,13 +3437,13 @@ def exclude_data_uplaods_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantDataUploadsUpdateResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO]: """Exclude data uploads Exclude either a specified list of data uploads or all data uploads for each analytic tenant. - :param exclude_data_uploads_request: (required) - :type exclude_data_uploads_request: ExcludeDataUploadsRequest + :param data_in_exclude_data_uploads_request: (required) + :type data_in_exclude_data_uploads_request: DataInExcludeDataUploadsRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -3469,7 +3469,7 @@ def exclude_data_uplaods_with_http_info( """ # noqa: E501 _param = self._exclude_data_uplaods_serialize( - exclude_data_uploads_request=exclude_data_uploads_request, + data_in_exclude_data_uploads_request=data_in_exclude_data_uploads_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3478,7 +3478,7 @@ def exclude_data_uplaods_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantDataUploadsUpdateResponseDTO", + '200': "ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3495,7 +3495,7 @@ def exclude_data_uplaods_with_http_info( @validate_call def exclude_data_uplaods_without_preload_content( self, - exclude_data_uploads_request: ExcludeDataUploadsRequest, + data_in_exclude_data_uploads_request: DataInExcludeDataUploadsRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -3514,8 +3514,8 @@ def exclude_data_uplaods_without_preload_content( Exclude either a specified list of data uploads or all data uploads for each analytic tenant. - :param exclude_data_uploads_request: (required) - :type exclude_data_uploads_request: ExcludeDataUploadsRequest + :param data_in_exclude_data_uploads_request: (required) + :type data_in_exclude_data_uploads_request: DataInExcludeDataUploadsRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -3541,7 +3541,7 @@ def exclude_data_uplaods_without_preload_content( """ # noqa: E501 _param = self._exclude_data_uplaods_serialize( - exclude_data_uploads_request=exclude_data_uploads_request, + data_in_exclude_data_uploads_request=data_in_exclude_data_uploads_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3550,7 +3550,7 @@ def exclude_data_uplaods_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantDataUploadsUpdateResponseDTO", + '200': "ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3561,7 +3561,7 @@ def exclude_data_uplaods_without_preload_content( def _exclude_data_uplaods_serialize( self, - exclude_data_uploads_request, + data_in_exclude_data_uploads_request, target_tenant_id, _request_auth, _content_type, @@ -3588,8 +3588,8 @@ def _exclude_data_uplaods_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if exclude_data_uploads_request is not None: - _body_params = exclude_data_uploads_request + if data_in_exclude_data_uploads_request is not None: + _body_params = data_in_exclude_data_uploads_request # set the HTTP header `Accept` @@ -3662,7 +3662,7 @@ def extraction_job_and_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ExtractionJobAndStatusResponse: + ) -> DataInExtractionJobAndStatusResponse: """Retrieve a dispatching job's extraction jobs with their statuses Retrieve the statuses of extraction jobs associated with a dispatching job. The dispatching job is a \"parent\" to extraction jobs, which retrieve data from your source systems through data connectors. @@ -3715,7 +3715,7 @@ def extraction_job_and_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtractionJobAndStatusResponse", + '200': "DataInExtractionJobAndStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -3750,7 +3750,7 @@ def extraction_job_and_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ExtractionJobAndStatusResponse]: + ) -> ApiResponse[DataInExtractionJobAndStatusResponse]: """Retrieve a dispatching job's extraction jobs with their statuses Retrieve the statuses of extraction jobs associated with a dispatching job. The dispatching job is a \"parent\" to extraction jobs, which retrieve data from your source systems through data connectors. @@ -3803,7 +3803,7 @@ def extraction_job_and_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtractionJobAndStatusResponse", + '200': "DataInExtractionJobAndStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -3891,7 +3891,7 @@ def extraction_job_and_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtractionJobAndStatusResponse", + '200': "DataInExtractionJobAndStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -3992,7 +3992,7 @@ def _extraction_job_and_status_serialize( @validate_call def include_data_uploads( self, - include_data_uploads_request: IncludeDataUploadsRequest, + data_in_include_data_uploads_request: DataInIncludeDataUploadsRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -4006,13 +4006,13 @@ def include_data_uploads( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantDataUploadsUpdateResponseDTO: + ) -> ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO: """Include data uploads Include either the specified list of data uploads or all data uploads for each analytic tenant. - :param include_data_uploads_request: (required) - :type include_data_uploads_request: IncludeDataUploadsRequest + :param data_in_include_data_uploads_request: (required) + :type data_in_include_data_uploads_request: DataInIncludeDataUploadsRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -4038,7 +4038,7 @@ def include_data_uploads( """ # noqa: E501 _param = self._include_data_uploads_serialize( - include_data_uploads_request=include_data_uploads_request, + data_in_include_data_uploads_request=data_in_include_data_uploads_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -4047,7 +4047,7 @@ def include_data_uploads( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantDataUploadsUpdateResponseDTO", + '200': "ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4064,7 +4064,7 @@ def include_data_uploads( @validate_call def include_data_uploads_with_http_info( self, - include_data_uploads_request: IncludeDataUploadsRequest, + data_in_include_data_uploads_request: DataInIncludeDataUploadsRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -4078,13 +4078,13 @@ def include_data_uploads_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantDataUploadsUpdateResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO]: """Include data uploads Include either the specified list of data uploads or all data uploads for each analytic tenant. - :param include_data_uploads_request: (required) - :type include_data_uploads_request: IncludeDataUploadsRequest + :param data_in_include_data_uploads_request: (required) + :type data_in_include_data_uploads_request: DataInIncludeDataUploadsRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -4110,7 +4110,7 @@ def include_data_uploads_with_http_info( """ # noqa: E501 _param = self._include_data_uploads_serialize( - include_data_uploads_request=include_data_uploads_request, + data_in_include_data_uploads_request=data_in_include_data_uploads_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -4119,7 +4119,7 @@ def include_data_uploads_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantDataUploadsUpdateResponseDTO", + '200': "ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4136,7 +4136,7 @@ def include_data_uploads_with_http_info( @validate_call def include_data_uploads_without_preload_content( self, - include_data_uploads_request: IncludeDataUploadsRequest, + data_in_include_data_uploads_request: DataInIncludeDataUploadsRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -4155,8 +4155,8 @@ def include_data_uploads_without_preload_content( Include either the specified list of data uploads or all data uploads for each analytic tenant. - :param include_data_uploads_request: (required) - :type include_data_uploads_request: IncludeDataUploadsRequest + :param data_in_include_data_uploads_request: (required) + :type data_in_include_data_uploads_request: DataInIncludeDataUploadsRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -4182,7 +4182,7 @@ def include_data_uploads_without_preload_content( """ # noqa: E501 _param = self._include_data_uploads_serialize( - include_data_uploads_request=include_data_uploads_request, + data_in_include_data_uploads_request=data_in_include_data_uploads_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -4191,7 +4191,7 @@ def include_data_uploads_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantDataUploadsUpdateResponseDTO", + '200': "ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4202,7 +4202,7 @@ def include_data_uploads_without_preload_content( def _include_data_uploads_serialize( self, - include_data_uploads_request, + data_in_include_data_uploads_request, target_tenant_id, _request_auth, _content_type, @@ -4229,8 +4229,8 @@ def _include_data_uploads_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if include_data_uploads_request is not None: - _body_params = include_data_uploads_request + if data_in_include_data_uploads_request is not None: + _body_params = data_in_include_data_uploads_request # set the HTTP header `Accept` @@ -4299,7 +4299,7 @@ def job_id_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ReceivingJobStatusResponse: + ) -> DataInReceivingJobStatusResponse: """Retrieve a specific job's status Use this API to retrieve the list of statuses for a specific job with id `jobId`. You can retrieve all job statuses or specify a time period to retrieve statuses from. @@ -4340,7 +4340,7 @@ def job_id_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReceivingJobStatusResponse", + '200': "DataInReceivingJobStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -4371,7 +4371,7 @@ def job_id_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ReceivingJobStatusResponse]: + ) -> ApiResponse[DataInReceivingJobStatusResponse]: """Retrieve a specific job's status Use this API to retrieve the list of statuses for a specific job with id `jobId`. You can retrieve all job statuses or specify a time period to retrieve statuses from. @@ -4412,7 +4412,7 @@ def job_id_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReceivingJobStatusResponse", + '200': "DataInReceivingJobStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -4484,7 +4484,7 @@ def job_id_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReceivingJobStatusResponse", + '200': "DataInReceivingJobStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -4581,7 +4581,7 @@ def job_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> JobStatusListResponse: + ) -> DataInJobStatusListResponse: """Retrieve the statuses of all jobs Retrieve the list of statuses for all jobs. @@ -4628,7 +4628,7 @@ def job_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "JobStatusListResponse", + '200': "DataInJobStatusListResponse", } response_data = self.api_client.call_api( *_param, @@ -4661,7 +4661,7 @@ def job_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[JobStatusListResponse]: + ) -> ApiResponse[DataInJobStatusListResponse]: """Retrieve the statuses of all jobs Retrieve the list of statuses for all jobs. @@ -4708,7 +4708,7 @@ def job_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "JobStatusListResponse", + '200': "DataInJobStatusListResponse", } response_data = self.api_client.call_api( *_param, @@ -4788,7 +4788,7 @@ def job_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "JobStatusListResponse", + '200': "DataInJobStatusListResponse", } response_data = self.api_client.call_api( *_param, @@ -4898,7 +4898,7 @@ def latest_enabled_dv( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> MultipleTenantDataVersionsListDTO: + ) -> AdminTransfersMultipleTenantDataVersionsListDTO: """Retrieve the latest enabled data versions for all analytic tenants If you discover any inconsistencies after running metric value validation, you may want to find the data versions causing inconsistencies so you can later disable them. Retrieve up to five (5) of the latest enabled data versions for all your analytic tenants or a single specified analytic tenant. @@ -4948,7 +4948,7 @@ def latest_enabled_dv( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MultipleTenantDataVersionsListDTO", + '200': "AdminTransfersMultipleTenantDataVersionsListDTO", } response_data = self.api_client.call_api( *_param, @@ -4982,7 +4982,7 @@ def latest_enabled_dv_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[MultipleTenantDataVersionsListDTO]: + ) -> ApiResponse[AdminTransfersMultipleTenantDataVersionsListDTO]: """Retrieve the latest enabled data versions for all analytic tenants If you discover any inconsistencies after running metric value validation, you may want to find the data versions causing inconsistencies so you can later disable them. Retrieve up to five (5) of the latest enabled data versions for all your analytic tenants or a single specified analytic tenant. @@ -5032,7 +5032,7 @@ def latest_enabled_dv_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MultipleTenantDataVersionsListDTO", + '200': "AdminTransfersMultipleTenantDataVersionsListDTO", } response_data = self.api_client.call_api( *_param, @@ -5116,7 +5116,7 @@ def latest_enabled_dv_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MultipleTenantDataVersionsListDTO", + '200': "AdminTransfersMultipleTenantDataVersionsListDTO", } response_data = self.api_client.call_api( *_param, @@ -5227,7 +5227,7 @@ def list_connector_settings( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ExtractorSettingsAPIDTO: + ) -> AdminTransfersExtractorSettingsAPIDTO: """Retrieve data connector settings Get a list of settings for all data connectors. This request retrieves data connectors from the production environment. The response returns a list of settings, if available, for each data connector in the tenant. @@ -5265,7 +5265,7 @@ def list_connector_settings( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtractorSettingsAPIDTO", + '200': "AdminTransfersExtractorSettingsAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -5295,7 +5295,7 @@ def list_connector_settings_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ExtractorSettingsAPIDTO]: + ) -> ApiResponse[AdminTransfersExtractorSettingsAPIDTO]: """Retrieve data connector settings Get a list of settings for all data connectors. This request retrieves data connectors from the production environment. The response returns a list of settings, if available, for each data connector in the tenant. @@ -5333,7 +5333,7 @@ def list_connector_settings_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtractorSettingsAPIDTO", + '200': "AdminTransfersExtractorSettingsAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -5401,7 +5401,7 @@ def list_connector_settings_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtractorSettingsAPIDTO", + '200': "AdminTransfersExtractorSettingsAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -5497,7 +5497,7 @@ def processing_job_and_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProcessingJobAndStatusResponse: + ) -> DataInProcessingJobAndStatusResponse: """Retrieve a dispatching job's processing jobs with their statuses Retrieve the statuses of processing jobs associated with a dispatching job. The dispatching job is a \"parent\" to extraction jobs, which in turn generate processing jobs and receiving jobs. @@ -5550,7 +5550,7 @@ def processing_job_and_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProcessingJobAndStatusResponse", + '200': "DataInProcessingJobAndStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -5585,7 +5585,7 @@ def processing_job_and_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProcessingJobAndStatusResponse]: + ) -> ApiResponse[DataInProcessingJobAndStatusResponse]: """Retrieve a dispatching job's processing jobs with their statuses Retrieve the statuses of processing jobs associated with a dispatching job. The dispatching job is a \"parent\" to extraction jobs, which in turn generate processing jobs and receiving jobs. @@ -5638,7 +5638,7 @@ def processing_job_and_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProcessingJobAndStatusResponse", + '200': "DataInProcessingJobAndStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -5726,7 +5726,7 @@ def processing_job_and_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProcessingJobAndStatusResponse", + '200': "DataInProcessingJobAndStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -5844,7 +5844,7 @@ def processing_job_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProcessingJobStatusResponse: + ) -> DataInProcessingJobStatusResponse: """Retrieve processing job statuses by receiving job ID Retrieve a list of statuses for all processing jobs associated with the given receiving job ID. Processing jobs deal with an individual analytic tenant's data load. A processing job is either triggered through the UI or is one of many processing jobs spawned from a receiving job. When a processing job is triggered as part of a set from an receiving job, it is associated to the receiving job through a Parent ID. @@ -5894,7 +5894,7 @@ def processing_job_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProcessingJobStatusResponse", + '200': "DataInProcessingJobStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -5928,7 +5928,7 @@ def processing_job_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProcessingJobStatusResponse]: + ) -> ApiResponse[DataInProcessingJobStatusResponse]: """Retrieve processing job statuses by receiving job ID Retrieve a list of statuses for all processing jobs associated with the given receiving job ID. Processing jobs deal with an individual analytic tenant's data load. A processing job is either triggered through the UI or is one of many processing jobs spawned from a receiving job. When a processing job is triggered as part of a set from an receiving job, it is associated to the receiving job through a Parent ID. @@ -5978,7 +5978,7 @@ def processing_job_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProcessingJobStatusResponse", + '200': "DataInProcessingJobStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -6062,7 +6062,7 @@ def processing_job_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProcessingJobStatusResponse", + '200': "DataInProcessingJobStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -6176,7 +6176,7 @@ def receiving_job_and_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ReceivingJobAndStatusResponse: + ) -> DataInReceivingJobAndStatusResponse: """Retrieve a dispatching job's receiving jobs with their statuses Retrieve the statuses of receiving jobs associated with a dispatching job. The dispatching job is a \"parent\" to extraction jobs, which in turn generate processing jobs and receiving jobs. @@ -6229,7 +6229,7 @@ def receiving_job_and_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReceivingJobAndStatusResponse", + '200': "DataInReceivingJobAndStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -6264,7 +6264,7 @@ def receiving_job_and_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ReceivingJobAndStatusResponse]: + ) -> ApiResponse[DataInReceivingJobAndStatusResponse]: """Retrieve a dispatching job's receiving jobs with their statuses Retrieve the statuses of receiving jobs associated with a dispatching job. The dispatching job is a \"parent\" to extraction jobs, which in turn generate processing jobs and receiving jobs. @@ -6317,7 +6317,7 @@ def receiving_job_and_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReceivingJobAndStatusResponse", + '200': "DataInReceivingJobAndStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -6405,7 +6405,7 @@ def receiving_job_and_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReceivingJobAndStatusResponse", + '200': "DataInReceivingJobAndStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -6524,7 +6524,7 @@ def receiving_job_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ReceivingJobStatusResponse: + ) -> DataInReceivingJobStatusResponse: """Retrieve a receiving job's status After sending data to Visier, you may want to know the status of the receiving job and the associated tenant receiving jobs. A receiving job validates the transferred data and adds the transferred data to Visier's data store. A successful response indicates that the receiving job was successful. To get the status of the jobs spawned by the receiving job, set the `jobs` parameter to `true`. @@ -6577,7 +6577,7 @@ def receiving_job_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReceivingJobStatusResponse", + '200': "DataInReceivingJobStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -6612,7 +6612,7 @@ def receiving_job_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ReceivingJobStatusResponse]: + ) -> ApiResponse[DataInReceivingJobStatusResponse]: """Retrieve a receiving job's status After sending data to Visier, you may want to know the status of the receiving job and the associated tenant receiving jobs. A receiving job validates the transferred data and adds the transferred data to Visier's data store. A successful response indicates that the receiving job was successful. To get the status of the jobs spawned by the receiving job, set the `jobs` parameter to `true`. @@ -6665,7 +6665,7 @@ def receiving_job_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReceivingJobStatusResponse", + '200': "DataInReceivingJobStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -6753,7 +6753,7 @@ def receiving_job_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReceivingJobStatusResponse", + '200': "DataInReceivingJobStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -6867,7 +6867,7 @@ def retrieve_data_categories( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataCategoriesResponseDTO: + ) -> ServicingPublicapiTransfersDataCategoriesResponseDTO: """Retrieve a list of all data categories Retrieve a list of all available data categories. @@ -6905,7 +6905,7 @@ def retrieve_data_categories( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataCategoriesResponseDTO", + '200': "ServicingPublicapiTransfersDataCategoriesResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -6935,7 +6935,7 @@ def retrieve_data_categories_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DataCategoriesResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersDataCategoriesResponseDTO]: """Retrieve a list of all data categories Retrieve a list of all available data categories. @@ -6973,7 +6973,7 @@ def retrieve_data_categories_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataCategoriesResponseDTO", + '200': "ServicingPublicapiTransfersDataCategoriesResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -7041,7 +7041,7 @@ def retrieve_data_categories_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataCategoriesResponseDTO", + '200': "ServicingPublicapiTransfersDataCategoriesResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -7137,7 +7137,7 @@ def retrieve_data_uploads( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TenantDataUploadsListResponseDTO: + ) -> ServicingPublicapiTransfersTenantDataUploadsListResponseDTO: """Retrieve data uploads Retrieve the data uploads and whether they're included in one of: - A list of analytic tenants managed by you. - A single specified analytic tenant. - An upload job. @@ -7190,7 +7190,7 @@ def retrieve_data_uploads( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantDataUploadsListResponseDTO", + '200': "ServicingPublicapiTransfersTenantDataUploadsListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -7225,7 +7225,7 @@ def retrieve_data_uploads_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TenantDataUploadsListResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersTenantDataUploadsListResponseDTO]: """Retrieve data uploads Retrieve the data uploads and whether they're included in one of: - A list of analytic tenants managed by you. - A single specified analytic tenant. - An upload job. @@ -7278,7 +7278,7 @@ def retrieve_data_uploads_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantDataUploadsListResponseDTO", + '200': "ServicingPublicapiTransfersTenantDataUploadsListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -7366,7 +7366,7 @@ def retrieve_data_uploads_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TenantDataUploadsListResponseDTO", + '200': "ServicingPublicapiTransfersTenantDataUploadsListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -7469,7 +7469,7 @@ def _retrieve_data_uploads_serialize( @validate_call def set_connector_setting( self, - set_connector_settings_request_dto: SetConnectorSettingsRequestDTO, + admin_transfers_set_connector_settings_request_dto: AdminTransfersSetConnectorSettingsRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -7483,13 +7483,13 @@ def set_connector_setting( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SetConnectorSettingsResponseDTO: + ) -> AdminTransfersSetConnectorSettingsResponseDTO: """Update data connector settings Define the settings for one or more data connectors. To find the available settings, see `Retrieve data connector settings`. - :param set_connector_settings_request_dto: (required) - :type set_connector_settings_request_dto: SetConnectorSettingsRequestDTO + :param admin_transfers_set_connector_settings_request_dto: (required) + :type admin_transfers_set_connector_settings_request_dto: AdminTransfersSetConnectorSettingsRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -7515,7 +7515,7 @@ def set_connector_setting( """ # noqa: E501 _param = self._set_connector_setting_serialize( - set_connector_settings_request_dto=set_connector_settings_request_dto, + admin_transfers_set_connector_settings_request_dto=admin_transfers_set_connector_settings_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -7524,7 +7524,7 @@ def set_connector_setting( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SetConnectorSettingsResponseDTO", + '200': "AdminTransfersSetConnectorSettingsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -7541,7 +7541,7 @@ def set_connector_setting( @validate_call def set_connector_setting_with_http_info( self, - set_connector_settings_request_dto: SetConnectorSettingsRequestDTO, + admin_transfers_set_connector_settings_request_dto: AdminTransfersSetConnectorSettingsRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -7555,13 +7555,13 @@ def set_connector_setting_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SetConnectorSettingsResponseDTO]: + ) -> ApiResponse[AdminTransfersSetConnectorSettingsResponseDTO]: """Update data connector settings Define the settings for one or more data connectors. To find the available settings, see `Retrieve data connector settings`. - :param set_connector_settings_request_dto: (required) - :type set_connector_settings_request_dto: SetConnectorSettingsRequestDTO + :param admin_transfers_set_connector_settings_request_dto: (required) + :type admin_transfers_set_connector_settings_request_dto: AdminTransfersSetConnectorSettingsRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -7587,7 +7587,7 @@ def set_connector_setting_with_http_info( """ # noqa: E501 _param = self._set_connector_setting_serialize( - set_connector_settings_request_dto=set_connector_settings_request_dto, + admin_transfers_set_connector_settings_request_dto=admin_transfers_set_connector_settings_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -7596,7 +7596,7 @@ def set_connector_setting_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SetConnectorSettingsResponseDTO", + '200': "AdminTransfersSetConnectorSettingsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -7613,7 +7613,7 @@ def set_connector_setting_with_http_info( @validate_call def set_connector_setting_without_preload_content( self, - set_connector_settings_request_dto: SetConnectorSettingsRequestDTO, + admin_transfers_set_connector_settings_request_dto: AdminTransfersSetConnectorSettingsRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -7632,8 +7632,8 @@ def set_connector_setting_without_preload_content( Define the settings for one or more data connectors. To find the available settings, see `Retrieve data connector settings`. - :param set_connector_settings_request_dto: (required) - :type set_connector_settings_request_dto: SetConnectorSettingsRequestDTO + :param admin_transfers_set_connector_settings_request_dto: (required) + :type admin_transfers_set_connector_settings_request_dto: AdminTransfersSetConnectorSettingsRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -7659,7 +7659,7 @@ def set_connector_setting_without_preload_content( """ # noqa: E501 _param = self._set_connector_setting_serialize( - set_connector_settings_request_dto=set_connector_settings_request_dto, + admin_transfers_set_connector_settings_request_dto=admin_transfers_set_connector_settings_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -7668,7 +7668,7 @@ def set_connector_setting_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SetConnectorSettingsResponseDTO", + '200': "AdminTransfersSetConnectorSettingsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -7679,7 +7679,7 @@ def set_connector_setting_without_preload_content( def _set_connector_setting_serialize( self, - set_connector_settings_request_dto, + admin_transfers_set_connector_settings_request_dto, target_tenant_id, _request_auth, _content_type, @@ -7706,8 +7706,8 @@ def _set_connector_setting_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if set_connector_settings_request_dto is not None: - _body_params = set_connector_settings_request_dto + if admin_transfers_set_connector_settings_request_dto is not None: + _body_params = admin_transfers_set_connector_settings_request_dto # set the HTTP header `Accept` @@ -7762,7 +7762,7 @@ def _set_connector_setting_serialize( @validate_call def start_extraction( self, - extract_data_and_load_dto: ExtractDataAndLoadDTO, + admin_jobs_extract_data_and_load_dto: AdminJobsExtractDataAndLoadDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -7776,13 +7776,13 @@ def start_extraction( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> StartExtractionResponse: + ) -> DataInStartExtractionResponse: """Trigger data connector extraction jobs Run data connector extraction jobs for the administrating tenant or a list of analytic tenants. This API creates a dispatching job that generates one extraction job per tenant. The dispatching job is the \"parent\" of the extraction jobs and the dispatching job ID is returned in the response. Use that ID to monitor the extraction job statuses by calling `GET /v1/op/jobs/dispatching-jobs/{jobId}/extraction-jobs`. The extraction job generates receiving jobs to validate the data and processing jobs to populate data in the analytic tenants. Use the dispatching job ID to monitor the receiving and processing job statuses by calling `GET /v1/op/jobs/dispatching-jobs/{jobId}/receiving-jobs` or `GET /v1/op/jobs/dispatching-jobs/{jobId}/processing-jobs`. - :param extract_data_and_load_dto: (required) - :type extract_data_and_load_dto: ExtractDataAndLoadDTO + :param admin_jobs_extract_data_and_load_dto: (required) + :type admin_jobs_extract_data_and_load_dto: AdminJobsExtractDataAndLoadDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -7808,7 +7808,7 @@ def start_extraction( """ # noqa: E501 _param = self._start_extraction_serialize( - extract_data_and_load_dto=extract_data_and_load_dto, + admin_jobs_extract_data_and_load_dto=admin_jobs_extract_data_and_load_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -7817,7 +7817,7 @@ def start_extraction( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "StartExtractionResponse", + '200': "DataInStartExtractionResponse", } response_data = self.api_client.call_api( *_param, @@ -7834,7 +7834,7 @@ def start_extraction( @validate_call def start_extraction_with_http_info( self, - extract_data_and_load_dto: ExtractDataAndLoadDTO, + admin_jobs_extract_data_and_load_dto: AdminJobsExtractDataAndLoadDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -7848,13 +7848,13 @@ def start_extraction_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[StartExtractionResponse]: + ) -> ApiResponse[DataInStartExtractionResponse]: """Trigger data connector extraction jobs Run data connector extraction jobs for the administrating tenant or a list of analytic tenants. This API creates a dispatching job that generates one extraction job per tenant. The dispatching job is the \"parent\" of the extraction jobs and the dispatching job ID is returned in the response. Use that ID to monitor the extraction job statuses by calling `GET /v1/op/jobs/dispatching-jobs/{jobId}/extraction-jobs`. The extraction job generates receiving jobs to validate the data and processing jobs to populate data in the analytic tenants. Use the dispatching job ID to monitor the receiving and processing job statuses by calling `GET /v1/op/jobs/dispatching-jobs/{jobId}/receiving-jobs` or `GET /v1/op/jobs/dispatching-jobs/{jobId}/processing-jobs`. - :param extract_data_and_load_dto: (required) - :type extract_data_and_load_dto: ExtractDataAndLoadDTO + :param admin_jobs_extract_data_and_load_dto: (required) + :type admin_jobs_extract_data_and_load_dto: AdminJobsExtractDataAndLoadDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -7880,7 +7880,7 @@ def start_extraction_with_http_info( """ # noqa: E501 _param = self._start_extraction_serialize( - extract_data_and_load_dto=extract_data_and_load_dto, + admin_jobs_extract_data_and_load_dto=admin_jobs_extract_data_and_load_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -7889,7 +7889,7 @@ def start_extraction_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "StartExtractionResponse", + '200': "DataInStartExtractionResponse", } response_data = self.api_client.call_api( *_param, @@ -7906,7 +7906,7 @@ def start_extraction_with_http_info( @validate_call def start_extraction_without_preload_content( self, - extract_data_and_load_dto: ExtractDataAndLoadDTO, + admin_jobs_extract_data_and_load_dto: AdminJobsExtractDataAndLoadDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -7925,8 +7925,8 @@ def start_extraction_without_preload_content( Run data connector extraction jobs for the administrating tenant or a list of analytic tenants. This API creates a dispatching job that generates one extraction job per tenant. The dispatching job is the \"parent\" of the extraction jobs and the dispatching job ID is returned in the response. Use that ID to monitor the extraction job statuses by calling `GET /v1/op/jobs/dispatching-jobs/{jobId}/extraction-jobs`. The extraction job generates receiving jobs to validate the data and processing jobs to populate data in the analytic tenants. Use the dispatching job ID to monitor the receiving and processing job statuses by calling `GET /v1/op/jobs/dispatching-jobs/{jobId}/receiving-jobs` or `GET /v1/op/jobs/dispatching-jobs/{jobId}/processing-jobs`. - :param extract_data_and_load_dto: (required) - :type extract_data_and_load_dto: ExtractDataAndLoadDTO + :param admin_jobs_extract_data_and_load_dto: (required) + :type admin_jobs_extract_data_and_load_dto: AdminJobsExtractDataAndLoadDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -7952,7 +7952,7 @@ def start_extraction_without_preload_content( """ # noqa: E501 _param = self._start_extraction_serialize( - extract_data_and_load_dto=extract_data_and_load_dto, + admin_jobs_extract_data_and_load_dto=admin_jobs_extract_data_and_load_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -7961,7 +7961,7 @@ def start_extraction_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "StartExtractionResponse", + '200': "DataInStartExtractionResponse", } response_data = self.api_client.call_api( *_param, @@ -7972,7 +7972,7 @@ def start_extraction_without_preload_content( def _start_extraction_serialize( self, - extract_data_and_load_dto, + admin_jobs_extract_data_and_load_dto, target_tenant_id, _request_auth, _content_type, @@ -7999,8 +7999,8 @@ def _start_extraction_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if extract_data_and_load_dto is not None: - _body_params = extract_data_and_load_dto + if admin_jobs_extract_data_and_load_dto is not None: + _body_params = admin_jobs_extract_data_and_load_dto # set the HTTP header `Accept` @@ -8055,7 +8055,7 @@ def _start_extraction_serialize( @validate_call def start_load( self, - data_load_request: DataLoadRequest, + data_in_data_load_request: DataInDataLoadRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -8069,13 +8069,13 @@ def start_load( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataLoadResponse: + ) -> DataInDataLoadResponse: """Start the data load for analytic tenants This API starts the data load process for all analytic tenants included in the specified data files uploaded to the Visier SFTP server. On success, you receive a job ID that can be filtered and searched for within the Jobs room in Visier. This job ID is associated with the receiving job, and related to all processing jobs that spawn for each analytic tenant. With the job ID, you can also call the next two APIs to retrieve the status of the receiving job and the status list of all related processing jobs. **Prerequisite:** You must first obtain Visier's public encryption key and upload the source data files to Visier's SFTP server. Files must have a .zip.gpg extension, meaning the files are encrypted using the PGP protocol and compressed. Visier provides SFTP server credentials and instructions. You can find the encryption key at https://www.visier.com/pgp/visier.public.pgp.asc. After downloading the file, open the file in a text editor or by dragging it into your browser. **Note:** - To see the full status of all analytic tenant data loads, navigate to the Jobs room in a project. - For performance and efficiency, Visier requires that the uncompressed batch file size is below 5 GB and that no more than 5000 tenants are included in a batch. - :param data_load_request: (required) - :type data_load_request: DataLoadRequest + :param data_in_data_load_request: (required) + :type data_in_data_load_request: DataInDataLoadRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -8101,7 +8101,7 @@ def start_load( """ # noqa: E501 _param = self._start_load_serialize( - data_load_request=data_load_request, + data_in_data_load_request=data_in_data_load_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -8110,7 +8110,7 @@ def start_load( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataLoadResponse", + '200': "DataInDataLoadResponse", } response_data = self.api_client.call_api( *_param, @@ -8127,7 +8127,7 @@ def start_load( @validate_call def start_load_with_http_info( self, - data_load_request: DataLoadRequest, + data_in_data_load_request: DataInDataLoadRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -8141,13 +8141,13 @@ def start_load_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DataLoadResponse]: + ) -> ApiResponse[DataInDataLoadResponse]: """Start the data load for analytic tenants This API starts the data load process for all analytic tenants included in the specified data files uploaded to the Visier SFTP server. On success, you receive a job ID that can be filtered and searched for within the Jobs room in Visier. This job ID is associated with the receiving job, and related to all processing jobs that spawn for each analytic tenant. With the job ID, you can also call the next two APIs to retrieve the status of the receiving job and the status list of all related processing jobs. **Prerequisite:** You must first obtain Visier's public encryption key and upload the source data files to Visier's SFTP server. Files must have a .zip.gpg extension, meaning the files are encrypted using the PGP protocol and compressed. Visier provides SFTP server credentials and instructions. You can find the encryption key at https://www.visier.com/pgp/visier.public.pgp.asc. After downloading the file, open the file in a text editor or by dragging it into your browser. **Note:** - To see the full status of all analytic tenant data loads, navigate to the Jobs room in a project. - For performance and efficiency, Visier requires that the uncompressed batch file size is below 5 GB and that no more than 5000 tenants are included in a batch. - :param data_load_request: (required) - :type data_load_request: DataLoadRequest + :param data_in_data_load_request: (required) + :type data_in_data_load_request: DataInDataLoadRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -8173,7 +8173,7 @@ def start_load_with_http_info( """ # noqa: E501 _param = self._start_load_serialize( - data_load_request=data_load_request, + data_in_data_load_request=data_in_data_load_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -8182,7 +8182,7 @@ def start_load_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataLoadResponse", + '200': "DataInDataLoadResponse", } response_data = self.api_client.call_api( *_param, @@ -8199,7 +8199,7 @@ def start_load_with_http_info( @validate_call def start_load_without_preload_content( self, - data_load_request: DataLoadRequest, + data_in_data_load_request: DataInDataLoadRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -8218,8 +8218,8 @@ def start_load_without_preload_content( This API starts the data load process for all analytic tenants included in the specified data files uploaded to the Visier SFTP server. On success, you receive a job ID that can be filtered and searched for within the Jobs room in Visier. This job ID is associated with the receiving job, and related to all processing jobs that spawn for each analytic tenant. With the job ID, you can also call the next two APIs to retrieve the status of the receiving job and the status list of all related processing jobs. **Prerequisite:** You must first obtain Visier's public encryption key and upload the source data files to Visier's SFTP server. Files must have a .zip.gpg extension, meaning the files are encrypted using the PGP protocol and compressed. Visier provides SFTP server credentials and instructions. You can find the encryption key at https://www.visier.com/pgp/visier.public.pgp.asc. After downloading the file, open the file in a text editor or by dragging it into your browser. **Note:** - To see the full status of all analytic tenant data loads, navigate to the Jobs room in a project. - For performance and efficiency, Visier requires that the uncompressed batch file size is below 5 GB and that no more than 5000 tenants are included in a batch. - :param data_load_request: (required) - :type data_load_request: DataLoadRequest + :param data_in_data_load_request: (required) + :type data_in_data_load_request: DataInDataLoadRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -8245,7 +8245,7 @@ def start_load_without_preload_content( """ # noqa: E501 _param = self._start_load_serialize( - data_load_request=data_load_request, + data_in_data_load_request=data_in_data_load_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -8254,7 +8254,7 @@ def start_load_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataLoadResponse", + '200': "DataInDataLoadResponse", } response_data = self.api_client.call_api( *_param, @@ -8265,7 +8265,7 @@ def start_load_without_preload_content( def _start_load_serialize( self, - data_load_request, + data_in_data_load_request, target_tenant_id, _request_auth, _content_type, @@ -8292,8 +8292,8 @@ def _start_load_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if data_load_request is not None: - _body_params = data_load_request + if data_in_data_load_request is not None: + _body_params = data_in_data_load_request # set the HTTP header `Accept` diff --git a/src/visier_api_data_in/visier_api_data_in/api/data_intake_api.py b/src/visier_api_data_in/visier_api_data_in/api/data_intake_api.py index b41a6a810e..bc89d46c08 100644 --- a/src/visier_api_data_in/visier_api_data_in/api/data_intake_api.py +++ b/src/visier_api_data_in/visier_api_data_in/api/data_intake_api.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,12 +23,12 @@ from pydantic import Field, StrictBytes, StrictInt, StrictStr from typing import Optional, Tuple, Union from typing_extensions import Annotated -from visier_api_data_in.models.push_data_cancel_response import PushDataCancelResponse -from visier_api_data_in.models.push_data_complete_request import PushDataCompleteRequest -from visier_api_data_in.models.push_data_complete_response import PushDataCompleteResponse -from visier_api_data_in.models.push_data_response import PushDataResponse -from visier_api_data_in.models.push_data_source_definitions_dto import PushDataSourceDefinitionsDTO -from visier_api_data_in.models.start_transfer_response import StartTransferResponse +from visier_api_data_in.models.data_in_push_data_cancel_response import DataInPushDataCancelResponse +from visier_api_data_in.models.data_in_push_data_complete_request import DataInPushDataCompleteRequest +from visier_api_data_in.models.data_in_push_data_complete_response import DataInPushDataCompleteResponse +from visier_api_data_in.models.data_in_push_data_response import DataInPushDataResponse +from visier_api_data_in.models.data_in_start_transfer_response import DataInStartTransferResponse +from visier_api_data_in.models.designer_transfers_push_data_source_definitions_dto import DesignerTransfersPushDataSourceDefinitionsDTO import visier_api_data_in.models @@ -60,7 +60,7 @@ def get_sources( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PushDataSourceDefinitionsDTO: + ) -> DesignerTransfersPushDataSourceDefinitionsDTO: """Retrieve a list of sources Prior to transferring data to Visier, you must identify the sources you want to target. Sources store data for the solution and are used to map data to Visier's data model. **Note:** To set up sources in your tenant, contact Visier Customer Success. This API allows you to query the list of available sources, and identify the source schema and required fields. @@ -98,7 +98,7 @@ def get_sources( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PushDataSourceDefinitionsDTO", + '200': "DesignerTransfersPushDataSourceDefinitionsDTO", } response_data = self.api_client.call_api( *_param, @@ -128,7 +128,7 @@ def get_sources_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PushDataSourceDefinitionsDTO]: + ) -> ApiResponse[DesignerTransfersPushDataSourceDefinitionsDTO]: """Retrieve a list of sources Prior to transferring data to Visier, you must identify the sources you want to target. Sources store data for the solution and are used to map data to Visier's data model. **Note:** To set up sources in your tenant, contact Visier Customer Success. This API allows you to query the list of available sources, and identify the source schema and required fields. @@ -166,7 +166,7 @@ def get_sources_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PushDataSourceDefinitionsDTO", + '200': "DesignerTransfersPushDataSourceDefinitionsDTO", } response_data = self.api_client.call_api( *_param, @@ -234,7 +234,7 @@ def get_sources_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PushDataSourceDefinitionsDTO", + '200': "DesignerTransfersPushDataSourceDefinitionsDTO", } response_data = self.api_client.call_api( *_param, @@ -330,7 +330,7 @@ def push_data( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PushDataResponse: + ) -> DataInPushDataResponse: """Transfer data to sources via JSON Transfer data to Visier in batches of records. Each request includes a batch of records formatted as a comma separated array with the first row containing the column headers in the request body. Each subsequent request should also include the first row as a header. Each request transfers a batch of records to a single source. Transfer sessions may include one or more batches before completion. Each batch is identified by a sequence number. Sequence numbers help identify any batches that were delivered incorrectly. Each batch is limited to the following request size: - Batch size limit: 10 MB - Record count limit: 300,000 rows @@ -383,7 +383,7 @@ def push_data( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PushDataResponse", + '200': "DataInPushDataResponse", } response_data = self.api_client.call_api( *_param, @@ -418,7 +418,7 @@ def push_data_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PushDataResponse]: + ) -> ApiResponse[DataInPushDataResponse]: """Transfer data to sources via JSON Transfer data to Visier in batches of records. Each request includes a batch of records formatted as a comma separated array with the first row containing the column headers in the request body. Each subsequent request should also include the first row as a header. Each request transfers a batch of records to a single source. Transfer sessions may include one or more batches before completion. Each batch is identified by a sequence number. Sequence numbers help identify any batches that were delivered incorrectly. Each batch is limited to the following request size: - Batch size limit: 10 MB - Record count limit: 300,000 rows @@ -471,7 +471,7 @@ def push_data_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PushDataResponse", + '200': "DataInPushDataResponse", } response_data = self.api_client.call_api( *_param, @@ -559,7 +559,7 @@ def push_data_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PushDataResponse", + '200': "DataInPushDataResponse", } response_data = self.api_client.call_api( *_param, @@ -685,7 +685,7 @@ def push_data_cancel( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PushDataCancelResponse: + ) -> DataInPushDataCancelResponse: """Cancel a transfer session Cancel a transfer session after starting it. If a transfer session is cancelled, all records within the transfer session do not persist in Visier's data store. If you cancel a transfer session, please start a new transfer session and resend the complete data set. You might cancel a transfer session if: - A request to send a batch of records failed. - The original set of records is incomplete. - An infrastructure error occurs. @@ -726,7 +726,7 @@ def push_data_cancel( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PushDataCancelResponse", + '200': "DataInPushDataCancelResponse", } response_data = self.api_client.call_api( *_param, @@ -757,7 +757,7 @@ def push_data_cancel_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PushDataCancelResponse]: + ) -> ApiResponse[DataInPushDataCancelResponse]: """Cancel a transfer session Cancel a transfer session after starting it. If a transfer session is cancelled, all records within the transfer session do not persist in Visier's data store. If you cancel a transfer session, please start a new transfer session and resend the complete data set. You might cancel a transfer session if: - A request to send a batch of records failed. - The original set of records is incomplete. - An infrastructure error occurs. @@ -798,7 +798,7 @@ def push_data_cancel_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PushDataCancelResponse", + '200': "DataInPushDataCancelResponse", } response_data = self.api_client.call_api( *_param, @@ -870,7 +870,7 @@ def push_data_cancel_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PushDataCancelResponse", + '200': "DataInPushDataCancelResponse", } response_data = self.api_client.call_api( *_param, @@ -951,7 +951,7 @@ def _push_data_cancel_serialize( @validate_call def push_data_complete( self, - push_data_complete_request: PushDataCompleteRequest, + data_in_push_data_complete_request: DataInPushDataCompleteRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -965,13 +965,13 @@ def push_data_complete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PushDataCompleteResponse: + ) -> DataInPushDataCompleteResponse: """Complete a transfer session Complete the specified transfer session by triggering a receiving job. A receiving job validates the transferred data and adds the transferred data to Visier's data store. You can set an optional parameter to generate a data version through a processing job immediately after the receiving job completes. - :param push_data_complete_request: (required) - :type push_data_complete_request: PushDataCompleteRequest + :param data_in_push_data_complete_request: (required) + :type data_in_push_data_complete_request: DataInPushDataCompleteRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -997,7 +997,7 @@ def push_data_complete( """ # noqa: E501 _param = self._push_data_complete_serialize( - push_data_complete_request=push_data_complete_request, + data_in_push_data_complete_request=data_in_push_data_complete_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1006,7 +1006,7 @@ def push_data_complete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PushDataCompleteResponse", + '200': "DataInPushDataCompleteResponse", } response_data = self.api_client.call_api( *_param, @@ -1023,7 +1023,7 @@ def push_data_complete( @validate_call def push_data_complete_with_http_info( self, - push_data_complete_request: PushDataCompleteRequest, + data_in_push_data_complete_request: DataInPushDataCompleteRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1037,13 +1037,13 @@ def push_data_complete_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PushDataCompleteResponse]: + ) -> ApiResponse[DataInPushDataCompleteResponse]: """Complete a transfer session Complete the specified transfer session by triggering a receiving job. A receiving job validates the transferred data and adds the transferred data to Visier's data store. You can set an optional parameter to generate a data version through a processing job immediately after the receiving job completes. - :param push_data_complete_request: (required) - :type push_data_complete_request: PushDataCompleteRequest + :param data_in_push_data_complete_request: (required) + :type data_in_push_data_complete_request: DataInPushDataCompleteRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1069,7 +1069,7 @@ def push_data_complete_with_http_info( """ # noqa: E501 _param = self._push_data_complete_serialize( - push_data_complete_request=push_data_complete_request, + data_in_push_data_complete_request=data_in_push_data_complete_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1078,7 +1078,7 @@ def push_data_complete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PushDataCompleteResponse", + '200': "DataInPushDataCompleteResponse", } response_data = self.api_client.call_api( *_param, @@ -1095,7 +1095,7 @@ def push_data_complete_with_http_info( @validate_call def push_data_complete_without_preload_content( self, - push_data_complete_request: PushDataCompleteRequest, + data_in_push_data_complete_request: DataInPushDataCompleteRequest, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1114,8 +1114,8 @@ def push_data_complete_without_preload_content( Complete the specified transfer session by triggering a receiving job. A receiving job validates the transferred data and adds the transferred data to Visier's data store. You can set an optional parameter to generate a data version through a processing job immediately after the receiving job completes. - :param push_data_complete_request: (required) - :type push_data_complete_request: PushDataCompleteRequest + :param data_in_push_data_complete_request: (required) + :type data_in_push_data_complete_request: DataInPushDataCompleteRequest :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1141,7 +1141,7 @@ def push_data_complete_without_preload_content( """ # noqa: E501 _param = self._push_data_complete_serialize( - push_data_complete_request=push_data_complete_request, + data_in_push_data_complete_request=data_in_push_data_complete_request, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1150,7 +1150,7 @@ def push_data_complete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PushDataCompleteResponse", + '200': "DataInPushDataCompleteResponse", } response_data = self.api_client.call_api( *_param, @@ -1161,7 +1161,7 @@ def push_data_complete_without_preload_content( def _push_data_complete_serialize( self, - push_data_complete_request, + data_in_push_data_complete_request, target_tenant_id, _request_auth, _content_type, @@ -1188,8 +1188,8 @@ def _push_data_complete_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if push_data_complete_request is not None: - _body_params = push_data_complete_request + if data_in_push_data_complete_request is not None: + _body_params = data_in_push_data_complete_request # set the HTTP header `Accept` @@ -1257,7 +1257,7 @@ def start_transfer( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> StartTransferResponse: + ) -> DataInStartTransferResponse: """Start a transfer session Start a new transfer session. A transfer session can include one or more batches of records to be sent to Visier. Batches of records may be transferred as JSON or file payloads. Recommended: For optimal performance, please include all batches of records in a single transfer session. @@ -1295,7 +1295,7 @@ def start_transfer( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "StartTransferResponse", + '200': "DataInStartTransferResponse", } response_data = self.api_client.call_api( *_param, @@ -1325,7 +1325,7 @@ def start_transfer_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[StartTransferResponse]: + ) -> ApiResponse[DataInStartTransferResponse]: """Start a transfer session Start a new transfer session. A transfer session can include one or more batches of records to be sent to Visier. Batches of records may be transferred as JSON or file payloads. Recommended: For optimal performance, please include all batches of records in a single transfer session. @@ -1363,7 +1363,7 @@ def start_transfer_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "StartTransferResponse", + '200': "DataInStartTransferResponse", } response_data = self.api_client.call_api( *_param, @@ -1431,7 +1431,7 @@ def start_transfer_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "StartTransferResponse", + '200': "DataInStartTransferResponse", } response_data = self.api_client.call_api( *_param, @@ -1527,7 +1527,7 @@ def upload_data( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PushDataResponse: + ) -> DataInPushDataResponse: """Transfer data to sources via file upload Upload data to Visier as CSV or ZIP files. Each request transfers a single file. If the data intended for Visier is stored in multiple files, you may compress them into a single ZIP file or make multiple requests within the same transfer session. File size limit: 3 GB Each file is identified by a sequence number. Sequence numbers help identify any batches that were delivered incorrectly. If you define a specific source in the request, all files within the request will target the declared source. If a source is not defined, the filenames are matched against the source regex to correctly assign each file to a source. To find out the source regex, please contact Visier Customer Success. **Note:** If you include files that should target multiple sources in one ZIP file, do not define a source in the request. Analytic tenants: For optimal transfer speed, provide one ZIP file per source. Administrating tenants: For optimal transfer speed, provide one ZIP file containing all the required data files for your analytic tenants. In the ZIP file, use one folder per analytic tenant. The ZIP file must adhere to the following file structure: File1.zip - Folder1: WFF_tenantCode1 - Filename1.csv - Filename2.csv - Folder2: WFF_tenantCode2 - Filename3.csv - Filename4.csv @@ -1580,7 +1580,7 @@ def upload_data( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PushDataResponse", + '200': "DataInPushDataResponse", } response_data = self.api_client.call_api( *_param, @@ -1615,7 +1615,7 @@ def upload_data_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PushDataResponse]: + ) -> ApiResponse[DataInPushDataResponse]: """Transfer data to sources via file upload Upload data to Visier as CSV or ZIP files. Each request transfers a single file. If the data intended for Visier is stored in multiple files, you may compress them into a single ZIP file or make multiple requests within the same transfer session. File size limit: 3 GB Each file is identified by a sequence number. Sequence numbers help identify any batches that were delivered incorrectly. If you define a specific source in the request, all files within the request will target the declared source. If a source is not defined, the filenames are matched against the source regex to correctly assign each file to a source. To find out the source regex, please contact Visier Customer Success. **Note:** If you include files that should target multiple sources in one ZIP file, do not define a source in the request. Analytic tenants: For optimal transfer speed, provide one ZIP file per source. Administrating tenants: For optimal transfer speed, provide one ZIP file containing all the required data files for your analytic tenants. In the ZIP file, use one folder per analytic tenant. The ZIP file must adhere to the following file structure: File1.zip - Folder1: WFF_tenantCode1 - Filename1.csv - Filename2.csv - Folder2: WFF_tenantCode2 - Filename3.csv - Filename4.csv @@ -1668,7 +1668,7 @@ def upload_data_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PushDataResponse", + '200': "DataInPushDataResponse", } response_data = self.api_client.call_api( *_param, @@ -1756,7 +1756,7 @@ def upload_data_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PushDataResponse", + '200': "DataInPushDataResponse", } response_data = self.api_client.call_api( *_param, diff --git a/src/visier_api_data_in/visier_api_data_in/api/data_upload_api.py b/src/visier_api_data_in/visier_api_data_in/api/data_upload_api.py index baa8995445..bb3d871151 100644 --- a/src/visier_api_data_in/visier_api_data_in/api/data_upload_api.py +++ b/src/visier_api_data_in/visier_api_data_in/api/data_upload_api.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/visier_api_data_in/api/direct_data_intake_api.py b/src/visier_api_data_in/visier_api_data_in/api/direct_data_intake_api.py index 077d6ee8bb..55c0161cc3 100644 --- a/src/visier_api_data_in/visier_api_data_in/api/direct_data_intake_api.py +++ b/src/visier_api_data_in/visier_api_data_in/api/direct_data_intake_api.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,11 +23,12 @@ from pydantic import Field, StrictBytes, StrictStr from typing import Optional, Tuple, Union from typing_extensions import Annotated -from visier_api_data_in.models.direct_data_job_status_response_dto import DirectDataJobStatusResponseDTO -from visier_api_data_in.models.direct_data_load_config_dto import DirectDataLoadConfigDTO -from visier_api_data_in.models.direct_data_schema_dto import DirectDataSchemaDTO -from visier_api_data_in.models.direct_data_transaction_start_response_dto import DirectDataTransactionStartResponseDTO from visier_api_data_in.models.direct_data_upload_file_response_dto import DirectDataUploadFileResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_job_status_response_dto import ServicingPublicapiTransfersDirectDataJobStatusResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_load_config_dto import ServicingPublicapiTransfersDirectDataLoadConfigDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_schema_dto import ServicingPublicapiTransfersDirectDataSchemaDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_transaction_start_response_dto import ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_upload_file_response_dto import ServicingPublicapiTransfersDirectDataUploadFileResponseDTO import visier_api_data_in.models @@ -61,7 +62,7 @@ def commit_transaction( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DirectDataUploadFileResponseDTO: + ) -> ServicingPublicapiTransfersDirectDataUploadFileResponseDTO: """Commit a transaction Process a transaction and its uploaded data files. This starts a processing job to load the data files into Visier. After committing a transaction, you cannot upload additional files to the transaction. Use the `Check transaction status` endpoint to monitor the progress of the processing job. @@ -105,7 +106,7 @@ def commit_transaction( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataUploadFileResponseDTO", + '200': "ServicingPublicapiTransfersDirectDataUploadFileResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -137,7 +138,7 @@ def commit_transaction_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DirectDataUploadFileResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersDirectDataUploadFileResponseDTO]: """Commit a transaction Process a transaction and its uploaded data files. This starts a processing job to load the data files into Visier. After committing a transaction, you cannot upload additional files to the transaction. Use the `Check transaction status` endpoint to monitor the progress of the processing job. @@ -181,7 +182,7 @@ def commit_transaction_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataUploadFileResponseDTO", + '200': "ServicingPublicapiTransfersDirectDataUploadFileResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -257,7 +258,7 @@ def commit_transaction_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataUploadFileResponseDTO", + '200': "ServicingPublicapiTransfersDirectDataUploadFileResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -355,7 +356,7 @@ def get_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DirectDataLoadConfigDTO: + ) -> ServicingPublicapiTransfersDirectDataLoadConfigDTO: """Get the direct data intake configuration Get the direct data intake configuration. @@ -396,7 +397,7 @@ def get_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataLoadConfigDTO", + '200': "ServicingPublicapiTransfersDirectDataLoadConfigDTO", } response_data = self.api_client.call_api( *_param, @@ -427,7 +428,7 @@ def get_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DirectDataLoadConfigDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersDirectDataLoadConfigDTO]: """Get the direct data intake configuration Get the direct data intake configuration. @@ -468,7 +469,7 @@ def get_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataLoadConfigDTO", + '200': "ServicingPublicapiTransfersDirectDataLoadConfigDTO", } response_data = self.api_client.call_api( *_param, @@ -540,7 +541,7 @@ def get_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataLoadConfigDTO", + '200': "ServicingPublicapiTransfersDirectDataLoadConfigDTO", } response_data = self.api_client.call_api( *_param, @@ -636,7 +637,7 @@ def job_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DirectDataJobStatusResponseDTO: + ) -> ServicingPublicapiTransfersDirectDataJobStatusResponseDTO: """Check transaction status Retrieve the status of a committed transaction's processing job. @@ -680,7 +681,7 @@ def job_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataJobStatusResponseDTO", + '200': "ServicingPublicapiTransfersDirectDataJobStatusResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -712,7 +713,7 @@ def job_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DirectDataJobStatusResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersDirectDataJobStatusResponseDTO]: """Check transaction status Retrieve the status of a committed transaction's processing job. @@ -756,7 +757,7 @@ def job_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataJobStatusResponseDTO", + '200': "ServicingPublicapiTransfersDirectDataJobStatusResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -832,7 +833,7 @@ def job_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataJobStatusResponseDTO", + '200': "ServicingPublicapiTransfersDirectDataJobStatusResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -931,7 +932,7 @@ def object_schema( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DirectDataSchemaDTO: + ) -> ServicingPublicapiTransfersDirectDataSchemaDTO: """Retrieve an object's data load schema Gets the load schema for a specified object. The object's load schema represents the structure that the data upload file must follow to upload data to the object. In the load schema, the listed columns must be present in the data file as column headers and exactly match the load schema (case sensitive), however, only the columns whose `isMandatory` field is `true` must contain values in the data file. @@ -975,7 +976,7 @@ def object_schema( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataSchemaDTO", + '200': "ServicingPublicapiTransfersDirectDataSchemaDTO", } response_data = self.api_client.call_api( *_param, @@ -1007,7 +1008,7 @@ def object_schema_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DirectDataSchemaDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersDirectDataSchemaDTO]: """Retrieve an object's data load schema Gets the load schema for a specified object. The object's load schema represents the structure that the data upload file must follow to upload data to the object. In the load schema, the listed columns must be present in the data file as column headers and exactly match the load schema (case sensitive), however, only the columns whose `isMandatory` field is `true` must contain values in the data file. @@ -1051,7 +1052,7 @@ def object_schema_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataSchemaDTO", + '200': "ServicingPublicapiTransfersDirectDataSchemaDTO", } response_data = self.api_client.call_api( *_param, @@ -1127,7 +1128,7 @@ def object_schema_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataSchemaDTO", + '200': "ServicingPublicapiTransfersDirectDataSchemaDTO", } response_data = self.api_client.call_api( *_param, @@ -1212,7 +1213,7 @@ def _object_schema_serialize( def put_config( self, draft_id: Annotated[StrictStr, Field(description="The unique identifier of the project to load data into. Currently, the only supported value is `prod` to update the production version.")], - direct_data_load_config_dto: DirectDataLoadConfigDTO, + servicing_publicapi_transfers_direct_data_load_config_dto: ServicingPublicapiTransfersDirectDataLoadConfigDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1226,15 +1227,15 @@ def put_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DirectDataLoadConfigDTO: + ) -> ServicingPublicapiTransfersDirectDataLoadConfigDTO: """Update the direct data intake configuration Configure the data intake settings, such as the direct data intake job type. Only provide values for the configuration options that should change. Configuration options that are not present in the PUT request are ignored and left unchanged. :param draft_id: The unique identifier of the project to load data into. Currently, the only supported value is `prod` to update the production version. (required) :type draft_id: str - :param direct_data_load_config_dto: (required) - :type direct_data_load_config_dto: DirectDataLoadConfigDTO + :param servicing_publicapi_transfers_direct_data_load_config_dto: (required) + :type servicing_publicapi_transfers_direct_data_load_config_dto: ServicingPublicapiTransfersDirectDataLoadConfigDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1261,7 +1262,7 @@ def put_config( _param = self._put_config_serialize( draft_id=draft_id, - direct_data_load_config_dto=direct_data_load_config_dto, + servicing_publicapi_transfers_direct_data_load_config_dto=servicing_publicapi_transfers_direct_data_load_config_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1270,7 +1271,7 @@ def put_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataLoadConfigDTO", + '200': "ServicingPublicapiTransfersDirectDataLoadConfigDTO", } response_data = self.api_client.call_api( *_param, @@ -1288,7 +1289,7 @@ def put_config( def put_config_with_http_info( self, draft_id: Annotated[StrictStr, Field(description="The unique identifier of the project to load data into. Currently, the only supported value is `prod` to update the production version.")], - direct_data_load_config_dto: DirectDataLoadConfigDTO, + servicing_publicapi_transfers_direct_data_load_config_dto: ServicingPublicapiTransfersDirectDataLoadConfigDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1302,15 +1303,15 @@ def put_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DirectDataLoadConfigDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersDirectDataLoadConfigDTO]: """Update the direct data intake configuration Configure the data intake settings, such as the direct data intake job type. Only provide values for the configuration options that should change. Configuration options that are not present in the PUT request are ignored and left unchanged. :param draft_id: The unique identifier of the project to load data into. Currently, the only supported value is `prod` to update the production version. (required) :type draft_id: str - :param direct_data_load_config_dto: (required) - :type direct_data_load_config_dto: DirectDataLoadConfigDTO + :param servicing_publicapi_transfers_direct_data_load_config_dto: (required) + :type servicing_publicapi_transfers_direct_data_load_config_dto: ServicingPublicapiTransfersDirectDataLoadConfigDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1337,7 +1338,7 @@ def put_config_with_http_info( _param = self._put_config_serialize( draft_id=draft_id, - direct_data_load_config_dto=direct_data_load_config_dto, + servicing_publicapi_transfers_direct_data_load_config_dto=servicing_publicapi_transfers_direct_data_load_config_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1346,7 +1347,7 @@ def put_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataLoadConfigDTO", + '200': "ServicingPublicapiTransfersDirectDataLoadConfigDTO", } response_data = self.api_client.call_api( *_param, @@ -1364,7 +1365,7 @@ def put_config_with_http_info( def put_config_without_preload_content( self, draft_id: Annotated[StrictStr, Field(description="The unique identifier of the project to load data into. Currently, the only supported value is `prod` to update the production version.")], - direct_data_load_config_dto: DirectDataLoadConfigDTO, + servicing_publicapi_transfers_direct_data_load_config_dto: ServicingPublicapiTransfersDirectDataLoadConfigDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1385,8 +1386,8 @@ def put_config_without_preload_content( :param draft_id: The unique identifier of the project to load data into. Currently, the only supported value is `prod` to update the production version. (required) :type draft_id: str - :param direct_data_load_config_dto: (required) - :type direct_data_load_config_dto: DirectDataLoadConfigDTO + :param servicing_publicapi_transfers_direct_data_load_config_dto: (required) + :type servicing_publicapi_transfers_direct_data_load_config_dto: ServicingPublicapiTransfersDirectDataLoadConfigDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1413,7 +1414,7 @@ def put_config_without_preload_content( _param = self._put_config_serialize( draft_id=draft_id, - direct_data_load_config_dto=direct_data_load_config_dto, + servicing_publicapi_transfers_direct_data_load_config_dto=servicing_publicapi_transfers_direct_data_load_config_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1422,7 +1423,7 @@ def put_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataLoadConfigDTO", + '200': "ServicingPublicapiTransfersDirectDataLoadConfigDTO", } response_data = self.api_client.call_api( *_param, @@ -1434,7 +1435,7 @@ def put_config_without_preload_content( def _put_config_serialize( self, draft_id, - direct_data_load_config_dto, + servicing_publicapi_transfers_direct_data_load_config_dto, target_tenant_id, _request_auth, _content_type, @@ -1463,8 +1464,8 @@ def _put_config_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if direct_data_load_config_dto is not None: - _body_params = direct_data_load_config_dto + if servicing_publicapi_transfers_direct_data_load_config_dto is not None: + _body_params = servicing_publicapi_transfers_direct_data_load_config_dto # set the HTTP header `Accept` @@ -1534,7 +1535,7 @@ def rollback_transaction( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DirectDataUploadFileResponseDTO: + ) -> ServicingPublicapiTransfersDirectDataUploadFileResponseDTO: """Roll back a transaction Rolls back the specified transaction. This discards all files uploaded within the transaction and deletes the transaction. After rolling back a transaction, you cannot use the transaction to upload data files. @@ -1578,7 +1579,7 @@ def rollback_transaction( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataUploadFileResponseDTO", + '200': "ServicingPublicapiTransfersDirectDataUploadFileResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1610,7 +1611,7 @@ def rollback_transaction_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DirectDataUploadFileResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersDirectDataUploadFileResponseDTO]: """Roll back a transaction Rolls back the specified transaction. This discards all files uploaded within the transaction and deletes the transaction. After rolling back a transaction, you cannot use the transaction to upload data files. @@ -1654,7 +1655,7 @@ def rollback_transaction_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataUploadFileResponseDTO", + '200': "ServicingPublicapiTransfersDirectDataUploadFileResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1730,7 +1731,7 @@ def rollback_transaction_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataUploadFileResponseDTO", + '200': "ServicingPublicapiTransfersDirectDataUploadFileResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1828,7 +1829,7 @@ def start_transaction( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DirectDataTransactionStartResponseDTO: + ) -> ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO: """Start a direct data intake transaction Create a transaction to contain your data files. To upload files to objects in Visier, you must first start a transaction. After starting a transaction and uploading files to the transaction, you can commit the transaction to process the uploaded files or roll back the transaction to discard the uploaded files. @@ -1869,7 +1870,7 @@ def start_transaction( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataTransactionStartResponseDTO", + '200': "ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1900,7 +1901,7 @@ def start_transaction_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DirectDataTransactionStartResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO]: """Start a direct data intake transaction Create a transaction to contain your data files. To upload files to objects in Visier, you must first start a transaction. After starting a transaction and uploading files to the transaction, you can commit the transaction to process the uploaded files or roll back the transaction to discard the uploaded files. @@ -1941,7 +1942,7 @@ def start_transaction_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataTransactionStartResponseDTO", + '200': "ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2013,7 +2014,7 @@ def start_transaction_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DirectDataTransactionStartResponseDTO", + '200': "ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO", } response_data = self.api_client.call_api( *_param, diff --git a/src/visier_api_data_in/visier_api_data_in/api/pgp_key_api.py b/src/visier_api_data_in/visier_api_data_in/api/pgp_key_api.py index 8f0b73a8d2..21098ab1de 100644 --- a/src/visier_api_data_in/visier_api_data_in/api/pgp_key_api.py +++ b/src/visier_api_data_in/visier_api_data_in/api/pgp_key_api.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,10 +23,10 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_data_in.models.key_pair_delete_response_dto import KeyPairDeleteResponseDTO -from visier_api_data_in.models.key_pair_generate_request_dto import KeyPairGenerateRequestDTO -from visier_api_data_in.models.public_key_dto import PublicKeyDTO -from visier_api_data_in.models.public_keys_dto import PublicKeysDTO +from visier_api_data_in.models.designer_crypto_key_pair_delete_response_dto import DesignerCryptoKeyPairDeleteResponseDTO +from visier_api_data_in.models.designer_crypto_key_pair_generate_request_dto import DesignerCryptoKeyPairGenerateRequestDTO +from visier_api_data_in.models.designer_crypto_public_key_dto import DesignerCryptoPublicKeyDTO +from visier_api_data_in.models.designer_crypto_public_keys_dto import DesignerCryptoPublicKeysDTO import visier_api_data_in.models @@ -59,7 +59,7 @@ def delete_pgp_key_pair( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> KeyPairDeleteResponseDTO: + ) -> DesignerCryptoKeyPairDeleteResponseDTO: """Delete a PGP key pair Delete a PGP key pair using a key ID. @@ -100,7 +100,7 @@ def delete_pgp_key_pair( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "KeyPairDeleteResponseDTO", + '200': "DesignerCryptoKeyPairDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -131,7 +131,7 @@ def delete_pgp_key_pair_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[KeyPairDeleteResponseDTO]: + ) -> ApiResponse[DesignerCryptoKeyPairDeleteResponseDTO]: """Delete a PGP key pair Delete a PGP key pair using a key ID. @@ -172,7 +172,7 @@ def delete_pgp_key_pair_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "KeyPairDeleteResponseDTO", + '200': "DesignerCryptoKeyPairDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -244,7 +244,7 @@ def delete_pgp_key_pair_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "KeyPairDeleteResponseDTO", + '200': "DesignerCryptoKeyPairDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -325,7 +325,7 @@ def _delete_pgp_key_pair_serialize( @validate_call def generate_pgp_key_pair( self, - key_pair_generate_request_dto: KeyPairGenerateRequestDTO, + designer_crypto_key_pair_generate_request_dto: DesignerCryptoKeyPairGenerateRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -339,13 +339,13 @@ def generate_pgp_key_pair( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PublicKeyDTO: + ) -> DesignerCryptoPublicKeyDTO: """Download a public encryption key Generate a key pair and retrieve the public key that you can use to encrypt your data to send to Visier. In the request body, optionally set the UTC expiration date for the key pair in ISO-8601 format. Must be between 2 and 10 years. Default is 2 years. - :param key_pair_generate_request_dto: (required) - :type key_pair_generate_request_dto: KeyPairGenerateRequestDTO + :param designer_crypto_key_pair_generate_request_dto: (required) + :type designer_crypto_key_pair_generate_request_dto: DesignerCryptoKeyPairGenerateRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -371,7 +371,7 @@ def generate_pgp_key_pair( """ # noqa: E501 _param = self._generate_pgp_key_pair_serialize( - key_pair_generate_request_dto=key_pair_generate_request_dto, + designer_crypto_key_pair_generate_request_dto=designer_crypto_key_pair_generate_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -380,7 +380,7 @@ def generate_pgp_key_pair( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PublicKeyDTO", + '200': "DesignerCryptoPublicKeyDTO", } response_data = self.api_client.call_api( *_param, @@ -397,7 +397,7 @@ def generate_pgp_key_pair( @validate_call def generate_pgp_key_pair_with_http_info( self, - key_pair_generate_request_dto: KeyPairGenerateRequestDTO, + designer_crypto_key_pair_generate_request_dto: DesignerCryptoKeyPairGenerateRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -411,13 +411,13 @@ def generate_pgp_key_pair_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PublicKeyDTO]: + ) -> ApiResponse[DesignerCryptoPublicKeyDTO]: """Download a public encryption key Generate a key pair and retrieve the public key that you can use to encrypt your data to send to Visier. In the request body, optionally set the UTC expiration date for the key pair in ISO-8601 format. Must be between 2 and 10 years. Default is 2 years. - :param key_pair_generate_request_dto: (required) - :type key_pair_generate_request_dto: KeyPairGenerateRequestDTO + :param designer_crypto_key_pair_generate_request_dto: (required) + :type designer_crypto_key_pair_generate_request_dto: DesignerCryptoKeyPairGenerateRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -443,7 +443,7 @@ def generate_pgp_key_pair_with_http_info( """ # noqa: E501 _param = self._generate_pgp_key_pair_serialize( - key_pair_generate_request_dto=key_pair_generate_request_dto, + designer_crypto_key_pair_generate_request_dto=designer_crypto_key_pair_generate_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -452,7 +452,7 @@ def generate_pgp_key_pair_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PublicKeyDTO", + '200': "DesignerCryptoPublicKeyDTO", } response_data = self.api_client.call_api( *_param, @@ -469,7 +469,7 @@ def generate_pgp_key_pair_with_http_info( @validate_call def generate_pgp_key_pair_without_preload_content( self, - key_pair_generate_request_dto: KeyPairGenerateRequestDTO, + designer_crypto_key_pair_generate_request_dto: DesignerCryptoKeyPairGenerateRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -488,8 +488,8 @@ def generate_pgp_key_pair_without_preload_content( Generate a key pair and retrieve the public key that you can use to encrypt your data to send to Visier. In the request body, optionally set the UTC expiration date for the key pair in ISO-8601 format. Must be between 2 and 10 years. Default is 2 years. - :param key_pair_generate_request_dto: (required) - :type key_pair_generate_request_dto: KeyPairGenerateRequestDTO + :param designer_crypto_key_pair_generate_request_dto: (required) + :type designer_crypto_key_pair_generate_request_dto: DesignerCryptoKeyPairGenerateRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -515,7 +515,7 @@ def generate_pgp_key_pair_without_preload_content( """ # noqa: E501 _param = self._generate_pgp_key_pair_serialize( - key_pair_generate_request_dto=key_pair_generate_request_dto, + designer_crypto_key_pair_generate_request_dto=designer_crypto_key_pair_generate_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -524,7 +524,7 @@ def generate_pgp_key_pair_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PublicKeyDTO", + '200': "DesignerCryptoPublicKeyDTO", } response_data = self.api_client.call_api( *_param, @@ -535,7 +535,7 @@ def generate_pgp_key_pair_without_preload_content( def _generate_pgp_key_pair_serialize( self, - key_pair_generate_request_dto, + designer_crypto_key_pair_generate_request_dto, target_tenant_id, _request_auth, _content_type, @@ -562,8 +562,8 @@ def _generate_pgp_key_pair_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if key_pair_generate_request_dto is not None: - _body_params = key_pair_generate_request_dto + if designer_crypto_key_pair_generate_request_dto is not None: + _body_params = designer_crypto_key_pair_generate_request_dto # set the HTTP header `Accept` @@ -631,7 +631,7 @@ def get_all_pgp_public_keys( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PublicKeysDTO: + ) -> DesignerCryptoPublicKeysDTO: """Retrieve all PGP public keys Retrieve a list of all PGP public keys in your tenant. @@ -669,7 +669,7 @@ def get_all_pgp_public_keys( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PublicKeysDTO", + '200': "DesignerCryptoPublicKeysDTO", } response_data = self.api_client.call_api( *_param, @@ -699,7 +699,7 @@ def get_all_pgp_public_keys_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PublicKeysDTO]: + ) -> ApiResponse[DesignerCryptoPublicKeysDTO]: """Retrieve all PGP public keys Retrieve a list of all PGP public keys in your tenant. @@ -737,7 +737,7 @@ def get_all_pgp_public_keys_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PublicKeysDTO", + '200': "DesignerCryptoPublicKeysDTO", } response_data = self.api_client.call_api( *_param, @@ -805,7 +805,7 @@ def get_all_pgp_public_keys_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PublicKeysDTO", + '200': "DesignerCryptoPublicKeysDTO", } response_data = self.api_client.call_api( *_param, @@ -897,7 +897,7 @@ def get_pgp_public_key( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PublicKeyDTO: + ) -> DesignerCryptoPublicKeyDTO: """Retrieve a PGP public key using the key ID If you know your PGP key ID, use it to retrieve the PGP public key. To get a list of all key IDs, see `Retrieve all PGP public keys`. @@ -938,7 +938,7 @@ def get_pgp_public_key( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PublicKeyDTO", + '200': "DesignerCryptoPublicKeyDTO", } response_data = self.api_client.call_api( *_param, @@ -969,7 +969,7 @@ def get_pgp_public_key_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PublicKeyDTO]: + ) -> ApiResponse[DesignerCryptoPublicKeyDTO]: """Retrieve a PGP public key using the key ID If you know your PGP key ID, use it to retrieve the PGP public key. To get a list of all key IDs, see `Retrieve all PGP public keys`. @@ -1010,7 +1010,7 @@ def get_pgp_public_key_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PublicKeyDTO", + '200': "DesignerCryptoPublicKeyDTO", } response_data = self.api_client.call_api( *_param, @@ -1082,7 +1082,7 @@ def get_pgp_public_key_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PublicKeyDTO", + '200': "DesignerCryptoPublicKeyDTO", } response_data = self.api_client.call_api( *_param, diff --git a/src/visier_api_data_in/visier_api_data_in/api/planning_data_load_api.py b/src/visier_api_data_in/visier_api_data_in/api/planning_data_load_api.py index f871a72045..ef4aa20497 100644 --- a/src/visier_api_data_in/visier_api_data_in/api/planning_data_load_api.py +++ b/src/visier_api_data_in/visier_api_data_in/api/planning_data_load_api.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/visier_api_data_in/models/__init__.py b/src/visier_api_data_in/visier_api_data_in/models/__init__.py index 484633137a..bb54e56611 100644 --- a/src/visier_api_data_in/visier_api_data_in/models/__init__.py +++ b/src/visier_api_data_in/visier_api_data_in/models/__init__.py @@ -6,7 +6,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,145 +16,143 @@ # import models into model package -from visier_api_data_in.models.adp_auth_params_dto import AdpAuthParamsDTO -from visier_api_data_in.models.assign_connector_credential_request import AssignConnectorCredentialRequest -from visier_api_data_in.models.assign_connector_credentials_by_tenant_response_dto import AssignConnectorCredentialsByTenantResponseDTO -from visier_api_data_in.models.assign_connector_credentials_response_dto import AssignConnectorCredentialsResponseDTO -from visier_api_data_in.models.assign_connector_with_credentials_response_dto import AssignConnectorWithCredentialsResponseDTO -from visier_api_data_in.models.assigned_credential_info_response_dto import AssignedCredentialInfoResponseDTO -from visier_api_data_in.models.bamboo_auth_params_dto import BambooAuthParamsDTO -from visier_api_data_in.models.basic_s3_auth_params_dto import BasicS3AuthParamsDTO -from visier_api_data_in.models.big_query_auth_params_dto import BigQueryAuthParamsDTO -from visier_api_data_in.models.big_query_service_account_params_dto import BigQueryServiceAccountParamsDTO -from visier_api_data_in.models.cancel_job_batch_from_job_id_dto import CancelJobBatchFromJobIdDTO -from visier_api_data_in.models.connector import Connector -from visier_api_data_in.models.connector_info_response_dto import ConnectorInfoResponseDTO -from visier_api_data_in.models.connector_setting_request_dto import ConnectorSettingRequestDTO -from visier_api_data_in.models.connector_setting_response_dto import ConnectorSettingResponseDTO -from visier_api_data_in.models.connector_settings_response_dto import ConnectorSettingsResponseDTO -from visier_api_data_in.models.consolidated_analytics_job_request_dto import ConsolidatedAnalyticsJobRequestDTO -from visier_api_data_in.models.copy_s3_auth_params_dto import CopyS3AuthParamsDTO -from visier_api_data_in.models.credential_creation_api_response_dto import CredentialCreationAPIResponseDTO -from visier_api_data_in.models.data_categories_response_dto import DataCategoriesResponseDTO -from visier_api_data_in.models.data_category_response_dto import DataCategoryResponseDTO -from visier_api_data_in.models.data_load_request import DataLoadRequest -from visier_api_data_in.models.data_load_request_model import DataLoadRequestModel -from visier_api_data_in.models.data_load_response import DataLoadResponse -from visier_api_data_in.models.data_provider_auth_information_dto import DataProviderAuthInformationDTO -from visier_api_data_in.models.data_provider_auth_params_dto import DataProviderAuthParamsDTO -from visier_api_data_in.models.data_provider_basic_information_dto import DataProviderBasicInformationDTO -from visier_api_data_in.models.data_provider_basic_metadata_dto import DataProviderBasicMetadataDTO -from visier_api_data_in.models.data_transfer_result_detail import DataTransferResultDetail -from visier_api_data_in.models.data_version_and_date_dto import DataVersionAndDateDTO -from visier_api_data_in.models.data_version_object import DataVersionObject -from visier_api_data_in.models.dayforce_v2_auth_params_dto import DayforceV2AuthParamsDTO -from visier_api_data_in.models.dimensions_auth_params_dto import DimensionsAuthParamsDTO -from visier_api_data_in.models.direct_data_job_config_dto import DirectDataJobConfigDTO -from visier_api_data_in.models.direct_data_job_status_response_dto import DirectDataJobStatusResponseDTO -from visier_api_data_in.models.direct_data_load_config_dto import DirectDataLoadConfigDTO -from visier_api_data_in.models.direct_data_schema_dto import DirectDataSchemaDTO -from visier_api_data_in.models.direct_data_schema_field_dto import DirectDataSchemaFieldDTO -from visier_api_data_in.models.direct_data_transaction_start_response_dto import DirectDataTransactionStartResponseDTO +from visier_api_data_in.models.admin_data_transfers_import_definition_apidto import AdminDataTransfersImportDefinitionAPIDTO +from visier_api_data_in.models.admin_data_transfers_import_definitions_apidto import AdminDataTransfersImportDefinitionsAPIDTO +from visier_api_data_in.models.admin_jobs_consolidated_analytics_job_request_dto import AdminJobsConsolidatedAnalyticsJobRequestDTO +from visier_api_data_in.models.admin_jobs_extract_data_and_load_dto import AdminJobsExtractDataAndLoadDTO +from visier_api_data_in.models.admin_jobs_processing_job_request_dto import AdminJobsProcessingJobRequestDTO +from visier_api_data_in.models.admin_transfers_assign_connector_credentials_by_tenant_response_dto import AdminTransfersAssignConnectorCredentialsByTenantResponseDTO +from visier_api_data_in.models.admin_transfers_assign_connector_credentials_response_dto import AdminTransfersAssignConnectorCredentialsResponseDTO +from visier_api_data_in.models.admin_transfers_assign_connector_with_credentials_response_dto import AdminTransfersAssignConnectorWithCredentialsResponseDTO +from visier_api_data_in.models.admin_transfers_assigned_credential_info_response_dto import AdminTransfersAssignedCredentialInfoResponseDTO +from visier_api_data_in.models.admin_transfers_connector_info_response_dto import AdminTransfersConnectorInfoResponseDTO +from visier_api_data_in.models.admin_transfers_connector_setting_request_dto import AdminTransfersConnectorSettingRequestDTO +from visier_api_data_in.models.admin_transfers_connector_setting_response_dto import AdminTransfersConnectorSettingResponseDTO +from visier_api_data_in.models.admin_transfers_connector_settings_response_dto import AdminTransfersConnectorSettingsResponseDTO +from visier_api_data_in.models.admin_transfers_data_version_and_date_dto import AdminTransfersDataVersionAndDateDTO +from visier_api_data_in.models.admin_transfers_extractor_setting_apidto import AdminTransfersExtractorSettingAPIDTO +from visier_api_data_in.models.admin_transfers_extractor_setting_key_value_apidto import AdminTransfersExtractorSettingKeyValueAPIDTO +from visier_api_data_in.models.admin_transfers_extractor_settings_apidto import AdminTransfersExtractorSettingsAPIDTO +from visier_api_data_in.models.admin_transfers_multiple_tenant_data_versions_details_dto import AdminTransfersMultipleTenantDataVersionsDetailsDTO +from visier_api_data_in.models.admin_transfers_multiple_tenant_data_versions_list_dto import AdminTransfersMultipleTenantDataVersionsListDTO +from visier_api_data_in.models.admin_transfers_set_connector_setting_request_dto import AdminTransfersSetConnectorSettingRequestDTO +from visier_api_data_in.models.admin_transfers_set_connector_setting_response_dto import AdminTransfersSetConnectorSettingResponseDTO +from visier_api_data_in.models.admin_transfers_set_connector_settings_request_dto import AdminTransfersSetConnectorSettingsRequestDTO +from visier_api_data_in.models.admin_transfers_set_connector_settings_response_dto import AdminTransfersSetConnectorSettingsResponseDTO +from visier_api_data_in.models.admin_transfers_tenant_connector_settings_request_dto import AdminTransfersTenantConnectorSettingsRequestDTO +from visier_api_data_in.models.data_in_assign_connector_credential_request import DataInAssignConnectorCredentialRequest +from visier_api_data_in.models.data_in_connector import DataInConnector +from visier_api_data_in.models.data_in_data_load_request import DataInDataLoadRequest +from visier_api_data_in.models.data_in_data_load_request_model import DataInDataLoadRequestModel +from visier_api_data_in.models.data_in_data_load_response import DataInDataLoadResponse +from visier_api_data_in.models.data_in_data_transfer_result_detail import DataInDataTransferResultDetail +from visier_api_data_in.models.data_in_data_version_object import DataInDataVersionObject +from visier_api_data_in.models.data_in_disable_dv_model import DataInDisableDVModel +from visier_api_data_in.models.data_in_disable_dv_request import DataInDisableDVRequest +from visier_api_data_in.models.data_in_disable_dv_response import DataInDisableDVResponse +from visier_api_data_in.models.data_in_dispatching_job_status_response import DataInDispatchingJobStatusResponse +from visier_api_data_in.models.data_in_exclude_data_uploads_request import DataInExcludeDataUploadsRequest +from visier_api_data_in.models.data_in_extraction_job import DataInExtractionJob +from visier_api_data_in.models.data_in_extraction_job_and_status_response import DataInExtractionJobAndStatusResponse +from visier_api_data_in.models.data_in_include_data_uploads_request import DataInIncludeDataUploadsRequest +from visier_api_data_in.models.data_in_job_status_list_response import DataInJobStatusListResponse +from visier_api_data_in.models.data_in_job_status_with_start_time import DataInJobStatusWithStartTime +from visier_api_data_in.models.data_in_processing_job import DataInProcessingJob +from visier_api_data_in.models.data_in_processing_job_and_status_response import DataInProcessingJobAndStatusResponse +from visier_api_data_in.models.data_in_processing_job_status_response import DataInProcessingJobStatusResponse +from visier_api_data_in.models.data_in_push_data_cancel_response import DataInPushDataCancelResponse +from visier_api_data_in.models.data_in_push_data_complete_request import DataInPushDataCompleteRequest +from visier_api_data_in.models.data_in_push_data_complete_response import DataInPushDataCompleteResponse +from visier_api_data_in.models.data_in_push_data_response import DataInPushDataResponse +from visier_api_data_in.models.data_in_receiving_job import DataInReceivingJob +from visier_api_data_in.models.data_in_receiving_job_and_status_response import DataInReceivingJobAndStatusResponse +from visier_api_data_in.models.data_in_receiving_job_status_response import DataInReceivingJobStatusResponse +from visier_api_data_in.models.data_in_result import DataInResult +from visier_api_data_in.models.data_in_source import DataInSource +from visier_api_data_in.models.data_in_start_extraction_response import DataInStartExtractionResponse +from visier_api_data_in.models.data_in_start_transfer_response import DataInStartTransferResponse +from visier_api_data_in.models.data_in_tenant import DataInTenant +from visier_api_data_in.models.data_in_tenant_and_credential import DataInTenantAndCredential +from visier_api_data_in.models.data_in_upload_to_exclude import DataInUploadToExclude +from visier_api_data_in.models.data_in_upload_to_include import DataInUploadToInclude +from visier_api_data_in.models.designer_crypto_key_pair_delete_response_dto import DesignerCryptoKeyPairDeleteResponseDTO +from visier_api_data_in.models.designer_crypto_key_pair_generate_request_dto import DesignerCryptoKeyPairGenerateRequestDTO +from visier_api_data_in.models.designer_crypto_public_key_dto import DesignerCryptoPublicKeyDTO +from visier_api_data_in.models.designer_crypto_public_keys_dto import DesignerCryptoPublicKeysDTO +from visier_api_data_in.models.designer_transfers_adp_auth_params_dto import DesignerTransfersAdpAuthParamsDTO +from visier_api_data_in.models.designer_transfers_bamboo_auth_params_dto import DesignerTransfersBambooAuthParamsDTO +from visier_api_data_in.models.designer_transfers_basic_s3_auth_params_dto import DesignerTransfersBasicS3AuthParamsDTO +from visier_api_data_in.models.designer_transfers_big_query_auth_params_dto import DesignerTransfersBigQueryAuthParamsDTO +from visier_api_data_in.models.designer_transfers_big_query_service_account_params_dto import DesignerTransfersBigQueryServiceAccountParamsDTO +from visier_api_data_in.models.designer_transfers_copy_s3_auth_params_dto import DesignerTransfersCopyS3AuthParamsDTO +from visier_api_data_in.models.designer_transfers_credential_creation_api_response_dto import DesignerTransfersCredentialCreationAPIResponseDTO +from visier_api_data_in.models.designer_transfers_data_provider_auth_information_dto import DesignerTransfersDataProviderAuthInformationDTO +from visier_api_data_in.models.designer_transfers_data_provider_auth_params_dto import DesignerTransfersDataProviderAuthParamsDTO +from visier_api_data_in.models.designer_transfers_data_provider_basic_information_dto import DesignerTransfersDataProviderBasicInformationDTO +from visier_api_data_in.models.designer_transfers_data_provider_basic_metadata_dto import DesignerTransfersDataProviderBasicMetadataDTO +from visier_api_data_in.models.designer_transfers_dayforce_v2_auth_params_dto import DesignerTransfersDayforceV2AuthParamsDTO +from visier_api_data_in.models.designer_transfers_dimensions_auth_params_dto import DesignerTransfersDimensionsAuthParamsDTO +from visier_api_data_in.models.designer_transfers_extractor_credential_apidto import DesignerTransfersExtractorCredentialAPIDTO +from visier_api_data_in.models.designer_transfers_extractor_credentials_apidto import DesignerTransfersExtractorCredentialsAPIDTO +from visier_api_data_in.models.designer_transfers_fusion_auth_params_dto import DesignerTransfersFusionAuthParamsDTO +from visier_api_data_in.models.designer_transfers_gong_auth_params_dto import DesignerTransfersGongAuthParamsDTO +from visier_api_data_in.models.designer_transfers_google_sheets_auth_params_dto import DesignerTransfersGoogleSheetsAuthParamsDTO +from visier_api_data_in.models.designer_transfers_google_workspace_auth_params_dto import DesignerTransfersGoogleWorkspaceAuthParamsDTO +from visier_api_data_in.models.designer_transfers_greenhouse_auth_params_dto import DesignerTransfersGreenhouseAuthParamsDTO +from visier_api_data_in.models.designer_transfers_icims_auth_params_dto import DesignerTransfersIcimsAuthParamsDTO +from visier_api_data_in.models.designer_transfers_internal_s3_auth_params_dto import DesignerTransfersInternalS3AuthParamsDTO +from visier_api_data_in.models.designer_transfers_jdbc_auth_params_dto import DesignerTransfersJdbcAuthParamsDTO +from visier_api_data_in.models.designer_transfers_jira_auth_params_dto import DesignerTransfersJiraAuthParamsDTO +from visier_api_data_in.models.designer_transfers_jira_connect_params_dto import DesignerTransfersJiraConnectParamsDTO +from visier_api_data_in.models.designer_transfers_lever_auth_params_dto import DesignerTransfersLeverAuthParamsDTO +from visier_api_data_in.models.designer_transfers_medallia_auth_params_dto import DesignerTransfersMedalliaAuthParamsDTO +from visier_api_data_in.models.designer_transfers_microsoft365_auth_params_dto import DesignerTransfersMicrosoft365AuthParamsDTO +from visier_api_data_in.models.designer_transfers_my_sql_auth_params_dto import DesignerTransfersMySqlAuthParamsDTO +from visier_api_data_in.models.designer_transfers_namely_auth_params_dto import DesignerTransfersNamelyAuthParamsDTO +from visier_api_data_in.models.designer_transfers_oracle_db_auth_params_dto import DesignerTransfersOracleDbAuthParamsDTO +from visier_api_data_in.models.designer_transfers_push_data_column_definition_dto import DesignerTransfersPushDataColumnDefinitionDTO +from visier_api_data_in.models.designer_transfers_push_data_source_definition_dto import DesignerTransfersPushDataSourceDefinitionDTO +from visier_api_data_in.models.designer_transfers_push_data_source_definitions_dto import DesignerTransfersPushDataSourceDefinitionsDTO +from visier_api_data_in.models.designer_transfers_qualtrics_auth_params_dto import DesignerTransfersQualtricsAuthParamsDTO +from visier_api_data_in.models.designer_transfers_redshift_auth_params_dto import DesignerTransfersRedshiftAuthParamsDTO +from visier_api_data_in.models.designer_transfers_salesforce_auth_params_dto import DesignerTransfersSalesforceAuthParamsDTO +from visier_api_data_in.models.designer_transfers_salesforce_v2_auth_params_dto import DesignerTransfersSalesforceV2AuthParamsDTO +from visier_api_data_in.models.designer_transfers_service_now_auth_params_dto import DesignerTransfersServiceNowAuthParamsDTO +from visier_api_data_in.models.designer_transfers_service_now_v2_auth_params_dto import DesignerTransfersServiceNowV2AuthParamsDTO +from visier_api_data_in.models.designer_transfers_slack_auth_params_dto import DesignerTransfersSlackAuthParamsDTO +from visier_api_data_in.models.designer_transfers_snowflake_auth_params_dto import DesignerTransfersSnowflakeAuthParamsDTO +from visier_api_data_in.models.designer_transfers_sql_server_auth_params_dto import DesignerTransfersSqlServerAuthParamsDTO +from visier_api_data_in.models.designer_transfers_subject_missing_access_dto import DesignerTransfersSubjectMissingAccessDTO +from visier_api_data_in.models.designer_transfers_success_factors_auth_params_dto import DesignerTransfersSuccessFactorsAuthParamsDTO +from visier_api_data_in.models.designer_transfers_success_factors_o_auth_params_dto import DesignerTransfersSuccessFactorsOAuthParamsDTO +from visier_api_data_in.models.designer_transfers_ultimate_auth_params_dto import DesignerTransfersUltimateAuthParamsDTO +from visier_api_data_in.models.designer_transfers_willow_auth_params_dto import DesignerTransfersWillowAuthParamsDTO +from visier_api_data_in.models.designer_transfers_workday_auth_params_dto import DesignerTransfersWorkdayAuthParamsDTO +from visier_api_data_in.models.designer_transfers_workday_o_auth_params_dto import DesignerTransfersWorkdayOAuthParamsDTO +from visier_api_data_in.models.designer_transfers_workday_raas_auth_params_dto import DesignerTransfersWorkdayRaasAuthParamsDTO +from visier_api_data_in.models.designer_transfers_workday_refresh_token_params_dto import DesignerTransfersWorkdayRefreshTokenParamsDTO +from visier_api_data_in.models.designer_transfers_zoom_auth_params_dto import DesignerTransfersZoomAuthParamsDTO from visier_api_data_in.models.direct_data_upload_file_response_dto import DirectDataUploadFileResponseDTO -from visier_api_data_in.models.disable_dv_model import DisableDVModel -from visier_api_data_in.models.disable_dv_request import DisableDVRequest -from visier_api_data_in.models.disable_dv_response import DisableDVResponse -from visier_api_data_in.models.dispatching_job_status_response import DispatchingJobStatusResponse -from visier_api_data_in.models.exclude_data_uploads_request import ExcludeDataUploadsRequest -from visier_api_data_in.models.extract_data_and_load_dto import ExtractDataAndLoadDTO -from visier_api_data_in.models.extraction_job import ExtractionJob -from visier_api_data_in.models.extraction_job_and_status_response import ExtractionJobAndStatusResponse -from visier_api_data_in.models.extractor_credential_apidto import ExtractorCredentialAPIDTO -from visier_api_data_in.models.extractor_credentials_apidto import ExtractorCredentialsAPIDTO -from visier_api_data_in.models.extractor_setting_apidto import ExtractorSettingAPIDTO -from visier_api_data_in.models.extractor_setting_key_value_apidto import ExtractorSettingKeyValueAPIDTO -from visier_api_data_in.models.extractor_settings_apidto import ExtractorSettingsAPIDTO -from visier_api_data_in.models.fusion_auth_params_dto import FusionAuthParamsDTO -from visier_api_data_in.models.gong_auth_params_dto import GongAuthParamsDTO -from visier_api_data_in.models.google_protobuf_any import GoogleProtobufAny -from visier_api_data_in.models.google_sheets_auth_params_dto import GoogleSheetsAuthParamsDTO -from visier_api_data_in.models.google_workspace_auth_params_dto import GoogleWorkspaceAuthParamsDTO -from visier_api_data_in.models.greenhouse_auth_params_dto import GreenhouseAuthParamsDTO -from visier_api_data_in.models.icims_auth_params_dto import IcimsAuthParamsDTO -from visier_api_data_in.models.import_definition_apidto import ImportDefinitionAPIDTO -from visier_api_data_in.models.import_definitions_apidto import ImportDefinitionsAPIDTO -from visier_api_data_in.models.include_data_uploads_request import IncludeDataUploadsRequest -from visier_api_data_in.models.internal_s3_auth_params_dto import InternalS3AuthParamsDTO -from visier_api_data_in.models.jdbc_auth_params_dto import JdbcAuthParamsDTO -from visier_api_data_in.models.jira_auth_params_dto import JiraAuthParamsDTO -from visier_api_data_in.models.jira_connect_params_dto import JiraConnectParamsDTO -from visier_api_data_in.models.job_cancellation_result_dto import JobCancellationResultDTO -from visier_api_data_in.models.job_cancellation_results_dto import JobCancellationResultsDTO -from visier_api_data_in.models.job_id_response import JobIdResponse -from visier_api_data_in.models.job_status_list_response import JobStatusListResponse -from visier_api_data_in.models.job_status_with_start_time import JobStatusWithStartTime -from visier_api_data_in.models.key_pair_delete_response_dto import KeyPairDeleteResponseDTO -from visier_api_data_in.models.key_pair_generate_request_dto import KeyPairGenerateRequestDTO -from visier_api_data_in.models.lever_auth_params_dto import LeverAuthParamsDTO -from visier_api_data_in.models.medallia_auth_params_dto import MedalliaAuthParamsDTO -from visier_api_data_in.models.microsoft365_auth_params_dto import Microsoft365AuthParamsDTO -from visier_api_data_in.models.multiple_tenant_data_versions_details_dto import MultipleTenantDataVersionsDetailsDTO -from visier_api_data_in.models.multiple_tenant_data_versions_list_dto import MultipleTenantDataVersionsListDTO -from visier_api_data_in.models.my_sql_auth_params_dto import MySqlAuthParamsDTO -from visier_api_data_in.models.namely_auth_params_dto import NamelyAuthParamsDTO -from visier_api_data_in.models.oracle_db_auth_params_dto import OracleDbAuthParamsDTO +from visier_api_data_in.models.dp_transfers_cancel_job_batch_from_job_id_dto import DpTransfersCancelJobBatchFromJobIdDTO +from visier_api_data_in.models.dp_transfers_job_cancellation_result_dto import DpTransfersJobCancellationResultDTO +from visier_api_data_in.models.dp_transfers_job_cancellation_results_dto import DpTransfersJobCancellationResultsDTO from visier_api_data_in.models.plan_data_load_change_dto import PlanDataLoadChangeDTO from visier_api_data_in.models.plan_data_load_change_list_dto import PlanDataLoadChangeListDTO -from visier_api_data_in.models.plan_data_load_error_dto import PlanDataLoadErrorDTO from visier_api_data_in.models.plan_data_upload_response_dto import PlanDataUploadResponseDTO from visier_api_data_in.models.plan_row_data_load_response_dto import PlanRowDataLoadResponseDTO -from visier_api_data_in.models.plan_segment_level_member_dto import PlanSegmentLevelMemberDTO -from visier_api_data_in.models.processing_job import ProcessingJob -from visier_api_data_in.models.processing_job_and_status_response import ProcessingJobAndStatusResponse -from visier_api_data_in.models.processing_job_request_dto import ProcessingJobRequestDTO -from visier_api_data_in.models.processing_job_status_response import ProcessingJobStatusResponse -from visier_api_data_in.models.public_key_dto import PublicKeyDTO -from visier_api_data_in.models.public_keys_dto import PublicKeysDTO -from visier_api_data_in.models.push_data_cancel_response import PushDataCancelResponse -from visier_api_data_in.models.push_data_column_definition_dto import PushDataColumnDefinitionDTO -from visier_api_data_in.models.push_data_complete_request import PushDataCompleteRequest -from visier_api_data_in.models.push_data_complete_response import PushDataCompleteResponse -from visier_api_data_in.models.push_data_response import PushDataResponse -from visier_api_data_in.models.push_data_source_definition_dto import PushDataSourceDefinitionDTO -from visier_api_data_in.models.push_data_source_definitions_dto import PushDataSourceDefinitionsDTO -from visier_api_data_in.models.qualtrics_auth_params_dto import QualtricsAuthParamsDTO -from visier_api_data_in.models.receiving_job import ReceivingJob -from visier_api_data_in.models.receiving_job_and_status_response import ReceivingJobAndStatusResponse -from visier_api_data_in.models.receiving_job_status_response import ReceivingJobStatusResponse -from visier_api_data_in.models.redshift_auth_params_dto import RedshiftAuthParamsDTO -from visier_api_data_in.models.result import Result -from visier_api_data_in.models.salesforce_auth_params_dto import SalesforceAuthParamsDTO -from visier_api_data_in.models.salesforce_v2_auth_params_dto import SalesforceV2AuthParamsDTO -from visier_api_data_in.models.service_now_auth_params_dto import ServiceNowAuthParamsDTO -from visier_api_data_in.models.service_now_v2_auth_params_dto import ServiceNowV2AuthParamsDTO -from visier_api_data_in.models.set_connector_setting_request_dto import SetConnectorSettingRequestDTO -from visier_api_data_in.models.set_connector_setting_response_dto import SetConnectorSettingResponseDTO -from visier_api_data_in.models.set_connector_settings_request_dto import SetConnectorSettingsRequestDTO -from visier_api_data_in.models.set_connector_settings_response_dto import SetConnectorSettingsResponseDTO -from visier_api_data_in.models.slack_auth_params_dto import SlackAuthParamsDTO -from visier_api_data_in.models.snowflake_auth_params_dto import SnowflakeAuthParamsDTO -from visier_api_data_in.models.source import Source -from visier_api_data_in.models.sql_server_auth_params_dto import SqlServerAuthParamsDTO -from visier_api_data_in.models.start_extraction_response import StartExtractionResponse -from visier_api_data_in.models.start_transfer_response import StartTransferResponse +from visier_api_data_in.models.servicing_publicapi_transfers_data_categories_response_dto import ServicingPublicapiTransfersDataCategoriesResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_data_category_response_dto import ServicingPublicapiTransfersDataCategoryResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_job_config_dto import ServicingPublicapiTransfersDirectDataJobConfigDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_job_status_response_dto import ServicingPublicapiTransfersDirectDataJobStatusResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_load_config_dto import ServicingPublicapiTransfersDirectDataLoadConfigDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_schema_dto import ServicingPublicapiTransfersDirectDataSchemaDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_schema_field_dto import ServicingPublicapiTransfersDirectDataSchemaFieldDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_transaction_start_response_dto import ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_upload_file_response_dto import ServicingPublicapiTransfersDirectDataUploadFileResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_job_id_response import ServicingPublicapiTransfersJobIdResponse +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_upload_status_response_dto import ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_upload_update_status_response_dto import ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_uploads_list_response_dto import ServicingPublicapiTransfersTenantDataUploadsListResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_uploads_response_dto import ServicingPublicapiTransfersTenantDataUploadsResponseDTO +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_uploads_update_response_dto import ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO from visier_api_data_in.models.status import Status -from visier_api_data_in.models.subject_missing_access_dto import SubjectMissingAccessDTO -from visier_api_data_in.models.success_factors_auth_params_dto import SuccessFactorsAuthParamsDTO -from visier_api_data_in.models.success_factors_o_auth_params_dto import SuccessFactorsOAuthParamsDTO -from visier_api_data_in.models.tenant import Tenant -from visier_api_data_in.models.tenant_and_credential import TenantAndCredential -from visier_api_data_in.models.tenant_connector_settings_request_dto import TenantConnectorSettingsRequestDTO -from visier_api_data_in.models.tenant_data_upload_status_response_dto import TenantDataUploadStatusResponseDTO -from visier_api_data_in.models.tenant_data_upload_update_status_response_dto import TenantDataUploadUpdateStatusResponseDTO -from visier_api_data_in.models.tenant_data_uploads_list_response_dto import TenantDataUploadsListResponseDTO -from visier_api_data_in.models.tenant_data_uploads_response_dto import TenantDataUploadsResponseDTO -from visier_api_data_in.models.tenant_data_uploads_update_response_dto import TenantDataUploadsUpdateResponseDTO -from visier_api_data_in.models.ultimate_auth_params_dto import UltimateAuthParamsDTO -from visier_api_data_in.models.upload_to_exclude import UploadToExclude -from visier_api_data_in.models.upload_to_include import UploadToInclude -from visier_api_data_in.models.willow_auth_params_dto import WillowAuthParamsDTO -from visier_api_data_in.models.workday_auth_params_dto import WorkdayAuthParamsDTO -from visier_api_data_in.models.workday_o_auth_params_dto import WorkdayOAuthParamsDTO -from visier_api_data_in.models.workday_raas_auth_params_dto import WorkdayRaasAuthParamsDTO -from visier_api_data_in.models.workday_refresh_token_params_dto import WorkdayRefreshTokenParamsDTO -from visier_api_data_in.models.zoom_auth_params_dto import ZoomAuthParamsDTO diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_data_transfers_import_definition_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_data_transfers_import_definition_apidto.py new file mode 100644 index 0000000000..7f235c9cef --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_data_transfers_import_definition_apidto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminDataTransfersImportDefinitionAPIDTO(BaseModel): + """ + AdminDataTransfersImportDefinitionAPIDTO + """ # noqa: E501 + connector_id: Optional[StrictStr] = Field(default=None, description="The ID associated with the data connector.", alias="connectorId") + credential_id: Optional[StrictStr] = Field(default=None, description="The ID associated with the connector credentials currently assigned to this data connector.", alias="credentialId") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable data connector name that is displayed within Visier.", alias="displayName") + __properties: ClassVar[List[str]] = ["connectorId", "credentialId", "displayName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminDataTransfersImportDefinitionAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminDataTransfersImportDefinitionAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectorId": obj.get("connectorId"), + "credentialId": obj.get("credentialId"), + "displayName": obj.get("displayName") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_data_transfers_import_definitions_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_data_transfers_import_definitions_apidto.py new file mode 100644 index 0000000000..4eaf69a58a --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_data_transfers_import_definitions_apidto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.admin_data_transfers_import_definition_apidto import AdminDataTransfersImportDefinitionAPIDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminDataTransfersImportDefinitionsAPIDTO(BaseModel): + """ + AdminDataTransfersImportDefinitionsAPIDTO + """ # noqa: E501 + data_connectors: Optional[List[AdminDataTransfersImportDefinitionAPIDTO]] = Field(default=None, description="A list of objects representing all the available data connectors in Production.", alias="dataConnectors") + limit: Optional[StrictInt] = Field(default=None, description="The number of data connectors to return. The maximum number of data connectors to return is 1000.") + start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving values from, also known as offset. The index begins at 0.") + __properties: ClassVar[List[str]] = ["dataConnectors", "limit", "start"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminDataTransfersImportDefinitionsAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data_connectors (list) + _items = [] + if self.data_connectors: + for _item_data_connectors in self.data_connectors: + if _item_data_connectors: + _items.append(_item_data_connectors.to_dict()) + _dict['dataConnectors'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminDataTransfersImportDefinitionsAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataConnectors": [AdminDataTransfersImportDefinitionAPIDTO.from_dict(_item) for _item in obj["dataConnectors"]] if obj.get("dataConnectors") is not None else None, + "limit": obj.get("limit"), + "start": obj.get("start") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_jobs_consolidated_analytics_job_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_jobs_consolidated_analytics_job_request_dto.py new file mode 100644 index 0000000000..b94b04776b --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_jobs_consolidated_analytics_job_request_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminJobsConsolidatedAnalyticsJobRequestDTO(BaseModel): + """ + AdminJobsConsolidatedAnalyticsJobRequestDTO + """ # noqa: E501 + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the consolidated analytics tenant; for example, \"WFF_j1r~CAa7s\".", alias="tenantCode") + __properties: ClassVar[List[str]] = ["tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminJobsConsolidatedAnalyticsJobRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminJobsConsolidatedAnalyticsJobRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_jobs_extract_data_and_load_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_jobs_extract_data_and_load_dto.py new file mode 100644 index 0000000000..66b67e7f31 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_jobs_extract_data_and_load_dto.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminJobsExtractDataAndLoadDTO(BaseModel): + """ + AdminJobsExtractDataAndLoadDTO + """ # noqa: E501 + all_tenants: Optional[StrictBool] = Field(default=None, description="If `true`, one extraction job is dispatched for each accessible analytic tenant. Only valid for requests from an administrating tenant.", alias="allTenants") + batch_size_override: Optional[StrictInt] = Field(default=None, description="The maximum number of subjects the job can retrieve in each batch.", alias="batchSizeOverride") + connector_ids: Optional[List[StrictStr]] = Field(default=None, description="The unique identifiers of the connectors to run extraction jobs.", alias="connectorIds") + data_category_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the data category on which to trigger the extraction job. Default is the tenant's primary data category.", alias="dataCategoryId") + disable_artifact_generation: Optional[StrictBool] = Field(default=None, description="If `true`, the job does not generate data load artifacts. If unspecified, the default is `false`.", alias="disableArtifactGeneration") + excluded_tenants: Optional[List[StrictStr]] = Field(default=None, description="The unique identifiers of the tenants to exclude from the extraction job. Only valid if `allTenants` is `true`. Only valid for requests from an administrating tenant.", alias="excludedTenants") + extract_to_time_override: Optional[StrictStr] = Field(default=None, description="An epoch timestamp in milliseconds for the end time up to which to retrieve data.", alias="extractToTimeOverride") + force_update_existing_artifacts: Optional[StrictBool] = Field(default=None, description="If `true` and `disableArtifactGeneration` is `false`, updates extractor artifacts, which may overwrite the artifacts' manual overrides. Ignored if `disableArtifactGeneration` is `true`.", alias="forceUpdateExistingArtifacts") + last_extraction_time_offset_mode: Optional[StrictStr] = Field(default=None, description="The mode used to offset the last extraction time (weeks vs months)", alias="lastExtractionTimeOffsetMode") + last_extraction_time_offset_months: Optional[StrictInt] = Field(default=None, description="The number of months to offset the last extraction time. This overrides the last extraction date backward to retrieve more data.", alias="lastExtractionTimeOffsetMonths") + last_extraction_time_offset_weeks: Optional[StrictInt] = Field(default=None, description="The number of weeks in the past to retrieve data. This overrides the last extraction date to retrieve more data.", alias="lastExtractionTimeOffsetWeeks") + months_to_extract: Optional[StrictInt] = Field(default=None, description="The number of months to retrieve snapshot data.", alias="monthsToExtract") + offset_month_option: Optional[StrictStr] = Field(default=None, description="The month options used to offset the last extraction time (first of month / last of month)", alias="offsetMonthOption") + offset_week_option: Optional[StrictStr] = Field(default=None, description="The week options used to offset the last extraction time (first of day / last of day)", alias="offsetWeekOption") + override_last_extraction_timestamp: Optional[StrictStr] = Field(default=None, description="An epoch timestamp in milliseconds from which to retrieve data. This overrides the last extraction date to retrieve more data.", alias="overrideLastExtractionTimestamp") + publish_data_load_artifacts: Optional[StrictBool] = Field(default=None, description="If `true`, the generated data load artifacts are published to production immediately.", alias="publishDataLoadArtifacts") + run_processing_job: Optional[StrictBool] = Field(default=None, description="If `true`, a processing job is spawned after a dispatched extraction job runs successfully.", alias="runProcessingJob") + spill_debug_info_detail_level_dto: Optional[StrictStr] = Field(default=None, description="The detail level of the debugging info to be generated. Valid values are: - `fileAndLine`: Debugging info is generated for file and line. - `mappingName`: Debugging info is generated for mapping name.", alias="spillDebugInfoDetailLevelDTO") + spill_debug_info_partitions_dto: Optional[StrictStr] = Field(default=None, description="The partitioning of debugging info to be generated, if any. Valid values are: - `spillNone`: No debugging info is generated. - `spillStagesAndRecords`: Debugging info is generated for stages and records. - `spillAll`: Debugging info is generated for all partitions.", alias="spillDebugInfoPartitionsDTO") + sql_batch_size: Optional[StrictInt] = Field(default=None, description="The maximum number of SQL table records the job can retrieve in each batch.", alias="sqlBatchSize") + tenants: Optional[List[StrictStr]] = Field(default=None, description="A list of analytic tenants to dispatch extraction jobs for. One extraction job is dispatched per tenant. Only valid for requests from an administrating tenant.") + __properties: ClassVar[List[str]] = ["allTenants", "batchSizeOverride", "connectorIds", "dataCategoryId", "disableArtifactGeneration", "excludedTenants", "extractToTimeOverride", "forceUpdateExistingArtifacts", "lastExtractionTimeOffsetMode", "lastExtractionTimeOffsetMonths", "lastExtractionTimeOffsetWeeks", "monthsToExtract", "offsetMonthOption", "offsetWeekOption", "overrideLastExtractionTimestamp", "publishDataLoadArtifacts", "runProcessingJob", "spillDebugInfoDetailLevelDTO", "spillDebugInfoPartitionsDTO", "sqlBatchSize", "tenants"] + + @field_validator('spill_debug_info_detail_level_dto') + def spill_debug_info_detail_level_dto_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['fileAndLine', 'mappingName']): + raise ValueError("must be one of enum values ('fileAndLine', 'mappingName')") + return value + + @field_validator('spill_debug_info_partitions_dto') + def spill_debug_info_partitions_dto_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['spillNone', 'spillStagesAndRecords', 'spillAll']): + raise ValueError("must be one of enum values ('spillNone', 'spillStagesAndRecords', 'spillAll')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminJobsExtractDataAndLoadDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminJobsExtractDataAndLoadDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allTenants": obj.get("allTenants"), + "batchSizeOverride": obj.get("batchSizeOverride"), + "connectorIds": obj.get("connectorIds"), + "dataCategoryId": obj.get("dataCategoryId"), + "disableArtifactGeneration": obj.get("disableArtifactGeneration"), + "excludedTenants": obj.get("excludedTenants"), + "extractToTimeOverride": obj.get("extractToTimeOverride"), + "forceUpdateExistingArtifacts": obj.get("forceUpdateExistingArtifacts"), + "lastExtractionTimeOffsetMode": obj.get("lastExtractionTimeOffsetMode"), + "lastExtractionTimeOffsetMonths": obj.get("lastExtractionTimeOffsetMonths"), + "lastExtractionTimeOffsetWeeks": obj.get("lastExtractionTimeOffsetWeeks"), + "monthsToExtract": obj.get("monthsToExtract"), + "offsetMonthOption": obj.get("offsetMonthOption"), + "offsetWeekOption": obj.get("offsetWeekOption"), + "overrideLastExtractionTimestamp": obj.get("overrideLastExtractionTimestamp"), + "publishDataLoadArtifacts": obj.get("publishDataLoadArtifacts"), + "runProcessingJob": obj.get("runProcessingJob"), + "spillDebugInfoDetailLevelDTO": obj.get("spillDebugInfoDetailLevelDTO"), + "spillDebugInfoPartitionsDTO": obj.get("spillDebugInfoPartitionsDTO"), + "sqlBatchSize": obj.get("sqlBatchSize"), + "tenants": obj.get("tenants") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_jobs_processing_job_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_jobs_processing_job_request_dto.py new file mode 100644 index 0000000000..ebcc25a666 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_jobs_processing_job_request_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminJobsProcessingJobRequestDTO(BaseModel): + """ + AdminJobsProcessingJobRequestDTO + """ # noqa: E501 + all_tenants: Optional[StrictBool] = Field(default=None, description="If `true`, runs processing jobs for all accessible analytic tenants. Default is `false`. Only valid for requests from an administrating tenant.", alias="allTenants") + data_category_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the data category to run the job. If omitted, runs a job using the primary data category. To retrieve a list of all data categories, see `GET /v1/op/data/categories`.", alias="dataCategoryId") + excluded_tenants: Optional[List[StrictStr]] = Field(default=None, description="The unique IDs of the tenants to exclude from the extraction job. Only valid if `allTenants` is \"true\". Only valid for requests from an administrating tenant.", alias="excludedTenants") + publish_to_production: Optional[StrictBool] = Field(default=None, description="If `true`, publishes the generated data version to production. Default is `false`.", alias="publishToProduction") + tenants: Optional[List[StrictStr]] = Field(default=None, description="The tenant codes of the tenants to run processing jobs for. If omitted, runs a processing job for the tenant associated with the user who made the API request. Only valid for requests from an administrating tenant.") + __properties: ClassVar[List[str]] = ["allTenants", "dataCategoryId", "excludedTenants", "publishToProduction", "tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminJobsProcessingJobRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminJobsProcessingJobRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allTenants": obj.get("allTenants"), + "dataCategoryId": obj.get("dataCategoryId"), + "excludedTenants": obj.get("excludedTenants"), + "publishToProduction": obj.get("publishToProduction"), + "tenants": obj.get("tenants") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_assign_connector_credentials_by_tenant_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_assign_connector_credentials_by_tenant_response_dto.py new file mode 100644 index 0000000000..1318780f6f --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_assign_connector_credentials_by_tenant_response_dto.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.admin_transfers_assign_connector_with_credentials_response_dto import AdminTransfersAssignConnectorWithCredentialsResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersAssignConnectorCredentialsByTenantResponseDTO(BaseModel): + """ + AdminTransfersAssignConnectorCredentialsByTenantResponseDTO + """ # noqa: E501 + connectors: Optional[List[AdminTransfersAssignConnectorWithCredentialsResponseDTO]] = Field(default=None, description="A list of objects representing the assigned credentials and connectors.") + message: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, description="The state of the credential assignment. Valid values are Succeed or Failed.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["connectors", "message", "status", "tenantCode"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Unknown', 'Succeed', 'Failed']): + raise ValueError("must be one of enum values ('Unknown', 'Succeed', 'Failed')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersAssignConnectorCredentialsByTenantResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in connectors (list) + _items = [] + if self.connectors: + for _item_connectors in self.connectors: + if _item_connectors: + _items.append(_item_connectors.to_dict()) + _dict['connectors'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersAssignConnectorCredentialsByTenantResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectors": [AdminTransfersAssignConnectorWithCredentialsResponseDTO.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None, + "message": obj.get("message"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_assign_connector_credentials_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_assign_connector_credentials_response_dto.py new file mode 100644 index 0000000000..7864502297 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_assign_connector_credentials_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.admin_transfers_assign_connector_credentials_by_tenant_response_dto import AdminTransfersAssignConnectorCredentialsByTenantResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersAssignConnectorCredentialsResponseDTO(BaseModel): + """ + AdminTransfersAssignConnectorCredentialsResponseDTO + """ # noqa: E501 + tenants: Optional[List[AdminTransfersAssignConnectorCredentialsByTenantResponseDTO]] = Field(default=None, description="A list of objects representing the tenants and data connectors that were assigned connector credentials.") + __properties: ClassVar[List[str]] = ["tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersAssignConnectorCredentialsResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersAssignConnectorCredentialsResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenants": [AdminTransfersAssignConnectorCredentialsByTenantResponseDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_assign_connector_with_credentials_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_assign_connector_with_credentials_response_dto.py new file mode 100644 index 0000000000..d08124868c --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_assign_connector_with_credentials_response_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.admin_transfers_assigned_credential_info_response_dto import AdminTransfersAssignedCredentialInfoResponseDTO +from visier_api_data_in.models.admin_transfers_connector_info_response_dto import AdminTransfersConnectorInfoResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersAssignConnectorWithCredentialsResponseDTO(BaseModel): + """ + AdminTransfersAssignConnectorWithCredentialsResponseDTO + """ # noqa: E501 + connector: Optional[AdminTransfersConnectorInfoResponseDTO] = Field(default=None, description="The data connector that was assigned a connector credential.") + credential: Optional[AdminTransfersAssignedCredentialInfoResponseDTO] = Field(default=None, description="A connector credential that was assigned to a data connector") + __properties: ClassVar[List[str]] = ["connector", "credential"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersAssignConnectorWithCredentialsResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of connector + if self.connector: + _dict['connector'] = self.connector.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential + if self.credential: + _dict['credential'] = self.credential.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersAssignConnectorWithCredentialsResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connector": AdminTransfersConnectorInfoResponseDTO.from_dict(obj["connector"]) if obj.get("connector") is not None else None, + "credential": AdminTransfersAssignedCredentialInfoResponseDTO.from_dict(obj["credential"]) if obj.get("credential") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_assigned_credential_info_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_assigned_credential_info_response_dto.py new file mode 100644 index 0000000000..86c8da454f --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_assigned_credential_info_response_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersAssignedCredentialInfoResponseDTO(BaseModel): + """ + AdminTransfersAssignedCredentialInfoResponseDTO + """ # noqa: E501 + credential_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="credentialId") + display_name: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@visier.com.", alias="displayName") + message: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["credentialId", "displayName", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersAssignedCredentialInfoResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersAssignedCredentialInfoResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "credentialId": obj.get("credentialId"), + "displayName": obj.get("displayName"), + "message": obj.get("message") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_connector_info_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_connector_info_response_dto.py new file mode 100644 index 0000000000..4cccf7fdf0 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_connector_info_response_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersConnectorInfoResponseDTO(BaseModel): + """ + AdminTransfersConnectorInfoResponseDTO + """ # noqa: E501 + connector_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the data connector.", alias="connectorId") + description: Optional[StrictStr] = None + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable data connector name that is displayed within Visier.", alias="displayName") + __properties: ClassVar[List[str]] = ["connectorId", "description", "displayName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersConnectorInfoResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersConnectorInfoResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectorId": obj.get("connectorId"), + "description": obj.get("description"), + "displayName": obj.get("displayName") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_connector_setting_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_connector_setting_request_dto.py new file mode 100644 index 0000000000..1654586db6 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_connector_setting_request_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersConnectorSettingRequestDTO(BaseModel): + """ + AdminTransfersConnectorSettingRequestDTO + """ # noqa: E501 + setting_key: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the setting.", alias="settingKey") + value: Optional[StrictStr] = Field(default=None, description="The setting's value.") + __properties: ClassVar[List[str]] = ["settingKey", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersConnectorSettingRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersConnectorSettingRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "settingKey": obj.get("settingKey"), + "value": obj.get("value") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_connector_setting_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_connector_setting_response_dto.py new file mode 100644 index 0000000000..211047ac97 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_connector_setting_response_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersConnectorSettingResponseDTO(BaseModel): + """ + AdminTransfersConnectorSettingResponseDTO + """ # noqa: E501 + key: Optional[StrictStr] = Field(default=None, description="The unique identifier of the connector setting.") + message: Optional[StrictStr] = None + value: Optional[StrictStr] = Field(default=None, description="The value that was set for the connector setting.") + __properties: ClassVar[List[str]] = ["key", "message", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersConnectorSettingResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersConnectorSettingResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "key": obj.get("key"), + "message": obj.get("message"), + "value": obj.get("value") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_connector_settings_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_connector_settings_response_dto.py new file mode 100644 index 0000000000..0cdff05c9b --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_connector_settings_response_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.admin_transfers_connector_info_response_dto import AdminTransfersConnectorInfoResponseDTO +from visier_api_data_in.models.admin_transfers_connector_setting_response_dto import AdminTransfersConnectorSettingResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersConnectorSettingsResponseDTO(BaseModel): + """ + AdminTransfersConnectorSettingsResponseDTO + """ # noqa: E501 + connector: Optional[AdminTransfersConnectorInfoResponseDTO] = Field(default=None, description="The data connector that was updated in the API request.") + settings: Optional[List[AdminTransfersConnectorSettingResponseDTO]] = Field(default=None, description="The settings that were updated for a data connector.") + __properties: ClassVar[List[str]] = ["connector", "settings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersConnectorSettingsResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of connector + if self.connector: + _dict['connector'] = self.connector.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in settings (list) + _items = [] + if self.settings: + for _item_settings in self.settings: + if _item_settings: + _items.append(_item_settings.to_dict()) + _dict['settings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersConnectorSettingsResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connector": AdminTransfersConnectorInfoResponseDTO.from_dict(obj["connector"]) if obj.get("connector") is not None else None, + "settings": [AdminTransfersConnectorSettingResponseDTO.from_dict(_item) for _item in obj["settings"]] if obj.get("settings") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_data_version_and_date_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_data_version_and_date_dto.py new file mode 100644 index 0000000000..a55d7b94f7 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_data_version_and_date_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersDataVersionAndDateDTO(BaseModel): + """ + AdminTransfersDataVersionAndDateDTO + """ # noqa: E501 + data_version: Optional[StrictStr] = Field(default=None, description="The data version ID.", alias="dataVersion") + data_version_date: Optional[StrictStr] = Field(default=None, description="The date that the data version was created.", alias="dataVersionDate") + __properties: ClassVar[List[str]] = ["dataVersion", "dataVersionDate"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersDataVersionAndDateDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersDataVersionAndDateDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataVersion": obj.get("dataVersion"), + "dataVersionDate": obj.get("dataVersionDate") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_extractor_setting_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_extractor_setting_apidto.py new file mode 100644 index 0000000000..667567961b --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_extractor_setting_apidto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.admin_transfers_extractor_setting_key_value_apidto import AdminTransfersExtractorSettingKeyValueAPIDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersExtractorSettingAPIDTO(BaseModel): + """ + AdminTransfersExtractorSettingAPIDTO + """ # noqa: E501 + connector_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the data connector.", alias="connectorId") + connector_settings: Optional[List[AdminTransfersExtractorSettingKeyValueAPIDTO]] = Field(default=None, description="A list of objects representing the settings that are available for the data connector.", alias="connectorSettings") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable data connector name that is displayed within Visier.", alias="displayName") + __properties: ClassVar[List[str]] = ["connectorId", "connectorSettings", "displayName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersExtractorSettingAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in connector_settings (list) + _items = [] + if self.connector_settings: + for _item_connector_settings in self.connector_settings: + if _item_connector_settings: + _items.append(_item_connector_settings.to_dict()) + _dict['connectorSettings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersExtractorSettingAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectorId": obj.get("connectorId"), + "connectorSettings": [AdminTransfersExtractorSettingKeyValueAPIDTO.from_dict(_item) for _item in obj["connectorSettings"]] if obj.get("connectorSettings") is not None else None, + "displayName": obj.get("displayName") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_extractor_setting_key_value_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_extractor_setting_key_value_apidto.py new file mode 100644 index 0000000000..478dfbe842 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_extractor_setting_key_value_apidto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersExtractorSettingKeyValueAPIDTO(BaseModel): + """ + AdminTransfersExtractorSettingKeyValueAPIDTO + """ # noqa: E501 + setting_key: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the setting.", alias="settingKey") + value: Optional[StrictStr] = Field(default=None, description="The current value of the setting.") + __properties: ClassVar[List[str]] = ["settingKey", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersExtractorSettingKeyValueAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersExtractorSettingKeyValueAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "settingKey": obj.get("settingKey"), + "value": obj.get("value") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_extractor_settings_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_extractor_settings_apidto.py new file mode 100644 index 0000000000..264d0456d5 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_extractor_settings_apidto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.admin_transfers_extractor_setting_apidto import AdminTransfersExtractorSettingAPIDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersExtractorSettingsAPIDTO(BaseModel): + """ + AdminTransfersExtractorSettingsAPIDTO + """ # noqa: E501 + connectors: Optional[List[AdminTransfersExtractorSettingAPIDTO]] = Field(default=None, description="A list of all data connectors in the production environment and their settings.") + __properties: ClassVar[List[str]] = ["connectors"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersExtractorSettingsAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in connectors (list) + _items = [] + if self.connectors: + for _item_connectors in self.connectors: + if _item_connectors: + _items.append(_item_connectors.to_dict()) + _dict['connectors'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersExtractorSettingsAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectors": [AdminTransfersExtractorSettingAPIDTO.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_multiple_tenant_data_versions_details_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_multiple_tenant_data_versions_details_dto.py new file mode 100644 index 0000000000..6115480528 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_multiple_tenant_data_versions_details_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.admin_transfers_data_version_and_date_dto import AdminTransfersDataVersionAndDateDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersMultipleTenantDataVersionsDetailsDTO(BaseModel): + """ + AdminTransfersMultipleTenantDataVersionsDetailsDTO + """ # noqa: E501 + data_versions: Optional[List[AdminTransfersDataVersionAndDateDTO]] = Field(default=None, description="The latest enabled data versions for the given analytic tenant. If the analytic tenant has no enabled data versions, an empty string \"\" is returned.", alias="dataVersions") + tenant_code: Optional[StrictStr] = Field(default=None, description="The owner of the data versions.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["dataVersions", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersMultipleTenantDataVersionsDetailsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data_versions (list) + _items = [] + if self.data_versions: + for _item_data_versions in self.data_versions: + if _item_data_versions: + _items.append(_item_data_versions.to_dict()) + _dict['dataVersions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersMultipleTenantDataVersionsDetailsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataVersions": [AdminTransfersDataVersionAndDateDTO.from_dict(_item) for _item in obj["dataVersions"]] if obj.get("dataVersions") is not None else None, + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_multiple_tenant_data_versions_list_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_multiple_tenant_data_versions_list_dto.py new file mode 100644 index 0000000000..6bf054ab74 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_multiple_tenant_data_versions_list_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.admin_transfers_multiple_tenant_data_versions_details_dto import AdminTransfersMultipleTenantDataVersionsDetailsDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersMultipleTenantDataVersionsListDTO(BaseModel): + """ + AdminTransfersMultipleTenantDataVersionsListDTO + """ # noqa: E501 + limit: Optional[StrictInt] = Field(default=None, description="The number of analytic tenants to retrieve. The maximum number to retrieve is 1000.") + start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") + tenants: Optional[List[AdminTransfersMultipleTenantDataVersionsDetailsDTO]] = Field(default=None, description="A list of analytic tenants and their latest enabled data versions.") + __properties: ClassVar[List[str]] = ["limit", "start", "tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersMultipleTenantDataVersionsListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersMultipleTenantDataVersionsListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "start": obj.get("start"), + "tenants": [AdminTransfersMultipleTenantDataVersionsDetailsDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_set_connector_setting_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_set_connector_setting_request_dto.py new file mode 100644 index 0000000000..62d3a39aa7 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_set_connector_setting_request_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.admin_transfers_tenant_connector_settings_request_dto import AdminTransfersTenantConnectorSettingsRequestDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersSetConnectorSettingRequestDTO(BaseModel): + """ + AdminTransfersSetConnectorSettingRequestDTO + """ # noqa: E501 + connector_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the data connector.", alias="connectorId") + tenants: Optional[List[AdminTransfersTenantConnectorSettingsRequestDTO]] = Field(default=None, description="The tenant codes and data connector settings to update.") + __properties: ClassVar[List[str]] = ["connectorId", "tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersSetConnectorSettingRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersSetConnectorSettingRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectorId": obj.get("connectorId"), + "tenants": [AdminTransfersTenantConnectorSettingsRequestDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_set_connector_setting_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_set_connector_setting_response_dto.py new file mode 100644 index 0000000000..83a02d0bcc --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_set_connector_setting_response_dto.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.admin_transfers_connector_settings_response_dto import AdminTransfersConnectorSettingsResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersSetConnectorSettingResponseDTO(BaseModel): + """ + AdminTransfersSetConnectorSettingResponseDTO + """ # noqa: E501 + connectors: Optional[List[AdminTransfersConnectorSettingsResponseDTO]] = Field(default=None, description="A list of objects representing the assigned settings and connectors.") + message: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, description="The state of the setting assignment. Valid values are Succeed or Failed.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["connectors", "message", "status", "tenantCode"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Unknown', 'Succeed', 'Failed']): + raise ValueError("must be one of enum values ('Unknown', 'Succeed', 'Failed')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersSetConnectorSettingResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in connectors (list) + _items = [] + if self.connectors: + for _item_connectors in self.connectors: + if _item_connectors: + _items.append(_item_connectors.to_dict()) + _dict['connectors'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersSetConnectorSettingResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectors": [AdminTransfersConnectorSettingsResponseDTO.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None, + "message": obj.get("message"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_set_connector_settings_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_set_connector_settings_request_dto.py new file mode 100644 index 0000000000..9a4fb3e2c9 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_set_connector_settings_request_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.admin_transfers_set_connector_setting_request_dto import AdminTransfersSetConnectorSettingRequestDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersSetConnectorSettingsRequestDTO(BaseModel): + """ + AdminTransfersSetConnectorSettingsRequestDTO + """ # noqa: E501 + connectors: Optional[List[AdminTransfersSetConnectorSettingRequestDTO]] = Field(default=None, description="The settings to define for each data connector and tenant.") + __properties: ClassVar[List[str]] = ["connectors"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersSetConnectorSettingsRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in connectors (list) + _items = [] + if self.connectors: + for _item_connectors in self.connectors: + if _item_connectors: + _items.append(_item_connectors.to_dict()) + _dict['connectors'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersSetConnectorSettingsRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectors": [AdminTransfersSetConnectorSettingRequestDTO.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_set_connector_settings_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_set_connector_settings_response_dto.py new file mode 100644 index 0000000000..b5d67bc689 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_set_connector_settings_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.admin_transfers_set_connector_setting_response_dto import AdminTransfersSetConnectorSettingResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersSetConnectorSettingsResponseDTO(BaseModel): + """ + AdminTransfersSetConnectorSettingsResponseDTO + """ # noqa: E501 + tenants: Optional[List[AdminTransfersSetConnectorSettingResponseDTO]] = Field(default=None, description="The tenants and data connectors that were updated in the API request.") + __properties: ClassVar[List[str]] = ["tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersSetConnectorSettingsResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersSetConnectorSettingsResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenants": [AdminTransfersSetConnectorSettingResponseDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_tenant_connector_settings_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_tenant_connector_settings_request_dto.py new file mode 100644 index 0000000000..64bc1cfd9d --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_tenant_connector_settings_request_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.admin_transfers_connector_setting_request_dto import AdminTransfersConnectorSettingRequestDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTransfersTenantConnectorSettingsRequestDTO(BaseModel): + """ + AdminTransfersTenantConnectorSettingsRequestDTO + """ # noqa: E501 + connector_settings: Optional[List[AdminTransfersConnectorSettingRequestDTO]] = Field(default=None, description="The settings to update.", alias="connectorSettings") + tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["connectorSettings", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminTransfersTenantConnectorSettingsRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in connector_settings (list) + _items = [] + if self.connector_settings: + for _item_connector_settings in self.connector_settings: + if _item_connector_settings: + _items.append(_item_connector_settings.to_dict()) + _dict['connectorSettings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTransfersTenantConnectorSettingsRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectorSettings": [AdminTransfersConnectorSettingRequestDTO.from_dict(_item) for _item in obj["connectorSettings"]] if obj.get("connectorSettings") is not None else None, + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/adp_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/adp_auth_params_dto.py deleted file mode 100644 index 8a827301ef..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/adp_auth_params_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AdpAuthParamsDTO(BaseModel): - """ - AdpAuthParamsDTO - """ # noqa: E501 - auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") - __properties: ClassVar[List[str]] = ["authCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AdpAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AdpAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "authCode": obj.get("authCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/assign_connector_credential_request.py b/src/visier_api_data_in/visier_api_data_in/models/assign_connector_credential_request.py deleted file mode 100644 index b30fff7d4d..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/assign_connector_credential_request.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.connector import Connector -from typing import Optional, Set -from typing_extensions import Self - -class AssignConnectorCredentialRequest(BaseModel): - """ - AssignConnectorCredentialRequest - """ # noqa: E501 - connectors: Optional[List[Connector]] = Field(default=None, description="A list of objects representing the data connectors to be assigned with credentials.") - __properties: ClassVar[List[str]] = ["connectors"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AssignConnectorCredentialRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in connectors (list) - _items = [] - if self.connectors: - for _item_connectors in self.connectors: - if _item_connectors: - _items.append(_item_connectors.to_dict()) - _dict['connectors'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AssignConnectorCredentialRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "connectors": [Connector.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/assign_connector_credentials_by_tenant_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/assign_connector_credentials_by_tenant_response_dto.py deleted file mode 100644 index 27bf46178a..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/assign_connector_credentials_by_tenant_response_dto.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.assign_connector_with_credentials_response_dto import AssignConnectorWithCredentialsResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class AssignConnectorCredentialsByTenantResponseDTO(BaseModel): - """ - AssignConnectorCredentialsByTenantResponseDTO - """ # noqa: E501 - connectors: Optional[List[AssignConnectorWithCredentialsResponseDTO]] = Field(default=None, description="A list of objects representing the assigned credentials and connectors.") - message: Optional[StrictStr] = None - status: Optional[StrictStr] = Field(default=None, description="The state of the credential assignment. Valid values are Succeed or Failed.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["connectors", "message", "status", "tenantCode"] - - @field_validator('status') - def status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['Unknown', 'Succeed', 'Failed']): - raise ValueError("must be one of enum values ('Unknown', 'Succeed', 'Failed')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AssignConnectorCredentialsByTenantResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in connectors (list) - _items = [] - if self.connectors: - for _item_connectors in self.connectors: - if _item_connectors: - _items.append(_item_connectors.to_dict()) - _dict['connectors'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AssignConnectorCredentialsByTenantResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "connectors": [AssignConnectorWithCredentialsResponseDTO.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None, - "message": obj.get("message"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/assign_connector_credentials_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/assign_connector_credentials_response_dto.py deleted file mode 100644 index f2bb41167d..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/assign_connector_credentials_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.assign_connector_credentials_by_tenant_response_dto import AssignConnectorCredentialsByTenantResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class AssignConnectorCredentialsResponseDTO(BaseModel): - """ - AssignConnectorCredentialsResponseDTO - """ # noqa: E501 - tenants: Optional[List[AssignConnectorCredentialsByTenantResponseDTO]] = Field(default=None, description="A list of objects representing the tenants and data connectors that were assigned connector credentials.") - __properties: ClassVar[List[str]] = ["tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AssignConnectorCredentialsResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AssignConnectorCredentialsResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tenants": [AssignConnectorCredentialsByTenantResponseDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/assign_connector_with_credentials_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/assign_connector_with_credentials_response_dto.py deleted file mode 100644 index fbce03abff..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/assign_connector_with_credentials_response_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.assigned_credential_info_response_dto import AssignedCredentialInfoResponseDTO -from visier_api_data_in.models.connector_info_response_dto import ConnectorInfoResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class AssignConnectorWithCredentialsResponseDTO(BaseModel): - """ - AssignConnectorWithCredentialsResponseDTO - """ # noqa: E501 - connector: Optional[ConnectorInfoResponseDTO] = Field(default=None, description="The data connector that was assigned a connector credential.") - credential: Optional[AssignedCredentialInfoResponseDTO] = Field(default=None, description="A connector credential that was assigned to a data connector") - __properties: ClassVar[List[str]] = ["connector", "credential"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AssignConnectorWithCredentialsResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of connector - if self.connector: - _dict['connector'] = self.connector.to_dict() - # override the default output from pydantic by calling `to_dict()` of credential - if self.credential: - _dict['credential'] = self.credential.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AssignConnectorWithCredentialsResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "connector": ConnectorInfoResponseDTO.from_dict(obj["connector"]) if obj.get("connector") is not None else None, - "credential": AssignedCredentialInfoResponseDTO.from_dict(obj["credential"]) if obj.get("credential") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/assigned_credential_info_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/assigned_credential_info_response_dto.py deleted file mode 100644 index d16e2aa580..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/assigned_credential_info_response_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AssignedCredentialInfoResponseDTO(BaseModel): - """ - AssignedCredentialInfoResponseDTO - """ # noqa: E501 - credential_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the user.", alias="credentialId") - display_name: Optional[StrictStr] = Field(default=None, description="The user's username. This is typically the user's email, such as john@visier.com.", alias="displayName") - message: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["credentialId", "displayName", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AssignedCredentialInfoResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AssignedCredentialInfoResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "credentialId": obj.get("credentialId"), - "displayName": obj.get("displayName"), - "message": obj.get("message") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/bamboo_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/bamboo_auth_params_dto.py deleted file mode 100644 index 55cea582c3..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/bamboo_auth_params_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class BambooAuthParamsDTO(BaseModel): - """ - BambooAuthParamsDTO - """ # noqa: E501 - access_key: Optional[StrictStr] = Field(default=None, alias="accessKey") - tenant_domain_name: Optional[StrictStr] = Field(default=None, alias="tenantDomainName") - __properties: ClassVar[List[str]] = ["accessKey", "tenantDomainName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BambooAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BambooAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "accessKey": obj.get("accessKey"), - "tenantDomainName": obj.get("tenantDomainName") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/basic_s3_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/basic_s3_auth_params_dto.py deleted file mode 100644 index 62615b0a97..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/basic_s3_auth_params_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class BasicS3AuthParamsDTO(BaseModel): - """ - BasicS3AuthParamsDTO - """ # noqa: E501 - access_key: Optional[StrictStr] = Field(default=None, alias="accessKey") - bucket_name: Optional[StrictStr] = Field(default=None, alias="bucketName") - bucket_region: Optional[StrictStr] = Field(default=None, alias="bucketRegion") - path: Optional[StrictStr] = None - secret_key: Optional[StrictStr] = Field(default=None, alias="secretKey") - __properties: ClassVar[List[str]] = ["accessKey", "bucketName", "bucketRegion", "path", "secretKey"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BasicS3AuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BasicS3AuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "accessKey": obj.get("accessKey"), - "bucketName": obj.get("bucketName"), - "bucketRegion": obj.get("bucketRegion"), - "path": obj.get("path"), - "secretKey": obj.get("secretKey") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/big_query_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/big_query_auth_params_dto.py deleted file mode 100644 index 302370334b..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/big_query_auth_params_dto.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.big_query_service_account_params_dto import BigQueryServiceAccountParamsDTO -from typing import Optional, Set -from typing_extensions import Self - -class BigQueryAuthParamsDTO(BaseModel): - """ - BigQueryAuthParamsDTO - """ # noqa: E501 - client_id: Optional[StrictStr] = Field(default=None, alias="clientId") - client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") - dataset_location: Optional[StrictStr] = Field(default=None, alias="datasetLocation") - default_dataset: Optional[StrictStr] = Field(default=None, alias="defaultDataset") - project_id: Optional[StrictStr] = Field(default=None, alias="projectId") - refresh_token: Optional[StrictStr] = Field(default=None, alias="refreshToken") - service_account_params: Optional[BigQueryServiceAccountParamsDTO] = Field(default=None, alias="serviceAccountParams") - __properties: ClassVar[List[str]] = ["clientId", "clientSecret", "datasetLocation", "defaultDataset", "projectId", "refreshToken", "serviceAccountParams"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BigQueryAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of service_account_params - if self.service_account_params: - _dict['serviceAccountParams'] = self.service_account_params.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BigQueryAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "clientId": obj.get("clientId"), - "clientSecret": obj.get("clientSecret"), - "datasetLocation": obj.get("datasetLocation"), - "defaultDataset": obj.get("defaultDataset"), - "projectId": obj.get("projectId"), - "refreshToken": obj.get("refreshToken"), - "serviceAccountParams": BigQueryServiceAccountParamsDTO.from_dict(obj["serviceAccountParams"]) if obj.get("serviceAccountParams") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/big_query_service_account_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/big_query_service_account_params_dto.py deleted file mode 100644 index f5cfdceabd..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/big_query_service_account_params_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class BigQueryServiceAccountParamsDTO(BaseModel): - """ - BigQueryServiceAccountParamsDTO - """ # noqa: E501 - private_key: Optional[StrictStr] = Field(default=None, alias="privateKey") - service_account_email: Optional[StrictStr] = Field(default=None, alias="serviceAccountEmail") - __properties: ClassVar[List[str]] = ["privateKey", "serviceAccountEmail"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BigQueryServiceAccountParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BigQueryServiceAccountParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "privateKey": obj.get("privateKey"), - "serviceAccountEmail": obj.get("serviceAccountEmail") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/cancel_job_batch_from_job_id_dto.py b/src/visier_api_data_in/visier_api_data_in/models/cancel_job_batch_from_job_id_dto.py deleted file mode 100644 index 9439f01d3e..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/cancel_job_batch_from_job_id_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CancelJobBatchFromJobIdDTO(BaseModel): - """ - CancelJobBatchFromJobIdDTO - """ # noqa: E501 - job_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of jobs to cancel. The maximum number of jobs that can be cancelled is 500.", alias="jobIds") - __properties: ClassVar[List[str]] = ["jobIds"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CancelJobBatchFromJobIdDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CancelJobBatchFromJobIdDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "jobIds": obj.get("jobIds") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/connector.py b/src/visier_api_data_in/visier_api_data_in/models/connector.py deleted file mode 100644 index f0052cab9c..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/connector.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.tenant_and_credential import TenantAndCredential -from typing import Optional, Set -from typing_extensions import Self - -class Connector(BaseModel): - """ - Connector - """ # noqa: E501 - connector_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the data connector.", alias="connectorId") - tenants: Optional[List[TenantAndCredential]] = Field(default=None, description="A list of analytic tenants and credentials to be assigned to the connector.") - __properties: ClassVar[List[str]] = ["connectorId", "tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Connector from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Connector from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "connectorId": obj.get("connectorId"), - "tenants": [TenantAndCredential.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/connector_info_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/connector_info_response_dto.py deleted file mode 100644 index f94fddfe80..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/connector_info_response_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ConnectorInfoResponseDTO(BaseModel): - """ - ConnectorInfoResponseDTO - """ # noqa: E501 - connector_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the data connector.", alias="connectorId") - description: Optional[StrictStr] = None - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable data connector name that is displayed within Visier.", alias="displayName") - __properties: ClassVar[List[str]] = ["connectorId", "description", "displayName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ConnectorInfoResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ConnectorInfoResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "connectorId": obj.get("connectorId"), - "description": obj.get("description"), - "displayName": obj.get("displayName") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/connector_setting_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/connector_setting_request_dto.py deleted file mode 100644 index a356fa54d6..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/connector_setting_request_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ConnectorSettingRequestDTO(BaseModel): - """ - ConnectorSettingRequestDTO - """ # noqa: E501 - setting_key: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the setting.", alias="settingKey") - value: Optional[StrictStr] = Field(default=None, description="The setting's value.") - __properties: ClassVar[List[str]] = ["settingKey", "value"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ConnectorSettingRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ConnectorSettingRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "settingKey": obj.get("settingKey"), - "value": obj.get("value") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/connector_setting_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/connector_setting_response_dto.py deleted file mode 100644 index 8a436d6e7c..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/connector_setting_response_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ConnectorSettingResponseDTO(BaseModel): - """ - ConnectorSettingResponseDTO - """ # noqa: E501 - key: Optional[StrictStr] = Field(default=None, description="The unique identifier of the connector setting.") - message: Optional[StrictStr] = None - value: Optional[StrictStr] = Field(default=None, description="The value that was set for the connector setting.") - __properties: ClassVar[List[str]] = ["key", "message", "value"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ConnectorSettingResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ConnectorSettingResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "key": obj.get("key"), - "message": obj.get("message"), - "value": obj.get("value") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/connector_settings_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/connector_settings_response_dto.py deleted file mode 100644 index 54f9008d40..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/connector_settings_response_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.connector_info_response_dto import ConnectorInfoResponseDTO -from visier_api_data_in.models.connector_setting_response_dto import ConnectorSettingResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class ConnectorSettingsResponseDTO(BaseModel): - """ - ConnectorSettingsResponseDTO - """ # noqa: E501 - connector: Optional[ConnectorInfoResponseDTO] = Field(default=None, description="The data connector that was updated in the API request.") - settings: Optional[List[ConnectorSettingResponseDTO]] = Field(default=None, description="The settings that were updated for a data connector.") - __properties: ClassVar[List[str]] = ["connector", "settings"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ConnectorSettingsResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of connector - if self.connector: - _dict['connector'] = self.connector.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in settings (list) - _items = [] - if self.settings: - for _item_settings in self.settings: - if _item_settings: - _items.append(_item_settings.to_dict()) - _dict['settings'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ConnectorSettingsResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "connector": ConnectorInfoResponseDTO.from_dict(obj["connector"]) if obj.get("connector") is not None else None, - "settings": [ConnectorSettingResponseDTO.from_dict(_item) for _item in obj["settings"]] if obj.get("settings") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/consolidated_analytics_job_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/consolidated_analytics_job_request_dto.py deleted file mode 100644 index 60d29e7da1..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/consolidated_analytics_job_request_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ConsolidatedAnalyticsJobRequestDTO(BaseModel): - """ - ConsolidatedAnalyticsJobRequestDTO - """ # noqa: E501 - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the consolidated analytics tenant; for example, \"WFF_j1r~CAa7s\".", alias="tenantCode") - __properties: ClassVar[List[str]] = ["tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ConsolidatedAnalyticsJobRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ConsolidatedAnalyticsJobRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/copy_s3_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/copy_s3_auth_params_dto.py deleted file mode 100644 index 1ce2de163d..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/copy_s3_auth_params_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CopyS3AuthParamsDTO(BaseModel): - """ - CopyS3AuthParamsDTO - """ # noqa: E501 - iam_role: Optional[StrictStr] = Field(default=None, alias="iamRole") - __properties: ClassVar[List[str]] = ["iamRole"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CopyS3AuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CopyS3AuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "iamRole": obj.get("iamRole") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/credential_creation_api_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/credential_creation_api_response_dto.py deleted file mode 100644 index 80af03cea0..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/credential_creation_api_response_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.subject_missing_access_dto import SubjectMissingAccessDTO -from typing import Optional, Set -from typing_extensions import Self - -class CredentialCreationAPIResponseDTO(BaseModel): - """ - CredentialCreationAPIResponseDTO - """ # noqa: E501 - missing_connection_properties: Optional[List[SubjectMissingAccessDTO]] = Field(default=None, description="The properties that the credential cannot access despite successful authentication. This is only returned for authentications that do not grant access to all data.", alias="missingConnectionProperties") - object_name: Optional[StrictStr] = Field(default=None, description="The object name of the newly created credential.", alias="objectName") - symbol_name: Optional[StrictStr] = Field(default=None, description="The symbol name of the newly created credential.", alias="symbolName") - uuid: Optional[StrictStr] = Field(default=None, description="The unique ID of the newly created credential.") - __properties: ClassVar[List[str]] = ["missingConnectionProperties", "objectName", "symbolName", "uuid"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CredentialCreationAPIResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in missing_connection_properties (list) - _items = [] - if self.missing_connection_properties: - for _item_missing_connection_properties in self.missing_connection_properties: - if _item_missing_connection_properties: - _items.append(_item_missing_connection_properties.to_dict()) - _dict['missingConnectionProperties'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CredentialCreationAPIResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "missingConnectionProperties": [SubjectMissingAccessDTO.from_dict(_item) for _item in obj["missingConnectionProperties"]] if obj.get("missingConnectionProperties") is not None else None, - "objectName": obj.get("objectName"), - "symbolName": obj.get("symbolName"), - "uuid": obj.get("uuid") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_categories_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/data_categories_response_dto.py deleted file mode 100644 index a2e32ce933..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/data_categories_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.data_category_response_dto import DataCategoryResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class DataCategoriesResponseDTO(BaseModel): - """ - A list of data categories. - """ # noqa: E501 - categories: Optional[List[DataCategoryResponseDTO]] = None - __properties: ClassVar[List[str]] = ["categories"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataCategoriesResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in categories (list) - _items = [] - if self.categories: - for _item_categories in self.categories: - if _item_categories: - _items.append(_item_categories.to_dict()) - _dict['categories'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataCategoriesResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "categories": [DataCategoryResponseDTO.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_category_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/data_category_response_dto.py deleted file mode 100644 index 258b85dd60..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/data_category_response_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataCategoryResponseDTO(BaseModel): - """ - The data category's UUID and display name. - """ # noqa: E501 - id: Optional[StrictStr] = Field(default=None, description="The UUID of the data category.") - name: Optional[StrictStr] = Field(default=None, description="The display name of the data category.") - __properties: ClassVar[List[str]] = ["id", "name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataCategoryResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataCategoryResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_assign_connector_credential_request.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_assign_connector_credential_request.py new file mode 100644 index 0000000000..938e2029bc --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_assign_connector_credential_request.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_connector import DataInConnector +from typing import Optional, Set +from typing_extensions import Self + +class DataInAssignConnectorCredentialRequest(BaseModel): + """ + DataInAssignConnectorCredentialRequest + """ # noqa: E501 + connectors: Optional[List[DataInConnector]] = Field(default=None, description="A list of objects representing the data connectors to be assigned with credentials.") + __properties: ClassVar[List[str]] = ["connectors"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInAssignConnectorCredentialRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in connectors (list) + _items = [] + if self.connectors: + for _item_connectors in self.connectors: + if _item_connectors: + _items.append(_item_connectors.to_dict()) + _dict['connectors'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInAssignConnectorCredentialRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectors": [DataInConnector.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_connector.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_connector.py new file mode 100644 index 0000000000..b8eab5309e --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_connector.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_tenant_and_credential import DataInTenantAndCredential +from typing import Optional, Set +from typing_extensions import Self + +class DataInConnector(BaseModel): + """ + DataInConnector + """ # noqa: E501 + connector_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the data connector.", alias="connectorId") + tenants: Optional[List[DataInTenantAndCredential]] = Field(default=None, description="A list of analytic tenants and credentials to be assigned to the connector.") + __properties: ClassVar[List[str]] = ["connectorId", "tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInConnector from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInConnector from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectorId": obj.get("connectorId"), + "tenants": [DataInTenantAndCredential.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_data_load_request.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_data_load_request.py new file mode 100644 index 0000000000..e9de0d3453 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_data_load_request.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_data_load_request_model import DataInDataLoadRequestModel +from typing import Optional, Set +from typing_extensions import Self + +class DataInDataLoadRequest(BaseModel): + """ + DataInDataLoadRequest + """ # noqa: E501 + model: Optional[DataInDataLoadRequestModel] = Field(default=None, description="A form body key that contains a collection of key-value pairs.") + __properties: ClassVar[List[str]] = ["model"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInDataLoadRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of model + if self.model: + _dict['model'] = self.model.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInDataLoadRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "model": DataInDataLoadRequestModel.from_dict(obj["model"]) if obj.get("model") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_data_load_request_model.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_data_load_request_model.py new file mode 100644 index 0000000000..15fcb4d18e --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_data_load_request_model.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInDataLoadRequestModel(BaseModel): + """ + DataInDataLoadRequestModel + """ # noqa: E501 + files: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of file names. Example: `\"files\": \"/path/to/file1.zip.gpg,/path/to/another/file.zip.gpg\"`") + skip_data_load: Optional[StrictBool] = Field(default=None, description="If `true`, receives the files and skips data loading. Does not generate a data version.", alias="skipDataLoad") + __properties: ClassVar[List[str]] = ["files", "skipDataLoad"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInDataLoadRequestModel from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInDataLoadRequestModel from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "files": obj.get("files"), + "skipDataLoad": obj.get("skipDataLoad") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_data_load_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_data_load_response.py new file mode 100644 index 0000000000..a568cea105 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_data_load_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInDataLoadResponse(BaseModel): + """ + DataInDataLoadResponse + """ # noqa: E501 + job_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the receiving job.", alias="jobId") + __properties: ClassVar[List[str]] = ["jobId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInDataLoadResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInDataLoadResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobId": obj.get("jobId") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_data_transfer_result_detail.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_data_transfer_result_detail.py new file mode 100644 index 0000000000..53002d722f --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_data_transfer_result_detail.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInDataTransferResultDetail(BaseModel): + """ + DataInDataTransferResultDetail + """ # noqa: E501 + data_size: Optional[StrictStr] = Field(default=None, description="The total size of the transfer session in bytes.", alias="dataSize") + rows: Optional[StrictStr] = Field(default=None, description="The total number of rows transferred during the transfer session.") + source_names: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing the sources that received a data transfer.", alias="sourceNames") + tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant that data was transferred to. For example, WFF_j1r or WFF_j1r~c7o.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["dataSize", "rows", "sourceNames", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInDataTransferResultDetail from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInDataTransferResultDetail from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataSize": obj.get("dataSize"), + "rows": obj.get("rows"), + "sourceNames": obj.get("sourceNames"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_data_version_object.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_data_version_object.py new file mode 100644 index 0000000000..9f4e365e69 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_data_version_object.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInDataVersionObject(BaseModel): + """ + DataInDataVersionObject + """ # noqa: E501 + data_versions: Optional[StrictStr] = Field(default=None, description="The data version to disable for a particular analytic tenant.", alias="dataVersions") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code for the analytic tenant that you are disabling a data version.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["dataVersions", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInDataVersionObject from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInDataVersionObject from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataVersions": obj.get("dataVersions"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_disable_dv_model.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_disable_dv_model.py new file mode 100644 index 0000000000..a498bfb723 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_disable_dv_model.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_data_version_object import DataInDataVersionObject +from typing import Optional, Set +from typing_extensions import Self + +class DataInDisableDVModel(BaseModel): + """ + DataInDisableDVModel + """ # noqa: E501 + data_version_objects: Optional[List[DataInDataVersionObject]] = Field(default=None, description="A list of objects representing the data version to disable for a particular analytic tenant. The limit of objects to include per request is 1000.", alias="dataVersionObjects") + __properties: ClassVar[List[str]] = ["dataVersionObjects"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInDisableDVModel from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data_version_objects (list) + _items = [] + if self.data_version_objects: + for _item_data_version_objects in self.data_version_objects: + if _item_data_version_objects: + _items.append(_item_data_version_objects.to_dict()) + _dict['dataVersionObjects'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInDisableDVModel from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataVersionObjects": [DataInDataVersionObject.from_dict(_item) for _item in obj["dataVersionObjects"]] if obj.get("dataVersionObjects") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_disable_dv_request.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_disable_dv_request.py new file mode 100644 index 0000000000..3d5a010294 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_disable_dv_request.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_disable_dv_model import DataInDisableDVModel +from typing import Optional, Set +from typing_extensions import Self + +class DataInDisableDVRequest(BaseModel): + """ + DataInDisableDVRequest + """ # noqa: E501 + model: Optional[DataInDisableDVModel] = Field(default=None, description="A form body key that contains a collection of key-value pairs.") + __properties: ClassVar[List[str]] = ["model"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInDisableDVRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of model + if self.model: + _dict['model'] = self.model.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInDisableDVRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "model": DataInDisableDVModel.from_dict(obj["model"]) if obj.get("model") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_disable_dv_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_disable_dv_response.py new file mode 100644 index 0000000000..c289d3e839 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_disable_dv_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_result import DataInResult +from typing import Optional, Set +from typing_extensions import Self + +class DataInDisableDVResponse(BaseModel): + """ + DataInDisableDVResponse + """ # noqa: E501 + results: Optional[List[DataInResult]] = Field(default=None, description="A list of objects representing the disabling process.") + total_failures: Optional[StrictInt] = Field(default=None, description="The number of data versions that failed during the disabling process.", alias="totalFailures") + total_success: Optional[StrictInt] = Field(default=None, description="The number of data versions that were disabled successfully.", alias="totalSuccess") + __properties: ClassVar[List[str]] = ["results", "totalFailures", "totalSuccess"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInDisableDVResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in results (list) + _items = [] + if self.results: + for _item_results in self.results: + if _item_results: + _items.append(_item_results.to_dict()) + _dict['results'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInDisableDVResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "results": [DataInResult.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, + "totalFailures": obj.get("totalFailures"), + "totalSuccess": obj.get("totalSuccess") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_dispatching_job_status_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_dispatching_job_status_response.py new file mode 100644 index 0000000000..ca43c2e9fc --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_dispatching_job_status_response.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInDispatchingJobStatusResponse(BaseModel): + """ + DataInDispatchingJobStatusResponse + """ # noqa: E501 + job_id: Optional[StrictStr] = Field(default=None, description="The ID of the dispatching job that generated the extraction jobs.", alias="jobId") + status: Optional[StrictStr] = Field(default=None, description="The current state of the job.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant that owns the dispatching job. This is usually the administrating tenant.", alias="tenantCode") + total_jobs_dispatched: Optional[StrictInt] = Field(default=None, description="The number of extraction jobs that were generated by the dispatching job.", alias="totalJobsDispatched") + __properties: ClassVar[List[str]] = ["jobId", "status", "tenantCode", "totalJobsDispatched"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInDispatchingJobStatusResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInDispatchingJobStatusResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobId": obj.get("jobId"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode"), + "totalJobsDispatched": obj.get("totalJobsDispatched") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_exclude_data_uploads_request.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_exclude_data_uploads_request.py new file mode 100644 index 0000000000..ae80b86374 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_exclude_data_uploads_request.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_upload_to_exclude import DataInUploadToExclude +from typing import Optional, Set +from typing_extensions import Self + +class DataInExcludeDataUploadsRequest(BaseModel): + """ + DataInExcludeDataUploadsRequest + """ # noqa: E501 + uploads: Optional[List[DataInUploadToExclude]] = Field(default=None, description="A list of objects representing the data uploads to exclude for a particular analytic tenant.") + __properties: ClassVar[List[str]] = ["uploads"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInExcludeDataUploadsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in uploads (list) + _items = [] + if self.uploads: + for _item_uploads in self.uploads: + if _item_uploads: + _items.append(_item_uploads.to_dict()) + _dict['uploads'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInExcludeDataUploadsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "uploads": [DataInUploadToExclude.from_dict(_item) for _item in obj["uploads"]] if obj.get("uploads") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_extraction_job.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_extraction_job.py new file mode 100644 index 0000000000..3b68987086 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_extraction_job.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInExtractionJob(BaseModel): + """ + DataInExtractionJob + """ # noqa: E501 + current_stage: Optional[StrictStr] = Field(default=None, description="The current stage of the job. This is not returned if the stage is \"Completed\". - Valid values: Initialize, Retrieve Main Subject, Retrieve Secondary Subjects, Retrieve Custom Subjects, Process Records, Publish Artifacts, Publish Records, Completed.", alias="currentStage") + extraction_job_id: Optional[StrictStr] = Field(default=None, description="The ID of the extraction job.", alias="extractionJobId") + status: Optional[StrictStr] = Field(default=None, description="The current state of the job. - Valid values: Pending, Running, Succeeded, Failed, Error, Cancelling, Cancelled, RolledBack, Rescheduling, Rescheduled.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant for the extraction job.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["currentStage", "extractionJobId", "status", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInExtractionJob from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInExtractionJob from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "currentStage": obj.get("currentStage"), + "extractionJobId": obj.get("extractionJobId"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_extraction_job_and_status_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_extraction_job_and_status_response.py new file mode 100644 index 0000000000..b23fa9e78b --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_extraction_job_and_status_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_extraction_job import DataInExtractionJob +from typing import Optional, Set +from typing_extensions import Self + +class DataInExtractionJobAndStatusResponse(BaseModel): + """ + DataInExtractionJobAndStatusResponse + """ # noqa: E501 + extraction_jobs: Optional[List[DataInExtractionJob]] = Field(default=None, description="A list of extraction job information.", alias="extractionJobs") + limit: Optional[StrictInt] = Field(default=None, description="The number of extraction jobs to return. The maximum number of jobs to return is 1000.") + parent_job_id: Optional[StrictStr] = Field(default=None, description="The ID of the dispatching job that generated the extraction jobs.", alias="parentJobId") + parent_tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant that owns the dispatching job. This is usually the administrating tenant.", alias="parentTenantCode") + start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") + __properties: ClassVar[List[str]] = ["extractionJobs", "limit", "parentJobId", "parentTenantCode", "start"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInExtractionJobAndStatusResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in extraction_jobs (list) + _items = [] + if self.extraction_jobs: + for _item_extraction_jobs in self.extraction_jobs: + if _item_extraction_jobs: + _items.append(_item_extraction_jobs.to_dict()) + _dict['extractionJobs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInExtractionJobAndStatusResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "extractionJobs": [DataInExtractionJob.from_dict(_item) for _item in obj["extractionJobs"]] if obj.get("extractionJobs") is not None else None, + "limit": obj.get("limit"), + "parentJobId": obj.get("parentJobId"), + "parentTenantCode": obj.get("parentTenantCode"), + "start": obj.get("start") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_include_data_uploads_request.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_include_data_uploads_request.py new file mode 100644 index 0000000000..796ba3c2d8 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_include_data_uploads_request.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_upload_to_include import DataInUploadToInclude +from typing import Optional, Set +from typing_extensions import Self + +class DataInIncludeDataUploadsRequest(BaseModel): + """ + DataInIncludeDataUploadsRequest + """ # noqa: E501 + uploads: Optional[List[DataInUploadToInclude]] = Field(default=None, description="A list of objects representing the data uploads to include for a particular analytic tenant.") + __properties: ClassVar[List[str]] = ["uploads"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInIncludeDataUploadsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in uploads (list) + _items = [] + if self.uploads: + for _item_uploads in self.uploads: + if _item_uploads: + _items.append(_item_uploads.to_dict()) + _dict['uploads'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInIncludeDataUploadsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "uploads": [DataInUploadToInclude.from_dict(_item) for _item in obj["uploads"]] if obj.get("uploads") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_job_status_list_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_job_status_list_response.py new file mode 100644 index 0000000000..169b54e3e0 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_job_status_list_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_job_status_with_start_time import DataInJobStatusWithStartTime +from typing import Optional, Set +from typing_extensions import Self + +class DataInJobStatusListResponse(BaseModel): + """ + DataInJobStatusListResponse + """ # noqa: E501 + job_status: Optional[List[DataInJobStatusWithStartTime]] = Field(default=None, description="The specific status to restrict the list of jobs to.", alias="jobStatus") + query_end_time: Optional[StrictStr] = Field(default=None, description="The end time from which to retrieve job statuses.", alias="queryEndTime") + query_start_time: Optional[StrictStr] = Field(default=None, description="The start time from which to retrieve job statuses.", alias="queryStartTime") + __properties: ClassVar[List[str]] = ["jobStatus", "queryEndTime", "queryStartTime"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInJobStatusListResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in job_status (list) + _items = [] + if self.job_status: + for _item_job_status in self.job_status: + if _item_job_status: + _items.append(_item_job_status.to_dict()) + _dict['jobStatus'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInJobStatusListResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobStatus": [DataInJobStatusWithStartTime.from_dict(_item) for _item in obj["jobStatus"]] if obj.get("jobStatus") is not None else None, + "queryEndTime": obj.get("queryEndTime"), + "queryStartTime": obj.get("queryStartTime") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_job_status_with_start_time.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_job_status_with_start_time.py new file mode 100644 index 0000000000..663c591017 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_job_status_with_start_time.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInJobStatusWithStartTime(BaseModel): + """ + DataInJobStatusWithStartTime + """ # noqa: E501 + job_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the job.", alias="jobId") + job_type: Optional[StrictStr] = Field(default=None, description="The type of the job, such as a processing job or receiving job.", alias="jobType") + start_time: Optional[StrictStr] = Field(default=None, description="The time that the job started.", alias="startTime") + status: Optional[StrictStr] = Field(default=None, description="The status of the job, such as Running or Completed.") + tenant: Optional[StrictStr] = Field(default=None, description="The tenant code.") + __properties: ClassVar[List[str]] = ["jobId", "jobType", "startTime", "status", "tenant"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInJobStatusWithStartTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInJobStatusWithStartTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobId": obj.get("jobId"), + "jobType": obj.get("jobType"), + "startTime": obj.get("startTime"), + "status": obj.get("status"), + "tenant": obj.get("tenant") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_processing_job.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_processing_job.py new file mode 100644 index 0000000000..ad96e3d40c --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_processing_job.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInProcessingJob(BaseModel): + """ + DataInProcessingJob + """ # noqa: E501 + data_version: Optional[StrictStr] = Field(default=None, description="The data version associated with the processing job.", alias="dataVersion") + job_id: Optional[StrictStr] = Field(default=None, description="The job ID of the processing job for the analytic tenant.", alias="jobId") + message: Optional[StrictStr] = Field(default=None, description="A meaningful message about the processing job.") + status: Optional[StrictStr] = Field(default=None, description="The status of the receiving job for the analytic tenant.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The analytic tenant code.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["dataVersion", "jobId", "message", "status", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInProcessingJob from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInProcessingJob from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataVersion": obj.get("dataVersion"), + "jobId": obj.get("jobId"), + "message": obj.get("message"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_processing_job_and_status_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_processing_job_and_status_response.py new file mode 100644 index 0000000000..dfd7d4c8ec --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_processing_job_and_status_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_processing_job import DataInProcessingJob +from typing import Optional, Set +from typing_extensions import Self + +class DataInProcessingJobAndStatusResponse(BaseModel): + """ + DataInProcessingJobAndStatusResponse + """ # noqa: E501 + limit: Optional[StrictInt] = Field(default=None, description="The number of processing jobs to return. The maximum number of jobs to return is 1000.") + parent_job_id: Optional[StrictStr] = Field(default=None, description="The ID of the dispatching job that generated the extraction jobs.", alias="parentJobId") + parent_tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant that owns the dispatching job. This is usually the administrating tenant.", alias="parentTenantCode") + processing_jobs: Optional[List[DataInProcessingJob]] = Field(default=None, description="A list of processing job information.", alias="processingJobs") + start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") + __properties: ClassVar[List[str]] = ["limit", "parentJobId", "parentTenantCode", "processingJobs", "start"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInProcessingJobAndStatusResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in processing_jobs (list) + _items = [] + if self.processing_jobs: + for _item_processing_jobs in self.processing_jobs: + if _item_processing_jobs: + _items.append(_item_processing_jobs.to_dict()) + _dict['processingJobs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInProcessingJobAndStatusResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "parentJobId": obj.get("parentJobId"), + "parentTenantCode": obj.get("parentTenantCode"), + "processingJobs": [DataInProcessingJob.from_dict(_item) for _item in obj["processingJobs"]] if obj.get("processingJobs") is not None else None, + "start": obj.get("start") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_processing_job_status_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_processing_job_status_response.py new file mode 100644 index 0000000000..21c1c20a59 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_processing_job_status_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_processing_job import DataInProcessingJob +from typing import Optional, Set +from typing_extensions import Self + +class DataInProcessingJobStatusResponse(BaseModel): + """ + DataInProcessingJobStatusResponse + """ # noqa: E501 + limit: Optional[StrictInt] = Field(default=None, description="The limit of processing jobs to retrieve per page.") + parent_job_id: Optional[StrictStr] = Field(default=None, description="The job ID of the receiving job that spawned this job.", alias="parentJobId") + parent_tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the receiving job that spawned this job.", alias="parentTenantCode") + processing_jobs: Optional[List[DataInProcessingJob]] = Field(default=None, description="A list of objects representing the processing jobs to retrieve.", alias="processingJobs") + start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") + __properties: ClassVar[List[str]] = ["limit", "parentJobId", "parentTenantCode", "processingJobs", "start"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInProcessingJobStatusResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in processing_jobs (list) + _items = [] + if self.processing_jobs: + for _item_processing_jobs in self.processing_jobs: + if _item_processing_jobs: + _items.append(_item_processing_jobs.to_dict()) + _dict['processingJobs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInProcessingJobStatusResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "parentJobId": obj.get("parentJobId"), + "parentTenantCode": obj.get("parentTenantCode"), + "processingJobs": [DataInProcessingJob.from_dict(_item) for _item in obj["processingJobs"]] if obj.get("processingJobs") is not None else None, + "start": obj.get("start") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_push_data_cancel_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_push_data_cancel_response.py new file mode 100644 index 0000000000..8d938e2df4 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_push_data_cancel_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_data_transfer_result_detail import DataInDataTransferResultDetail +from typing import Optional, Set +from typing_extensions import Self + +class DataInPushDataCancelResponse(BaseModel): + """ + DataInPushDataCancelResponse + """ # noqa: E501 + data_transfer_result_details: Optional[List[DataInDataTransferResultDetail]] = Field(default=None, description="A list of objects representing the results of the transfer session.", alias="dataTransferResultDetails") + message: Optional[StrictStr] = Field(default=None, description="A meaningful message about the transfer session.") + status: Optional[StrictStr] = Field(default=None, description="The status of the transfer session. A cancelled session returns the status CANCELLED.") + transfer_session_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the transfer session.", alias="transferSessionId") + __properties: ClassVar[List[str]] = ["dataTransferResultDetails", "message", "status", "transferSessionId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInPushDataCancelResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data_transfer_result_details (list) + _items = [] + if self.data_transfer_result_details: + for _item_data_transfer_result_details in self.data_transfer_result_details: + if _item_data_transfer_result_details: + _items.append(_item_data_transfer_result_details.to_dict()) + _dict['dataTransferResultDetails'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInPushDataCancelResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataTransferResultDetails": [DataInDataTransferResultDetail.from_dict(_item) for _item in obj["dataTransferResultDetails"]] if obj.get("dataTransferResultDetails") is not None else None, + "message": obj.get("message"), + "status": obj.get("status"), + "transferSessionId": obj.get("transferSessionId") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_push_data_complete_request.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_push_data_complete_request.py new file mode 100644 index 0000000000..306194ffcc --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_push_data_complete_request.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInPushDataCompleteRequest(BaseModel): + """ + DataInPushDataCompleteRequest + """ # noqa: E501 + processing_data: Optional[StrictBool] = Field(default=None, description="If `true`, a processing job will be triggered after the receiving job successfully completes. This generates a new data version.", alias="processingData") + transfer_session_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the transfer session.", alias="transferSessionId") + __properties: ClassVar[List[str]] = ["processingData", "transferSessionId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInPushDataCompleteRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInPushDataCompleteRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "processingData": obj.get("processingData"), + "transferSessionId": obj.get("transferSessionId") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_push_data_complete_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_push_data_complete_response.py new file mode 100644 index 0000000000..0161cfb2dc --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_push_data_complete_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_data_transfer_result_detail import DataInDataTransferResultDetail +from typing import Optional, Set +from typing_extensions import Self + +class DataInPushDataCompleteResponse(BaseModel): + """ + DataInPushDataCompleteResponse + """ # noqa: E501 + data_receiving_job_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the receiving job.", alias="dataReceivingJobId") + data_transfer_result_details: Optional[List[DataInDataTransferResultDetail]] = Field(default=None, description="A list of objects representing the results of the transfer session.", alias="dataTransferResultDetails") + message: Optional[StrictStr] = Field(default=None, description="A meaningful message about the transfer session.") + status: Optional[StrictStr] = Field(default=None, description="The status of the transfer session. A completed session returns the status SUCCEED.") + transfer_session_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the transfer session.", alias="transferSessionId") + __properties: ClassVar[List[str]] = ["dataReceivingJobId", "dataTransferResultDetails", "message", "status", "transferSessionId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInPushDataCompleteResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data_transfer_result_details (list) + _items = [] + if self.data_transfer_result_details: + for _item_data_transfer_result_details in self.data_transfer_result_details: + if _item_data_transfer_result_details: + _items.append(_item_data_transfer_result_details.to_dict()) + _dict['dataTransferResultDetails'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInPushDataCompleteResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataReceivingJobId": obj.get("dataReceivingJobId"), + "dataTransferResultDetails": [DataInDataTransferResultDetail.from_dict(_item) for _item in obj["dataTransferResultDetails"]] if obj.get("dataTransferResultDetails") is not None else None, + "message": obj.get("message"), + "status": obj.get("status"), + "transferSessionId": obj.get("transferSessionId") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_push_data_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_push_data_response.py new file mode 100644 index 0000000000..1708a78a6d --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_push_data_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_tenant import DataInTenant +from typing import Optional, Set +from typing_extensions import Self + +class DataInPushDataResponse(BaseModel): + """ + DataInPushDataResponse + """ # noqa: E501 + message: Optional[StrictStr] = Field(default=None, description="Any additional information about the data transfer.") + sequence: Optional[StrictInt] = Field(default=None, description="The unique sequence number associated with a batch of records.") + status: Optional[StrictStr] = Field(default=None, description="The status of the data transfer.") + tenants: Optional[List[DataInTenant]] = Field(default=None, description="A list of strings representing the tenants that data was pushed to and their data transfer results.") + transfer_session_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the transfer session.", alias="transferSessionId") + __properties: ClassVar[List[str]] = ["message", "sequence", "status", "tenants", "transferSessionId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInPushDataResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInPushDataResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "sequence": obj.get("sequence"), + "status": obj.get("status"), + "tenants": [DataInTenant.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None, + "transferSessionId": obj.get("transferSessionId") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_receiving_job.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_receiving_job.py new file mode 100644 index 0000000000..4ea7a8a43e --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_receiving_job.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInReceivingJob(BaseModel): + """ + DataInReceivingJob + """ # noqa: E501 + receiving_job_id: Optional[StrictStr] = Field(default=None, description="The job ID of the receiving job for the analytic tenant.", alias="receivingJobId") + status: Optional[StrictStr] = Field(default=None, description="The status of the receiving job for the analytic tenant.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The analytic tenant code.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["receivingJobId", "status", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInReceivingJob from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInReceivingJob from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "receivingJobId": obj.get("receivingJobId"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_receiving_job_and_status_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_receiving_job_and_status_response.py new file mode 100644 index 0000000000..66c1dd83c5 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_receiving_job_and_status_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_receiving_job import DataInReceivingJob +from typing import Optional, Set +from typing_extensions import Self + +class DataInReceivingJobAndStatusResponse(BaseModel): + """ + DataInReceivingJobAndStatusResponse + """ # noqa: E501 + limit: Optional[StrictInt] = Field(default=None, description="The number of receiving jobs to return. The maximum number of jobs to return is 1000.") + parent_job_id: Optional[StrictStr] = Field(default=None, description="The ID of the dispatching job that generated the extraction jobs.", alias="parentJobId") + parent_tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant that owns the dispatching job. This is usually the administrating tenant.", alias="parentTenantCode") + receiving_jobs: Optional[List[DataInReceivingJob]] = Field(default=None, description="A list of receiving job information.", alias="receivingJobs") + start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") + __properties: ClassVar[List[str]] = ["limit", "parentJobId", "parentTenantCode", "receivingJobs", "start"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInReceivingJobAndStatusResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in receiving_jobs (list) + _items = [] + if self.receiving_jobs: + for _item_receiving_jobs in self.receiving_jobs: + if _item_receiving_jobs: + _items.append(_item_receiving_jobs.to_dict()) + _dict['receivingJobs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInReceivingJobAndStatusResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "parentJobId": obj.get("parentJobId"), + "parentTenantCode": obj.get("parentTenantCode"), + "receivingJobs": [DataInReceivingJob.from_dict(_item) for _item in obj["receivingJobs"]] if obj.get("receivingJobs") is not None else None, + "start": obj.get("start") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_receiving_job_status_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_receiving_job_status_response.py new file mode 100644 index 0000000000..135025e33c --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_receiving_job_status_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_receiving_job import DataInReceivingJob +from typing import Optional, Set +from typing_extensions import Self + +class DataInReceivingJobStatusResponse(BaseModel): + """ + DataInReceivingJobStatusResponse + """ # noqa: E501 + job_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the receiving job.", alias="jobId") + parent_job_id: Optional[StrictStr] = Field(default=None, description="The job ID of the receiving job that spawned this job.", alias="parentJobId") + parent_tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the receiving job that spawned this job.", alias="parentTenantCode") + receiving_jobs: Optional[List[DataInReceivingJob]] = Field(default=None, description="A list of objects representing the receiving jobs to retrieve.", alias="receivingJobs") + status: Optional[StrictStr] = Field(default=None, description="The status of the receiving job.") + __properties: ClassVar[List[str]] = ["jobId", "parentJobId", "parentTenantCode", "receivingJobs", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInReceivingJobStatusResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in receiving_jobs (list) + _items = [] + if self.receiving_jobs: + for _item_receiving_jobs in self.receiving_jobs: + if _item_receiving_jobs: + _items.append(_item_receiving_jobs.to_dict()) + _dict['receivingJobs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInReceivingJobStatusResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobId": obj.get("jobId"), + "parentJobId": obj.get("parentJobId"), + "parentTenantCode": obj.get("parentTenantCode"), + "receivingJobs": [DataInReceivingJob.from_dict(_item) for _item in obj["receivingJobs"]] if obj.get("receivingJobs") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_result.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_result.py new file mode 100644 index 0000000000..5ba058037a --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_result.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInResult(BaseModel): + """ + DataInResult + """ # noqa: E501 + data_version: Optional[StrictStr] = Field(default=None, description="If applicable, the data version that was disabled.", alias="dataVersion") + job_id: Optional[StrictStr] = Field(default=None, description="If applicable, the job ID associated with the data version.", alias="jobId") + message: Optional[StrictStr] = Field(default=None, description="If applicable, the message explains what errors occurred while disabling data versions.") + status: Optional[StrictStr] = Field(default=None, description="The outcome of the disabling operation.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The analytic tenant that the disable operation was conducted for.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["dataVersion", "jobId", "message", "status", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataVersion": obj.get("dataVersion"), + "jobId": obj.get("jobId"), + "message": obj.get("message"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_source.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_source.py new file mode 100644 index 0000000000..64d0df6c6b --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_source.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInSource(BaseModel): + """ + DataInSource + """ # noqa: E501 + data_size: Optional[StrictStr] = Field(default=None, description="The size of the data transfer in bytes.", alias="dataSize") + message: Optional[StrictStr] = Field(default=None, description="A meaningful message about the data transfer.") + rows: Optional[StrictStr] = Field(default=None, description="The number of rows in the data transfer.") + source_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the source that data was transferred to.", alias="sourceId") + source_name: Optional[StrictStr] = Field(default=None, description="The object name of the source.", alias="sourceName") + status: Optional[StrictStr] = Field(default=None, description="The status of the data transfer for this source.") + __properties: ClassVar[List[str]] = ["dataSize", "message", "rows", "sourceId", "sourceName", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInSource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInSource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataSize": obj.get("dataSize"), + "message": obj.get("message"), + "rows": obj.get("rows"), + "sourceId": obj.get("sourceId"), + "sourceName": obj.get("sourceName"), + "status": obj.get("status") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_start_extraction_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_start_extraction_response.py new file mode 100644 index 0000000000..f4dc8eb806 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_start_extraction_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInStartExtractionResponse(BaseModel): + """ + DataInStartExtractionResponse + """ # noqa: E501 + job_id: Optional[StrictStr] = Field(default=None, description="The ID of the dispatching job that generated the extraction jobs.", alias="JobId") + __properties: ClassVar[List[str]] = ["JobId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInStartExtractionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInStartExtractionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "JobId": obj.get("JobId") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_start_transfer_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_start_transfer_response.py new file mode 100644 index 0000000000..7b8316494c --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_start_transfer_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInStartTransferResponse(BaseModel): + """ + DataInStartTransferResponse + """ # noqa: E501 + transfer_session_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the transfer session.", alias="transferSessionId") + __properties: ClassVar[List[str]] = ["transferSessionId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInStartTransferResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInStartTransferResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "transferSessionId": obj.get("transferSessionId") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_tenant.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_tenant.py new file mode 100644 index 0000000000..fa22ae7436 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_tenant.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.data_in_source import DataInSource +from typing import Optional, Set +from typing_extensions import Self + +class DataInTenant(BaseModel): + """ + DataInTenant + """ # noqa: E501 + sources: Optional[List[DataInSource]] = Field(default=None, description="A list of objects representing the sources that data was pushed to and their data transfer results.") + status: Optional[StrictStr] = Field(default=None, description="The status of the data transfer for this tenant.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant that data was transferred to. For example, WFF_j1r or WFF_j1r~c7o.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["sources", "status", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInTenant from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in sources (list) + _items = [] + if self.sources: + for _item_sources in self.sources: + if _item_sources: + _items.append(_item_sources.to_dict()) + _dict['sources'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInTenant from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "sources": [DataInSource.from_dict(_item) for _item in obj["sources"]] if obj.get("sources") is not None else None, + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_tenant_and_credential.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_tenant_and_credential.py new file mode 100644 index 0000000000..224662b49f --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_tenant_and_credential.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInTenantAndCredential(BaseModel): + """ + DataInTenantAndCredential + """ # noqa: E501 + credential_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the credential.", alias="credentialId") + tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["credentialId", "tenantCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInTenantAndCredential from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInTenantAndCredential from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "credentialId": obj.get("credentialId"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_upload_to_exclude.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_upload_to_exclude.py new file mode 100644 index 0000000000..ce026cc45d --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_upload_to_exclude.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInUploadToExclude(BaseModel): + """ + DataInUploadToExclude + """ # noqa: E501 + exclude_all: Optional[StrictBool] = Field(default=None, description="If `true`, all data uploads are excluded for the analytic tenant.", alias="excludeAll") + max_upload_time: Optional[StrictStr] = Field(default=None, description="An ISO-8601 time such as `\"2001-10-25T13:45:35.999\"` for the latest upload time. If defined, omit `uploadTimes`. If omitted and `minUploadTime` is defined, excludes files up to latest time available.", alias="maxUploadTime") + min_upload_time: Optional[StrictStr] = Field(default=None, description="An ISO-8601 time such as `\"2001-10-25T13:45:35.999\"` for the earliest upload time. If defined, omit `uploadTimes`. If omitted and `maxUploadTime` is defined, excludes files up to earliest time available.", alias="minUploadTime") + sources: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings representing the object name of each source to exclude. If `uploadTimes` is omitted, excludes files for the given sources for all `uploadTimes`.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant you are excluding a data upload for.", alias="tenantCode") + upload_times: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of ISO-8601 time strings such as `\"2001-10-25T13:45:35.999\"` representing the upload time of each data upload to exclude.", alias="uploadTimes") + __properties: ClassVar[List[str]] = ["excludeAll", "maxUploadTime", "minUploadTime", "sources", "tenantCode", "uploadTimes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInUploadToExclude from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInUploadToExclude from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "excludeAll": obj.get("excludeAll"), + "maxUploadTime": obj.get("maxUploadTime"), + "minUploadTime": obj.get("minUploadTime"), + "sources": obj.get("sources"), + "tenantCode": obj.get("tenantCode"), + "uploadTimes": obj.get("uploadTimes") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_in_upload_to_include.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_upload_to_include.py new file mode 100644 index 0000000000..1ac77ae49c --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/data_in_upload_to_include.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataInUploadToInclude(BaseModel): + """ + DataInUploadToInclude + """ # noqa: E501 + include_all: Optional[StrictBool] = Field(default=None, description="If `true`, all data uploads are included for the analytic tenant.", alias="includeAll") + max_upload_time: Optional[StrictStr] = Field(default=None, description="An ISO-8601 time such as `\"2001-10-25T13:45:35.999\"` for the latest upload time. If defined, omit `uploadTimes`. If omitted and `minUploadTime` is defined, includes files up to latest time available.", alias="maxUploadTime") + min_upload_time: Optional[StrictStr] = Field(default=None, description="An ISO-8601 time such as `\"2001-10-25T13:45:35.999\"` for the earliest upload time. If defined, omit `uploadTimes`. If omitted and `maxUploadTime` is defined, includes files up to earliest time available.", alias="minUploadTime") + sources: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings representing the object name of each source to include. If `uploadTimes` is omitted, includes files for the given sources for all `uploadTimes`.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant you are including a data upload for.", alias="tenantCode") + upload_times: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of ISO-8601 time strings such as `\"2001-10-25T13:45:35.999\"` representing the upload time of each data upload to include.", alias="uploadTimes") + __properties: ClassVar[List[str]] = ["includeAll", "maxUploadTime", "minUploadTime", "sources", "tenantCode", "uploadTimes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataInUploadToInclude from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataInUploadToInclude from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "includeAll": obj.get("includeAll"), + "maxUploadTime": obj.get("maxUploadTime"), + "minUploadTime": obj.get("minUploadTime"), + "sources": obj.get("sources"), + "tenantCode": obj.get("tenantCode"), + "uploadTimes": obj.get("uploadTimes") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_load_request.py b/src/visier_api_data_in/visier_api_data_in/models/data_load_request.py deleted file mode 100644 index 291c2d82cd..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/data_load_request.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.data_load_request_model import DataLoadRequestModel -from typing import Optional, Set -from typing_extensions import Self - -class DataLoadRequest(BaseModel): - """ - DataLoadRequest - """ # noqa: E501 - model: Optional[DataLoadRequestModel] = Field(default=None, description="A form body key that contains a collection of key-value pairs.") - __properties: ClassVar[List[str]] = ["model"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataLoadRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of model - if self.model: - _dict['model'] = self.model.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataLoadRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "model": DataLoadRequestModel.from_dict(obj["model"]) if obj.get("model") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_load_request_model.py b/src/visier_api_data_in/visier_api_data_in/models/data_load_request_model.py deleted file mode 100644 index 04b6f538ac..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/data_load_request_model.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataLoadRequestModel(BaseModel): - """ - DataLoadRequestModel - """ # noqa: E501 - files: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of file names. Example: `\"files\": \"/path/to/file1.zip.gpg,/path/to/another/file.zip.gpg\"`") - skip_data_load: Optional[StrictBool] = Field(default=None, description="If `true`, receives the files and skips data loading. Does not generate a data version.", alias="skipDataLoad") - __properties: ClassVar[List[str]] = ["files", "skipDataLoad"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataLoadRequestModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataLoadRequestModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "files": obj.get("files"), - "skipDataLoad": obj.get("skipDataLoad") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_load_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_load_response.py deleted file mode 100644 index 0db6a4ab6a..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/data_load_response.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataLoadResponse(BaseModel): - """ - DataLoadResponse - """ # noqa: E501 - job_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the receiving job.", alias="jobId") - __properties: ClassVar[List[str]] = ["jobId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataLoadResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataLoadResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "jobId": obj.get("jobId") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_provider_auth_information_dto.py b/src/visier_api_data_in/visier_api_data_in/models/data_provider_auth_information_dto.py deleted file mode 100644 index 14e7c45954..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/data_provider_auth_information_dto.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.data_provider_auth_params_dto import DataProviderAuthParamsDTO -from visier_api_data_in.models.data_provider_basic_information_dto import DataProviderBasicInformationDTO -from visier_api_data_in.models.data_provider_basic_metadata_dto import DataProviderBasicMetadataDTO -from typing import Optional, Set -from typing_extensions import Self - -class DataProviderAuthInformationDTO(BaseModel): - """ - DataProviderAuthInformationDTO - """ # noqa: E501 - data_provider_auth_params: Optional[DataProviderAuthParamsDTO] = Field(default=None, description="The authentication information for the credential.", alias="dataProviderAuthParams") - data_provider_basic_information: Optional[DataProviderBasicInformationDTO] = Field(default=None, description="The display name and description for the credential.", alias="dataProviderBasicInformation") - data_provider_metadata: Optional[DataProviderBasicMetadataDTO] = Field(default=None, alias="dataProviderMetadata") - __properties: ClassVar[List[str]] = ["dataProviderAuthParams", "dataProviderBasicInformation", "dataProviderMetadata"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataProviderAuthInformationDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data_provider_auth_params - if self.data_provider_auth_params: - _dict['dataProviderAuthParams'] = self.data_provider_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of data_provider_basic_information - if self.data_provider_basic_information: - _dict['dataProviderBasicInformation'] = self.data_provider_basic_information.to_dict() - # override the default output from pydantic by calling `to_dict()` of data_provider_metadata - if self.data_provider_metadata: - _dict['dataProviderMetadata'] = self.data_provider_metadata.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataProviderAuthInformationDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataProviderAuthParams": DataProviderAuthParamsDTO.from_dict(obj["dataProviderAuthParams"]) if obj.get("dataProviderAuthParams") is not None else None, - "dataProviderBasicInformation": DataProviderBasicInformationDTO.from_dict(obj["dataProviderBasicInformation"]) if obj.get("dataProviderBasicInformation") is not None else None, - "dataProviderMetadata": DataProviderBasicMetadataDTO.from_dict(obj["dataProviderMetadata"]) if obj.get("dataProviderMetadata") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_provider_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/data_provider_auth_params_dto.py deleted file mode 100644 index 7fb828de54..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/data_provider_auth_params_dto.py +++ /dev/null @@ -1,339 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.adp_auth_params_dto import AdpAuthParamsDTO -from visier_api_data_in.models.bamboo_auth_params_dto import BambooAuthParamsDTO -from visier_api_data_in.models.basic_s3_auth_params_dto import BasicS3AuthParamsDTO -from visier_api_data_in.models.big_query_auth_params_dto import BigQueryAuthParamsDTO -from visier_api_data_in.models.copy_s3_auth_params_dto import CopyS3AuthParamsDTO -from visier_api_data_in.models.dayforce_v2_auth_params_dto import DayforceV2AuthParamsDTO -from visier_api_data_in.models.dimensions_auth_params_dto import DimensionsAuthParamsDTO -from visier_api_data_in.models.fusion_auth_params_dto import FusionAuthParamsDTO -from visier_api_data_in.models.gong_auth_params_dto import GongAuthParamsDTO -from visier_api_data_in.models.google_sheets_auth_params_dto import GoogleSheetsAuthParamsDTO -from visier_api_data_in.models.google_workspace_auth_params_dto import GoogleWorkspaceAuthParamsDTO -from visier_api_data_in.models.greenhouse_auth_params_dto import GreenhouseAuthParamsDTO -from visier_api_data_in.models.icims_auth_params_dto import IcimsAuthParamsDTO -from visier_api_data_in.models.internal_s3_auth_params_dto import InternalS3AuthParamsDTO -from visier_api_data_in.models.jdbc_auth_params_dto import JdbcAuthParamsDTO -from visier_api_data_in.models.jira_auth_params_dto import JiraAuthParamsDTO -from visier_api_data_in.models.lever_auth_params_dto import LeverAuthParamsDTO -from visier_api_data_in.models.medallia_auth_params_dto import MedalliaAuthParamsDTO -from visier_api_data_in.models.microsoft365_auth_params_dto import Microsoft365AuthParamsDTO -from visier_api_data_in.models.my_sql_auth_params_dto import MySqlAuthParamsDTO -from visier_api_data_in.models.namely_auth_params_dto import NamelyAuthParamsDTO -from visier_api_data_in.models.oracle_db_auth_params_dto import OracleDbAuthParamsDTO -from visier_api_data_in.models.qualtrics_auth_params_dto import QualtricsAuthParamsDTO -from visier_api_data_in.models.redshift_auth_params_dto import RedshiftAuthParamsDTO -from visier_api_data_in.models.salesforce_auth_params_dto import SalesforceAuthParamsDTO -from visier_api_data_in.models.salesforce_v2_auth_params_dto import SalesforceV2AuthParamsDTO -from visier_api_data_in.models.service_now_auth_params_dto import ServiceNowAuthParamsDTO -from visier_api_data_in.models.service_now_v2_auth_params_dto import ServiceNowV2AuthParamsDTO -from visier_api_data_in.models.slack_auth_params_dto import SlackAuthParamsDTO -from visier_api_data_in.models.snowflake_auth_params_dto import SnowflakeAuthParamsDTO -from visier_api_data_in.models.sql_server_auth_params_dto import SqlServerAuthParamsDTO -from visier_api_data_in.models.success_factors_auth_params_dto import SuccessFactorsAuthParamsDTO -from visier_api_data_in.models.ultimate_auth_params_dto import UltimateAuthParamsDTO -from visier_api_data_in.models.willow_auth_params_dto import WillowAuthParamsDTO -from visier_api_data_in.models.workday_auth_params_dto import WorkdayAuthParamsDTO -from visier_api_data_in.models.workday_raas_auth_params_dto import WorkdayRaasAuthParamsDTO -from visier_api_data_in.models.zoom_auth_params_dto import ZoomAuthParamsDTO -from typing import Optional, Set -from typing_extensions import Self - -class DataProviderAuthParamsDTO(BaseModel): - """ - DataProviderAuthParamsDTO - """ # noqa: E501 - adp_auth_params: Optional[AdpAuthParamsDTO] = Field(default=None, alias="adpAuthParams") - auth_context: Optional[StrictStr] = Field(default=None, alias="authContext") - bamboo_auth_params: Optional[BambooAuthParamsDTO] = Field(default=None, alias="bambooAuthParams") - big_query_auth_params: Optional[BigQueryAuthParamsDTO] = Field(default=None, alias="bigQueryAuthParams") - copy_s3_auth_params: Optional[CopyS3AuthParamsDTO] = Field(default=None, alias="copyS3AuthParams") - dayforce_v2_auth_params: Optional[DayforceV2AuthParamsDTO] = Field(default=None, alias="dayforceV2AuthParams") - dimensions_auth_params: Optional[DimensionsAuthParamsDTO] = Field(default=None, alias="dimensionsAuthParams") - empty_auth_params: Optional[Dict[str, Any]] = Field(default=None, alias="emptyAuthParams") - fusion_auth_params: Optional[FusionAuthParamsDTO] = Field(default=None, alias="fusionAuthParams") - gong_auth_params: Optional[GongAuthParamsDTO] = Field(default=None, alias="gongAuthParams") - google_sheets_auth_params: Optional[GoogleSheetsAuthParamsDTO] = Field(default=None, alias="googleSheetsAuthParams") - google_workspace_auth_params: Optional[GoogleWorkspaceAuthParamsDTO] = Field(default=None, alias="googleWorkspaceAuthParams") - greenhouse_auth_params: Optional[GreenhouseAuthParamsDTO] = Field(default=None, alias="greenhouseAuthParams") - has_updates: Optional[StrictBool] = Field(default=None, alias="hasUpdates") - icims_auth_params: Optional[IcimsAuthParamsDTO] = Field(default=None, alias="icimsAuthParams") - internal_s3_auth_params: Optional[InternalS3AuthParamsDTO] = Field(default=None, alias="internalS3AuthParams") - jdbc_auth_params: Optional[JdbcAuthParamsDTO] = Field(default=None, alias="jdbcAuthParams") - jira_auth_params: Optional[JiraAuthParamsDTO] = Field(default=None, alias="jiraAuthParams") - lever_auth_params: Optional[LeverAuthParamsDTO] = Field(default=None, alias="leverAuthParams") - medallia_auth_params: Optional[MedalliaAuthParamsDTO] = Field(default=None, alias="medalliaAuthParams") - ms365_auth_params: Optional[Microsoft365AuthParamsDTO] = Field(default=None, alias="ms365AuthParams") - my_sql_auth_params: Optional[MySqlAuthParamsDTO] = Field(default=None, alias="mySqlAuthParams") - namely_auth_params: Optional[NamelyAuthParamsDTO] = Field(default=None, alias="namelyAuthParams") - oracle_db_auth_params: Optional[OracleDbAuthParamsDTO] = Field(default=None, alias="oracleDbAuthParams") - provider: Optional[StrictStr] = Field(default=None, description="The data provider associated with the credential.") - qualtrics_auth_params: Optional[QualtricsAuthParamsDTO] = Field(default=None, alias="qualtricsAuthParams") - redshift_auth_params: Optional[RedshiftAuthParamsDTO] = Field(default=None, alias="redshiftAuthParams") - s3_auth_params: Optional[BasicS3AuthParamsDTO] = Field(default=None, alias="s3AuthParams") - salesforce_auth_params: Optional[SalesforceAuthParamsDTO] = Field(default=None, alias="salesforceAuthParams") - salesforce_v2_auth_params: Optional[SalesforceV2AuthParamsDTO] = Field(default=None, alias="salesforceV2AuthParams") - service_now_auth_params: Optional[ServiceNowAuthParamsDTO] = Field(default=None, alias="serviceNowAuthParams") - service_now_v2_auth_params: Optional[ServiceNowV2AuthParamsDTO] = Field(default=None, alias="serviceNowV2AuthParams") - slack_auth_params: Optional[SlackAuthParamsDTO] = Field(default=None, alias="slackAuthParams") - snowflake_auth_params: Optional[SnowflakeAuthParamsDTO] = Field(default=None, alias="snowflakeAuthParams") - sql_server_auth_params: Optional[SqlServerAuthParamsDTO] = Field(default=None, alias="sqlServerAuthParams") - success_factors_auth_params: Optional[SuccessFactorsAuthParamsDTO] = Field(default=None, alias="successFactorsAuthParams") - tenant_domain_name: Optional[StrictStr] = Field(default=None, alias="tenantDomainName") - ultimate_auth_params: Optional[UltimateAuthParamsDTO] = Field(default=None, alias="ultimateAuthParams") - willow_auth_params: Optional[WillowAuthParamsDTO] = Field(default=None, alias="willowAuthParams") - workday_auth_params: Optional[WorkdayAuthParamsDTO] = Field(default=None, alias="workdayAuthParams") - workday_raas_auth_params: Optional[WorkdayRaasAuthParamsDTO] = Field(default=None, alias="workdayRaasAuthParams") - zoom_auth_params: Optional[ZoomAuthParamsDTO] = Field(default=None, alias="zoomAuthParams") - __properties: ClassVar[List[str]] = ["adpAuthParams", "authContext", "bambooAuthParams", "bigQueryAuthParams", "copyS3AuthParams", "dayforceV2AuthParams", "dimensionsAuthParams", "emptyAuthParams", "fusionAuthParams", "gongAuthParams", "googleSheetsAuthParams", "googleWorkspaceAuthParams", "greenhouseAuthParams", "hasUpdates", "icimsAuthParams", "internalS3AuthParams", "jdbcAuthParams", "jiraAuthParams", "leverAuthParams", "medalliaAuthParams", "ms365AuthParams", "mySqlAuthParams", "namelyAuthParams", "oracleDbAuthParams", "provider", "qualtricsAuthParams", "redshiftAuthParams", "s3AuthParams", "salesforceAuthParams", "salesforceV2AuthParams", "serviceNowAuthParams", "serviceNowV2AuthParams", "slackAuthParams", "snowflakeAuthParams", "sqlServerAuthParams", "successFactorsAuthParams", "tenantDomainName", "ultimateAuthParams", "willowAuthParams", "workdayAuthParams", "workdayRaasAuthParams", "zoomAuthParams"] - - @field_validator('auth_context') - def auth_context_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['DefaultDataExtraction', 'WorkplaceDynamicsDataExtraction', 'Notification']): - raise ValueError("must be one of enum values ('DefaultDataExtraction', 'WorkplaceDynamicsDataExtraction', 'Notification')") - return value - - @field_validator('provider') - def provider_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['Bamboo', 'GoogleSheets', 'Greenhouse', 'Jira', 'Lever', 'Namely', 'Qualtrics', 'Salesforce', 'UKG', 'Workday', 'Icims', 'ServiceNow', 'Jdbc', 'BasicS3', 'InternalS3', 'CopyS3', 'Redshift', 'Snowflake', 'BigQuery', 'SqlServer', 'Dimensions', 'IcimsPartnerProviderRedshift', 'Willow', 'SuccessFactors', 'IcimsV2', 'ADP', 'WorkdayV2', 'ServiceNowV2', 'Medallia', 'Fusion', 'SalesforceV2', 'Gong', 'Zoom', 'GoogleCalendar', 'UKGV2', 'DayforceV2', 'GoogleActivityReport', 'Slack', 'MySql', 'WorkdayRaas', 'Microsoft365', 'GoogleWorkspace', 'OracleDb', 'SmartRecruiters', 'WorkdayWQL', 'OEMCornerstone']): - raise ValueError("must be one of enum values ('Bamboo', 'GoogleSheets', 'Greenhouse', 'Jira', 'Lever', 'Namely', 'Qualtrics', 'Salesforce', 'UKG', 'Workday', 'Icims', 'ServiceNow', 'Jdbc', 'BasicS3', 'InternalS3', 'CopyS3', 'Redshift', 'Snowflake', 'BigQuery', 'SqlServer', 'Dimensions', 'IcimsPartnerProviderRedshift', 'Willow', 'SuccessFactors', 'IcimsV2', 'ADP', 'WorkdayV2', 'ServiceNowV2', 'Medallia', 'Fusion', 'SalesforceV2', 'Gong', 'Zoom', 'GoogleCalendar', 'UKGV2', 'DayforceV2', 'GoogleActivityReport', 'Slack', 'MySql', 'WorkdayRaas', 'Microsoft365', 'GoogleWorkspace', 'OracleDb', 'SmartRecruiters', 'WorkdayWQL', 'OEMCornerstone')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataProviderAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of adp_auth_params - if self.adp_auth_params: - _dict['adpAuthParams'] = self.adp_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of bamboo_auth_params - if self.bamboo_auth_params: - _dict['bambooAuthParams'] = self.bamboo_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of big_query_auth_params - if self.big_query_auth_params: - _dict['bigQueryAuthParams'] = self.big_query_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of copy_s3_auth_params - if self.copy_s3_auth_params: - _dict['copyS3AuthParams'] = self.copy_s3_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of dayforce_v2_auth_params - if self.dayforce_v2_auth_params: - _dict['dayforceV2AuthParams'] = self.dayforce_v2_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of dimensions_auth_params - if self.dimensions_auth_params: - _dict['dimensionsAuthParams'] = self.dimensions_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of fusion_auth_params - if self.fusion_auth_params: - _dict['fusionAuthParams'] = self.fusion_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of gong_auth_params - if self.gong_auth_params: - _dict['gongAuthParams'] = self.gong_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of google_sheets_auth_params - if self.google_sheets_auth_params: - _dict['googleSheetsAuthParams'] = self.google_sheets_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of google_workspace_auth_params - if self.google_workspace_auth_params: - _dict['googleWorkspaceAuthParams'] = self.google_workspace_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of greenhouse_auth_params - if self.greenhouse_auth_params: - _dict['greenhouseAuthParams'] = self.greenhouse_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of icims_auth_params - if self.icims_auth_params: - _dict['icimsAuthParams'] = self.icims_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of internal_s3_auth_params - if self.internal_s3_auth_params: - _dict['internalS3AuthParams'] = self.internal_s3_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of jdbc_auth_params - if self.jdbc_auth_params: - _dict['jdbcAuthParams'] = self.jdbc_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of jira_auth_params - if self.jira_auth_params: - _dict['jiraAuthParams'] = self.jira_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of lever_auth_params - if self.lever_auth_params: - _dict['leverAuthParams'] = self.lever_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of medallia_auth_params - if self.medallia_auth_params: - _dict['medalliaAuthParams'] = self.medallia_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of ms365_auth_params - if self.ms365_auth_params: - _dict['ms365AuthParams'] = self.ms365_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of my_sql_auth_params - if self.my_sql_auth_params: - _dict['mySqlAuthParams'] = self.my_sql_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of namely_auth_params - if self.namely_auth_params: - _dict['namelyAuthParams'] = self.namely_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of oracle_db_auth_params - if self.oracle_db_auth_params: - _dict['oracleDbAuthParams'] = self.oracle_db_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of qualtrics_auth_params - if self.qualtrics_auth_params: - _dict['qualtricsAuthParams'] = self.qualtrics_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of redshift_auth_params - if self.redshift_auth_params: - _dict['redshiftAuthParams'] = self.redshift_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of s3_auth_params - if self.s3_auth_params: - _dict['s3AuthParams'] = self.s3_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of salesforce_auth_params - if self.salesforce_auth_params: - _dict['salesforceAuthParams'] = self.salesforce_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of salesforce_v2_auth_params - if self.salesforce_v2_auth_params: - _dict['salesforceV2AuthParams'] = self.salesforce_v2_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of service_now_auth_params - if self.service_now_auth_params: - _dict['serviceNowAuthParams'] = self.service_now_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of service_now_v2_auth_params - if self.service_now_v2_auth_params: - _dict['serviceNowV2AuthParams'] = self.service_now_v2_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of slack_auth_params - if self.slack_auth_params: - _dict['slackAuthParams'] = self.slack_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of snowflake_auth_params - if self.snowflake_auth_params: - _dict['snowflakeAuthParams'] = self.snowflake_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of sql_server_auth_params - if self.sql_server_auth_params: - _dict['sqlServerAuthParams'] = self.sql_server_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of success_factors_auth_params - if self.success_factors_auth_params: - _dict['successFactorsAuthParams'] = self.success_factors_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of ultimate_auth_params - if self.ultimate_auth_params: - _dict['ultimateAuthParams'] = self.ultimate_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of willow_auth_params - if self.willow_auth_params: - _dict['willowAuthParams'] = self.willow_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of workday_auth_params - if self.workday_auth_params: - _dict['workdayAuthParams'] = self.workday_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of workday_raas_auth_params - if self.workday_raas_auth_params: - _dict['workdayRaasAuthParams'] = self.workday_raas_auth_params.to_dict() - # override the default output from pydantic by calling `to_dict()` of zoom_auth_params - if self.zoom_auth_params: - _dict['zoomAuthParams'] = self.zoom_auth_params.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataProviderAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "adpAuthParams": AdpAuthParamsDTO.from_dict(obj["adpAuthParams"]) if obj.get("adpAuthParams") is not None else None, - "authContext": obj.get("authContext"), - "bambooAuthParams": BambooAuthParamsDTO.from_dict(obj["bambooAuthParams"]) if obj.get("bambooAuthParams") is not None else None, - "bigQueryAuthParams": BigQueryAuthParamsDTO.from_dict(obj["bigQueryAuthParams"]) if obj.get("bigQueryAuthParams") is not None else None, - "copyS3AuthParams": CopyS3AuthParamsDTO.from_dict(obj["copyS3AuthParams"]) if obj.get("copyS3AuthParams") is not None else None, - "dayforceV2AuthParams": DayforceV2AuthParamsDTO.from_dict(obj["dayforceV2AuthParams"]) if obj.get("dayforceV2AuthParams") is not None else None, - "dimensionsAuthParams": DimensionsAuthParamsDTO.from_dict(obj["dimensionsAuthParams"]) if obj.get("dimensionsAuthParams") is not None else None, - "emptyAuthParams": obj.get("emptyAuthParams"), - "fusionAuthParams": FusionAuthParamsDTO.from_dict(obj["fusionAuthParams"]) if obj.get("fusionAuthParams") is not None else None, - "gongAuthParams": GongAuthParamsDTO.from_dict(obj["gongAuthParams"]) if obj.get("gongAuthParams") is not None else None, - "googleSheetsAuthParams": GoogleSheetsAuthParamsDTO.from_dict(obj["googleSheetsAuthParams"]) if obj.get("googleSheetsAuthParams") is not None else None, - "googleWorkspaceAuthParams": GoogleWorkspaceAuthParamsDTO.from_dict(obj["googleWorkspaceAuthParams"]) if obj.get("googleWorkspaceAuthParams") is not None else None, - "greenhouseAuthParams": GreenhouseAuthParamsDTO.from_dict(obj["greenhouseAuthParams"]) if obj.get("greenhouseAuthParams") is not None else None, - "hasUpdates": obj.get("hasUpdates"), - "icimsAuthParams": IcimsAuthParamsDTO.from_dict(obj["icimsAuthParams"]) if obj.get("icimsAuthParams") is not None else None, - "internalS3AuthParams": InternalS3AuthParamsDTO.from_dict(obj["internalS3AuthParams"]) if obj.get("internalS3AuthParams") is not None else None, - "jdbcAuthParams": JdbcAuthParamsDTO.from_dict(obj["jdbcAuthParams"]) if obj.get("jdbcAuthParams") is not None else None, - "jiraAuthParams": JiraAuthParamsDTO.from_dict(obj["jiraAuthParams"]) if obj.get("jiraAuthParams") is not None else None, - "leverAuthParams": LeverAuthParamsDTO.from_dict(obj["leverAuthParams"]) if obj.get("leverAuthParams") is not None else None, - "medalliaAuthParams": MedalliaAuthParamsDTO.from_dict(obj["medalliaAuthParams"]) if obj.get("medalliaAuthParams") is not None else None, - "ms365AuthParams": Microsoft365AuthParamsDTO.from_dict(obj["ms365AuthParams"]) if obj.get("ms365AuthParams") is not None else None, - "mySqlAuthParams": MySqlAuthParamsDTO.from_dict(obj["mySqlAuthParams"]) if obj.get("mySqlAuthParams") is not None else None, - "namelyAuthParams": NamelyAuthParamsDTO.from_dict(obj["namelyAuthParams"]) if obj.get("namelyAuthParams") is not None else None, - "oracleDbAuthParams": OracleDbAuthParamsDTO.from_dict(obj["oracleDbAuthParams"]) if obj.get("oracleDbAuthParams") is not None else None, - "provider": obj.get("provider"), - "qualtricsAuthParams": QualtricsAuthParamsDTO.from_dict(obj["qualtricsAuthParams"]) if obj.get("qualtricsAuthParams") is not None else None, - "redshiftAuthParams": RedshiftAuthParamsDTO.from_dict(obj["redshiftAuthParams"]) if obj.get("redshiftAuthParams") is not None else None, - "s3AuthParams": BasicS3AuthParamsDTO.from_dict(obj["s3AuthParams"]) if obj.get("s3AuthParams") is not None else None, - "salesforceAuthParams": SalesforceAuthParamsDTO.from_dict(obj["salesforceAuthParams"]) if obj.get("salesforceAuthParams") is not None else None, - "salesforceV2AuthParams": SalesforceV2AuthParamsDTO.from_dict(obj["salesforceV2AuthParams"]) if obj.get("salesforceV2AuthParams") is not None else None, - "serviceNowAuthParams": ServiceNowAuthParamsDTO.from_dict(obj["serviceNowAuthParams"]) if obj.get("serviceNowAuthParams") is not None else None, - "serviceNowV2AuthParams": ServiceNowV2AuthParamsDTO.from_dict(obj["serviceNowV2AuthParams"]) if obj.get("serviceNowV2AuthParams") is not None else None, - "slackAuthParams": SlackAuthParamsDTO.from_dict(obj["slackAuthParams"]) if obj.get("slackAuthParams") is not None else None, - "snowflakeAuthParams": SnowflakeAuthParamsDTO.from_dict(obj["snowflakeAuthParams"]) if obj.get("snowflakeAuthParams") is not None else None, - "sqlServerAuthParams": SqlServerAuthParamsDTO.from_dict(obj["sqlServerAuthParams"]) if obj.get("sqlServerAuthParams") is not None else None, - "successFactorsAuthParams": SuccessFactorsAuthParamsDTO.from_dict(obj["successFactorsAuthParams"]) if obj.get("successFactorsAuthParams") is not None else None, - "tenantDomainName": obj.get("tenantDomainName"), - "ultimateAuthParams": UltimateAuthParamsDTO.from_dict(obj["ultimateAuthParams"]) if obj.get("ultimateAuthParams") is not None else None, - "willowAuthParams": WillowAuthParamsDTO.from_dict(obj["willowAuthParams"]) if obj.get("willowAuthParams") is not None else None, - "workdayAuthParams": WorkdayAuthParamsDTO.from_dict(obj["workdayAuthParams"]) if obj.get("workdayAuthParams") is not None else None, - "workdayRaasAuthParams": WorkdayRaasAuthParamsDTO.from_dict(obj["workdayRaasAuthParams"]) if obj.get("workdayRaasAuthParams") is not None else None, - "zoomAuthParams": ZoomAuthParamsDTO.from_dict(obj["zoomAuthParams"]) if obj.get("zoomAuthParams") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_provider_basic_information_dto.py b/src/visier_api_data_in/visier_api_data_in/models/data_provider_basic_information_dto.py deleted file mode 100644 index 759f7fab2e..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/data_provider_basic_information_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataProviderBasicInformationDTO(BaseModel): - """ - DataProviderBasicInformationDTO - """ # noqa: E501 - description: Optional[StrictStr] = None - display_name: Optional[StrictStr] = Field(default=None, alias="displayName") - __properties: ClassVar[List[str]] = ["description", "displayName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataProviderBasicInformationDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataProviderBasicInformationDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "displayName": obj.get("displayName") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_provider_basic_metadata_dto.py b/src/visier_api_data_in/visier_api_data_in/models/data_provider_basic_metadata_dto.py deleted file mode 100644 index 308ee5b220..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/data_provider_basic_metadata_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataProviderBasicMetadataDTO(BaseModel): - """ - DataProviderBasicMetadataDTO - """ # noqa: E501 - can_children_inherit: Optional[StrictBool] = Field(default=None, alias="canChildrenInherit") - __properties: ClassVar[List[str]] = ["canChildrenInherit"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataProviderBasicMetadataDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataProviderBasicMetadataDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "canChildrenInherit": obj.get("canChildrenInherit") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_transfer_result_detail.py b/src/visier_api_data_in/visier_api_data_in/models/data_transfer_result_detail.py deleted file mode 100644 index 249206bf4a..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/data_transfer_result_detail.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataTransferResultDetail(BaseModel): - """ - DataTransferResultDetail - """ # noqa: E501 - data_size: Optional[StrictStr] = Field(default=None, description="The total size of the transfer session in bytes.", alias="dataSize") - rows: Optional[StrictStr] = Field(default=None, description="The total number of rows transferred during the transfer session.") - source_names: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing the sources that received a data transfer.", alias="sourceNames") - tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant that data was transferred to. For example, WFF_j1r or WFF_j1r~c7o.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["dataSize", "rows", "sourceNames", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataTransferResultDetail from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataTransferResultDetail from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataSize": obj.get("dataSize"), - "rows": obj.get("rows"), - "sourceNames": obj.get("sourceNames"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_version_and_date_dto.py b/src/visier_api_data_in/visier_api_data_in/models/data_version_and_date_dto.py deleted file mode 100644 index 07b6a13118..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/data_version_and_date_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataVersionAndDateDTO(BaseModel): - """ - DataVersionAndDateDTO - """ # noqa: E501 - data_version: Optional[StrictStr] = Field(default=None, description="The data version ID.", alias="dataVersion") - data_version_date: Optional[StrictStr] = Field(default=None, description="The date that the data version was created.", alias="dataVersionDate") - __properties: ClassVar[List[str]] = ["dataVersion", "dataVersionDate"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataVersionAndDateDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataVersionAndDateDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataVersion": obj.get("dataVersion"), - "dataVersionDate": obj.get("dataVersionDate") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/data_version_object.py b/src/visier_api_data_in/visier_api_data_in/models/data_version_object.py deleted file mode 100644 index 5f63ec82a7..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/data_version_object.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataVersionObject(BaseModel): - """ - DataVersionObject - """ # noqa: E501 - data_versions: Optional[StrictStr] = Field(default=None, description="The data version to disable for a particular analytic tenant.", alias="dataVersions") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code for the analytic tenant that you are disabling a data version.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["dataVersions", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataVersionObject from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataVersionObject from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataVersions": obj.get("dataVersions"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/dayforce_v2_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/dayforce_v2_auth_params_dto.py deleted file mode 100644 index 4d7a81d16e..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/dayforce_v2_auth_params_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DayforceV2AuthParamsDTO(BaseModel): - """ - DayforceV2AuthParamsDTO - """ # noqa: E501 - company_id: Optional[StrictStr] = Field(default=None, alias="companyId") - host_domain_name: Optional[StrictStr] = Field(default=None, alias="hostDomainName") - password: Optional[StrictStr] = None - token_host: Optional[StrictStr] = Field(default=None, alias="tokenHost") - username: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["companyId", "hostDomainName", "password", "tokenHost", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DayforceV2AuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DayforceV2AuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "companyId": obj.get("companyId"), - "hostDomainName": obj.get("hostDomainName"), - "password": obj.get("password"), - "tokenHost": obj.get("tokenHost"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_crypto_key_pair_delete_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_crypto_key_pair_delete_response_dto.py new file mode 100644 index 0000000000..2f95a20d7f --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_crypto_key_pair_delete_response_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerCryptoKeyPairDeleteResponseDTO(BaseModel): + """ + DesignerCryptoKeyPairDeleteResponseDTO + """ # noqa: E501 + key_id: Optional[StrictStr] = Field(default=None, description="The key ID in 16-letter hexadecimal format, including leading zeros.", alias="keyID") + __properties: ClassVar[List[str]] = ["keyID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerCryptoKeyPairDeleteResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerCryptoKeyPairDeleteResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "keyID": obj.get("keyID") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_crypto_key_pair_generate_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_crypto_key_pair_generate_request_dto.py new file mode 100644 index 0000000000..6e3907ad46 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_crypto_key_pair_generate_request_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerCryptoKeyPairGenerateRequestDTO(BaseModel): + """ + DesignerCryptoKeyPairGenerateRequestDTO + """ # noqa: E501 + expiration_date: Optional[StrictStr] = Field(default=None, description="The UTC expiration date of the key in ISO-8601 format. Must be between 2 and 10 years. Default is 2 years.", alias="expirationDate") + __properties: ClassVar[List[str]] = ["expirationDate"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerCryptoKeyPairGenerateRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerCryptoKeyPairGenerateRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "expirationDate": obj.get("expirationDate") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_crypto_public_key_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_crypto_public_key_dto.py new file mode 100644 index 0000000000..189fd574b7 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_crypto_public_key_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerCryptoPublicKeyDTO(BaseModel): + """ + DesignerCryptoPublicKeyDTO + """ # noqa: E501 + date_generated: Optional[StrictStr] = Field(default=None, description="The UTC date that the key pair was generated in milliseconds since the Unix epoch.", alias="dateGenerated") + expiry_date: Optional[StrictStr] = Field(default=None, description="The UTC expiration date of the key in milliseconds since the Unix epoch.", alias="expiryDate") + key_id: Optional[StrictStr] = Field(default=None, description="The key ID of the generated key pair in 16-letter hexadecimal format, including leading zeros.", alias="keyID") + public_key: Optional[StrictStr] = Field(default=None, description="The public key of the generated key pair.", alias="publicKey") + recipient: Optional[StrictStr] = Field(default=None, description="The tenant code and creation date in milliseconds of the PGP key; for example, WFF_j1r_13490234234.") + __properties: ClassVar[List[str]] = ["dateGenerated", "expiryDate", "keyID", "publicKey", "recipient"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerCryptoPublicKeyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerCryptoPublicKeyDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dateGenerated": obj.get("dateGenerated"), + "expiryDate": obj.get("expiryDate"), + "keyID": obj.get("keyID"), + "publicKey": obj.get("publicKey"), + "recipient": obj.get("recipient") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_crypto_public_keys_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_crypto_public_keys_dto.py new file mode 100644 index 0000000000..ae623a7434 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_crypto_public_keys_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.designer_crypto_public_key_dto import DesignerCryptoPublicKeyDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerCryptoPublicKeysDTO(BaseModel): + """ + DesignerCryptoPublicKeysDTO + """ # noqa: E501 + keys: Optional[List[DesignerCryptoPublicKeyDTO]] = Field(default=None, description="A list of the tenant's public keys.") + __properties: ClassVar[List[str]] = ["keys"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerCryptoPublicKeysDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in keys (list) + _items = [] + if self.keys: + for _item_keys in self.keys: + if _item_keys: + _items.append(_item_keys.to_dict()) + _dict['keys'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerCryptoPublicKeysDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "keys": [DesignerCryptoPublicKeyDTO.from_dict(_item) for _item in obj["keys"]] if obj.get("keys") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_adp_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_adp_auth_params_dto.py new file mode 100644 index 0000000000..ad9d48646d --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_adp_auth_params_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersAdpAuthParamsDTO(BaseModel): + """ + DesignerTransfersAdpAuthParamsDTO + """ # noqa: E501 + auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") + __properties: ClassVar[List[str]] = ["authCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersAdpAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersAdpAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "authCode": obj.get("authCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_bamboo_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_bamboo_auth_params_dto.py new file mode 100644 index 0000000000..74078d02fd --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_bamboo_auth_params_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersBambooAuthParamsDTO(BaseModel): + """ + DesignerTransfersBambooAuthParamsDTO + """ # noqa: E501 + access_key: Optional[StrictStr] = Field(default=None, alias="accessKey") + tenant_domain_name: Optional[StrictStr] = Field(default=None, alias="tenantDomainName") + __properties: ClassVar[List[str]] = ["accessKey", "tenantDomainName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersBambooAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersBambooAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accessKey": obj.get("accessKey"), + "tenantDomainName": obj.get("tenantDomainName") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_basic_s3_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_basic_s3_auth_params_dto.py new file mode 100644 index 0000000000..73d3d139bb --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_basic_s3_auth_params_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersBasicS3AuthParamsDTO(BaseModel): + """ + DesignerTransfersBasicS3AuthParamsDTO + """ # noqa: E501 + access_key: Optional[StrictStr] = Field(default=None, alias="accessKey") + bucket_name: Optional[StrictStr] = Field(default=None, alias="bucketName") + bucket_region: Optional[StrictStr] = Field(default=None, alias="bucketRegion") + path: Optional[StrictStr] = None + secret_key: Optional[StrictStr] = Field(default=None, alias="secretKey") + __properties: ClassVar[List[str]] = ["accessKey", "bucketName", "bucketRegion", "path", "secretKey"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersBasicS3AuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersBasicS3AuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accessKey": obj.get("accessKey"), + "bucketName": obj.get("bucketName"), + "bucketRegion": obj.get("bucketRegion"), + "path": obj.get("path"), + "secretKey": obj.get("secretKey") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_big_query_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_big_query_auth_params_dto.py new file mode 100644 index 0000000000..602c26544a --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_big_query_auth_params_dto.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.designer_transfers_big_query_service_account_params_dto import DesignerTransfersBigQueryServiceAccountParamsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersBigQueryAuthParamsDTO(BaseModel): + """ + DesignerTransfersBigQueryAuthParamsDTO + """ # noqa: E501 + client_id: Optional[StrictStr] = Field(default=None, alias="clientId") + client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") + dataset_location: Optional[StrictStr] = Field(default=None, alias="datasetLocation") + default_dataset: Optional[StrictStr] = Field(default=None, alias="defaultDataset") + project_id: Optional[StrictStr] = Field(default=None, alias="projectId") + refresh_token: Optional[StrictStr] = Field(default=None, alias="refreshToken") + service_account_params: Optional[DesignerTransfersBigQueryServiceAccountParamsDTO] = Field(default=None, alias="serviceAccountParams") + __properties: ClassVar[List[str]] = ["clientId", "clientSecret", "datasetLocation", "defaultDataset", "projectId", "refreshToken", "serviceAccountParams"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersBigQueryAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of service_account_params + if self.service_account_params: + _dict['serviceAccountParams'] = self.service_account_params.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersBigQueryAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clientId": obj.get("clientId"), + "clientSecret": obj.get("clientSecret"), + "datasetLocation": obj.get("datasetLocation"), + "defaultDataset": obj.get("defaultDataset"), + "projectId": obj.get("projectId"), + "refreshToken": obj.get("refreshToken"), + "serviceAccountParams": DesignerTransfersBigQueryServiceAccountParamsDTO.from_dict(obj["serviceAccountParams"]) if obj.get("serviceAccountParams") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_big_query_service_account_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_big_query_service_account_params_dto.py new file mode 100644 index 0000000000..50655e54c8 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_big_query_service_account_params_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersBigQueryServiceAccountParamsDTO(BaseModel): + """ + DesignerTransfersBigQueryServiceAccountParamsDTO + """ # noqa: E501 + private_key: Optional[StrictStr] = Field(default=None, alias="privateKey") + service_account_email: Optional[StrictStr] = Field(default=None, alias="serviceAccountEmail") + __properties: ClassVar[List[str]] = ["privateKey", "serviceAccountEmail"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersBigQueryServiceAccountParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersBigQueryServiceAccountParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "privateKey": obj.get("privateKey"), + "serviceAccountEmail": obj.get("serviceAccountEmail") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_copy_s3_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_copy_s3_auth_params_dto.py new file mode 100644 index 0000000000..585068a287 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_copy_s3_auth_params_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersCopyS3AuthParamsDTO(BaseModel): + """ + DesignerTransfersCopyS3AuthParamsDTO + """ # noqa: E501 + iam_role: Optional[StrictStr] = Field(default=None, alias="iamRole") + __properties: ClassVar[List[str]] = ["iamRole"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersCopyS3AuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersCopyS3AuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "iamRole": obj.get("iamRole") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_credential_creation_api_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_credential_creation_api_response_dto.py new file mode 100644 index 0000000000..6e65a0763c --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_credential_creation_api_response_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.designer_transfers_subject_missing_access_dto import DesignerTransfersSubjectMissingAccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersCredentialCreationAPIResponseDTO(BaseModel): + """ + DesignerTransfersCredentialCreationAPIResponseDTO + """ # noqa: E501 + missing_connection_properties: Optional[List[DesignerTransfersSubjectMissingAccessDTO]] = Field(default=None, description="The properties that the credential cannot access despite successful authentication. This is only returned for authentications that do not grant access to all data.", alias="missingConnectionProperties") + object_name: Optional[StrictStr] = Field(default=None, description="The object name of the newly created credential.", alias="objectName") + symbol_name: Optional[StrictStr] = Field(default=None, description="The symbol name of the newly created credential.", alias="symbolName") + uuid: Optional[StrictStr] = Field(default=None, description="The unique ID of the newly created credential.") + __properties: ClassVar[List[str]] = ["missingConnectionProperties", "objectName", "symbolName", "uuid"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersCredentialCreationAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in missing_connection_properties (list) + _items = [] + if self.missing_connection_properties: + for _item_missing_connection_properties in self.missing_connection_properties: + if _item_missing_connection_properties: + _items.append(_item_missing_connection_properties.to_dict()) + _dict['missingConnectionProperties'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersCredentialCreationAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "missingConnectionProperties": [DesignerTransfersSubjectMissingAccessDTO.from_dict(_item) for _item in obj["missingConnectionProperties"]] if obj.get("missingConnectionProperties") is not None else None, + "objectName": obj.get("objectName"), + "symbolName": obj.get("symbolName"), + "uuid": obj.get("uuid") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_data_provider_auth_information_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_data_provider_auth_information_dto.py new file mode 100644 index 0000000000..c49a024198 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_data_provider_auth_information_dto.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.designer_transfers_data_provider_auth_params_dto import DesignerTransfersDataProviderAuthParamsDTO +from visier_api_data_in.models.designer_transfers_data_provider_basic_information_dto import DesignerTransfersDataProviderBasicInformationDTO +from visier_api_data_in.models.designer_transfers_data_provider_basic_metadata_dto import DesignerTransfersDataProviderBasicMetadataDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDataProviderAuthInformationDTO(BaseModel): + """ + DesignerTransfersDataProviderAuthInformationDTO + """ # noqa: E501 + data_provider_auth_params: Optional[DesignerTransfersDataProviderAuthParamsDTO] = Field(default=None, description="The authentication information for the credential.", alias="dataProviderAuthParams") + data_provider_basic_information: Optional[DesignerTransfersDataProviderBasicInformationDTO] = Field(default=None, description="The display name and description for the credential.", alias="dataProviderBasicInformation") + data_provider_metadata: Optional[DesignerTransfersDataProviderBasicMetadataDTO] = Field(default=None, alias="dataProviderMetadata") + __properties: ClassVar[List[str]] = ["dataProviderAuthParams", "dataProviderBasicInformation", "dataProviderMetadata"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDataProviderAuthInformationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data_provider_auth_params + if self.data_provider_auth_params: + _dict['dataProviderAuthParams'] = self.data_provider_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of data_provider_basic_information + if self.data_provider_basic_information: + _dict['dataProviderBasicInformation'] = self.data_provider_basic_information.to_dict() + # override the default output from pydantic by calling `to_dict()` of data_provider_metadata + if self.data_provider_metadata: + _dict['dataProviderMetadata'] = self.data_provider_metadata.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDataProviderAuthInformationDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataProviderAuthParams": DesignerTransfersDataProviderAuthParamsDTO.from_dict(obj["dataProviderAuthParams"]) if obj.get("dataProviderAuthParams") is not None else None, + "dataProviderBasicInformation": DesignerTransfersDataProviderBasicInformationDTO.from_dict(obj["dataProviderBasicInformation"]) if obj.get("dataProviderBasicInformation") is not None else None, + "dataProviderMetadata": DesignerTransfersDataProviderBasicMetadataDTO.from_dict(obj["dataProviderMetadata"]) if obj.get("dataProviderMetadata") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_data_provider_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_data_provider_auth_params_dto.py new file mode 100644 index 0000000000..5142c4f9a5 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_data_provider_auth_params_dto.py @@ -0,0 +1,339 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.designer_transfers_adp_auth_params_dto import DesignerTransfersAdpAuthParamsDTO +from visier_api_data_in.models.designer_transfers_bamboo_auth_params_dto import DesignerTransfersBambooAuthParamsDTO +from visier_api_data_in.models.designer_transfers_basic_s3_auth_params_dto import DesignerTransfersBasicS3AuthParamsDTO +from visier_api_data_in.models.designer_transfers_big_query_auth_params_dto import DesignerTransfersBigQueryAuthParamsDTO +from visier_api_data_in.models.designer_transfers_copy_s3_auth_params_dto import DesignerTransfersCopyS3AuthParamsDTO +from visier_api_data_in.models.designer_transfers_dayforce_v2_auth_params_dto import DesignerTransfersDayforceV2AuthParamsDTO +from visier_api_data_in.models.designer_transfers_dimensions_auth_params_dto import DesignerTransfersDimensionsAuthParamsDTO +from visier_api_data_in.models.designer_transfers_fusion_auth_params_dto import DesignerTransfersFusionAuthParamsDTO +from visier_api_data_in.models.designer_transfers_gong_auth_params_dto import DesignerTransfersGongAuthParamsDTO +from visier_api_data_in.models.designer_transfers_google_sheets_auth_params_dto import DesignerTransfersGoogleSheetsAuthParamsDTO +from visier_api_data_in.models.designer_transfers_google_workspace_auth_params_dto import DesignerTransfersGoogleWorkspaceAuthParamsDTO +from visier_api_data_in.models.designer_transfers_greenhouse_auth_params_dto import DesignerTransfersGreenhouseAuthParamsDTO +from visier_api_data_in.models.designer_transfers_icims_auth_params_dto import DesignerTransfersIcimsAuthParamsDTO +from visier_api_data_in.models.designer_transfers_internal_s3_auth_params_dto import DesignerTransfersInternalS3AuthParamsDTO +from visier_api_data_in.models.designer_transfers_jdbc_auth_params_dto import DesignerTransfersJdbcAuthParamsDTO +from visier_api_data_in.models.designer_transfers_jira_auth_params_dto import DesignerTransfersJiraAuthParamsDTO +from visier_api_data_in.models.designer_transfers_lever_auth_params_dto import DesignerTransfersLeverAuthParamsDTO +from visier_api_data_in.models.designer_transfers_medallia_auth_params_dto import DesignerTransfersMedalliaAuthParamsDTO +from visier_api_data_in.models.designer_transfers_microsoft365_auth_params_dto import DesignerTransfersMicrosoft365AuthParamsDTO +from visier_api_data_in.models.designer_transfers_my_sql_auth_params_dto import DesignerTransfersMySqlAuthParamsDTO +from visier_api_data_in.models.designer_transfers_namely_auth_params_dto import DesignerTransfersNamelyAuthParamsDTO +from visier_api_data_in.models.designer_transfers_oracle_db_auth_params_dto import DesignerTransfersOracleDbAuthParamsDTO +from visier_api_data_in.models.designer_transfers_qualtrics_auth_params_dto import DesignerTransfersQualtricsAuthParamsDTO +from visier_api_data_in.models.designer_transfers_redshift_auth_params_dto import DesignerTransfersRedshiftAuthParamsDTO +from visier_api_data_in.models.designer_transfers_salesforce_auth_params_dto import DesignerTransfersSalesforceAuthParamsDTO +from visier_api_data_in.models.designer_transfers_salesforce_v2_auth_params_dto import DesignerTransfersSalesforceV2AuthParamsDTO +from visier_api_data_in.models.designer_transfers_service_now_auth_params_dto import DesignerTransfersServiceNowAuthParamsDTO +from visier_api_data_in.models.designer_transfers_service_now_v2_auth_params_dto import DesignerTransfersServiceNowV2AuthParamsDTO +from visier_api_data_in.models.designer_transfers_slack_auth_params_dto import DesignerTransfersSlackAuthParamsDTO +from visier_api_data_in.models.designer_transfers_snowflake_auth_params_dto import DesignerTransfersSnowflakeAuthParamsDTO +from visier_api_data_in.models.designer_transfers_sql_server_auth_params_dto import DesignerTransfersSqlServerAuthParamsDTO +from visier_api_data_in.models.designer_transfers_success_factors_auth_params_dto import DesignerTransfersSuccessFactorsAuthParamsDTO +from visier_api_data_in.models.designer_transfers_ultimate_auth_params_dto import DesignerTransfersUltimateAuthParamsDTO +from visier_api_data_in.models.designer_transfers_willow_auth_params_dto import DesignerTransfersWillowAuthParamsDTO +from visier_api_data_in.models.designer_transfers_workday_auth_params_dto import DesignerTransfersWorkdayAuthParamsDTO +from visier_api_data_in.models.designer_transfers_workday_raas_auth_params_dto import DesignerTransfersWorkdayRaasAuthParamsDTO +from visier_api_data_in.models.designer_transfers_zoom_auth_params_dto import DesignerTransfersZoomAuthParamsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDataProviderAuthParamsDTO(BaseModel): + """ + DesignerTransfersDataProviderAuthParamsDTO + """ # noqa: E501 + adp_auth_params: Optional[DesignerTransfersAdpAuthParamsDTO] = Field(default=None, alias="adpAuthParams") + auth_context: Optional[StrictStr] = Field(default=None, alias="authContext") + bamboo_auth_params: Optional[DesignerTransfersBambooAuthParamsDTO] = Field(default=None, alias="bambooAuthParams") + big_query_auth_params: Optional[DesignerTransfersBigQueryAuthParamsDTO] = Field(default=None, alias="bigQueryAuthParams") + copy_s3_auth_params: Optional[DesignerTransfersCopyS3AuthParamsDTO] = Field(default=None, alias="copyS3AuthParams") + dayforce_v2_auth_params: Optional[DesignerTransfersDayforceV2AuthParamsDTO] = Field(default=None, alias="dayforceV2AuthParams") + dimensions_auth_params: Optional[DesignerTransfersDimensionsAuthParamsDTO] = Field(default=None, alias="dimensionsAuthParams") + empty_auth_params: Optional[Dict[str, Any]] = Field(default=None, alias="emptyAuthParams") + fusion_auth_params: Optional[DesignerTransfersFusionAuthParamsDTO] = Field(default=None, alias="fusionAuthParams") + gong_auth_params: Optional[DesignerTransfersGongAuthParamsDTO] = Field(default=None, alias="gongAuthParams") + google_sheets_auth_params: Optional[DesignerTransfersGoogleSheetsAuthParamsDTO] = Field(default=None, alias="googleSheetsAuthParams") + google_workspace_auth_params: Optional[DesignerTransfersGoogleWorkspaceAuthParamsDTO] = Field(default=None, alias="googleWorkspaceAuthParams") + greenhouse_auth_params: Optional[DesignerTransfersGreenhouseAuthParamsDTO] = Field(default=None, alias="greenhouseAuthParams") + has_updates: Optional[StrictBool] = Field(default=None, alias="hasUpdates") + icims_auth_params: Optional[DesignerTransfersIcimsAuthParamsDTO] = Field(default=None, alias="icimsAuthParams") + internal_s3_auth_params: Optional[DesignerTransfersInternalS3AuthParamsDTO] = Field(default=None, alias="internalS3AuthParams") + jdbc_auth_params: Optional[DesignerTransfersJdbcAuthParamsDTO] = Field(default=None, alias="jdbcAuthParams") + jira_auth_params: Optional[DesignerTransfersJiraAuthParamsDTO] = Field(default=None, alias="jiraAuthParams") + lever_auth_params: Optional[DesignerTransfersLeverAuthParamsDTO] = Field(default=None, alias="leverAuthParams") + medallia_auth_params: Optional[DesignerTransfersMedalliaAuthParamsDTO] = Field(default=None, alias="medalliaAuthParams") + ms365_auth_params: Optional[DesignerTransfersMicrosoft365AuthParamsDTO] = Field(default=None, alias="ms365AuthParams") + my_sql_auth_params: Optional[DesignerTransfersMySqlAuthParamsDTO] = Field(default=None, alias="mySqlAuthParams") + namely_auth_params: Optional[DesignerTransfersNamelyAuthParamsDTO] = Field(default=None, alias="namelyAuthParams") + oracle_db_auth_params: Optional[DesignerTransfersOracleDbAuthParamsDTO] = Field(default=None, alias="oracleDbAuthParams") + provider: Optional[StrictStr] = Field(default=None, description="The data provider associated with the credential.") + qualtrics_auth_params: Optional[DesignerTransfersQualtricsAuthParamsDTO] = Field(default=None, alias="qualtricsAuthParams") + redshift_auth_params: Optional[DesignerTransfersRedshiftAuthParamsDTO] = Field(default=None, alias="redshiftAuthParams") + s3_auth_params: Optional[DesignerTransfersBasicS3AuthParamsDTO] = Field(default=None, alias="s3AuthParams") + salesforce_auth_params: Optional[DesignerTransfersSalesforceAuthParamsDTO] = Field(default=None, alias="salesforceAuthParams") + salesforce_v2_auth_params: Optional[DesignerTransfersSalesforceV2AuthParamsDTO] = Field(default=None, alias="salesforceV2AuthParams") + service_now_auth_params: Optional[DesignerTransfersServiceNowAuthParamsDTO] = Field(default=None, alias="serviceNowAuthParams") + service_now_v2_auth_params: Optional[DesignerTransfersServiceNowV2AuthParamsDTO] = Field(default=None, alias="serviceNowV2AuthParams") + slack_auth_params: Optional[DesignerTransfersSlackAuthParamsDTO] = Field(default=None, alias="slackAuthParams") + snowflake_auth_params: Optional[DesignerTransfersSnowflakeAuthParamsDTO] = Field(default=None, alias="snowflakeAuthParams") + sql_server_auth_params: Optional[DesignerTransfersSqlServerAuthParamsDTO] = Field(default=None, alias="sqlServerAuthParams") + success_factors_auth_params: Optional[DesignerTransfersSuccessFactorsAuthParamsDTO] = Field(default=None, alias="successFactorsAuthParams") + tenant_domain_name: Optional[StrictStr] = Field(default=None, alias="tenantDomainName") + ultimate_auth_params: Optional[DesignerTransfersUltimateAuthParamsDTO] = Field(default=None, alias="ultimateAuthParams") + willow_auth_params: Optional[DesignerTransfersWillowAuthParamsDTO] = Field(default=None, alias="willowAuthParams") + workday_auth_params: Optional[DesignerTransfersWorkdayAuthParamsDTO] = Field(default=None, alias="workdayAuthParams") + workday_raas_auth_params: Optional[DesignerTransfersWorkdayRaasAuthParamsDTO] = Field(default=None, alias="workdayRaasAuthParams") + zoom_auth_params: Optional[DesignerTransfersZoomAuthParamsDTO] = Field(default=None, alias="zoomAuthParams") + __properties: ClassVar[List[str]] = ["adpAuthParams", "authContext", "bambooAuthParams", "bigQueryAuthParams", "copyS3AuthParams", "dayforceV2AuthParams", "dimensionsAuthParams", "emptyAuthParams", "fusionAuthParams", "gongAuthParams", "googleSheetsAuthParams", "googleWorkspaceAuthParams", "greenhouseAuthParams", "hasUpdates", "icimsAuthParams", "internalS3AuthParams", "jdbcAuthParams", "jiraAuthParams", "leverAuthParams", "medalliaAuthParams", "ms365AuthParams", "mySqlAuthParams", "namelyAuthParams", "oracleDbAuthParams", "provider", "qualtricsAuthParams", "redshiftAuthParams", "s3AuthParams", "salesforceAuthParams", "salesforceV2AuthParams", "serviceNowAuthParams", "serviceNowV2AuthParams", "slackAuthParams", "snowflakeAuthParams", "sqlServerAuthParams", "successFactorsAuthParams", "tenantDomainName", "ultimateAuthParams", "willowAuthParams", "workdayAuthParams", "workdayRaasAuthParams", "zoomAuthParams"] + + @field_validator('auth_context') + def auth_context_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['DefaultDataExtraction', 'WorkplaceDynamicsDataExtraction', 'Notification']): + raise ValueError("must be one of enum values ('DefaultDataExtraction', 'WorkplaceDynamicsDataExtraction', 'Notification')") + return value + + @field_validator('provider') + def provider_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Bamboo', 'GoogleSheets', 'Greenhouse', 'Jira', 'Lever', 'Namely', 'Qualtrics', 'Salesforce', 'UKG', 'Workday', 'Icims', 'ServiceNow', 'Jdbc', 'BasicS3', 'InternalS3', 'CopyS3', 'Redshift', 'Snowflake', 'BigQuery', 'SqlServer', 'Dimensions', 'IcimsPartnerProviderRedshift', 'Willow', 'SuccessFactors', 'IcimsV2', 'ADP', 'WorkdayV2', 'ServiceNowV2', 'Medallia', 'Fusion', 'SalesforceV2', 'Gong', 'Zoom', 'GoogleCalendar', 'UKGV2', 'DayforceV2', 'GoogleActivityReport', 'Slack', 'MySql', 'WorkdayRaas', 'Microsoft365', 'GoogleWorkspace', 'OracleDb', 'SmartRecruiters', 'WorkdayWQL', 'OEMCornerstone']): + raise ValueError("must be one of enum values ('Bamboo', 'GoogleSheets', 'Greenhouse', 'Jira', 'Lever', 'Namely', 'Qualtrics', 'Salesforce', 'UKG', 'Workday', 'Icims', 'ServiceNow', 'Jdbc', 'BasicS3', 'InternalS3', 'CopyS3', 'Redshift', 'Snowflake', 'BigQuery', 'SqlServer', 'Dimensions', 'IcimsPartnerProviderRedshift', 'Willow', 'SuccessFactors', 'IcimsV2', 'ADP', 'WorkdayV2', 'ServiceNowV2', 'Medallia', 'Fusion', 'SalesforceV2', 'Gong', 'Zoom', 'GoogleCalendar', 'UKGV2', 'DayforceV2', 'GoogleActivityReport', 'Slack', 'MySql', 'WorkdayRaas', 'Microsoft365', 'GoogleWorkspace', 'OracleDb', 'SmartRecruiters', 'WorkdayWQL', 'OEMCornerstone')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDataProviderAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of adp_auth_params + if self.adp_auth_params: + _dict['adpAuthParams'] = self.adp_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of bamboo_auth_params + if self.bamboo_auth_params: + _dict['bambooAuthParams'] = self.bamboo_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of big_query_auth_params + if self.big_query_auth_params: + _dict['bigQueryAuthParams'] = self.big_query_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of copy_s3_auth_params + if self.copy_s3_auth_params: + _dict['copyS3AuthParams'] = self.copy_s3_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of dayforce_v2_auth_params + if self.dayforce_v2_auth_params: + _dict['dayforceV2AuthParams'] = self.dayforce_v2_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of dimensions_auth_params + if self.dimensions_auth_params: + _dict['dimensionsAuthParams'] = self.dimensions_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of fusion_auth_params + if self.fusion_auth_params: + _dict['fusionAuthParams'] = self.fusion_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of gong_auth_params + if self.gong_auth_params: + _dict['gongAuthParams'] = self.gong_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of google_sheets_auth_params + if self.google_sheets_auth_params: + _dict['googleSheetsAuthParams'] = self.google_sheets_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of google_workspace_auth_params + if self.google_workspace_auth_params: + _dict['googleWorkspaceAuthParams'] = self.google_workspace_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of greenhouse_auth_params + if self.greenhouse_auth_params: + _dict['greenhouseAuthParams'] = self.greenhouse_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of icims_auth_params + if self.icims_auth_params: + _dict['icimsAuthParams'] = self.icims_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of internal_s3_auth_params + if self.internal_s3_auth_params: + _dict['internalS3AuthParams'] = self.internal_s3_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of jdbc_auth_params + if self.jdbc_auth_params: + _dict['jdbcAuthParams'] = self.jdbc_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of jira_auth_params + if self.jira_auth_params: + _dict['jiraAuthParams'] = self.jira_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of lever_auth_params + if self.lever_auth_params: + _dict['leverAuthParams'] = self.lever_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of medallia_auth_params + if self.medallia_auth_params: + _dict['medalliaAuthParams'] = self.medallia_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of ms365_auth_params + if self.ms365_auth_params: + _dict['ms365AuthParams'] = self.ms365_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of my_sql_auth_params + if self.my_sql_auth_params: + _dict['mySqlAuthParams'] = self.my_sql_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of namely_auth_params + if self.namely_auth_params: + _dict['namelyAuthParams'] = self.namely_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of oracle_db_auth_params + if self.oracle_db_auth_params: + _dict['oracleDbAuthParams'] = self.oracle_db_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of qualtrics_auth_params + if self.qualtrics_auth_params: + _dict['qualtricsAuthParams'] = self.qualtrics_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of redshift_auth_params + if self.redshift_auth_params: + _dict['redshiftAuthParams'] = self.redshift_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of s3_auth_params + if self.s3_auth_params: + _dict['s3AuthParams'] = self.s3_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of salesforce_auth_params + if self.salesforce_auth_params: + _dict['salesforceAuthParams'] = self.salesforce_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of salesforce_v2_auth_params + if self.salesforce_v2_auth_params: + _dict['salesforceV2AuthParams'] = self.salesforce_v2_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of service_now_auth_params + if self.service_now_auth_params: + _dict['serviceNowAuthParams'] = self.service_now_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of service_now_v2_auth_params + if self.service_now_v2_auth_params: + _dict['serviceNowV2AuthParams'] = self.service_now_v2_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of slack_auth_params + if self.slack_auth_params: + _dict['slackAuthParams'] = self.slack_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of snowflake_auth_params + if self.snowflake_auth_params: + _dict['snowflakeAuthParams'] = self.snowflake_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of sql_server_auth_params + if self.sql_server_auth_params: + _dict['sqlServerAuthParams'] = self.sql_server_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of success_factors_auth_params + if self.success_factors_auth_params: + _dict['successFactorsAuthParams'] = self.success_factors_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of ultimate_auth_params + if self.ultimate_auth_params: + _dict['ultimateAuthParams'] = self.ultimate_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of willow_auth_params + if self.willow_auth_params: + _dict['willowAuthParams'] = self.willow_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of workday_auth_params + if self.workday_auth_params: + _dict['workdayAuthParams'] = self.workday_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of workday_raas_auth_params + if self.workday_raas_auth_params: + _dict['workdayRaasAuthParams'] = self.workday_raas_auth_params.to_dict() + # override the default output from pydantic by calling `to_dict()` of zoom_auth_params + if self.zoom_auth_params: + _dict['zoomAuthParams'] = self.zoom_auth_params.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDataProviderAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adpAuthParams": DesignerTransfersAdpAuthParamsDTO.from_dict(obj["adpAuthParams"]) if obj.get("adpAuthParams") is not None else None, + "authContext": obj.get("authContext"), + "bambooAuthParams": DesignerTransfersBambooAuthParamsDTO.from_dict(obj["bambooAuthParams"]) if obj.get("bambooAuthParams") is not None else None, + "bigQueryAuthParams": DesignerTransfersBigQueryAuthParamsDTO.from_dict(obj["bigQueryAuthParams"]) if obj.get("bigQueryAuthParams") is not None else None, + "copyS3AuthParams": DesignerTransfersCopyS3AuthParamsDTO.from_dict(obj["copyS3AuthParams"]) if obj.get("copyS3AuthParams") is not None else None, + "dayforceV2AuthParams": DesignerTransfersDayforceV2AuthParamsDTO.from_dict(obj["dayforceV2AuthParams"]) if obj.get("dayforceV2AuthParams") is not None else None, + "dimensionsAuthParams": DesignerTransfersDimensionsAuthParamsDTO.from_dict(obj["dimensionsAuthParams"]) if obj.get("dimensionsAuthParams") is not None else None, + "emptyAuthParams": obj.get("emptyAuthParams"), + "fusionAuthParams": DesignerTransfersFusionAuthParamsDTO.from_dict(obj["fusionAuthParams"]) if obj.get("fusionAuthParams") is not None else None, + "gongAuthParams": DesignerTransfersGongAuthParamsDTO.from_dict(obj["gongAuthParams"]) if obj.get("gongAuthParams") is not None else None, + "googleSheetsAuthParams": DesignerTransfersGoogleSheetsAuthParamsDTO.from_dict(obj["googleSheetsAuthParams"]) if obj.get("googleSheetsAuthParams") is not None else None, + "googleWorkspaceAuthParams": DesignerTransfersGoogleWorkspaceAuthParamsDTO.from_dict(obj["googleWorkspaceAuthParams"]) if obj.get("googleWorkspaceAuthParams") is not None else None, + "greenhouseAuthParams": DesignerTransfersGreenhouseAuthParamsDTO.from_dict(obj["greenhouseAuthParams"]) if obj.get("greenhouseAuthParams") is not None else None, + "hasUpdates": obj.get("hasUpdates"), + "icimsAuthParams": DesignerTransfersIcimsAuthParamsDTO.from_dict(obj["icimsAuthParams"]) if obj.get("icimsAuthParams") is not None else None, + "internalS3AuthParams": DesignerTransfersInternalS3AuthParamsDTO.from_dict(obj["internalS3AuthParams"]) if obj.get("internalS3AuthParams") is not None else None, + "jdbcAuthParams": DesignerTransfersJdbcAuthParamsDTO.from_dict(obj["jdbcAuthParams"]) if obj.get("jdbcAuthParams") is not None else None, + "jiraAuthParams": DesignerTransfersJiraAuthParamsDTO.from_dict(obj["jiraAuthParams"]) if obj.get("jiraAuthParams") is not None else None, + "leverAuthParams": DesignerTransfersLeverAuthParamsDTO.from_dict(obj["leverAuthParams"]) if obj.get("leverAuthParams") is not None else None, + "medalliaAuthParams": DesignerTransfersMedalliaAuthParamsDTO.from_dict(obj["medalliaAuthParams"]) if obj.get("medalliaAuthParams") is not None else None, + "ms365AuthParams": DesignerTransfersMicrosoft365AuthParamsDTO.from_dict(obj["ms365AuthParams"]) if obj.get("ms365AuthParams") is not None else None, + "mySqlAuthParams": DesignerTransfersMySqlAuthParamsDTO.from_dict(obj["mySqlAuthParams"]) if obj.get("mySqlAuthParams") is not None else None, + "namelyAuthParams": DesignerTransfersNamelyAuthParamsDTO.from_dict(obj["namelyAuthParams"]) if obj.get("namelyAuthParams") is not None else None, + "oracleDbAuthParams": DesignerTransfersOracleDbAuthParamsDTO.from_dict(obj["oracleDbAuthParams"]) if obj.get("oracleDbAuthParams") is not None else None, + "provider": obj.get("provider"), + "qualtricsAuthParams": DesignerTransfersQualtricsAuthParamsDTO.from_dict(obj["qualtricsAuthParams"]) if obj.get("qualtricsAuthParams") is not None else None, + "redshiftAuthParams": DesignerTransfersRedshiftAuthParamsDTO.from_dict(obj["redshiftAuthParams"]) if obj.get("redshiftAuthParams") is not None else None, + "s3AuthParams": DesignerTransfersBasicS3AuthParamsDTO.from_dict(obj["s3AuthParams"]) if obj.get("s3AuthParams") is not None else None, + "salesforceAuthParams": DesignerTransfersSalesforceAuthParamsDTO.from_dict(obj["salesforceAuthParams"]) if obj.get("salesforceAuthParams") is not None else None, + "salesforceV2AuthParams": DesignerTransfersSalesforceV2AuthParamsDTO.from_dict(obj["salesforceV2AuthParams"]) if obj.get("salesforceV2AuthParams") is not None else None, + "serviceNowAuthParams": DesignerTransfersServiceNowAuthParamsDTO.from_dict(obj["serviceNowAuthParams"]) if obj.get("serviceNowAuthParams") is not None else None, + "serviceNowV2AuthParams": DesignerTransfersServiceNowV2AuthParamsDTO.from_dict(obj["serviceNowV2AuthParams"]) if obj.get("serviceNowV2AuthParams") is not None else None, + "slackAuthParams": DesignerTransfersSlackAuthParamsDTO.from_dict(obj["slackAuthParams"]) if obj.get("slackAuthParams") is not None else None, + "snowflakeAuthParams": DesignerTransfersSnowflakeAuthParamsDTO.from_dict(obj["snowflakeAuthParams"]) if obj.get("snowflakeAuthParams") is not None else None, + "sqlServerAuthParams": DesignerTransfersSqlServerAuthParamsDTO.from_dict(obj["sqlServerAuthParams"]) if obj.get("sqlServerAuthParams") is not None else None, + "successFactorsAuthParams": DesignerTransfersSuccessFactorsAuthParamsDTO.from_dict(obj["successFactorsAuthParams"]) if obj.get("successFactorsAuthParams") is not None else None, + "tenantDomainName": obj.get("tenantDomainName"), + "ultimateAuthParams": DesignerTransfersUltimateAuthParamsDTO.from_dict(obj["ultimateAuthParams"]) if obj.get("ultimateAuthParams") is not None else None, + "willowAuthParams": DesignerTransfersWillowAuthParamsDTO.from_dict(obj["willowAuthParams"]) if obj.get("willowAuthParams") is not None else None, + "workdayAuthParams": DesignerTransfersWorkdayAuthParamsDTO.from_dict(obj["workdayAuthParams"]) if obj.get("workdayAuthParams") is not None else None, + "workdayRaasAuthParams": DesignerTransfersWorkdayRaasAuthParamsDTO.from_dict(obj["workdayRaasAuthParams"]) if obj.get("workdayRaasAuthParams") is not None else None, + "zoomAuthParams": DesignerTransfersZoomAuthParamsDTO.from_dict(obj["zoomAuthParams"]) if obj.get("zoomAuthParams") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_data_provider_basic_information_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_data_provider_basic_information_dto.py new file mode 100644 index 0000000000..761d6e5232 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_data_provider_basic_information_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDataProviderBasicInformationDTO(BaseModel): + """ + DesignerTransfersDataProviderBasicInformationDTO + """ # noqa: E501 + description: Optional[StrictStr] = None + display_name: Optional[StrictStr] = Field(default=None, alias="displayName") + __properties: ClassVar[List[str]] = ["description", "displayName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDataProviderBasicInformationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDataProviderBasicInformationDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "displayName": obj.get("displayName") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_data_provider_basic_metadata_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_data_provider_basic_metadata_dto.py new file mode 100644 index 0000000000..322f343225 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_data_provider_basic_metadata_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDataProviderBasicMetadataDTO(BaseModel): + """ + DesignerTransfersDataProviderBasicMetadataDTO + """ # noqa: E501 + can_children_inherit: Optional[StrictBool] = Field(default=None, alias="canChildrenInherit") + __properties: ClassVar[List[str]] = ["canChildrenInherit"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDataProviderBasicMetadataDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDataProviderBasicMetadataDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "canChildrenInherit": obj.get("canChildrenInherit") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_dayforce_v2_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_dayforce_v2_auth_params_dto.py new file mode 100644 index 0000000000..564d9a9946 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_dayforce_v2_auth_params_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDayforceV2AuthParamsDTO(BaseModel): + """ + DesignerTransfersDayforceV2AuthParamsDTO + """ # noqa: E501 + company_id: Optional[StrictStr] = Field(default=None, alias="companyId") + host_domain_name: Optional[StrictStr] = Field(default=None, alias="hostDomainName") + password: Optional[StrictStr] = None + token_host: Optional[StrictStr] = Field(default=None, alias="tokenHost") + username: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["companyId", "hostDomainName", "password", "tokenHost", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDayforceV2AuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDayforceV2AuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "companyId": obj.get("companyId"), + "hostDomainName": obj.get("hostDomainName"), + "password": obj.get("password"), + "tokenHost": obj.get("tokenHost"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_dimensions_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_dimensions_auth_params_dto.py new file mode 100644 index 0000000000..2e918c0cd8 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_dimensions_auth_params_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDimensionsAuthParamsDTO(BaseModel): + """ + DesignerTransfersDimensionsAuthParamsDTO + """ # noqa: E501 + app_key: Optional[StrictStr] = Field(default=None, alias="appKey") + client_id: Optional[StrictStr] = Field(default=None, alias="clientId") + client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") + password: Optional[StrictStr] = None + username: Optional[StrictStr] = None + vanity_url: Optional[StrictStr] = Field(default=None, alias="vanityUrl") + __properties: ClassVar[List[str]] = ["appKey", "clientId", "clientSecret", "password", "username", "vanityUrl"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDimensionsAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDimensionsAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "appKey": obj.get("appKey"), + "clientId": obj.get("clientId"), + "clientSecret": obj.get("clientSecret"), + "password": obj.get("password"), + "username": obj.get("username"), + "vanityUrl": obj.get("vanityUrl") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_extractor_credential_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_extractor_credential_apidto.py new file mode 100644 index 0000000000..58f8b64d6d --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_extractor_credential_apidto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersExtractorCredentialAPIDTO(BaseModel): + """ + DesignerTransfersExtractorCredentialAPIDTO + """ # noqa: E501 + auth_context: Optional[StrictStr] = Field(default=None, alias="authContext") + credential_id: Optional[StrictStr] = Field(default=None, description="The ID associated with the connector credential.", alias="credentialId") + data_provider: Optional[StrictStr] = Field(default=None, description="The data provider associated with the credential.", alias="dataProvider") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable connector credential name that is displayed within Visier.", alias="displayName") + is_inherited: Optional[StrictBool] = Field(default=None, description="Whether this credential is inherited from another tenant.", alias="isInherited") + __properties: ClassVar[List[str]] = ["authContext", "credentialId", "dataProvider", "displayName", "isInherited"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersExtractorCredentialAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersExtractorCredentialAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "authContext": obj.get("authContext"), + "credentialId": obj.get("credentialId"), + "dataProvider": obj.get("dataProvider"), + "displayName": obj.get("displayName"), + "isInherited": obj.get("isInherited") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_extractor_credentials_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_extractor_credentials_apidto.py new file mode 100644 index 0000000000..a8f9714cb9 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_extractor_credentials_apidto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.designer_transfers_extractor_credential_apidto import DesignerTransfersExtractorCredentialAPIDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersExtractorCredentialsAPIDTO(BaseModel): + """ + DesignerTransfersExtractorCredentialsAPIDTO + """ # noqa: E501 + connector_credentials: Optional[List[DesignerTransfersExtractorCredentialAPIDTO]] = Field(default=None, description="A list of objects representing all the available connector credentials in Production.", alias="connectorCredentials") + limit: Optional[StrictInt] = Field(default=None, description="The number of connector credentials to return. The maximum number of data connector credentials to return is 1000.") + start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving values from, also known as offset. The index begins at 0.") + __properties: ClassVar[List[str]] = ["connectorCredentials", "limit", "start"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersExtractorCredentialsAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in connector_credentials (list) + _items = [] + if self.connector_credentials: + for _item_connector_credentials in self.connector_credentials: + if _item_connector_credentials: + _items.append(_item_connector_credentials.to_dict()) + _dict['connectorCredentials'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersExtractorCredentialsAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectorCredentials": [DesignerTransfersExtractorCredentialAPIDTO.from_dict(_item) for _item in obj["connectorCredentials"]] if obj.get("connectorCredentials") is not None else None, + "limit": obj.get("limit"), + "start": obj.get("start") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_fusion_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_fusion_auth_params_dto.py new file mode 100644 index 0000000000..7838f8b59e --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_fusion_auth_params_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersFusionAuthParamsDTO(BaseModel): + """ + DesignerTransfersFusionAuthParamsDTO + """ # noqa: E501 + host_domain_name: Optional[StrictStr] = Field(default=None, alias="hostDomainName") + password: Optional[StrictStr] = None + username: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["hostDomainName", "password", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersFusionAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersFusionAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hostDomainName": obj.get("hostDomainName"), + "password": obj.get("password"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_gong_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_gong_auth_params_dto.py new file mode 100644 index 0000000000..263d1d00e5 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_gong_auth_params_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersGongAuthParamsDTO(BaseModel): + """ + DesignerTransfersGongAuthParamsDTO + """ # noqa: E501 + client_id: Optional[StrictStr] = Field(default=None, alias="clientId") + client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") + __properties: ClassVar[List[str]] = ["clientId", "clientSecret"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersGongAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersGongAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clientId": obj.get("clientId"), + "clientSecret": obj.get("clientSecret") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_google_sheets_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_google_sheets_auth_params_dto.py new file mode 100644 index 0000000000..2179a4d1b1 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_google_sheets_auth_params_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersGoogleSheetsAuthParamsDTO(BaseModel): + """ + DesignerTransfersGoogleSheetsAuthParamsDTO + """ # noqa: E501 + auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") + client_id: Optional[StrictStr] = Field(default=None, alias="clientId") + client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") + configuration: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["authCode", "clientId", "clientSecret", "configuration"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersGoogleSheetsAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersGoogleSheetsAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "authCode": obj.get("authCode"), + "clientId": obj.get("clientId"), + "clientSecret": obj.get("clientSecret"), + "configuration": obj.get("configuration") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_google_workspace_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_google_workspace_auth_params_dto.py new file mode 100644 index 0000000000..c7254995dd --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_google_workspace_auth_params_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersGoogleWorkspaceAuthParamsDTO(BaseModel): + """ + DesignerTransfersGoogleWorkspaceAuthParamsDTO + """ # noqa: E501 + auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") + client_id: Optional[StrictStr] = Field(default=None, alias="clientId") + client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") + privacy_mode: Optional[StrictStr] = Field(default=None, alias="privacyMode") + service_account: Optional[StrictStr] = Field(default=None, alias="serviceAccount") + __properties: ClassVar[List[str]] = ["authCode", "clientId", "clientSecret", "privacyMode", "serviceAccount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersGoogleWorkspaceAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersGoogleWorkspaceAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "authCode": obj.get("authCode"), + "clientId": obj.get("clientId"), + "clientSecret": obj.get("clientSecret"), + "privacyMode": obj.get("privacyMode"), + "serviceAccount": obj.get("serviceAccount") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_greenhouse_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_greenhouse_auth_params_dto.py new file mode 100644 index 0000000000..6d23c67e3a --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_greenhouse_auth_params_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersGreenhouseAuthParamsDTO(BaseModel): + """ + DesignerTransfersGreenhouseAuthParamsDTO + """ # noqa: E501 + api_key: Optional[StrictStr] = Field(default=None, alias="apiKey") + __properties: ClassVar[List[str]] = ["apiKey"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersGreenhouseAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersGreenhouseAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "apiKey": obj.get("apiKey") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_icims_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_icims_auth_params_dto.py new file mode 100644 index 0000000000..678563c298 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_icims_auth_params_dto.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersIcimsAuthParamsDTO(BaseModel): + """ + DesignerTransfersIcimsAuthParamsDTO + """ # noqa: E501 + client_id: Optional[StrictStr] = Field(default=None, alias="clientId") + client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") + customer_id: Optional[StrictStr] = Field(default=None, alias="customerId") + password: Optional[StrictStr] = None + region: Optional[StrictStr] = None + username: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["clientId", "clientSecret", "customerId", "password", "region", "username"] + + @field_validator('region') + def region_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['US', 'EU', 'CA', 'ISV']): + raise ValueError("must be one of enum values ('US', 'EU', 'CA', 'ISV')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersIcimsAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersIcimsAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clientId": obj.get("clientId"), + "clientSecret": obj.get("clientSecret"), + "customerId": obj.get("customerId"), + "password": obj.get("password"), + "region": obj.get("region"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_internal_s3_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_internal_s3_auth_params_dto.py new file mode 100644 index 0000000000..7e36f94913 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_internal_s3_auth_params_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersInternalS3AuthParamsDTO(BaseModel): + """ + DesignerTransfersInternalS3AuthParamsDTO + """ # noqa: E501 + bucket_name: Optional[StrictStr] = Field(default=None, alias="bucketName") + path: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["bucketName", "path"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersInternalS3AuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersInternalS3AuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "bucketName": obj.get("bucketName"), + "path": obj.get("path") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_jdbc_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_jdbc_auth_params_dto.py new file mode 100644 index 0000000000..4d5fa730b8 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_jdbc_auth_params_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersJdbcAuthParamsDTO(BaseModel): + """ + DesignerTransfersJdbcAuthParamsDTO + """ # noqa: E501 + jdbc_connect_string: Optional[StrictStr] = Field(default=None, alias="jdbcConnectString") + password: Optional[StrictStr] = None + username: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["jdbcConnectString", "password", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersJdbcAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersJdbcAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jdbcConnectString": obj.get("jdbcConnectString"), + "password": obj.get("password"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_jira_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_jira_auth_params_dto.py new file mode 100644 index 0000000000..4b140414de --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_jira_auth_params_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.designer_transfers_jira_connect_params_dto import DesignerTransfersJiraConnectParamsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersJiraAuthParamsDTO(BaseModel): + """ + DesignerTransfersJiraAuthParamsDTO + """ # noqa: E501 + api_token: Optional[StrictStr] = Field(default=None, alias="apiToken") + connect_params: Optional[DesignerTransfersJiraConnectParamsDTO] = Field(default=None, alias="connectParams") + host_name: Optional[StrictStr] = Field(default=None, alias="hostName") + __properties: ClassVar[List[str]] = ["apiToken", "connectParams", "hostName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersJiraAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of connect_params + if self.connect_params: + _dict['connectParams'] = self.connect_params.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersJiraAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "apiToken": obj.get("apiToken"), + "connectParams": DesignerTransfersJiraConnectParamsDTO.from_dict(obj["connectParams"]) if obj.get("connectParams") is not None else None, + "hostName": obj.get("hostName") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_jira_connect_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_jira_connect_params_dto.py new file mode 100644 index 0000000000..c8ebc516c7 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_jira_connect_params_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersJiraConnectParamsDTO(BaseModel): + """ + DesignerTransfersJiraConnectParamsDTO + """ # noqa: E501 + app_key: Optional[StrictStr] = Field(default=None, alias="appKey") + client_key: Optional[StrictStr] = Field(default=None, alias="clientKey") + shared_secret: Optional[StrictStr] = Field(default=None, alias="sharedSecret") + __properties: ClassVar[List[str]] = ["appKey", "clientKey", "sharedSecret"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersJiraConnectParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersJiraConnectParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "appKey": obj.get("appKey"), + "clientKey": obj.get("clientKey"), + "sharedSecret": obj.get("sharedSecret") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_lever_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_lever_auth_params_dto.py new file mode 100644 index 0000000000..41b6dc63cd --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_lever_auth_params_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersLeverAuthParamsDTO(BaseModel): + """ + DesignerTransfersLeverAuthParamsDTO + """ # noqa: E501 + api_key: Optional[StrictStr] = Field(default=None, alias="apiKey") + __properties: ClassVar[List[str]] = ["apiKey"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersLeverAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersLeverAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "apiKey": obj.get("apiKey") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_medallia_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_medallia_auth_params_dto.py new file mode 100644 index 0000000000..31c01f642b --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_medallia_auth_params_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersMedalliaAuthParamsDTO(BaseModel): + """ + DesignerTransfersMedalliaAuthParamsDTO + """ # noqa: E501 + client_id: Optional[StrictStr] = Field(default=None, alias="clientId") + client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") + instance_url: Optional[StrictStr] = Field(default=None, alias="instanceUrl") + tenant_domain_name: Optional[StrictStr] = Field(default=None, alias="tenantDomainName") + __properties: ClassVar[List[str]] = ["clientId", "clientSecret", "instanceUrl", "tenantDomainName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersMedalliaAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersMedalliaAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clientId": obj.get("clientId"), + "clientSecret": obj.get("clientSecret"), + "instanceUrl": obj.get("instanceUrl"), + "tenantDomainName": obj.get("tenantDomainName") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_microsoft365_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_microsoft365_auth_params_dto.py new file mode 100644 index 0000000000..47625034fe --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_microsoft365_auth_params_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersMicrosoft365AuthParamsDTO(BaseModel): + """ + DesignerTransfersMicrosoft365AuthParamsDTO + """ # noqa: E501 + client_id: Optional[StrictStr] = Field(default=None, alias="clientId") + client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") + o_auth_tenant_id: Optional[StrictStr] = Field(default=None, alias="oAuthTenantId") + privacy_mode: Optional[StrictStr] = Field(default=None, alias="privacyMode") + __properties: ClassVar[List[str]] = ["clientId", "clientSecret", "oAuthTenantId", "privacyMode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersMicrosoft365AuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersMicrosoft365AuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clientId": obj.get("clientId"), + "clientSecret": obj.get("clientSecret"), + "oAuthTenantId": obj.get("oAuthTenantId"), + "privacyMode": obj.get("privacyMode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_my_sql_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_my_sql_auth_params_dto.py new file mode 100644 index 0000000000..f720ede115 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_my_sql_auth_params_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersMySqlAuthParamsDTO(BaseModel): + """ + DesignerTransfersMySqlAuthParamsDTO + """ # noqa: E501 + database: Optional[StrictStr] = None + host: Optional[StrictStr] = None + password: Optional[StrictStr] = None + port: Optional[StrictStr] = None + ssl_mode: Optional[StrictStr] = Field(default=None, alias="sslMode") + username: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["database", "host", "password", "port", "sslMode", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersMySqlAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersMySqlAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "database": obj.get("database"), + "host": obj.get("host"), + "password": obj.get("password"), + "port": obj.get("port"), + "sslMode": obj.get("sslMode"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_namely_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_namely_auth_params_dto.py new file mode 100644 index 0000000000..3ed3f18950 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_namely_auth_params_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersNamelyAuthParamsDTO(BaseModel): + """ + DesignerTransfersNamelyAuthParamsDTO + """ # noqa: E501 + auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") + __properties: ClassVar[List[str]] = ["authCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersNamelyAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersNamelyAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "authCode": obj.get("authCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_oracle_db_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_oracle_db_auth_params_dto.py new file mode 100644 index 0000000000..6140946af9 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_oracle_db_auth_params_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersOracleDbAuthParamsDTO(BaseModel): + """ + DesignerTransfersOracleDbAuthParamsDTO + """ # noqa: E501 + host: Optional[StrictStr] = None + password: Optional[StrictStr] = None + port: Optional[StrictStr] = None + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") + username: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["host", "password", "port", "serviceName", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersOracleDbAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersOracleDbAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "host": obj.get("host"), + "password": obj.get("password"), + "port": obj.get("port"), + "serviceName": obj.get("serviceName"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_push_data_column_definition_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_push_data_column_definition_dto.py new file mode 100644 index 0000000000..fbc34e2c89 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_push_data_column_definition_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersPushDataColumnDefinitionDTO(BaseModel): + """ + Definition of the source column. + """ # noqa: E501 + allow_empty: Optional[StrictBool] = Field(default=None, description="If true, the column allows an empty value for the record.", alias="allowEmpty") + column_name: Optional[StrictStr] = Field(default=None, description="The name of the column.", alias="columnName") + data_formats: Optional[List[StrictStr]] = Field(default=None, description="The expected format for datetime data types.", alias="dataFormats") + data_type: Optional[StrictStr] = Field(default=None, description="The data type associated with the column.", alias="dataType") + default_value: Optional[StrictStr] = Field(default=None, description="The default value of the column.", alias="defaultValue") + is_mandatory: Optional[StrictBool] = Field(default=None, description="If true, the column value is required. If a column is mandatory, and the file is missing this column, the request will fail.", alias="isMandatory") + __properties: ClassVar[List[str]] = ["allowEmpty", "columnName", "dataFormats", "dataType", "defaultValue", "isMandatory"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersPushDataColumnDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersPushDataColumnDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowEmpty": obj.get("allowEmpty"), + "columnName": obj.get("columnName"), + "dataFormats": obj.get("dataFormats"), + "dataType": obj.get("dataType"), + "defaultValue": obj.get("defaultValue"), + "isMandatory": obj.get("isMandatory") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_push_data_source_definition_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_push_data_source_definition_dto.py new file mode 100644 index 0000000000..20dae5d06e --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_push_data_source_definition_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.designer_transfers_push_data_column_definition_dto import DesignerTransfersPushDataColumnDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersPushDataSourceDefinitionDTO(BaseModel): + """ + Details of each existing source. + """ # noqa: E501 + columns: Optional[List[DesignerTransfersPushDataColumnDefinitionDTO]] = Field(default=None, description="A list of objects representing the source columns.") + is_inherited: Optional[StrictBool] = Field(default=None, description="If true, the source is inherited by all analytic tenants.", alias="isInherited") + name: Optional[StrictStr] = Field(default=None, description="The object name of the source.") + source_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the source.", alias="sourceId") + __properties: ClassVar[List[str]] = ["columns", "isInherited", "name", "sourceId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersPushDataSourceDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in columns (list) + _items = [] + if self.columns: + for _item_columns in self.columns: + if _item_columns: + _items.append(_item_columns.to_dict()) + _dict['columns'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersPushDataSourceDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "columns": [DesignerTransfersPushDataColumnDefinitionDTO.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None, + "isInherited": obj.get("isInherited"), + "name": obj.get("name"), + "sourceId": obj.get("sourceId") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_push_data_source_definitions_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_push_data_source_definitions_dto.py new file mode 100644 index 0000000000..0d8157be4c --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_push_data_source_definitions_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.designer_transfers_push_data_source_definition_dto import DesignerTransfersPushDataSourceDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersPushDataSourceDefinitionsDTO(BaseModel): + """ + The existing sources. + """ # noqa: E501 + sources: Optional[List[DesignerTransfersPushDataSourceDefinitionDTO]] = Field(default=None, description="A list of objects representing the target sources for the request.") + __properties: ClassVar[List[str]] = ["sources"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersPushDataSourceDefinitionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in sources (list) + _items = [] + if self.sources: + for _item_sources in self.sources: + if _item_sources: + _items.append(_item_sources.to_dict()) + _dict['sources'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersPushDataSourceDefinitionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "sources": [DesignerTransfersPushDataSourceDefinitionDTO.from_dict(_item) for _item in obj["sources"]] if obj.get("sources") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_qualtrics_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_qualtrics_auth_params_dto.py new file mode 100644 index 0000000000..0da72723a4 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_qualtrics_auth_params_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersQualtricsAuthParamsDTO(BaseModel): + """ + DesignerTransfersQualtricsAuthParamsDTO + """ # noqa: E501 + api_token: Optional[StrictStr] = Field(default=None, alias="apiToken") + data_center_id: Optional[StrictStr] = Field(default=None, alias="dataCenterId") + __properties: ClassVar[List[str]] = ["apiToken", "dataCenterId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersQualtricsAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersQualtricsAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "apiToken": obj.get("apiToken"), + "dataCenterId": obj.get("dataCenterId") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_redshift_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_redshift_auth_params_dto.py new file mode 100644 index 0000000000..ceaacfe83b --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_redshift_auth_params_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersRedshiftAuthParamsDTO(BaseModel): + """ + DesignerTransfersRedshiftAuthParamsDTO + """ # noqa: E501 + database: Optional[StrictStr] = None + endpoint: Optional[StrictStr] = None + password: Optional[StrictStr] = None + port: Optional[StrictStr] = None + var_schema: Optional[StrictStr] = Field(default=None, alias="schema") + table_prefix: Optional[StrictStr] = Field(default=None, alias="tablePrefix") + username: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["database", "endpoint", "password", "port", "schema", "tablePrefix", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersRedshiftAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersRedshiftAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "database": obj.get("database"), + "endpoint": obj.get("endpoint"), + "password": obj.get("password"), + "port": obj.get("port"), + "schema": obj.get("schema"), + "tablePrefix": obj.get("tablePrefix"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_salesforce_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_salesforce_auth_params_dto.py new file mode 100644 index 0000000000..345fbc7936 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_salesforce_auth_params_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersSalesforceAuthParamsDTO(BaseModel): + """ + DesignerTransfersSalesforceAuthParamsDTO + """ # noqa: E501 + client_id: Optional[StrictStr] = Field(default=None, alias="clientId") + refresh_token: Optional[StrictStr] = Field(default=None, alias="refreshToken") + __properties: ClassVar[List[str]] = ["clientId", "refreshToken"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersSalesforceAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersSalesforceAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clientId": obj.get("clientId"), + "refreshToken": obj.get("refreshToken") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_salesforce_v2_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_salesforce_v2_auth_params_dto.py new file mode 100644 index 0000000000..466e6415c3 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_salesforce_v2_auth_params_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersSalesforceV2AuthParamsDTO(BaseModel): + """ + DesignerTransfersSalesforceV2AuthParamsDTO + """ # noqa: E501 + auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") + client_id: Optional[StrictStr] = Field(default=None, alias="clientId") + client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") + login_host: Optional[StrictStr] = Field(default=None, alias="loginHost") + __properties: ClassVar[List[str]] = ["authCode", "clientId", "clientSecret", "loginHost"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersSalesforceV2AuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersSalesforceV2AuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "authCode": obj.get("authCode"), + "clientId": obj.get("clientId"), + "clientSecret": obj.get("clientSecret"), + "loginHost": obj.get("loginHost") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_service_now_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_service_now_auth_params_dto.py new file mode 100644 index 0000000000..4de1a405da --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_service_now_auth_params_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersServiceNowAuthParamsDTO(BaseModel): + """ + DesignerTransfersServiceNowAuthParamsDTO + """ # noqa: E501 + host_domain_name: Optional[StrictStr] = Field(default=None, alias="hostDomainName") + password: Optional[StrictStr] = None + username: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["hostDomainName", "password", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersServiceNowAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersServiceNowAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hostDomainName": obj.get("hostDomainName"), + "password": obj.get("password"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_service_now_v2_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_service_now_v2_auth_params_dto.py new file mode 100644 index 0000000000..0169ac9cbb --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_service_now_v2_auth_params_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersServiceNowV2AuthParamsDTO(BaseModel): + """ + DesignerTransfersServiceNowV2AuthParamsDTO + """ # noqa: E501 + alternate_domain: Optional[StrictStr] = Field(default=None, alias="alternateDomain") + auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") + client_id: Optional[StrictStr] = Field(default=None, alias="clientId") + client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") + host_domain_name: Optional[StrictStr] = Field(default=None, alias="hostDomainName") + __properties: ClassVar[List[str]] = ["alternateDomain", "authCode", "clientId", "clientSecret", "hostDomainName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersServiceNowV2AuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersServiceNowV2AuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "alternateDomain": obj.get("alternateDomain"), + "authCode": obj.get("authCode"), + "clientId": obj.get("clientId"), + "clientSecret": obj.get("clientSecret"), + "hostDomainName": obj.get("hostDomainName") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_slack_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_slack_auth_params_dto.py new file mode 100644 index 0000000000..5c41f9f3a1 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_slack_auth_params_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersSlackAuthParamsDTO(BaseModel): + """ + DesignerTransfersSlackAuthParamsDTO + """ # noqa: E501 + auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") + client_id: Optional[StrictStr] = Field(default=None, alias="clientId") + client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") + __properties: ClassVar[List[str]] = ["authCode", "clientId", "clientSecret"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersSlackAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersSlackAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "authCode": obj.get("authCode"), + "clientId": obj.get("clientId"), + "clientSecret": obj.get("clientSecret") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_snowflake_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_snowflake_auth_params_dto.py new file mode 100644 index 0000000000..ee0c5943ae --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_snowflake_auth_params_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersSnowflakeAuthParamsDTO(BaseModel): + """ + DesignerTransfersSnowflakeAuthParamsDTO + """ # noqa: E501 + account_identifier: Optional[StrictStr] = Field(default=None, alias="accountIdentifier") + database: Optional[StrictStr] = None + password: Optional[StrictStr] = None + private_key: Optional[StrictStr] = Field(default=None, alias="privateKey") + var_schema: Optional[StrictStr] = Field(default=None, alias="schema") + username: Optional[StrictStr] = None + warehouse: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["accountIdentifier", "database", "password", "privateKey", "schema", "username", "warehouse"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersSnowflakeAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersSnowflakeAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accountIdentifier": obj.get("accountIdentifier"), + "database": obj.get("database"), + "password": obj.get("password"), + "privateKey": obj.get("privateKey"), + "schema": obj.get("schema"), + "username": obj.get("username"), + "warehouse": obj.get("warehouse") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_sql_server_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_sql_server_auth_params_dto.py new file mode 100644 index 0000000000..5fc86c0f24 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_sql_server_auth_params_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersSqlServerAuthParamsDTO(BaseModel): + """ + DesignerTransfersSqlServerAuthParamsDTO + """ # noqa: E501 + database: Optional[StrictStr] = None + host: Optional[StrictStr] = None + password: Optional[StrictStr] = None + port: Optional[StrictStr] = None + username: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["database", "host", "password", "port", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersSqlServerAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersSqlServerAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "database": obj.get("database"), + "host": obj.get("host"), + "password": obj.get("password"), + "port": obj.get("port"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_subject_missing_access_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_subject_missing_access_dto.py new file mode 100644 index 0000000000..d8ef2dd368 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_subject_missing_access_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersSubjectMissingAccessDTO(BaseModel): + """ + DesignerTransfersSubjectMissingAccessDTO + """ # noqa: E501 + attributes: Optional[List[StrictStr]] = Field(default=None, description="The attributes that cannot be accessed.") + error_message: Optional[StrictStr] = Field(default=None, description="The error message detailing the access issue.", alias="errorMessage") + subject: Optional[StrictStr] = Field(default=None, description="The subjects that cannot be accessed.") + __properties: ClassVar[List[str]] = ["attributes", "errorMessage", "subject"] + + @field_validator('subject') + def subject_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Employee', 'Employee_Budgeted_Compensation', 'Employment_Start', 'Employment_Exit', 'Absenteeism', 'Supervisory', 'Organization', 'Compensation_Payout', 'CustomSubject', 'TestConnectionSubject', 'Internal_Placement', 'Pay_Change', 'Hire', 'Applicant', 'Candidate', 'Requisition']): + raise ValueError("must be one of enum values ('Employee', 'Employee_Budgeted_Compensation', 'Employment_Start', 'Employment_Exit', 'Absenteeism', 'Supervisory', 'Organization', 'Compensation_Payout', 'CustomSubject', 'TestConnectionSubject', 'Internal_Placement', 'Pay_Change', 'Hire', 'Applicant', 'Candidate', 'Requisition')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersSubjectMissingAccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersSubjectMissingAccessDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "attributes": obj.get("attributes"), + "errorMessage": obj.get("errorMessage"), + "subject": obj.get("subject") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_success_factors_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_success_factors_auth_params_dto.py new file mode 100644 index 0000000000..be19140e93 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_success_factors_auth_params_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.designer_transfers_success_factors_o_auth_params_dto import DesignerTransfersSuccessFactorsOAuthParamsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersSuccessFactorsAuthParamsDTO(BaseModel): + """ + DesignerTransfersSuccessFactorsAuthParamsDTO + """ # noqa: E501 + company_id: Optional[StrictStr] = Field(default=None, alias="companyID") + host_domain_name: Optional[StrictStr] = Field(default=None, alias="hostDomainName") + o_auth: Optional[DesignerTransfersSuccessFactorsOAuthParamsDTO] = Field(default=None, alias="oAuth") + password: Optional[StrictStr] = None + username: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["companyID", "hostDomainName", "oAuth", "password", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersSuccessFactorsAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of o_auth + if self.o_auth: + _dict['oAuth'] = self.o_auth.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersSuccessFactorsAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "companyID": obj.get("companyID"), + "hostDomainName": obj.get("hostDomainName"), + "oAuth": DesignerTransfersSuccessFactorsOAuthParamsDTO.from_dict(obj["oAuth"]) if obj.get("oAuth") is not None else None, + "password": obj.get("password"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_success_factors_o_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_success_factors_o_auth_params_dto.py new file mode 100644 index 0000000000..2aea3051f4 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_success_factors_o_auth_params_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersSuccessFactorsOAuthParamsDTO(BaseModel): + """ + DesignerTransfersSuccessFactorsOAuthParamsDTO + """ # noqa: E501 + api_key: Optional[StrictStr] = Field(default=None, alias="apiKey") + private_x509_key: Optional[StrictStr] = Field(default=None, alias="privateX509Key") + public_x509_cert: Optional[StrictStr] = Field(default=None, alias="publicX509Cert") + __properties: ClassVar[List[str]] = ["apiKey", "privateX509Key", "publicX509Cert"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersSuccessFactorsOAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersSuccessFactorsOAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "apiKey": obj.get("apiKey"), + "privateX509Key": obj.get("privateX509Key"), + "publicX509Cert": obj.get("publicX509Cert") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_ultimate_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_ultimate_auth_params_dto.py new file mode 100644 index 0000000000..f3f01edb21 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_ultimate_auth_params_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersUltimateAuthParamsDTO(BaseModel): + """ + DesignerTransfersUltimateAuthParamsDTO + """ # noqa: E501 + api_key: Optional[StrictStr] = Field(default=None, alias="apiKey") + host_domain_name: Optional[StrictStr] = Field(default=None, alias="hostDomainName") + password: Optional[StrictStr] = None + user_access_key: Optional[StrictStr] = Field(default=None, alias="userAccessKey") + username: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["apiKey", "hostDomainName", "password", "userAccessKey", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersUltimateAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersUltimateAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "apiKey": obj.get("apiKey"), + "hostDomainName": obj.get("hostDomainName"), + "password": obj.get("password"), + "userAccessKey": obj.get("userAccessKey"), + "username": obj.get("username") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_willow_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_willow_auth_params_dto.py new file mode 100644 index 0000000000..197e457761 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_willow_auth_params_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersWillowAuthParamsDTO(BaseModel): + """ + DesignerTransfersWillowAuthParamsDTO + """ # noqa: E501 + api_token: Optional[StrictStr] = Field(default=None, alias="apiToken") + host_name: Optional[StrictStr] = Field(default=None, alias="hostName") + __properties: ClassVar[List[str]] = ["apiToken", "hostName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersWillowAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersWillowAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "apiToken": obj.get("apiToken"), + "hostName": obj.get("hostName") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_workday_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_workday_auth_params_dto.py new file mode 100644 index 0000000000..4cdcb92025 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_workday_auth_params_dto.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.designer_transfers_workday_o_auth_params_dto import DesignerTransfersWorkdayOAuthParamsDTO +from visier_api_data_in.models.designer_transfers_workday_refresh_token_params_dto import DesignerTransfersWorkdayRefreshTokenParamsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersWorkdayAuthParamsDTO(BaseModel): + """ + DesignerTransfersWorkdayAuthParamsDTO + """ # noqa: E501 + api_key: Optional[StrictStr] = Field(default=None, alias="apiKey") + domain_name: Optional[StrictStr] = Field(default=None, alias="domainName") + implementation_name: Optional[StrictStr] = Field(default=None, alias="implementationName") + integration_system_id: Optional[StrictStr] = Field(default=None, alias="integrationSystemId") + o_auth: Optional[DesignerTransfersWorkdayOAuthParamsDTO] = Field(default=None, alias="oAuth") + password: Optional[StrictStr] = None + ref_token: Optional[DesignerTransfersWorkdayRefreshTokenParamsDTO] = Field(default=None, alias="refToken") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + __properties: ClassVar[List[str]] = ["apiKey", "domainName", "implementationName", "integrationSystemId", "oAuth", "password", "refToken", "userId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersWorkdayAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of o_auth + if self.o_auth: + _dict['oAuth'] = self.o_auth.to_dict() + # override the default output from pydantic by calling `to_dict()` of ref_token + if self.ref_token: + _dict['refToken'] = self.ref_token.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersWorkdayAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "apiKey": obj.get("apiKey"), + "domainName": obj.get("domainName"), + "implementationName": obj.get("implementationName"), + "integrationSystemId": obj.get("integrationSystemId"), + "oAuth": DesignerTransfersWorkdayOAuthParamsDTO.from_dict(obj["oAuth"]) if obj.get("oAuth") is not None else None, + "password": obj.get("password"), + "refToken": DesignerTransfersWorkdayRefreshTokenParamsDTO.from_dict(obj["refToken"]) if obj.get("refToken") is not None else None, + "userId": obj.get("userId") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_workday_o_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_workday_o_auth_params_dto.py new file mode 100644 index 0000000000..a365a7b71e --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_workday_o_auth_params_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersWorkdayOAuthParamsDTO(BaseModel): + """ + DesignerTransfersWorkdayOAuthParamsDTO + """ # noqa: E501 + api_client_id: Optional[StrictStr] = Field(default=None, alias="apiClientId") + private_x509_key: Optional[StrictStr] = Field(default=None, alias="privateX509Key") + public_x509_cert: Optional[StrictStr] = Field(default=None, alias="publicX509Cert") + __properties: ClassVar[List[str]] = ["apiClientId", "privateX509Key", "publicX509Cert"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersWorkdayOAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersWorkdayOAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "apiClientId": obj.get("apiClientId"), + "privateX509Key": obj.get("privateX509Key"), + "publicX509Cert": obj.get("publicX509Cert") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_workday_raas_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_workday_raas_auth_params_dto.py new file mode 100644 index 0000000000..148e8949a4 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_workday_raas_auth_params_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersWorkdayRaasAuthParamsDTO(BaseModel): + """ + DesignerTransfersWorkdayRaasAuthParamsDTO + """ # noqa: E501 + domain_name: Optional[StrictStr] = Field(default=None, alias="domainName") + implementation_name: Optional[StrictStr] = Field(default=None, alias="implementationName") + password: Optional[StrictStr] = None + test_report_url: Optional[StrictStr] = Field(default=None, alias="testReportUrl") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + __properties: ClassVar[List[str]] = ["domainName", "implementationName", "password", "testReportUrl", "userId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersWorkdayRaasAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersWorkdayRaasAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "domainName": obj.get("domainName"), + "implementationName": obj.get("implementationName"), + "password": obj.get("password"), + "testReportUrl": obj.get("testReportUrl"), + "userId": obj.get("userId") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_workday_refresh_token_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_workday_refresh_token_params_dto.py new file mode 100644 index 0000000000..baf76ca7f0 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_workday_refresh_token_params_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersWorkdayRefreshTokenParamsDTO(BaseModel): + """ + DesignerTransfersWorkdayRefreshTokenParamsDTO + """ # noqa: E501 + api_client_id: Optional[StrictStr] = Field(default=None, alias="apiClientId") + client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") + refresh_token: Optional[StrictStr] = Field(default=None, alias="refreshToken") + __properties: ClassVar[List[str]] = ["apiClientId", "clientSecret", "refreshToken"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersWorkdayRefreshTokenParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersWorkdayRefreshTokenParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "apiClientId": obj.get("apiClientId"), + "clientSecret": obj.get("clientSecret"), + "refreshToken": obj.get("refreshToken") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_zoom_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_zoom_auth_params_dto.py new file mode 100644 index 0000000000..d23deaf96f --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_zoom_auth_params_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersZoomAuthParamsDTO(BaseModel): + """ + DesignerTransfersZoomAuthParamsDTO + """ # noqa: E501 + auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") + client_id: Optional[StrictStr] = Field(default=None, alias="clientId") + client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") + __properties: ClassVar[List[str]] = ["authCode", "clientId", "clientSecret"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersZoomAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersZoomAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "authCode": obj.get("authCode"), + "clientId": obj.get("clientId"), + "clientSecret": obj.get("clientSecret") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/dimensions_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/dimensions_auth_params_dto.py deleted file mode 100644 index 1973ba56fe..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/dimensions_auth_params_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DimensionsAuthParamsDTO(BaseModel): - """ - DimensionsAuthParamsDTO - """ # noqa: E501 - app_key: Optional[StrictStr] = Field(default=None, alias="appKey") - client_id: Optional[StrictStr] = Field(default=None, alias="clientId") - client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") - password: Optional[StrictStr] = None - username: Optional[StrictStr] = None - vanity_url: Optional[StrictStr] = Field(default=None, alias="vanityUrl") - __properties: ClassVar[List[str]] = ["appKey", "clientId", "clientSecret", "password", "username", "vanityUrl"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DimensionsAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DimensionsAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "appKey": obj.get("appKey"), - "clientId": obj.get("clientId"), - "clientSecret": obj.get("clientSecret"), - "password": obj.get("password"), - "username": obj.get("username"), - "vanityUrl": obj.get("vanityUrl") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/direct_data_job_config_dto.py b/src/visier_api_data_in/visier_api_data_in/models/direct_data_job_config_dto.py deleted file mode 100644 index b1081417a5..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/direct_data_job_config_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DirectDataJobConfigDTO(BaseModel): - """ - Whether the direct data intake job is a primary job or a supplemental job. - """ # noqa: E501 - extend_objects: Optional[List[StrictStr]] = Field(default=None, description="The target analytic objects to load using extension tables. You can extend objects if the job type is supplemental and the target objects already contain data from a previous data version. This allows you to load data for objects that already contain data in Visier.", alias="extendObjects") - supplemental_mode: Optional[StrictStr] = Field(default=None, description="The configuration for the processing job as a primary job (default) or a supplemental job. If a primary job is already defined, the direct data intake job must be supplemental. The valid values are `IS_PRIMARY`, `IS_SUPPLEMENTAL`, and `UNCHANGED`.", alias="supplementalMode") - __properties: ClassVar[List[str]] = ["extendObjects", "supplementalMode"] - - @field_validator('supplemental_mode') - def supplemental_mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['UNCHANGED', 'IS_PRIMARY', 'IS_SUPPLEMENTAL']): - raise ValueError("must be one of enum values ('UNCHANGED', 'IS_PRIMARY', 'IS_SUPPLEMENTAL')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DirectDataJobConfigDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DirectDataJobConfigDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "extendObjects": obj.get("extendObjects"), - "supplementalMode": obj.get("supplementalMode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/direct_data_job_status_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/direct_data_job_status_response_dto.py deleted file mode 100644 index c8e5e06246..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/direct_data_job_status_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DirectDataJobStatusResponseDTO(BaseModel): - """ - The job status information for a committed transaction. - """ # noqa: E501 - job_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the processing job.", alias="jobId") - message: Optional[StrictStr] = Field(default=None, description="If the processing job fails, this field contains details specific to the failure.") - status: Optional[StrictStr] = Field(default=None, description="The status of the processing job.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant for the data load.", alias="tenantCode") - transaction_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the committed transaction.", alias="transactionId") - __properties: ClassVar[List[str]] = ["jobId", "message", "status", "tenantCode", "transactionId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DirectDataJobStatusResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DirectDataJobStatusResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "jobId": obj.get("jobId"), - "message": obj.get("message"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode"), - "transactionId": obj.get("transactionId") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/direct_data_load_config_dto.py b/src/visier_api_data_in/visier_api_data_in/models/direct_data_load_config_dto.py deleted file mode 100644 index 380bb3dc82..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/direct_data_load_config_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.direct_data_job_config_dto import DirectDataJobConfigDTO -from typing import Optional, Set -from typing_extensions import Self - -class DirectDataLoadConfigDTO(BaseModel): - """ - The configuration for the direct data intake, such as the direct data intake job type. - """ # noqa: E501 - job: Optional[DirectDataJobConfigDTO] = Field(default=None, description="The direct data intake job configuration.") - __properties: ClassVar[List[str]] = ["job"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DirectDataLoadConfigDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of job - if self.job: - _dict['job'] = self.job.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DirectDataLoadConfigDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "job": DirectDataJobConfigDTO.from_dict(obj["job"]) if obj.get("job") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/direct_data_schema_dto.py b/src/visier_api_data_in/visier_api_data_in/models/direct_data_schema_dto.py deleted file mode 100644 index b6ca5c7c33..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/direct_data_schema_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.direct_data_schema_field_dto import DirectDataSchemaFieldDTO -from typing import Optional, Set -from typing_extensions import Self - -class DirectDataSchemaDTO(BaseModel): - """ - Public API Direct Intake schema response object - """ # noqa: E501 - var_schema: Optional[List[DirectDataSchemaFieldDTO]] = Field(default=None, description="The schema definition for loading a specific object", alias="schema") - __properties: ClassVar[List[str]] = ["schema"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DirectDataSchemaDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in var_schema (list) - _items = [] - if self.var_schema: - for _item_var_schema in self.var_schema: - if _item_var_schema: - _items.append(_item_var_schema.to_dict()) - _dict['schema'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DirectDataSchemaDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "schema": [DirectDataSchemaFieldDTO.from_dict(_item) for _item in obj["schema"]] if obj.get("schema") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/direct_data_schema_field_dto.py b/src/visier_api_data_in/visier_api_data_in/models/direct_data_schema_field_dto.py deleted file mode 100644 index 25e894d4c9..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/direct_data_schema_field_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DirectDataSchemaFieldDTO(BaseModel): - """ - The definition of each field in an object's schema. - """ # noqa: E501 - data_type: Optional[StrictStr] = Field(default=None, description="The column's data type.", alias="dataType") - empty_values_allowed: Optional[StrictBool] = Field(default=None, description="If true, the value may be empty.", alias="emptyValuesAllowed") - formats: Optional[List[StrictStr]] = Field(default=None, description="The column's accepted formats, such as date formats like \"yyyy-MM-dd\".") - is_mandatory: Optional[StrictBool] = Field(default=None, description="If true, the field must contain a value to successfully load data into the object.", alias="isMandatory") - name: Optional[StrictStr] = Field(default=None, description="The field's column name. Column names are case sensitive.") - __properties: ClassVar[List[str]] = ["dataType", "emptyValuesAllowed", "formats", "isMandatory", "name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DirectDataSchemaFieldDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DirectDataSchemaFieldDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataType": obj.get("dataType"), - "emptyValuesAllowed": obj.get("emptyValuesAllowed"), - "formats": obj.get("formats"), - "isMandatory": obj.get("isMandatory"), - "name": obj.get("name") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/direct_data_transaction_start_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/direct_data_transaction_start_response_dto.py deleted file mode 100644 index 7f728f1118..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/direct_data_transaction_start_response_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DirectDataTransactionStartResponseDTO(BaseModel): - """ - The response after successfully creating a transaction. - """ # noqa: E501 - transaction_id: Optional[StrictStr] = Field(default=None, description="The transaction's unique identifier.", alias="transactionId") - __properties: ClassVar[List[str]] = ["transactionId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DirectDataTransactionStartResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DirectDataTransactionStartResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "transactionId": obj.get("transactionId") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/direct_data_upload_file_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/direct_data_upload_file_response_dto.py index 96bc2bd9a8..da3deb9b8e 100644 --- a/src/visier_api_data_in/visier_api_data_in/models/direct_data_upload_file_response_dto.py +++ b/src/visier_api_data_in/visier_api_data_in/models/direct_data_upload_file_response_dto.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/visier_api_data_in/models/disable_dv_model.py b/src/visier_api_data_in/visier_api_data_in/models/disable_dv_model.py deleted file mode 100644 index de2341e914..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/disable_dv_model.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.data_version_object import DataVersionObject -from typing import Optional, Set -from typing_extensions import Self - -class DisableDVModel(BaseModel): - """ - DisableDVModel - """ # noqa: E501 - data_version_objects: Optional[List[DataVersionObject]] = Field(default=None, description="A list of objects representing the data version to disable for a particular analytic tenant. The limit of objects to include per request is 1000.", alias="dataVersionObjects") - __properties: ClassVar[List[str]] = ["dataVersionObjects"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DisableDVModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data_version_objects (list) - _items = [] - if self.data_version_objects: - for _item_data_version_objects in self.data_version_objects: - if _item_data_version_objects: - _items.append(_item_data_version_objects.to_dict()) - _dict['dataVersionObjects'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DisableDVModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataVersionObjects": [DataVersionObject.from_dict(_item) for _item in obj["dataVersionObjects"]] if obj.get("dataVersionObjects") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/disable_dv_request.py b/src/visier_api_data_in/visier_api_data_in/models/disable_dv_request.py deleted file mode 100644 index e1183650d1..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/disable_dv_request.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.disable_dv_model import DisableDVModel -from typing import Optional, Set -from typing_extensions import Self - -class DisableDVRequest(BaseModel): - """ - DisableDVRequest - """ # noqa: E501 - model: Optional[DisableDVModel] = Field(default=None, description="A form body key that contains a collection of key-value pairs.") - __properties: ClassVar[List[str]] = ["model"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DisableDVRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of model - if self.model: - _dict['model'] = self.model.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DisableDVRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "model": DisableDVModel.from_dict(obj["model"]) if obj.get("model") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/disable_dv_response.py b/src/visier_api_data_in/visier_api_data_in/models/disable_dv_response.py deleted file mode 100644 index 595fad5576..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/disable_dv_response.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.result import Result -from typing import Optional, Set -from typing_extensions import Self - -class DisableDVResponse(BaseModel): - """ - DisableDVResponse - """ # noqa: E501 - results: Optional[List[Result]] = Field(default=None, description="A list of objects representing the disabling process.") - total_failures: Optional[StrictInt] = Field(default=None, description="The number of data versions that failed during the disabling process.", alias="totalFailures") - total_success: Optional[StrictInt] = Field(default=None, description="The number of data versions that were disabled successfully.", alias="totalSuccess") - __properties: ClassVar[List[str]] = ["results", "totalFailures", "totalSuccess"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DisableDVResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in results (list) - _items = [] - if self.results: - for _item_results in self.results: - if _item_results: - _items.append(_item_results.to_dict()) - _dict['results'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DisableDVResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "results": [Result.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, - "totalFailures": obj.get("totalFailures"), - "totalSuccess": obj.get("totalSuccess") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/dispatching_job_status_response.py b/src/visier_api_data_in/visier_api_data_in/models/dispatching_job_status_response.py deleted file mode 100644 index fa34a97701..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/dispatching_job_status_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DispatchingJobStatusResponse(BaseModel): - """ - DispatchingJobStatusResponse - """ # noqa: E501 - job_id: Optional[StrictStr] = Field(default=None, description="The ID of the dispatching job that generated the extraction jobs.", alias="jobId") - status: Optional[StrictStr] = Field(default=None, description="The current state of the job.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant that owns the dispatching job. This is usually the administrating tenant.", alias="tenantCode") - total_jobs_dispatched: Optional[StrictInt] = Field(default=None, description="The number of extraction jobs that were generated by the dispatching job.", alias="totalJobsDispatched") - __properties: ClassVar[List[str]] = ["jobId", "status", "tenantCode", "totalJobsDispatched"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DispatchingJobStatusResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DispatchingJobStatusResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "jobId": obj.get("jobId"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode"), - "totalJobsDispatched": obj.get("totalJobsDispatched") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/dp_transfers_cancel_job_batch_from_job_id_dto.py b/src/visier_api_data_in/visier_api_data_in/models/dp_transfers_cancel_job_batch_from_job_id_dto.py new file mode 100644 index 0000000000..ce6b372075 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/dp_transfers_cancel_job_batch_from_job_id_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DpTransfersCancelJobBatchFromJobIdDTO(BaseModel): + """ + DpTransfersCancelJobBatchFromJobIdDTO + """ # noqa: E501 + job_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of jobs to cancel. The maximum number of jobs that can be cancelled is 500.", alias="jobIds") + __properties: ClassVar[List[str]] = ["jobIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DpTransfersCancelJobBatchFromJobIdDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DpTransfersCancelJobBatchFromJobIdDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobIds": obj.get("jobIds") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/dp_transfers_job_cancellation_result_dto.py b/src/visier_api_data_in/visier_api_data_in/models/dp_transfers_job_cancellation_result_dto.py new file mode 100644 index 0000000000..5b565bbd8b --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/dp_transfers_job_cancellation_result_dto.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DpTransfersJobCancellationResultDTO(BaseModel): + """ + DpTransfersJobCancellationResultDTO + """ # noqa: E501 + cancel_status: Optional[StrictStr] = Field(default=None, description="The status of the cancellation.", alias="cancelStatus") + job_id: Optional[StrictStr] = Field(default=None, description="The job ID of the job that the cancel operation was conducted for.", alias="jobId") + job_status: Optional[StrictStr] = Field(default=None, description="The job status after the cancel operation. If successful, the status is either Cancelled or Cancelling.", alias="jobStatus") + job_type: Optional[StrictStr] = Field(default=None, description="The job type associated with the job ID.", alias="jobType") + message: Optional[StrictStr] = Field(default=None, description="If applicable, the message explains what errors occurred while cancelling the jobs.") + parent_job_id: Optional[StrictStr] = Field(default=None, description="If applicable, the job ID of the job that spawned the given job.", alias="parentJobId") + tenant_code: Optional[StrictStr] = Field(default=None, description="The analytic tenant whose job the cancel operation was conducted for.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["cancelStatus", "jobId", "jobStatus", "jobType", "message", "parentJobId", "tenantCode"] + + @field_validator('cancel_status') + def cancel_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['CANCEL_FAILED', 'CANCEL_SUCCEEDED']): + raise ValueError("must be one of enum values ('CANCEL_FAILED', 'CANCEL_SUCCEEDED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DpTransfersJobCancellationResultDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DpTransfersJobCancellationResultDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cancelStatus": obj.get("cancelStatus"), + "jobId": obj.get("jobId"), + "jobStatus": obj.get("jobStatus"), + "jobType": obj.get("jobType"), + "message": obj.get("message"), + "parentJobId": obj.get("parentJobId"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/dp_transfers_job_cancellation_results_dto.py b/src/visier_api_data_in/visier_api_data_in/models/dp_transfers_job_cancellation_results_dto.py new file mode 100644 index 0000000000..2cf06fcf13 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/dp_transfers_job_cancellation_results_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.dp_transfers_job_cancellation_result_dto import DpTransfersJobCancellationResultDTO +from typing import Optional, Set +from typing_extensions import Self + +class DpTransfersJobCancellationResultsDTO(BaseModel): + """ + DpTransfersJobCancellationResultsDTO + """ # noqa: E501 + job_cancellation_results: Optional[List[DpTransfersJobCancellationResultDTO]] = Field(default=None, description="A list of objects representing the job cancellation results.", alias="jobCancellationResults") + __properties: ClassVar[List[str]] = ["jobCancellationResults"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DpTransfersJobCancellationResultsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in job_cancellation_results (list) + _items = [] + if self.job_cancellation_results: + for _item_job_cancellation_results in self.job_cancellation_results: + if _item_job_cancellation_results: + _items.append(_item_job_cancellation_results.to_dict()) + _dict['jobCancellationResults'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DpTransfersJobCancellationResultsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobCancellationResults": [DpTransfersJobCancellationResultDTO.from_dict(_item) for _item in obj["jobCancellationResults"]] if obj.get("jobCancellationResults") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/exclude_data_uploads_request.py b/src/visier_api_data_in/visier_api_data_in/models/exclude_data_uploads_request.py deleted file mode 100644 index 1a8ce72410..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/exclude_data_uploads_request.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.upload_to_exclude import UploadToExclude -from typing import Optional, Set -from typing_extensions import Self - -class ExcludeDataUploadsRequest(BaseModel): - """ - ExcludeDataUploadsRequest - """ # noqa: E501 - uploads: Optional[List[UploadToExclude]] = Field(default=None, description="A list of objects representing the data uploads to exclude for a particular analytic tenant.") - __properties: ClassVar[List[str]] = ["uploads"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExcludeDataUploadsRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in uploads (list) - _items = [] - if self.uploads: - for _item_uploads in self.uploads: - if _item_uploads: - _items.append(_item_uploads.to_dict()) - _dict['uploads'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExcludeDataUploadsRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "uploads": [UploadToExclude.from_dict(_item) for _item in obj["uploads"]] if obj.get("uploads") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/extract_data_and_load_dto.py b/src/visier_api_data_in/visier_api_data_in/models/extract_data_and_load_dto.py deleted file mode 100644 index 0248aa0866..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/extract_data_and_load_dto.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ExtractDataAndLoadDTO(BaseModel): - """ - ExtractDataAndLoadDTO - """ # noqa: E501 - all_tenants: Optional[StrictBool] = Field(default=None, description="If `true`, one extraction job is dispatched for each accessible analytic tenant. Only valid for requests from an administrating tenant.", alias="allTenants") - batch_size_override: Optional[StrictInt] = Field(default=None, description="The maximum number of subjects the job can retrieve in each batch.", alias="batchSizeOverride") - connector_ids: Optional[List[StrictStr]] = Field(default=None, description="The unique identifiers of the connectors to run extraction jobs.", alias="connectorIds") - data_category_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the data category on which to trigger the extraction job. Default is the tenant's primary data category.", alias="dataCategoryId") - disable_artifact_generation: Optional[StrictBool] = Field(default=None, description="If `true`, the job does not generate data load artifacts. If unspecified, the default is `false`.", alias="disableArtifactGeneration") - excluded_tenants: Optional[List[StrictStr]] = Field(default=None, description="The unique identifiers of the tenants to exclude from the extraction job. Only valid if `allTenants` is `true`. Only valid for requests from an administrating tenant.", alias="excludedTenants") - extract_to_time_override: Optional[StrictStr] = Field(default=None, description="An epoch timestamp in milliseconds for the end time up to which to retrieve data.", alias="extractToTimeOverride") - force_update_existing_artifacts: Optional[StrictBool] = Field(default=None, description="If `true` and `disableArtifactGeneration` is `false`, updates extractor artifacts, which may overwrite the artifacts' manual overrides. Ignored if `disableArtifactGeneration` is `true`.", alias="forceUpdateExistingArtifacts") - last_extraction_time_offset_mode: Optional[StrictStr] = Field(default=None, description="The mode used to offset the last extraction time (weeks vs months)", alias="lastExtractionTimeOffsetMode") - last_extraction_time_offset_months: Optional[StrictInt] = Field(default=None, description="The number of months to offset the last extraction time. This overrides the last extraction date backward to retrieve more data.", alias="lastExtractionTimeOffsetMonths") - last_extraction_time_offset_weeks: Optional[StrictInt] = Field(default=None, description="The number of weeks in the past to retrieve data. This overrides the last extraction date to retrieve more data.", alias="lastExtractionTimeOffsetWeeks") - months_to_extract: Optional[StrictInt] = Field(default=None, description="The number of months to retrieve snapshot data.", alias="monthsToExtract") - offset_month_option: Optional[StrictStr] = Field(default=None, description="The month options used to offset the last extraction time (first of month / last of month)", alias="offsetMonthOption") - offset_week_option: Optional[StrictStr] = Field(default=None, description="The week options used to offset the last extraction time (first of day / last of day)", alias="offsetWeekOption") - override_last_extraction_timestamp: Optional[StrictStr] = Field(default=None, description="An epoch timestamp in milliseconds from which to retrieve data. This overrides the last extraction date to retrieve more data.", alias="overrideLastExtractionTimestamp") - publish_data_load_artifacts: Optional[StrictBool] = Field(default=None, description="If `true`, the generated data load artifacts are published to production immediately.", alias="publishDataLoadArtifacts") - run_processing_job: Optional[StrictBool] = Field(default=None, description="If `true`, a processing job is spawned after a dispatched extraction job runs successfully.", alias="runProcessingJob") - spill_debug_info_detail_level_dto: Optional[StrictStr] = Field(default=None, description="The detail level of the debugging info to be generated. Valid values are: - `fileAndLine`: Debugging info is generated for file and line. - `mappingName`: Debugging info is generated for mapping name.", alias="spillDebugInfoDetailLevelDTO") - spill_debug_info_partitions_dto: Optional[StrictStr] = Field(default=None, description="The partitioning of debugging info to be generated, if any. Valid values are: - `spillNone`: No debugging info is generated. - `spillStagesAndRecords`: Debugging info is generated for stages and records. - `spillAll`: Debugging info is generated for all partitions.", alias="spillDebugInfoPartitionsDTO") - sql_batch_size: Optional[StrictInt] = Field(default=None, description="The maximum number of SQL table records the job can retrieve in each batch.", alias="sqlBatchSize") - tenants: Optional[List[StrictStr]] = Field(default=None, description="A list of analytic tenants to dispatch extraction jobs for. One extraction job is dispatched per tenant. Only valid for requests from an administrating tenant.") - __properties: ClassVar[List[str]] = ["allTenants", "batchSizeOverride", "connectorIds", "dataCategoryId", "disableArtifactGeneration", "excludedTenants", "extractToTimeOverride", "forceUpdateExistingArtifacts", "lastExtractionTimeOffsetMode", "lastExtractionTimeOffsetMonths", "lastExtractionTimeOffsetWeeks", "monthsToExtract", "offsetMonthOption", "offsetWeekOption", "overrideLastExtractionTimestamp", "publishDataLoadArtifacts", "runProcessingJob", "spillDebugInfoDetailLevelDTO", "spillDebugInfoPartitionsDTO", "sqlBatchSize", "tenants"] - - @field_validator('spill_debug_info_detail_level_dto') - def spill_debug_info_detail_level_dto_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['fileAndLine', 'mappingName']): - raise ValueError("must be one of enum values ('fileAndLine', 'mappingName')") - return value - - @field_validator('spill_debug_info_partitions_dto') - def spill_debug_info_partitions_dto_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['spillNone', 'spillStagesAndRecords', 'spillAll']): - raise ValueError("must be one of enum values ('spillNone', 'spillStagesAndRecords', 'spillAll')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExtractDataAndLoadDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExtractDataAndLoadDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "allTenants": obj.get("allTenants"), - "batchSizeOverride": obj.get("batchSizeOverride"), - "connectorIds": obj.get("connectorIds"), - "dataCategoryId": obj.get("dataCategoryId"), - "disableArtifactGeneration": obj.get("disableArtifactGeneration"), - "excludedTenants": obj.get("excludedTenants"), - "extractToTimeOverride": obj.get("extractToTimeOverride"), - "forceUpdateExistingArtifacts": obj.get("forceUpdateExistingArtifacts"), - "lastExtractionTimeOffsetMode": obj.get("lastExtractionTimeOffsetMode"), - "lastExtractionTimeOffsetMonths": obj.get("lastExtractionTimeOffsetMonths"), - "lastExtractionTimeOffsetWeeks": obj.get("lastExtractionTimeOffsetWeeks"), - "monthsToExtract": obj.get("monthsToExtract"), - "offsetMonthOption": obj.get("offsetMonthOption"), - "offsetWeekOption": obj.get("offsetWeekOption"), - "overrideLastExtractionTimestamp": obj.get("overrideLastExtractionTimestamp"), - "publishDataLoadArtifacts": obj.get("publishDataLoadArtifacts"), - "runProcessingJob": obj.get("runProcessingJob"), - "spillDebugInfoDetailLevelDTO": obj.get("spillDebugInfoDetailLevelDTO"), - "spillDebugInfoPartitionsDTO": obj.get("spillDebugInfoPartitionsDTO"), - "sqlBatchSize": obj.get("sqlBatchSize"), - "tenants": obj.get("tenants") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/extraction_job.py b/src/visier_api_data_in/visier_api_data_in/models/extraction_job.py deleted file mode 100644 index d19f55c01f..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/extraction_job.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ExtractionJob(BaseModel): - """ - ExtractionJob - """ # noqa: E501 - current_stage: Optional[StrictStr] = Field(default=None, description="The current stage of the job. This is not returned if the stage is \"Completed\". - Valid values: Initialize, Retrieve Main Subject, Retrieve Secondary Subjects, Retrieve Custom Subjects, Process Records, Publish Artifacts, Publish Records, Completed.", alias="currentStage") - extraction_job_id: Optional[StrictStr] = Field(default=None, description="The ID of the extraction job.", alias="extractionJobId") - status: Optional[StrictStr] = Field(default=None, description="The current state of the job. - Valid values: Pending, Running, Succeeded, Failed, Error, Cancelling, Cancelled, RolledBack, Rescheduling, Rescheduled.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant for the extraction job.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["currentStage", "extractionJobId", "status", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExtractionJob from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExtractionJob from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "currentStage": obj.get("currentStage"), - "extractionJobId": obj.get("extractionJobId"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/extraction_job_and_status_response.py b/src/visier_api_data_in/visier_api_data_in/models/extraction_job_and_status_response.py deleted file mode 100644 index a67e557fa7..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/extraction_job_and_status_response.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.extraction_job import ExtractionJob -from typing import Optional, Set -from typing_extensions import Self - -class ExtractionJobAndStatusResponse(BaseModel): - """ - ExtractionJobAndStatusResponse - """ # noqa: E501 - extraction_jobs: Optional[List[ExtractionJob]] = Field(default=None, description="A list of extraction job information.", alias="extractionJobs") - limit: Optional[StrictInt] = Field(default=None, description="The number of extraction jobs to return. The maximum number of jobs to return is 1000.") - parent_job_id: Optional[StrictStr] = Field(default=None, description="The ID of the dispatching job that generated the extraction jobs.", alias="parentJobId") - parent_tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant that owns the dispatching job. This is usually the administrating tenant.", alias="parentTenantCode") - start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") - __properties: ClassVar[List[str]] = ["extractionJobs", "limit", "parentJobId", "parentTenantCode", "start"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExtractionJobAndStatusResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in extraction_jobs (list) - _items = [] - if self.extraction_jobs: - for _item_extraction_jobs in self.extraction_jobs: - if _item_extraction_jobs: - _items.append(_item_extraction_jobs.to_dict()) - _dict['extractionJobs'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExtractionJobAndStatusResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "extractionJobs": [ExtractionJob.from_dict(_item) for _item in obj["extractionJobs"]] if obj.get("extractionJobs") is not None else None, - "limit": obj.get("limit"), - "parentJobId": obj.get("parentJobId"), - "parentTenantCode": obj.get("parentTenantCode"), - "start": obj.get("start") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/extractor_credential_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/extractor_credential_apidto.py deleted file mode 100644 index f85c34bc55..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/extractor_credential_apidto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ExtractorCredentialAPIDTO(BaseModel): - """ - ExtractorCredentialAPIDTO - """ # noqa: E501 - auth_context: Optional[StrictStr] = Field(default=None, alias="authContext") - credential_id: Optional[StrictStr] = Field(default=None, description="The ID associated with the connector credential.", alias="credentialId") - data_provider: Optional[StrictStr] = Field(default=None, description="The data provider associated with the credential.", alias="dataProvider") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable connector credential name that is displayed within Visier.", alias="displayName") - is_inherited: Optional[StrictBool] = Field(default=None, description="Whether this credential is inherited from another tenant.", alias="isInherited") - __properties: ClassVar[List[str]] = ["authContext", "credentialId", "dataProvider", "displayName", "isInherited"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExtractorCredentialAPIDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExtractorCredentialAPIDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "authContext": obj.get("authContext"), - "credentialId": obj.get("credentialId"), - "dataProvider": obj.get("dataProvider"), - "displayName": obj.get("displayName"), - "isInherited": obj.get("isInherited") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/extractor_credentials_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/extractor_credentials_apidto.py deleted file mode 100644 index 395c6eca91..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/extractor_credentials_apidto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.extractor_credential_apidto import ExtractorCredentialAPIDTO -from typing import Optional, Set -from typing_extensions import Self - -class ExtractorCredentialsAPIDTO(BaseModel): - """ - ExtractorCredentialsAPIDTO - """ # noqa: E501 - connector_credentials: Optional[List[ExtractorCredentialAPIDTO]] = Field(default=None, description="A list of objects representing all the available connector credentials in Production.", alias="connectorCredentials") - limit: Optional[StrictInt] = Field(default=None, description="The number of connector credentials to return. The maximum number of data connector credentials to return is 1000.") - start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving values from, also known as offset. The index begins at 0.") - __properties: ClassVar[List[str]] = ["connectorCredentials", "limit", "start"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExtractorCredentialsAPIDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in connector_credentials (list) - _items = [] - if self.connector_credentials: - for _item_connector_credentials in self.connector_credentials: - if _item_connector_credentials: - _items.append(_item_connector_credentials.to_dict()) - _dict['connectorCredentials'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExtractorCredentialsAPIDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "connectorCredentials": [ExtractorCredentialAPIDTO.from_dict(_item) for _item in obj["connectorCredentials"]] if obj.get("connectorCredentials") is not None else None, - "limit": obj.get("limit"), - "start": obj.get("start") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/extractor_setting_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/extractor_setting_apidto.py deleted file mode 100644 index 72f374560e..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/extractor_setting_apidto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.extractor_setting_key_value_apidto import ExtractorSettingKeyValueAPIDTO -from typing import Optional, Set -from typing_extensions import Self - -class ExtractorSettingAPIDTO(BaseModel): - """ - ExtractorSettingAPIDTO - """ # noqa: E501 - connector_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the data connector.", alias="connectorId") - connector_settings: Optional[List[ExtractorSettingKeyValueAPIDTO]] = Field(default=None, description="A list of objects representing the settings that are available for the data connector.", alias="connectorSettings") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable data connector name that is displayed within Visier.", alias="displayName") - __properties: ClassVar[List[str]] = ["connectorId", "connectorSettings", "displayName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExtractorSettingAPIDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in connector_settings (list) - _items = [] - if self.connector_settings: - for _item_connector_settings in self.connector_settings: - if _item_connector_settings: - _items.append(_item_connector_settings.to_dict()) - _dict['connectorSettings'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExtractorSettingAPIDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "connectorId": obj.get("connectorId"), - "connectorSettings": [ExtractorSettingKeyValueAPIDTO.from_dict(_item) for _item in obj["connectorSettings"]] if obj.get("connectorSettings") is not None else None, - "displayName": obj.get("displayName") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/extractor_setting_key_value_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/extractor_setting_key_value_apidto.py deleted file mode 100644 index ce5c6c304a..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/extractor_setting_key_value_apidto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ExtractorSettingKeyValueAPIDTO(BaseModel): - """ - ExtractorSettingKeyValueAPIDTO - """ # noqa: E501 - setting_key: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the setting.", alias="settingKey") - value: Optional[StrictStr] = Field(default=None, description="The current value of the setting.") - __properties: ClassVar[List[str]] = ["settingKey", "value"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExtractorSettingKeyValueAPIDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExtractorSettingKeyValueAPIDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "settingKey": obj.get("settingKey"), - "value": obj.get("value") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/extractor_settings_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/extractor_settings_apidto.py deleted file mode 100644 index 1027456ba0..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/extractor_settings_apidto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.extractor_setting_apidto import ExtractorSettingAPIDTO -from typing import Optional, Set -from typing_extensions import Self - -class ExtractorSettingsAPIDTO(BaseModel): - """ - ExtractorSettingsAPIDTO - """ # noqa: E501 - connectors: Optional[List[ExtractorSettingAPIDTO]] = Field(default=None, description="A list of all data connectors in the production environment and their settings.") - __properties: ClassVar[List[str]] = ["connectors"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExtractorSettingsAPIDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in connectors (list) - _items = [] - if self.connectors: - for _item_connectors in self.connectors: - if _item_connectors: - _items.append(_item_connectors.to_dict()) - _dict['connectors'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExtractorSettingsAPIDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "connectors": [ExtractorSettingAPIDTO.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/fusion_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/fusion_auth_params_dto.py deleted file mode 100644 index b3c7d073fd..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/fusion_auth_params_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class FusionAuthParamsDTO(BaseModel): - """ - FusionAuthParamsDTO - """ # noqa: E501 - host_domain_name: Optional[StrictStr] = Field(default=None, alias="hostDomainName") - password: Optional[StrictStr] = None - username: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["hostDomainName", "password", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FusionAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FusionAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "hostDomainName": obj.get("hostDomainName"), - "password": obj.get("password"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/gong_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/gong_auth_params_dto.py deleted file mode 100644 index 0f83600287..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/gong_auth_params_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GongAuthParamsDTO(BaseModel): - """ - GongAuthParamsDTO - """ # noqa: E501 - client_id: Optional[StrictStr] = Field(default=None, alias="clientId") - client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") - __properties: ClassVar[List[str]] = ["clientId", "clientSecret"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GongAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GongAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "clientId": obj.get("clientId"), - "clientSecret": obj.get("clientSecret") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/google_protobuf_any.py b/src/visier_api_data_in/visier_api_data_in/models/google_protobuf_any.py deleted file mode 100644 index 29988b116a..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/google_protobuf_any.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GoogleProtobufAny(BaseModel): - """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. - """ # noqa: E501 - type: Optional[StrictStr] = Field(default=None, description="The type of the serialized message.", alias="@type") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["@type"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GoogleProtobufAny from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - * Fields in `self.additional_properties` are added to the output dict. - """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GoogleProtobufAny from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "@type": obj.get("@type") - }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/google_sheets_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/google_sheets_auth_params_dto.py deleted file mode 100644 index 20251b656d..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/google_sheets_auth_params_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GoogleSheetsAuthParamsDTO(BaseModel): - """ - GoogleSheetsAuthParamsDTO - """ # noqa: E501 - auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") - client_id: Optional[StrictStr] = Field(default=None, alias="clientId") - client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") - configuration: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["authCode", "clientId", "clientSecret", "configuration"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GoogleSheetsAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GoogleSheetsAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "authCode": obj.get("authCode"), - "clientId": obj.get("clientId"), - "clientSecret": obj.get("clientSecret"), - "configuration": obj.get("configuration") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/google_workspace_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/google_workspace_auth_params_dto.py deleted file mode 100644 index 60023e9ca5..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/google_workspace_auth_params_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GoogleWorkspaceAuthParamsDTO(BaseModel): - """ - GoogleWorkspaceAuthParamsDTO - """ # noqa: E501 - auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") - client_id: Optional[StrictStr] = Field(default=None, alias="clientId") - client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") - privacy_mode: Optional[StrictStr] = Field(default=None, alias="privacyMode") - service_account: Optional[StrictStr] = Field(default=None, alias="serviceAccount") - __properties: ClassVar[List[str]] = ["authCode", "clientId", "clientSecret", "privacyMode", "serviceAccount"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GoogleWorkspaceAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GoogleWorkspaceAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "authCode": obj.get("authCode"), - "clientId": obj.get("clientId"), - "clientSecret": obj.get("clientSecret"), - "privacyMode": obj.get("privacyMode"), - "serviceAccount": obj.get("serviceAccount") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/greenhouse_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/greenhouse_auth_params_dto.py deleted file mode 100644 index b1d608f29d..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/greenhouse_auth_params_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GreenhouseAuthParamsDTO(BaseModel): - """ - GreenhouseAuthParamsDTO - """ # noqa: E501 - api_key: Optional[StrictStr] = Field(default=None, alias="apiKey") - __properties: ClassVar[List[str]] = ["apiKey"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GreenhouseAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GreenhouseAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "apiKey": obj.get("apiKey") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/icims_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/icims_auth_params_dto.py deleted file mode 100644 index 6888ffebca..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/icims_auth_params_dto.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class IcimsAuthParamsDTO(BaseModel): - """ - IcimsAuthParamsDTO - """ # noqa: E501 - client_id: Optional[StrictStr] = Field(default=None, alias="clientId") - client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") - customer_id: Optional[StrictStr] = Field(default=None, alias="customerId") - password: Optional[StrictStr] = None - region: Optional[StrictStr] = None - username: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["clientId", "clientSecret", "customerId", "password", "region", "username"] - - @field_validator('region') - def region_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['US', 'EU', 'CA', 'ISV']): - raise ValueError("must be one of enum values ('US', 'EU', 'CA', 'ISV')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of IcimsAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of IcimsAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "clientId": obj.get("clientId"), - "clientSecret": obj.get("clientSecret"), - "customerId": obj.get("customerId"), - "password": obj.get("password"), - "region": obj.get("region"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/import_definition_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/import_definition_apidto.py deleted file mode 100644 index c4c3de6916..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/import_definition_apidto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ImportDefinitionAPIDTO(BaseModel): - """ - ImportDefinitionAPIDTO - """ # noqa: E501 - connector_id: Optional[StrictStr] = Field(default=None, description="The ID associated with the data connector.", alias="connectorId") - credential_id: Optional[StrictStr] = Field(default=None, description="The ID associated with the connector credentials currently assigned to this data connector.", alias="credentialId") - display_name: Optional[StrictStr] = Field(default=None, description="An identifiable data connector name that is displayed within Visier.", alias="displayName") - __properties: ClassVar[List[str]] = ["connectorId", "credentialId", "displayName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ImportDefinitionAPIDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ImportDefinitionAPIDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "connectorId": obj.get("connectorId"), - "credentialId": obj.get("credentialId"), - "displayName": obj.get("displayName") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/import_definitions_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/import_definitions_apidto.py deleted file mode 100644 index 3fa27cc3de..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/import_definitions_apidto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.import_definition_apidto import ImportDefinitionAPIDTO -from typing import Optional, Set -from typing_extensions import Self - -class ImportDefinitionsAPIDTO(BaseModel): - """ - ImportDefinitionsAPIDTO - """ # noqa: E501 - data_connectors: Optional[List[ImportDefinitionAPIDTO]] = Field(default=None, description="A list of objects representing all the available data connectors in Production.", alias="dataConnectors") - limit: Optional[StrictInt] = Field(default=None, description="The number of data connectors to return. The maximum number of data connectors to return is 1000.") - start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving values from, also known as offset. The index begins at 0.") - __properties: ClassVar[List[str]] = ["dataConnectors", "limit", "start"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ImportDefinitionsAPIDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data_connectors (list) - _items = [] - if self.data_connectors: - for _item_data_connectors in self.data_connectors: - if _item_data_connectors: - _items.append(_item_data_connectors.to_dict()) - _dict['dataConnectors'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ImportDefinitionsAPIDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataConnectors": [ImportDefinitionAPIDTO.from_dict(_item) for _item in obj["dataConnectors"]] if obj.get("dataConnectors") is not None else None, - "limit": obj.get("limit"), - "start": obj.get("start") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/include_data_uploads_request.py b/src/visier_api_data_in/visier_api_data_in/models/include_data_uploads_request.py deleted file mode 100644 index b9e2f7e63b..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/include_data_uploads_request.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.upload_to_include import UploadToInclude -from typing import Optional, Set -from typing_extensions import Self - -class IncludeDataUploadsRequest(BaseModel): - """ - IncludeDataUploadsRequest - """ # noqa: E501 - uploads: Optional[List[UploadToInclude]] = Field(default=None, description="A list of objects representing the data uploads to include for a particular analytic tenant.") - __properties: ClassVar[List[str]] = ["uploads"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of IncludeDataUploadsRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in uploads (list) - _items = [] - if self.uploads: - for _item_uploads in self.uploads: - if _item_uploads: - _items.append(_item_uploads.to_dict()) - _dict['uploads'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of IncludeDataUploadsRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "uploads": [UploadToInclude.from_dict(_item) for _item in obj["uploads"]] if obj.get("uploads") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/internal_s3_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/internal_s3_auth_params_dto.py deleted file mode 100644 index 6539e9f78c..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/internal_s3_auth_params_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class InternalS3AuthParamsDTO(BaseModel): - """ - InternalS3AuthParamsDTO - """ # noqa: E501 - bucket_name: Optional[StrictStr] = Field(default=None, alias="bucketName") - path: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["bucketName", "path"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of InternalS3AuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of InternalS3AuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "bucketName": obj.get("bucketName"), - "path": obj.get("path") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/jdbc_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/jdbc_auth_params_dto.py deleted file mode 100644 index b9f75dbcc5..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/jdbc_auth_params_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class JdbcAuthParamsDTO(BaseModel): - """ - JdbcAuthParamsDTO - """ # noqa: E501 - jdbc_connect_string: Optional[StrictStr] = Field(default=None, alias="jdbcConnectString") - password: Optional[StrictStr] = None - username: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["jdbcConnectString", "password", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of JdbcAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of JdbcAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "jdbcConnectString": obj.get("jdbcConnectString"), - "password": obj.get("password"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/jira_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/jira_auth_params_dto.py deleted file mode 100644 index 260f0e33d3..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/jira_auth_params_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.jira_connect_params_dto import JiraConnectParamsDTO -from typing import Optional, Set -from typing_extensions import Self - -class JiraAuthParamsDTO(BaseModel): - """ - JiraAuthParamsDTO - """ # noqa: E501 - api_token: Optional[StrictStr] = Field(default=None, alias="apiToken") - connect_params: Optional[JiraConnectParamsDTO] = Field(default=None, alias="connectParams") - host_name: Optional[StrictStr] = Field(default=None, alias="hostName") - __properties: ClassVar[List[str]] = ["apiToken", "connectParams", "hostName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of JiraAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of connect_params - if self.connect_params: - _dict['connectParams'] = self.connect_params.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of JiraAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "apiToken": obj.get("apiToken"), - "connectParams": JiraConnectParamsDTO.from_dict(obj["connectParams"]) if obj.get("connectParams") is not None else None, - "hostName": obj.get("hostName") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/jira_connect_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/jira_connect_params_dto.py deleted file mode 100644 index 0b164c8990..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/jira_connect_params_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class JiraConnectParamsDTO(BaseModel): - """ - JiraConnectParamsDTO - """ # noqa: E501 - app_key: Optional[StrictStr] = Field(default=None, alias="appKey") - client_key: Optional[StrictStr] = Field(default=None, alias="clientKey") - shared_secret: Optional[StrictStr] = Field(default=None, alias="sharedSecret") - __properties: ClassVar[List[str]] = ["appKey", "clientKey", "sharedSecret"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of JiraConnectParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of JiraConnectParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "appKey": obj.get("appKey"), - "clientKey": obj.get("clientKey"), - "sharedSecret": obj.get("sharedSecret") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/job_cancellation_result_dto.py b/src/visier_api_data_in/visier_api_data_in/models/job_cancellation_result_dto.py deleted file mode 100644 index b818f2d3bb..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/job_cancellation_result_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class JobCancellationResultDTO(BaseModel): - """ - JobCancellationResultDTO - """ # noqa: E501 - cancel_status: Optional[StrictStr] = Field(default=None, description="The status of the cancellation.", alias="cancelStatus") - job_id: Optional[StrictStr] = Field(default=None, description="The job ID of the job that the cancel operation was conducted for.", alias="jobId") - job_status: Optional[StrictStr] = Field(default=None, description="The job status after the cancel operation. If successful, the status is either Cancelled or Cancelling.", alias="jobStatus") - job_type: Optional[StrictStr] = Field(default=None, description="The job type associated with the job ID.", alias="jobType") - message: Optional[StrictStr] = Field(default=None, description="If applicable, the message explains what errors occurred while cancelling the jobs.") - parent_job_id: Optional[StrictStr] = Field(default=None, description="If applicable, the job ID of the job that spawned the given job.", alias="parentJobId") - tenant_code: Optional[StrictStr] = Field(default=None, description="The analytic tenant whose job the cancel operation was conducted for.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["cancelStatus", "jobId", "jobStatus", "jobType", "message", "parentJobId", "tenantCode"] - - @field_validator('cancel_status') - def cancel_status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['CANCEL_FAILED', 'CANCEL_SUCCEEDED']): - raise ValueError("must be one of enum values ('CANCEL_FAILED', 'CANCEL_SUCCEEDED')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of JobCancellationResultDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of JobCancellationResultDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "cancelStatus": obj.get("cancelStatus"), - "jobId": obj.get("jobId"), - "jobStatus": obj.get("jobStatus"), - "jobType": obj.get("jobType"), - "message": obj.get("message"), - "parentJobId": obj.get("parentJobId"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/job_cancellation_results_dto.py b/src/visier_api_data_in/visier_api_data_in/models/job_cancellation_results_dto.py deleted file mode 100644 index f5da2af82c..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/job_cancellation_results_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.job_cancellation_result_dto import JobCancellationResultDTO -from typing import Optional, Set -from typing_extensions import Self - -class JobCancellationResultsDTO(BaseModel): - """ - JobCancellationResultsDTO - """ # noqa: E501 - job_cancellation_results: Optional[List[JobCancellationResultDTO]] = Field(default=None, description="A list of objects representing the job cancellation results.", alias="jobCancellationResults") - __properties: ClassVar[List[str]] = ["jobCancellationResults"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of JobCancellationResultsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in job_cancellation_results (list) - _items = [] - if self.job_cancellation_results: - for _item_job_cancellation_results in self.job_cancellation_results: - if _item_job_cancellation_results: - _items.append(_item_job_cancellation_results.to_dict()) - _dict['jobCancellationResults'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of JobCancellationResultsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "jobCancellationResults": [JobCancellationResultDTO.from_dict(_item) for _item in obj["jobCancellationResults"]] if obj.get("jobCancellationResults") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/job_id_response.py b/src/visier_api_data_in/visier_api_data_in/models/job_id_response.py deleted file mode 100644 index 5e7fc443b1..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/job_id_response.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class JobIdResponse(BaseModel): - """ - The unique identifier of the returned job. - """ # noqa: E501 - job_id: Optional[StrictStr] = Field(default=None, alias="jobId") - __properties: ClassVar[List[str]] = ["jobId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of JobIdResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of JobIdResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "jobId": obj.get("jobId") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/job_status_list_response.py b/src/visier_api_data_in/visier_api_data_in/models/job_status_list_response.py deleted file mode 100644 index 392a6b8f70..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/job_status_list_response.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.job_status_with_start_time import JobStatusWithStartTime -from typing import Optional, Set -from typing_extensions import Self - -class JobStatusListResponse(BaseModel): - """ - JobStatusListResponse - """ # noqa: E501 - job_status: Optional[List[JobStatusWithStartTime]] = Field(default=None, description="The specific status to restrict the list of jobs to.", alias="jobStatus") - query_end_time: Optional[StrictStr] = Field(default=None, description="The end time from which to retrieve job statuses.", alias="queryEndTime") - query_start_time: Optional[StrictStr] = Field(default=None, description="The start time from which to retrieve job statuses.", alias="queryStartTime") - __properties: ClassVar[List[str]] = ["jobStatus", "queryEndTime", "queryStartTime"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of JobStatusListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in job_status (list) - _items = [] - if self.job_status: - for _item_job_status in self.job_status: - if _item_job_status: - _items.append(_item_job_status.to_dict()) - _dict['jobStatus'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of JobStatusListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "jobStatus": [JobStatusWithStartTime.from_dict(_item) for _item in obj["jobStatus"]] if obj.get("jobStatus") is not None else None, - "queryEndTime": obj.get("queryEndTime"), - "queryStartTime": obj.get("queryStartTime") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/job_status_with_start_time.py b/src/visier_api_data_in/visier_api_data_in/models/job_status_with_start_time.py deleted file mode 100644 index bcdb265506..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/job_status_with_start_time.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class JobStatusWithStartTime(BaseModel): - """ - JobStatusWithStartTime - """ # noqa: E501 - job_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the job.", alias="jobId") - job_type: Optional[StrictStr] = Field(default=None, description="The type of the job, such as a processing job or receiving job.", alias="jobType") - start_time: Optional[StrictStr] = Field(default=None, description="The time that the job started.", alias="startTime") - status: Optional[StrictStr] = Field(default=None, description="The status of the job, such as Running or Completed.") - tenant: Optional[StrictStr] = Field(default=None, description="The tenant code.") - __properties: ClassVar[List[str]] = ["jobId", "jobType", "startTime", "status", "tenant"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of JobStatusWithStartTime from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of JobStatusWithStartTime from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "jobId": obj.get("jobId"), - "jobType": obj.get("jobType"), - "startTime": obj.get("startTime"), - "status": obj.get("status"), - "tenant": obj.get("tenant") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/key_pair_delete_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/key_pair_delete_response_dto.py deleted file mode 100644 index 2878759a81..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/key_pair_delete_response_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class KeyPairDeleteResponseDTO(BaseModel): - """ - KeyPairDeleteResponseDTO - """ # noqa: E501 - key_id: Optional[StrictStr] = Field(default=None, description="The key ID in 16-letter hexadecimal format, including leading zeros.", alias="keyID") - __properties: ClassVar[List[str]] = ["keyID"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of KeyPairDeleteResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of KeyPairDeleteResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "keyID": obj.get("keyID") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/key_pair_generate_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/key_pair_generate_request_dto.py deleted file mode 100644 index 03d79069dc..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/key_pair_generate_request_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class KeyPairGenerateRequestDTO(BaseModel): - """ - KeyPairGenerateRequestDTO - """ # noqa: E501 - expiration_date: Optional[StrictStr] = Field(default=None, description="The UTC expiration date of the key in ISO-8601 format. Must be between 2 and 10 years. Default is 2 years.", alias="expirationDate") - __properties: ClassVar[List[str]] = ["expirationDate"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of KeyPairGenerateRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of KeyPairGenerateRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "expirationDate": obj.get("expirationDate") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/lever_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/lever_auth_params_dto.py deleted file mode 100644 index a653cbdede..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/lever_auth_params_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class LeverAuthParamsDTO(BaseModel): - """ - LeverAuthParamsDTO - """ # noqa: E501 - api_key: Optional[StrictStr] = Field(default=None, alias="apiKey") - __properties: ClassVar[List[str]] = ["apiKey"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of LeverAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of LeverAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "apiKey": obj.get("apiKey") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/medallia_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/medallia_auth_params_dto.py deleted file mode 100644 index e62e83fcfd..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/medallia_auth_params_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class MedalliaAuthParamsDTO(BaseModel): - """ - MedalliaAuthParamsDTO - """ # noqa: E501 - client_id: Optional[StrictStr] = Field(default=None, alias="clientId") - client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") - instance_url: Optional[StrictStr] = Field(default=None, alias="instanceUrl") - tenant_domain_name: Optional[StrictStr] = Field(default=None, alias="tenantDomainName") - __properties: ClassVar[List[str]] = ["clientId", "clientSecret", "instanceUrl", "tenantDomainName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MedalliaAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MedalliaAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "clientId": obj.get("clientId"), - "clientSecret": obj.get("clientSecret"), - "instanceUrl": obj.get("instanceUrl"), - "tenantDomainName": obj.get("tenantDomainName") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/microsoft365_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/microsoft365_auth_params_dto.py deleted file mode 100644 index 8ac04c5a56..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/microsoft365_auth_params_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class Microsoft365AuthParamsDTO(BaseModel): - """ - Microsoft365AuthParamsDTO - """ # noqa: E501 - client_id: Optional[StrictStr] = Field(default=None, alias="clientId") - client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") - o_auth_tenant_id: Optional[StrictStr] = Field(default=None, alias="oAuthTenantId") - privacy_mode: Optional[StrictStr] = Field(default=None, alias="privacyMode") - __properties: ClassVar[List[str]] = ["clientId", "clientSecret", "oAuthTenantId", "privacyMode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Microsoft365AuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Microsoft365AuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "clientId": obj.get("clientId"), - "clientSecret": obj.get("clientSecret"), - "oAuthTenantId": obj.get("oAuthTenantId"), - "privacyMode": obj.get("privacyMode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/multiple_tenant_data_versions_details_dto.py b/src/visier_api_data_in/visier_api_data_in/models/multiple_tenant_data_versions_details_dto.py deleted file mode 100644 index ed65b83210..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/multiple_tenant_data_versions_details_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.data_version_and_date_dto import DataVersionAndDateDTO -from typing import Optional, Set -from typing_extensions import Self - -class MultipleTenantDataVersionsDetailsDTO(BaseModel): - """ - MultipleTenantDataVersionsDetailsDTO - """ # noqa: E501 - data_versions: Optional[List[DataVersionAndDateDTO]] = Field(default=None, description="The latest enabled data versions for the given analytic tenant. If the analytic tenant has no enabled data versions, an empty string \"\" is returned.", alias="dataVersions") - tenant_code: Optional[StrictStr] = Field(default=None, description="The owner of the data versions.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["dataVersions", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MultipleTenantDataVersionsDetailsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data_versions (list) - _items = [] - if self.data_versions: - for _item_data_versions in self.data_versions: - if _item_data_versions: - _items.append(_item_data_versions.to_dict()) - _dict['dataVersions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MultipleTenantDataVersionsDetailsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataVersions": [DataVersionAndDateDTO.from_dict(_item) for _item in obj["dataVersions"]] if obj.get("dataVersions") is not None else None, - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/multiple_tenant_data_versions_list_dto.py b/src/visier_api_data_in/visier_api_data_in/models/multiple_tenant_data_versions_list_dto.py deleted file mode 100644 index 8e7523412c..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/multiple_tenant_data_versions_list_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.multiple_tenant_data_versions_details_dto import MultipleTenantDataVersionsDetailsDTO -from typing import Optional, Set -from typing_extensions import Self - -class MultipleTenantDataVersionsListDTO(BaseModel): - """ - MultipleTenantDataVersionsListDTO - """ # noqa: E501 - limit: Optional[StrictInt] = Field(default=None, description="The number of analytic tenants to retrieve. The maximum number to retrieve is 1000.") - start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") - tenants: Optional[List[MultipleTenantDataVersionsDetailsDTO]] = Field(default=None, description="A list of analytic tenants and their latest enabled data versions.") - __properties: ClassVar[List[str]] = ["limit", "start", "tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MultipleTenantDataVersionsListDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MultipleTenantDataVersionsListDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "limit": obj.get("limit"), - "start": obj.get("start"), - "tenants": [MultipleTenantDataVersionsDetailsDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/my_sql_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/my_sql_auth_params_dto.py deleted file mode 100644 index 284ac0d391..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/my_sql_auth_params_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class MySqlAuthParamsDTO(BaseModel): - """ - MySqlAuthParamsDTO - """ # noqa: E501 - database: Optional[StrictStr] = None - host: Optional[StrictStr] = None - password: Optional[StrictStr] = None - port: Optional[StrictStr] = None - ssl_mode: Optional[StrictStr] = Field(default=None, alias="sslMode") - username: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["database", "host", "password", "port", "sslMode", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MySqlAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MySqlAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "database": obj.get("database"), - "host": obj.get("host"), - "password": obj.get("password"), - "port": obj.get("port"), - "sslMode": obj.get("sslMode"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/namely_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/namely_auth_params_dto.py deleted file mode 100644 index 1a850a8478..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/namely_auth_params_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class NamelyAuthParamsDTO(BaseModel): - """ - NamelyAuthParamsDTO - """ # noqa: E501 - auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") - __properties: ClassVar[List[str]] = ["authCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of NamelyAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of NamelyAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "authCode": obj.get("authCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/oracle_db_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/oracle_db_auth_params_dto.py deleted file mode 100644 index 7f2db87f11..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/oracle_db_auth_params_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class OracleDbAuthParamsDTO(BaseModel): - """ - OracleDbAuthParamsDTO - """ # noqa: E501 - host: Optional[StrictStr] = None - password: Optional[StrictStr] = None - port: Optional[StrictStr] = None - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") - username: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["host", "password", "port", "serviceName", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of OracleDbAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of OracleDbAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "host": obj.get("host"), - "password": obj.get("password"), - "port": obj.get("port"), - "serviceName": obj.get("serviceName"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/plan_data_load_change_dto.py b/src/visier_api_data_in/visier_api_data_in/models/plan_data_load_change_dto.py index e361563edc..2bbf7cc37d 100644 --- a/src/visier_api_data_in/visier_api_data_in/models/plan_data_load_change_dto.py +++ b/src/visier_api_data_in/visier_api_data_in/models/plan_data_load_change_dto.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/visier_api_data_in/models/plan_data_load_change_list_dto.py b/src/visier_api_data_in/visier_api_data_in/models/plan_data_load_change_list_dto.py index 3b042586a8..ed5e2f0447 100644 --- a/src/visier_api_data_in/visier_api_data_in/models/plan_data_load_change_list_dto.py +++ b/src/visier_api_data_in/visier_api_data_in/models/plan_data_load_change_list_dto.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/visier_api_data_in/models/plan_data_load_error_dto.py b/src/visier_api_data_in/visier_api_data_in/models/plan_data_load_error_dto.py deleted file mode 100644 index 916444a75f..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/plan_data_load_error_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PlanDataLoadErrorDTO(BaseModel): - """ - PlanDataLoadErrorDTO - """ # noqa: E501 - error_message: Optional[StrictStr] = Field(default=None, description="Information regarding the error and any actions that you could take to load the data correctly.", alias="errorMessage") - rci: Optional[StrictStr] = Field(default=None, description="An error code that can be provided to Visier Support to help investigate your issue.") - row: Optional[StrictInt] = Field(default=None, description="The row in the file that caused the error.") - __properties: ClassVar[List[str]] = ["errorMessage", "rci", "row"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanDataLoadErrorDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanDataLoadErrorDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "errorMessage": obj.get("errorMessage"), - "rci": obj.get("rci"), - "row": obj.get("row") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/plan_data_upload_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/plan_data_upload_response_dto.py index 175eade743..685801fbbc 100644 --- a/src/visier_api_data_in/visier_api_data_in/models/plan_data_upload_response_dto.py +++ b/src/visier_api_data_in/visier_api_data_in/models/plan_data_upload_response_dto.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -22,7 +22,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from visier_api_data_in.models.plan_data_load_change_list_dto import PlanDataLoadChangeListDTO -from visier_api_data_in.models.plan_data_load_error_dto import PlanDataLoadErrorDTO from typing import Optional, Set from typing_extensions import Self @@ -31,7 +30,7 @@ class PlanDataUploadResponseDTO(BaseModel): PlanDataUploadResponseDTO """ # noqa: E501 changelists: Optional[List[PlanDataLoadChangeListDTO]] = Field(default=None, description="The collection of changes grouped by plan item made during the data load process. This list only contains the changes specified by the load. If you indicated in the request that the changes are to be rolled up or distributed, the values modified as a result of the calculations are not listed here.") - errors: Optional[List[PlanDataLoadErrorDTO]] = Field(default=None, description="The collection of errors encountered during the data load process.") + errors: Optional[List[PlanningTransfersPlanDataLoadErrorDTO]] = Field(default=None, description="The collection of errors encountered during the data load process.") potential_updated_cells_count: Optional[StrictInt] = Field(default=None, description="The number of cells that would have been updated if all changes were saved.", alias="potentialUpdatedCellsCount") updated_cells_count: Optional[StrictInt] = Field(default=None, description="The number of cells that were updated from the data load process.", alias="updatedCellsCount") __properties: ClassVar[List[str]] = ["changelists", "errors", "potentialUpdatedCellsCount", "updatedCellsCount"] @@ -102,7 +101,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "changelists": [PlanDataLoadChangeListDTO.from_dict(_item) for _item in obj["changelists"]] if obj.get("changelists") is not None else None, - "errors": [PlanDataLoadErrorDTO.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "errors": [PlanningTransfersPlanDataLoadErrorDTO.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, "potentialUpdatedCellsCount": obj.get("potentialUpdatedCellsCount"), "updatedCellsCount": obj.get("updatedCellsCount") }) diff --git a/src/visier_api_data_in/visier_api_data_in/models/plan_row_data_load_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/plan_row_data_load_response_dto.py index 0542309211..bd4e4f4e2d 100644 --- a/src/visier_api_data_in/visier_api_data_in/models/plan_row_data_load_response_dto.py +++ b/src/visier_api_data_in/visier_api_data_in/models/plan_row_data_load_response_dto.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -21,8 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.plan_data_load_error_dto import PlanDataLoadErrorDTO -from visier_api_data_in.models.plan_segment_level_member_dto import PlanSegmentLevelMemberDTO from typing import Optional, Set from typing_extensions import Self @@ -31,8 +29,8 @@ class PlanRowDataLoadResponseDTO(BaseModel): PlanRowDataLoadResponseDTO """ # noqa: E501 added_rows_count: Optional[StrictInt] = Field(default=None, description="The number of rows added to the plan.", alias="addedRowsCount") - custom_members: Optional[List[PlanSegmentLevelMemberDTO]] = Field(default=None, description="The custom members and their corresponding IDs in the plan.", alias="customMembers") - errors: Optional[List[PlanDataLoadErrorDTO]] = Field(default=None, description="The errors that occurred while loading the data.") + custom_members: Optional[List[PlanningTransfersPlanSegmentLevelMemberDTO]] = Field(default=None, description="The custom members and their corresponding IDs in the plan.", alias="customMembers") + errors: Optional[List[PlanningTransfersPlanDataLoadErrorDTO]] = Field(default=None, description="The errors that occurred while loading the data.") potential_added_rows_count: Optional[StrictInt] = Field(default=None, description="The number of rows that could have been added to the plan.", alias="potentialAddedRowsCount") potential_removed_rows_count: Optional[StrictInt] = Field(default=None, description="The number of rows that could have been removed from the plan.", alias="potentialRemovedRowsCount") removed_rows_count: Optional[StrictInt] = Field(default=None, description="The number of rows removed from the plan.", alias="removedRowsCount") @@ -104,8 +102,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "addedRowsCount": obj.get("addedRowsCount"), - "customMembers": [PlanSegmentLevelMemberDTO.from_dict(_item) for _item in obj["customMembers"]] if obj.get("customMembers") is not None else None, - "errors": [PlanDataLoadErrorDTO.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "customMembers": [PlanningTransfersPlanSegmentLevelMemberDTO.from_dict(_item) for _item in obj["customMembers"]] if obj.get("customMembers") is not None else None, + "errors": [PlanningTransfersPlanDataLoadErrorDTO.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, "potentialAddedRowsCount": obj.get("potentialAddedRowsCount"), "potentialRemovedRowsCount": obj.get("potentialRemovedRowsCount"), "removedRowsCount": obj.get("removedRowsCount") diff --git a/src/visier_api_data_in/visier_api_data_in/models/plan_segment_level_member_dto.py b/src/visier_api_data_in/visier_api_data_in/models/plan_segment_level_member_dto.py deleted file mode 100644 index aacc1e3b5c..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/plan_segment_level_member_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PlanSegmentLevelMemberDTO(BaseModel): - """ - PlanSegmentLevelMemberDTO - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="The display name of the dimension member.", alias="displayName") - id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the dimension member.") - is_custom: Optional[StrictBool] = Field(default=None, description="If `true`, this is a custom member created for use in the plan and all its subplans.", alias="isCustom") - parent_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the dimension member's parent.", alias="parentId") - __properties: ClassVar[List[str]] = ["displayName", "id", "isCustom", "parentId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanSegmentLevelMemberDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanSegmentLevelMemberDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "id": obj.get("id"), - "isCustom": obj.get("isCustom"), - "parentId": obj.get("parentId") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/processing_job.py b/src/visier_api_data_in/visier_api_data_in/models/processing_job.py deleted file mode 100644 index c8ed29f2e0..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/processing_job.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ProcessingJob(BaseModel): - """ - ProcessingJob - """ # noqa: E501 - data_version: Optional[StrictStr] = Field(default=None, description="The data version associated with the processing job.", alias="dataVersion") - job_id: Optional[StrictStr] = Field(default=None, description="The job ID of the processing job for the analytic tenant.", alias="jobId") - message: Optional[StrictStr] = Field(default=None, description="A meaningful message about the processing job.") - status: Optional[StrictStr] = Field(default=None, description="The status of the receiving job for the analytic tenant.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The analytic tenant code.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["dataVersion", "jobId", "message", "status", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProcessingJob from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProcessingJob from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataVersion": obj.get("dataVersion"), - "jobId": obj.get("jobId"), - "message": obj.get("message"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/processing_job_and_status_response.py b/src/visier_api_data_in/visier_api_data_in/models/processing_job_and_status_response.py deleted file mode 100644 index ac57b0dc16..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/processing_job_and_status_response.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.processing_job import ProcessingJob -from typing import Optional, Set -from typing_extensions import Self - -class ProcessingJobAndStatusResponse(BaseModel): - """ - ProcessingJobAndStatusResponse - """ # noqa: E501 - limit: Optional[StrictInt] = Field(default=None, description="The number of processing jobs to return. The maximum number of jobs to return is 1000.") - parent_job_id: Optional[StrictStr] = Field(default=None, description="The ID of the dispatching job that generated the extraction jobs.", alias="parentJobId") - parent_tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant that owns the dispatching job. This is usually the administrating tenant.", alias="parentTenantCode") - processing_jobs: Optional[List[ProcessingJob]] = Field(default=None, description="A list of processing job information.", alias="processingJobs") - start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") - __properties: ClassVar[List[str]] = ["limit", "parentJobId", "parentTenantCode", "processingJobs", "start"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProcessingJobAndStatusResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in processing_jobs (list) - _items = [] - if self.processing_jobs: - for _item_processing_jobs in self.processing_jobs: - if _item_processing_jobs: - _items.append(_item_processing_jobs.to_dict()) - _dict['processingJobs'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProcessingJobAndStatusResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "limit": obj.get("limit"), - "parentJobId": obj.get("parentJobId"), - "parentTenantCode": obj.get("parentTenantCode"), - "processingJobs": [ProcessingJob.from_dict(_item) for _item in obj["processingJobs"]] if obj.get("processingJobs") is not None else None, - "start": obj.get("start") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/processing_job_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/processing_job_request_dto.py deleted file mode 100644 index e56b68f90d..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/processing_job_request_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ProcessingJobRequestDTO(BaseModel): - """ - ProcessingJobRequestDTO - """ # noqa: E501 - all_tenants: Optional[StrictBool] = Field(default=None, description="If `true`, runs processing jobs for all accessible analytic tenants. Default is `false`. Only valid for requests from an administrating tenant.", alias="allTenants") - data_category_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the data category to run the job. If omitted, runs a job using the primary data category. To retrieve a list of all data categories, see `GET /v1/op/data/categories`.", alias="dataCategoryId") - excluded_tenants: Optional[List[StrictStr]] = Field(default=None, description="The unique IDs of the tenants to exclude from the extraction job. Only valid if `allTenants` is \"true\". Only valid for requests from an administrating tenant.", alias="excludedTenants") - publish_to_production: Optional[StrictBool] = Field(default=None, description="If `true`, publishes the generated data version to production. Default is `false`.", alias="publishToProduction") - tenants: Optional[List[StrictStr]] = Field(default=None, description="The tenant codes of the tenants to run processing jobs for. If omitted, runs a processing job for the tenant associated with the user who made the API request. Only valid for requests from an administrating tenant.") - __properties: ClassVar[List[str]] = ["allTenants", "dataCategoryId", "excludedTenants", "publishToProduction", "tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProcessingJobRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProcessingJobRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "allTenants": obj.get("allTenants"), - "dataCategoryId": obj.get("dataCategoryId"), - "excludedTenants": obj.get("excludedTenants"), - "publishToProduction": obj.get("publishToProduction"), - "tenants": obj.get("tenants") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/processing_job_status_response.py b/src/visier_api_data_in/visier_api_data_in/models/processing_job_status_response.py deleted file mode 100644 index 5ac39e1e75..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/processing_job_status_response.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.processing_job import ProcessingJob -from typing import Optional, Set -from typing_extensions import Self - -class ProcessingJobStatusResponse(BaseModel): - """ - ProcessingJobStatusResponse - """ # noqa: E501 - limit: Optional[StrictInt] = Field(default=None, description="The limit of processing jobs to retrieve per page.") - parent_job_id: Optional[StrictStr] = Field(default=None, description="The job ID of the receiving job that spawned this job.", alias="parentJobId") - parent_tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the receiving job that spawned this job.", alias="parentTenantCode") - processing_jobs: Optional[List[ProcessingJob]] = Field(default=None, description="A list of objects representing the processing jobs to retrieve.", alias="processingJobs") - start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") - __properties: ClassVar[List[str]] = ["limit", "parentJobId", "parentTenantCode", "processingJobs", "start"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ProcessingJobStatusResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in processing_jobs (list) - _items = [] - if self.processing_jobs: - for _item_processing_jobs in self.processing_jobs: - if _item_processing_jobs: - _items.append(_item_processing_jobs.to_dict()) - _dict['processingJobs'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ProcessingJobStatusResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "limit": obj.get("limit"), - "parentJobId": obj.get("parentJobId"), - "parentTenantCode": obj.get("parentTenantCode"), - "processingJobs": [ProcessingJob.from_dict(_item) for _item in obj["processingJobs"]] if obj.get("processingJobs") is not None else None, - "start": obj.get("start") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/public_key_dto.py b/src/visier_api_data_in/visier_api_data_in/models/public_key_dto.py deleted file mode 100644 index 8108169bae..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/public_key_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PublicKeyDTO(BaseModel): - """ - PublicKeyDTO - """ # noqa: E501 - date_generated: Optional[StrictStr] = Field(default=None, description="The UTC date that the key pair was generated in milliseconds since the Unix epoch.", alias="dateGenerated") - expiry_date: Optional[StrictStr] = Field(default=None, description="The UTC expiration date of the key in milliseconds since the Unix epoch.", alias="expiryDate") - key_id: Optional[StrictStr] = Field(default=None, description="The key ID of the generated key pair in 16-letter hexadecimal format, including leading zeros.", alias="keyID") - public_key: Optional[StrictStr] = Field(default=None, description="The public key of the generated key pair.", alias="publicKey") - recipient: Optional[StrictStr] = Field(default=None, description="The tenant code and creation date in milliseconds of the PGP key; for example, WFF_j1r_13490234234.") - __properties: ClassVar[List[str]] = ["dateGenerated", "expiryDate", "keyID", "publicKey", "recipient"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PublicKeyDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PublicKeyDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dateGenerated": obj.get("dateGenerated"), - "expiryDate": obj.get("expiryDate"), - "keyID": obj.get("keyID"), - "publicKey": obj.get("publicKey"), - "recipient": obj.get("recipient") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/public_keys_dto.py b/src/visier_api_data_in/visier_api_data_in/models/public_keys_dto.py deleted file mode 100644 index b712c8fb3f..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/public_keys_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.public_key_dto import PublicKeyDTO -from typing import Optional, Set -from typing_extensions import Self - -class PublicKeysDTO(BaseModel): - """ - PublicKeysDTO - """ # noqa: E501 - keys: Optional[List[PublicKeyDTO]] = Field(default=None, description="A list of the tenant's public keys.") - __properties: ClassVar[List[str]] = ["keys"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PublicKeysDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in keys (list) - _items = [] - if self.keys: - for _item_keys in self.keys: - if _item_keys: - _items.append(_item_keys.to_dict()) - _dict['keys'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PublicKeysDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "keys": [PublicKeyDTO.from_dict(_item) for _item in obj["keys"]] if obj.get("keys") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/push_data_cancel_response.py b/src/visier_api_data_in/visier_api_data_in/models/push_data_cancel_response.py deleted file mode 100644 index 318b10c476..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/push_data_cancel_response.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.data_transfer_result_detail import DataTransferResultDetail -from typing import Optional, Set -from typing_extensions import Self - -class PushDataCancelResponse(BaseModel): - """ - PushDataCancelResponse - """ # noqa: E501 - data_transfer_result_details: Optional[List[DataTransferResultDetail]] = Field(default=None, description="A list of objects representing the results of the transfer session.", alias="dataTransferResultDetails") - message: Optional[StrictStr] = Field(default=None, description="A meaningful message about the transfer session.") - status: Optional[StrictStr] = Field(default=None, description="The status of the transfer session. A cancelled session returns the status CANCELLED.") - transfer_session_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the transfer session.", alias="transferSessionId") - __properties: ClassVar[List[str]] = ["dataTransferResultDetails", "message", "status", "transferSessionId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PushDataCancelResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data_transfer_result_details (list) - _items = [] - if self.data_transfer_result_details: - for _item_data_transfer_result_details in self.data_transfer_result_details: - if _item_data_transfer_result_details: - _items.append(_item_data_transfer_result_details.to_dict()) - _dict['dataTransferResultDetails'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PushDataCancelResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataTransferResultDetails": [DataTransferResultDetail.from_dict(_item) for _item in obj["dataTransferResultDetails"]] if obj.get("dataTransferResultDetails") is not None else None, - "message": obj.get("message"), - "status": obj.get("status"), - "transferSessionId": obj.get("transferSessionId") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/push_data_column_definition_dto.py b/src/visier_api_data_in/visier_api_data_in/models/push_data_column_definition_dto.py deleted file mode 100644 index 32f8af603e..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/push_data_column_definition_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PushDataColumnDefinitionDTO(BaseModel): - """ - Definition of the source column. - """ # noqa: E501 - allow_empty: Optional[StrictBool] = Field(default=None, description="If true, the column allows an empty value for the record.", alias="allowEmpty") - column_name: Optional[StrictStr] = Field(default=None, description="The name of the column.", alias="columnName") - data_formats: Optional[List[StrictStr]] = Field(default=None, description="The expected format for datetime data types.", alias="dataFormats") - data_type: Optional[StrictStr] = Field(default=None, description="The data type associated with the column.", alias="dataType") - default_value: Optional[StrictStr] = Field(default=None, description="The default value of the column.", alias="defaultValue") - is_mandatory: Optional[StrictBool] = Field(default=None, description="If true, the column value is required. If a column is mandatory, and the file is missing this column, the request will fail.", alias="isMandatory") - __properties: ClassVar[List[str]] = ["allowEmpty", "columnName", "dataFormats", "dataType", "defaultValue", "isMandatory"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PushDataColumnDefinitionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PushDataColumnDefinitionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "allowEmpty": obj.get("allowEmpty"), - "columnName": obj.get("columnName"), - "dataFormats": obj.get("dataFormats"), - "dataType": obj.get("dataType"), - "defaultValue": obj.get("defaultValue"), - "isMandatory": obj.get("isMandatory") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/push_data_complete_request.py b/src/visier_api_data_in/visier_api_data_in/models/push_data_complete_request.py deleted file mode 100644 index edf659e0a1..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/push_data_complete_request.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PushDataCompleteRequest(BaseModel): - """ - PushDataCompleteRequest - """ # noqa: E501 - processing_data: Optional[StrictBool] = Field(default=None, description="If `true`, a processing job will be triggered after the receiving job successfully completes. This generates a new data version.", alias="processingData") - transfer_session_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the transfer session.", alias="transferSessionId") - __properties: ClassVar[List[str]] = ["processingData", "transferSessionId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PushDataCompleteRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PushDataCompleteRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "processingData": obj.get("processingData"), - "transferSessionId": obj.get("transferSessionId") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/push_data_complete_response.py b/src/visier_api_data_in/visier_api_data_in/models/push_data_complete_response.py deleted file mode 100644 index 765ac46348..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/push_data_complete_response.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.data_transfer_result_detail import DataTransferResultDetail -from typing import Optional, Set -from typing_extensions import Self - -class PushDataCompleteResponse(BaseModel): - """ - PushDataCompleteResponse - """ # noqa: E501 - data_receiving_job_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the receiving job.", alias="dataReceivingJobId") - data_transfer_result_details: Optional[List[DataTransferResultDetail]] = Field(default=None, description="A list of objects representing the results of the transfer session.", alias="dataTransferResultDetails") - message: Optional[StrictStr] = Field(default=None, description="A meaningful message about the transfer session.") - status: Optional[StrictStr] = Field(default=None, description="The status of the transfer session. A completed session returns the status SUCCEED.") - transfer_session_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the transfer session.", alias="transferSessionId") - __properties: ClassVar[List[str]] = ["dataReceivingJobId", "dataTransferResultDetails", "message", "status", "transferSessionId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PushDataCompleteResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data_transfer_result_details (list) - _items = [] - if self.data_transfer_result_details: - for _item_data_transfer_result_details in self.data_transfer_result_details: - if _item_data_transfer_result_details: - _items.append(_item_data_transfer_result_details.to_dict()) - _dict['dataTransferResultDetails'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PushDataCompleteResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataReceivingJobId": obj.get("dataReceivingJobId"), - "dataTransferResultDetails": [DataTransferResultDetail.from_dict(_item) for _item in obj["dataTransferResultDetails"]] if obj.get("dataTransferResultDetails") is not None else None, - "message": obj.get("message"), - "status": obj.get("status"), - "transferSessionId": obj.get("transferSessionId") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/push_data_response.py b/src/visier_api_data_in/visier_api_data_in/models/push_data_response.py deleted file mode 100644 index 2e9030913e..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/push_data_response.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.tenant import Tenant -from typing import Optional, Set -from typing_extensions import Self - -class PushDataResponse(BaseModel): - """ - PushDataResponse - """ # noqa: E501 - message: Optional[StrictStr] = Field(default=None, description="Any additional information about the data transfer.") - sequence: Optional[StrictInt] = Field(default=None, description="The unique sequence number associated with a batch of records.") - status: Optional[StrictStr] = Field(default=None, description="The status of the data transfer.") - tenants: Optional[List[Tenant]] = Field(default=None, description="A list of strings representing the tenants that data was pushed to and their data transfer results.") - transfer_session_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the transfer session.", alias="transferSessionId") - __properties: ClassVar[List[str]] = ["message", "sequence", "status", "tenants", "transferSessionId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PushDataResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PushDataResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "message": obj.get("message"), - "sequence": obj.get("sequence"), - "status": obj.get("status"), - "tenants": [Tenant.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None, - "transferSessionId": obj.get("transferSessionId") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/push_data_source_definition_dto.py b/src/visier_api_data_in/visier_api_data_in/models/push_data_source_definition_dto.py deleted file mode 100644 index b83b799eeb..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/push_data_source_definition_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.push_data_column_definition_dto import PushDataColumnDefinitionDTO -from typing import Optional, Set -from typing_extensions import Self - -class PushDataSourceDefinitionDTO(BaseModel): - """ - Details of each existing source. - """ # noqa: E501 - columns: Optional[List[PushDataColumnDefinitionDTO]] = Field(default=None, description="A list of objects representing the source columns.") - is_inherited: Optional[StrictBool] = Field(default=None, description="If true, the source is inherited by all analytic tenants.", alias="isInherited") - name: Optional[StrictStr] = Field(default=None, description="The object name of the source.") - source_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the source.", alias="sourceId") - __properties: ClassVar[List[str]] = ["columns", "isInherited", "name", "sourceId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PushDataSourceDefinitionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in columns (list) - _items = [] - if self.columns: - for _item_columns in self.columns: - if _item_columns: - _items.append(_item_columns.to_dict()) - _dict['columns'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PushDataSourceDefinitionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "columns": [PushDataColumnDefinitionDTO.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None, - "isInherited": obj.get("isInherited"), - "name": obj.get("name"), - "sourceId": obj.get("sourceId") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/push_data_source_definitions_dto.py b/src/visier_api_data_in/visier_api_data_in/models/push_data_source_definitions_dto.py deleted file mode 100644 index 048fdd1ead..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/push_data_source_definitions_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.push_data_source_definition_dto import PushDataSourceDefinitionDTO -from typing import Optional, Set -from typing_extensions import Self - -class PushDataSourceDefinitionsDTO(BaseModel): - """ - The existing sources. - """ # noqa: E501 - sources: Optional[List[PushDataSourceDefinitionDTO]] = Field(default=None, description="A list of objects representing the target sources for the request.") - __properties: ClassVar[List[str]] = ["sources"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PushDataSourceDefinitionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in sources (list) - _items = [] - if self.sources: - for _item_sources in self.sources: - if _item_sources: - _items.append(_item_sources.to_dict()) - _dict['sources'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PushDataSourceDefinitionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "sources": [PushDataSourceDefinitionDTO.from_dict(_item) for _item in obj["sources"]] if obj.get("sources") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/qualtrics_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/qualtrics_auth_params_dto.py deleted file mode 100644 index 93aa1901e6..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/qualtrics_auth_params_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class QualtricsAuthParamsDTO(BaseModel): - """ - QualtricsAuthParamsDTO - """ # noqa: E501 - api_token: Optional[StrictStr] = Field(default=None, alias="apiToken") - data_center_id: Optional[StrictStr] = Field(default=None, alias="dataCenterId") - __properties: ClassVar[List[str]] = ["apiToken", "dataCenterId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QualtricsAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QualtricsAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "apiToken": obj.get("apiToken"), - "dataCenterId": obj.get("dataCenterId") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/receiving_job.py b/src/visier_api_data_in/visier_api_data_in/models/receiving_job.py deleted file mode 100644 index c76dd6f043..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/receiving_job.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ReceivingJob(BaseModel): - """ - ReceivingJob - """ # noqa: E501 - receiving_job_id: Optional[StrictStr] = Field(default=None, description="The job ID of the receiving job for the analytic tenant.", alias="receivingJobId") - status: Optional[StrictStr] = Field(default=None, description="The status of the receiving job for the analytic tenant.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The analytic tenant code.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["receivingJobId", "status", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ReceivingJob from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ReceivingJob from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "receivingJobId": obj.get("receivingJobId"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/receiving_job_and_status_response.py b/src/visier_api_data_in/visier_api_data_in/models/receiving_job_and_status_response.py deleted file mode 100644 index ec1e0e1902..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/receiving_job_and_status_response.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.receiving_job import ReceivingJob -from typing import Optional, Set -from typing_extensions import Self - -class ReceivingJobAndStatusResponse(BaseModel): - """ - ReceivingJobAndStatusResponse - """ # noqa: E501 - limit: Optional[StrictInt] = Field(default=None, description="The number of receiving jobs to return. The maximum number of jobs to return is 1000.") - parent_job_id: Optional[StrictStr] = Field(default=None, description="The ID of the dispatching job that generated the extraction jobs.", alias="parentJobId") - parent_tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant that owns the dispatching job. This is usually the administrating tenant.", alias="parentTenantCode") - receiving_jobs: Optional[List[ReceivingJob]] = Field(default=None, description="A list of receiving job information.", alias="receivingJobs") - start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") - __properties: ClassVar[List[str]] = ["limit", "parentJobId", "parentTenantCode", "receivingJobs", "start"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ReceivingJobAndStatusResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in receiving_jobs (list) - _items = [] - if self.receiving_jobs: - for _item_receiving_jobs in self.receiving_jobs: - if _item_receiving_jobs: - _items.append(_item_receiving_jobs.to_dict()) - _dict['receivingJobs'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ReceivingJobAndStatusResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "limit": obj.get("limit"), - "parentJobId": obj.get("parentJobId"), - "parentTenantCode": obj.get("parentTenantCode"), - "receivingJobs": [ReceivingJob.from_dict(_item) for _item in obj["receivingJobs"]] if obj.get("receivingJobs") is not None else None, - "start": obj.get("start") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/receiving_job_status_response.py b/src/visier_api_data_in/visier_api_data_in/models/receiving_job_status_response.py deleted file mode 100644 index 65ad7ebba9..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/receiving_job_status_response.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.receiving_job import ReceivingJob -from typing import Optional, Set -from typing_extensions import Self - -class ReceivingJobStatusResponse(BaseModel): - """ - ReceivingJobStatusResponse - """ # noqa: E501 - job_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the receiving job.", alias="jobId") - parent_job_id: Optional[StrictStr] = Field(default=None, description="The job ID of the receiving job that spawned this job.", alias="parentJobId") - parent_tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the receiving job that spawned this job.", alias="parentTenantCode") - receiving_jobs: Optional[List[ReceivingJob]] = Field(default=None, description="A list of objects representing the receiving jobs to retrieve.", alias="receivingJobs") - status: Optional[StrictStr] = Field(default=None, description="The status of the receiving job.") - __properties: ClassVar[List[str]] = ["jobId", "parentJobId", "parentTenantCode", "receivingJobs", "status"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ReceivingJobStatusResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in receiving_jobs (list) - _items = [] - if self.receiving_jobs: - for _item_receiving_jobs in self.receiving_jobs: - if _item_receiving_jobs: - _items.append(_item_receiving_jobs.to_dict()) - _dict['receivingJobs'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ReceivingJobStatusResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "jobId": obj.get("jobId"), - "parentJobId": obj.get("parentJobId"), - "parentTenantCode": obj.get("parentTenantCode"), - "receivingJobs": [ReceivingJob.from_dict(_item) for _item in obj["receivingJobs"]] if obj.get("receivingJobs") is not None else None, - "status": obj.get("status") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/redshift_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/redshift_auth_params_dto.py deleted file mode 100644 index ca7324b390..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/redshift_auth_params_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class RedshiftAuthParamsDTO(BaseModel): - """ - RedshiftAuthParamsDTO - """ # noqa: E501 - database: Optional[StrictStr] = None - endpoint: Optional[StrictStr] = None - password: Optional[StrictStr] = None - port: Optional[StrictStr] = None - var_schema: Optional[StrictStr] = Field(default=None, alias="schema") - table_prefix: Optional[StrictStr] = Field(default=None, alias="tablePrefix") - username: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["database", "endpoint", "password", "port", "schema", "tablePrefix", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RedshiftAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RedshiftAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "database": obj.get("database"), - "endpoint": obj.get("endpoint"), - "password": obj.get("password"), - "port": obj.get("port"), - "schema": obj.get("schema"), - "tablePrefix": obj.get("tablePrefix"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/result.py b/src/visier_api_data_in/visier_api_data_in/models/result.py deleted file mode 100644 index 008d50d4d4..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/result.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class Result(BaseModel): - """ - Result - """ # noqa: E501 - data_version: Optional[StrictStr] = Field(default=None, description="If applicable, the data version that was disabled.", alias="dataVersion") - job_id: Optional[StrictStr] = Field(default=None, description="If applicable, the job ID associated with the data version.", alias="jobId") - message: Optional[StrictStr] = Field(default=None, description="If applicable, the message explains what errors occurred while disabling data versions.") - status: Optional[StrictStr] = Field(default=None, description="The outcome of the disabling operation.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The analytic tenant that the disable operation was conducted for.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["dataVersion", "jobId", "message", "status", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Result from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Result from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataVersion": obj.get("dataVersion"), - "jobId": obj.get("jobId"), - "message": obj.get("message"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/salesforce_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/salesforce_auth_params_dto.py deleted file mode 100644 index 686efa745f..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/salesforce_auth_params_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SalesforceAuthParamsDTO(BaseModel): - """ - SalesforceAuthParamsDTO - """ # noqa: E501 - client_id: Optional[StrictStr] = Field(default=None, alias="clientId") - refresh_token: Optional[StrictStr] = Field(default=None, alias="refreshToken") - __properties: ClassVar[List[str]] = ["clientId", "refreshToken"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SalesforceAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SalesforceAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "clientId": obj.get("clientId"), - "refreshToken": obj.get("refreshToken") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/salesforce_v2_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/salesforce_v2_auth_params_dto.py deleted file mode 100644 index ea7dbd9f00..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/salesforce_v2_auth_params_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SalesforceV2AuthParamsDTO(BaseModel): - """ - SalesforceV2AuthParamsDTO - """ # noqa: E501 - auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") - client_id: Optional[StrictStr] = Field(default=None, alias="clientId") - client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") - login_host: Optional[StrictStr] = Field(default=None, alias="loginHost") - __properties: ClassVar[List[str]] = ["authCode", "clientId", "clientSecret", "loginHost"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SalesforceV2AuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SalesforceV2AuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "authCode": obj.get("authCode"), - "clientId": obj.get("clientId"), - "clientSecret": obj.get("clientSecret"), - "loginHost": obj.get("loginHost") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/service_now_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/service_now_auth_params_dto.py deleted file mode 100644 index 7c705803a4..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/service_now_auth_params_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ServiceNowAuthParamsDTO(BaseModel): - """ - ServiceNowAuthParamsDTO - """ # noqa: E501 - host_domain_name: Optional[StrictStr] = Field(default=None, alias="hostDomainName") - password: Optional[StrictStr] = None - username: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["hostDomainName", "password", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ServiceNowAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ServiceNowAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "hostDomainName": obj.get("hostDomainName"), - "password": obj.get("password"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/service_now_v2_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/service_now_v2_auth_params_dto.py deleted file mode 100644 index a39981e7aa..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/service_now_v2_auth_params_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ServiceNowV2AuthParamsDTO(BaseModel): - """ - ServiceNowV2AuthParamsDTO - """ # noqa: E501 - alternate_domain: Optional[StrictStr] = Field(default=None, alias="alternateDomain") - auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") - client_id: Optional[StrictStr] = Field(default=None, alias="clientId") - client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") - host_domain_name: Optional[StrictStr] = Field(default=None, alias="hostDomainName") - __properties: ClassVar[List[str]] = ["alternateDomain", "authCode", "clientId", "clientSecret", "hostDomainName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ServiceNowV2AuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ServiceNowV2AuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "alternateDomain": obj.get("alternateDomain"), - "authCode": obj.get("authCode"), - "clientId": obj.get("clientId"), - "clientSecret": obj.get("clientSecret"), - "hostDomainName": obj.get("hostDomainName") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_data_categories_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_data_categories_response_dto.py new file mode 100644 index 0000000000..d6b044fa4c --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_data_categories_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.servicing_publicapi_transfers_data_category_response_dto import ServicingPublicapiTransfersDataCategoryResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDataCategoriesResponseDTO(BaseModel): + """ + A list of data categories. + """ # noqa: E501 + categories: Optional[List[ServicingPublicapiTransfersDataCategoryResponseDTO]] = None + __properties: ClassVar[List[str]] = ["categories"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDataCategoriesResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in categories (list) + _items = [] + if self.categories: + for _item_categories in self.categories: + if _item_categories: + _items.append(_item_categories.to_dict()) + _dict['categories'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDataCategoriesResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "categories": [ServicingPublicapiTransfersDataCategoryResponseDTO.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_data_category_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_data_category_response_dto.py new file mode 100644 index 0000000000..0e214118a5 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_data_category_response_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDataCategoryResponseDTO(BaseModel): + """ + The data category's UUID and display name. + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="The UUID of the data category.") + name: Optional[StrictStr] = Field(default=None, description="The display name of the data category.") + __properties: ClassVar[List[str]] = ["id", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDataCategoryResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDataCategoryResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_job_config_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_job_config_dto.py new file mode 100644 index 0000000000..91d20398c4 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_job_config_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDirectDataJobConfigDTO(BaseModel): + """ + Whether the direct data intake job is a primary job or a supplemental job. + """ # noqa: E501 + extend_objects: Optional[List[StrictStr]] = Field(default=None, description="The target analytic objects to load using extension tables. You can extend objects if the job type is supplemental and the target objects already contain data from a previous data version. This allows you to load data for objects that already contain data in Visier.", alias="extendObjects") + supplemental_mode: Optional[StrictStr] = Field(default=None, description="The configuration for the processing job as a primary job (default) or a supplemental job. If a primary job is already defined, the direct data intake job must be supplemental. The valid values are `IS_PRIMARY`, `IS_SUPPLEMENTAL`, and `UNCHANGED`.", alias="supplementalMode") + __properties: ClassVar[List[str]] = ["extendObjects", "supplementalMode"] + + @field_validator('supplemental_mode') + def supplemental_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['UNCHANGED', 'IS_PRIMARY', 'IS_SUPPLEMENTAL']): + raise ValueError("must be one of enum values ('UNCHANGED', 'IS_PRIMARY', 'IS_SUPPLEMENTAL')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDirectDataJobConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDirectDataJobConfigDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "extendObjects": obj.get("extendObjects"), + "supplementalMode": obj.get("supplementalMode") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_job_status_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_job_status_response_dto.py new file mode 100644 index 0000000000..e8036552b7 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_job_status_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDirectDataJobStatusResponseDTO(BaseModel): + """ + The job status information for a committed transaction. + """ # noqa: E501 + job_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the processing job.", alias="jobId") + message: Optional[StrictStr] = Field(default=None, description="If the processing job fails, this field contains details specific to the failure.") + status: Optional[StrictStr] = Field(default=None, description="The status of the processing job.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant for the data load.", alias="tenantCode") + transaction_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the committed transaction.", alias="transactionId") + __properties: ClassVar[List[str]] = ["jobId", "message", "status", "tenantCode", "transactionId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDirectDataJobStatusResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDirectDataJobStatusResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobId": obj.get("jobId"), + "message": obj.get("message"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode"), + "transactionId": obj.get("transactionId") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_load_config_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_load_config_dto.py new file mode 100644 index 0000000000..89ee3ff950 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_load_config_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_job_config_dto import ServicingPublicapiTransfersDirectDataJobConfigDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDirectDataLoadConfigDTO(BaseModel): + """ + The configuration for the direct data intake, such as the direct data intake job type. + """ # noqa: E501 + job: Optional[ServicingPublicapiTransfersDirectDataJobConfigDTO] = Field(default=None, description="The direct data intake job configuration.") + __properties: ClassVar[List[str]] = ["job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDirectDataLoadConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of job + if self.job: + _dict['job'] = self.job.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDirectDataLoadConfigDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job": ServicingPublicapiTransfersDirectDataJobConfigDTO.from_dict(obj["job"]) if obj.get("job") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_schema_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_schema_dto.py new file mode 100644 index 0000000000..1929ed2525 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_schema_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.servicing_publicapi_transfers_direct_data_schema_field_dto import ServicingPublicapiTransfersDirectDataSchemaFieldDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDirectDataSchemaDTO(BaseModel): + """ + Public API Direct Intake schema response object + """ # noqa: E501 + var_schema: Optional[List[ServicingPublicapiTransfersDirectDataSchemaFieldDTO]] = Field(default=None, description="The schema definition for loading a specific object", alias="schema") + __properties: ClassVar[List[str]] = ["schema"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDirectDataSchemaDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in var_schema (list) + _items = [] + if self.var_schema: + for _item_var_schema in self.var_schema: + if _item_var_schema: + _items.append(_item_var_schema.to_dict()) + _dict['schema'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDirectDataSchemaDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "schema": [ServicingPublicapiTransfersDirectDataSchemaFieldDTO.from_dict(_item) for _item in obj["schema"]] if obj.get("schema") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_schema_field_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_schema_field_dto.py new file mode 100644 index 0000000000..0937b73fc9 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_schema_field_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDirectDataSchemaFieldDTO(BaseModel): + """ + The definition of each field in an object's schema. + """ # noqa: E501 + data_type: Optional[StrictStr] = Field(default=None, description="The column's data type.", alias="dataType") + empty_values_allowed: Optional[StrictBool] = Field(default=None, description="If true, the value may be empty.", alias="emptyValuesAllowed") + formats: Optional[List[StrictStr]] = Field(default=None, description="The column's accepted formats, such as date formats like \"yyyy-MM-dd\".") + is_mandatory: Optional[StrictBool] = Field(default=None, description="If true, the field must contain a value to successfully load data into the object.", alias="isMandatory") + name: Optional[StrictStr] = Field(default=None, description="The field's column name. Column names are case sensitive.") + __properties: ClassVar[List[str]] = ["dataType", "emptyValuesAllowed", "formats", "isMandatory", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDirectDataSchemaFieldDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDirectDataSchemaFieldDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataType": obj.get("dataType"), + "emptyValuesAllowed": obj.get("emptyValuesAllowed"), + "formats": obj.get("formats"), + "isMandatory": obj.get("isMandatory"), + "name": obj.get("name") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_transaction_start_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_transaction_start_response_dto.py new file mode 100644 index 0000000000..1a5b3890a1 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_transaction_start_response_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO(BaseModel): + """ + The response after successfully creating a transaction. + """ # noqa: E501 + transaction_id: Optional[StrictStr] = Field(default=None, description="The transaction's unique identifier.", alias="transactionId") + __properties: ClassVar[List[str]] = ["transactionId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "transactionId": obj.get("transactionId") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_upload_file_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_upload_file_response_dto.py new file mode 100644 index 0000000000..a904977834 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_upload_file_response_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDirectDataUploadFileResponseDTO(BaseModel): + """ + The transaction results. If uploading a file, a success response means the upload was successful and doesn't always mean the file was successfully loaded into its target object. + """ # noqa: E501 + message: Optional[StrictStr] = Field(default=None, description="Upload response message from the provisioning service") + status: Optional[StrictStr] = Field(default=None, description="The status of the request.") + transaction_id: Optional[StrictStr] = Field(default=None, description="The unique transaction identifier.", alias="transactionId") + __properties: ClassVar[List[str]] = ["message", "status", "transactionId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDirectDataUploadFileResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDirectDataUploadFileResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "status": obj.get("status"), + "transactionId": obj.get("transactionId") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_job_id_response.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_job_id_response.py new file mode 100644 index 0000000000..9a9e079589 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_job_id_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersJobIdResponse(BaseModel): + """ + The unique identifier of the returned job. + """ # noqa: E501 + job_id: Optional[StrictStr] = Field(default=None, alias="jobId") + __properties: ClassVar[List[str]] = ["jobId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersJobIdResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersJobIdResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobId": obj.get("jobId") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_upload_status_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_upload_status_response_dto.py new file mode 100644 index 0000000000..58729a3fe1 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_upload_status_response_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO + """ # noqa: E501 + included: Optional[StrictBool] = Field(default=None, description="If \"true\", the data upload is included.") + upload_time: Optional[StrictStr] = Field(default=None, description="The upload time of the data upload.", alias="uploadTime") + __properties: ClassVar[List[str]] = ["included", "uploadTime"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "included": obj.get("included"), + "uploadTime": obj.get("uploadTime") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_upload_update_status_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_upload_update_status_response_dto.py new file mode 100644 index 0000000000..5e391c656c --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_upload_update_status_response_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO + """ # noqa: E501 + message: Optional[StrictStr] = Field(default=None, description="If applicable, the message explains why errors were encountered during the exclusion operation.") + status: Optional[StrictStr] = Field(default=None, description="The outcome of the exclusion operation.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The analytic tenant that the exclusion operation was conducted for.", alias="tenantCode") + upload_time: Optional[StrictStr] = Field(default=None, description="The upload time of the data upload", alias="uploadTime") + __properties: ClassVar[List[str]] = ["message", "status", "tenantCode", "uploadTime"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode"), + "uploadTime": obj.get("uploadTime") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_uploads_list_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_uploads_list_response_dto.py new file mode 100644 index 0000000000..258252647b --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_uploads_list_response_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_uploads_response_dto import ServicingPublicapiTransfersTenantDataUploadsResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersTenantDataUploadsListResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersTenantDataUploadsListResponseDTO + """ # noqa: E501 + limit: Optional[StrictInt] = Field(default=None, description="The number of analytic tenants to retrieve. The maximum number of analytic tenants to retrieve is 1000.") + start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") + tenants: Optional[List[ServicingPublicapiTransfersTenantDataUploadsResponseDTO]] = Field(default=None, description="A list of objects representing analytic tenants and their data uploads.") + __properties: ClassVar[List[str]] = ["limit", "start", "tenants"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersTenantDataUploadsListResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) + _items = [] + if self.tenants: + for _item_tenants in self.tenants: + if _item_tenants: + _items.append(_item_tenants.to_dict()) + _dict['tenants'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersTenantDataUploadsListResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "start": obj.get("start"), + "tenants": [ServicingPublicapiTransfersTenantDataUploadsResponseDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_uploads_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_uploads_response_dto.py new file mode 100644 index 0000000000..a76b40c66e --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_uploads_response_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_upload_status_response_dto import ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersTenantDataUploadsResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersTenantDataUploadsResponseDTO + """ # noqa: E501 + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant owning the data uploads.", alias="tenantCode") + uploads: Optional[List[ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO]] = Field(default=None, description="The data uploads completed for the specified analytic tenant. The list is empty if no previous data uploads are found for the analytic tenant.") + __properties: ClassVar[List[str]] = ["tenantCode", "uploads"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersTenantDataUploadsResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in uploads (list) + _items = [] + if self.uploads: + for _item_uploads in self.uploads: + if _item_uploads: + _items.append(_item_uploads.to_dict()) + _dict['uploads'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersTenantDataUploadsResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenantCode": obj.get("tenantCode"), + "uploads": [ServicingPublicapiTransfersTenantDataUploadStatusResponseDTO.from_dict(_item) for _item in obj["uploads"]] if obj.get("uploads") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_uploads_update_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_uploads_update_response_dto.py new file mode 100644 index 0000000000..58136eb8bb --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_tenant_data_uploads_update_response_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data In APIs + + Visier APIs for sending data to Visier and running data load jobs. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_in.models.servicing_publicapi_transfers_tenant_data_upload_update_status_response_dto import ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO(BaseModel): + """ + ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO + """ # noqa: E501 + total_failures: Optional[StrictInt] = Field(default=None, description="The number of data uploads that failed during the exclusion operation.", alias="totalFailures") + total_success: Optional[StrictInt] = Field(default=None, description="The number of data uploads that were excluded successfully.", alias="totalSuccess") + uploads: Optional[List[ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO]] = Field(default=None, description="A list of objects representing the results of the data upload exclusion.") + __properties: ClassVar[List[str]] = ["totalFailures", "totalSuccess", "uploads"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in uploads (list) + _items = [] + if self.uploads: + for _item_uploads in self.uploads: + if _item_uploads: + _items.append(_item_uploads.to_dict()) + _dict['uploads'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "totalFailures": obj.get("totalFailures"), + "totalSuccess": obj.get("totalSuccess"), + "uploads": [ServicingPublicapiTransfersTenantDataUploadUpdateStatusResponseDTO.from_dict(_item) for _item in obj["uploads"]] if obj.get("uploads") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/set_connector_setting_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/set_connector_setting_request_dto.py deleted file mode 100644 index 9c97d0919e..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/set_connector_setting_request_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.tenant_connector_settings_request_dto import TenantConnectorSettingsRequestDTO -from typing import Optional, Set -from typing_extensions import Self - -class SetConnectorSettingRequestDTO(BaseModel): - """ - SetConnectorSettingRequestDTO - """ # noqa: E501 - connector_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the data connector.", alias="connectorId") - tenants: Optional[List[TenantConnectorSettingsRequestDTO]] = Field(default=None, description="The tenant codes and data connector settings to update.") - __properties: ClassVar[List[str]] = ["connectorId", "tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SetConnectorSettingRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SetConnectorSettingRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "connectorId": obj.get("connectorId"), - "tenants": [TenantConnectorSettingsRequestDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/set_connector_setting_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/set_connector_setting_response_dto.py deleted file mode 100644 index e1b42e2266..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/set_connector_setting_response_dto.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.connector_settings_response_dto import ConnectorSettingsResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class SetConnectorSettingResponseDTO(BaseModel): - """ - SetConnectorSettingResponseDTO - """ # noqa: E501 - connectors: Optional[List[ConnectorSettingsResponseDTO]] = Field(default=None, description="A list of objects representing the assigned settings and connectors.") - message: Optional[StrictStr] = None - status: Optional[StrictStr] = Field(default=None, description="The state of the setting assignment. Valid values are Succeed or Failed.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["connectors", "message", "status", "tenantCode"] - - @field_validator('status') - def status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['Unknown', 'Succeed', 'Failed']): - raise ValueError("must be one of enum values ('Unknown', 'Succeed', 'Failed')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SetConnectorSettingResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in connectors (list) - _items = [] - if self.connectors: - for _item_connectors in self.connectors: - if _item_connectors: - _items.append(_item_connectors.to_dict()) - _dict['connectors'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SetConnectorSettingResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "connectors": [ConnectorSettingsResponseDTO.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None, - "message": obj.get("message"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/set_connector_settings_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/set_connector_settings_request_dto.py deleted file mode 100644 index 288a8048f1..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/set_connector_settings_request_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.set_connector_setting_request_dto import SetConnectorSettingRequestDTO -from typing import Optional, Set -from typing_extensions import Self - -class SetConnectorSettingsRequestDTO(BaseModel): - """ - SetConnectorSettingsRequestDTO - """ # noqa: E501 - connectors: Optional[List[SetConnectorSettingRequestDTO]] = Field(default=None, description="The settings to define for each data connector and tenant.") - __properties: ClassVar[List[str]] = ["connectors"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SetConnectorSettingsRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in connectors (list) - _items = [] - if self.connectors: - for _item_connectors in self.connectors: - if _item_connectors: - _items.append(_item_connectors.to_dict()) - _dict['connectors'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SetConnectorSettingsRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "connectors": [SetConnectorSettingRequestDTO.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/set_connector_settings_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/set_connector_settings_response_dto.py deleted file mode 100644 index 262b0239cf..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/set_connector_settings_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.set_connector_setting_response_dto import SetConnectorSettingResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class SetConnectorSettingsResponseDTO(BaseModel): - """ - SetConnectorSettingsResponseDTO - """ # noqa: E501 - tenants: Optional[List[SetConnectorSettingResponseDTO]] = Field(default=None, description="The tenants and data connectors that were updated in the API request.") - __properties: ClassVar[List[str]] = ["tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SetConnectorSettingsResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SetConnectorSettingsResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tenants": [SetConnectorSettingResponseDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/slack_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/slack_auth_params_dto.py deleted file mode 100644 index cc2ec9baf6..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/slack_auth_params_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SlackAuthParamsDTO(BaseModel): - """ - SlackAuthParamsDTO - """ # noqa: E501 - auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") - client_id: Optional[StrictStr] = Field(default=None, alias="clientId") - client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") - __properties: ClassVar[List[str]] = ["authCode", "clientId", "clientSecret"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SlackAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SlackAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "authCode": obj.get("authCode"), - "clientId": obj.get("clientId"), - "clientSecret": obj.get("clientSecret") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/snowflake_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/snowflake_auth_params_dto.py deleted file mode 100644 index ec4e5b52da..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/snowflake_auth_params_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SnowflakeAuthParamsDTO(BaseModel): - """ - SnowflakeAuthParamsDTO - """ # noqa: E501 - account_identifier: Optional[StrictStr] = Field(default=None, alias="accountIdentifier") - database: Optional[StrictStr] = None - password: Optional[StrictStr] = None - private_key: Optional[StrictStr] = Field(default=None, alias="privateKey") - var_schema: Optional[StrictStr] = Field(default=None, alias="schema") - username: Optional[StrictStr] = None - warehouse: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["accountIdentifier", "database", "password", "privateKey", "schema", "username", "warehouse"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SnowflakeAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SnowflakeAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "accountIdentifier": obj.get("accountIdentifier"), - "database": obj.get("database"), - "password": obj.get("password"), - "privateKey": obj.get("privateKey"), - "schema": obj.get("schema"), - "username": obj.get("username"), - "warehouse": obj.get("warehouse") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/source.py b/src/visier_api_data_in/visier_api_data_in/models/source.py deleted file mode 100644 index b4d55a2fa3..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/source.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class Source(BaseModel): - """ - Source - """ # noqa: E501 - data_size: Optional[StrictStr] = Field(default=None, description="The size of the data transfer in bytes.", alias="dataSize") - message: Optional[StrictStr] = Field(default=None, description="A meaningful message about the data transfer.") - rows: Optional[StrictStr] = Field(default=None, description="The number of rows in the data transfer.") - source_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the source that data was transferred to.", alias="sourceId") - source_name: Optional[StrictStr] = Field(default=None, description="The object name of the source.", alias="sourceName") - status: Optional[StrictStr] = Field(default=None, description="The status of the data transfer for this source.") - __properties: ClassVar[List[str]] = ["dataSize", "message", "rows", "sourceId", "sourceName", "status"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Source from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Source from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataSize": obj.get("dataSize"), - "message": obj.get("message"), - "rows": obj.get("rows"), - "sourceId": obj.get("sourceId"), - "sourceName": obj.get("sourceName"), - "status": obj.get("status") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/sql_server_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/sql_server_auth_params_dto.py deleted file mode 100644 index 40bab6f375..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/sql_server_auth_params_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SqlServerAuthParamsDTO(BaseModel): - """ - SqlServerAuthParamsDTO - """ # noqa: E501 - database: Optional[StrictStr] = None - host: Optional[StrictStr] = None - password: Optional[StrictStr] = None - port: Optional[StrictStr] = None - username: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["database", "host", "password", "port", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SqlServerAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SqlServerAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "database": obj.get("database"), - "host": obj.get("host"), - "password": obj.get("password"), - "port": obj.get("port"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/start_extraction_response.py b/src/visier_api_data_in/visier_api_data_in/models/start_extraction_response.py deleted file mode 100644 index 46f2706dfb..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/start_extraction_response.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class StartExtractionResponse(BaseModel): - """ - StartExtractionResponse - """ # noqa: E501 - job_id: Optional[StrictStr] = Field(default=None, description="The ID of the dispatching job that generated the extraction jobs.", alias="JobId") - __properties: ClassVar[List[str]] = ["JobId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of StartExtractionResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of StartExtractionResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "JobId": obj.get("JobId") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/start_transfer_response.py b/src/visier_api_data_in/visier_api_data_in/models/start_transfer_response.py deleted file mode 100644 index 258d7967cd..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/start_transfer_response.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class StartTransferResponse(BaseModel): - """ - StartTransferResponse - """ # noqa: E501 - transfer_session_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the transfer session.", alias="transferSessionId") - __properties: ClassVar[List[str]] = ["transferSessionId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of StartTransferResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of StartTransferResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "transferSessionId": obj.get("transferSessionId") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/status.py b/src/visier_api_data_in/visier_api_data_in/models/status.py index 79e1c6c9db..dedfd09801 100644 --- a/src/visier_api_data_in/visier_api_data_in/models/status.py +++ b/src/visier_api_data_in/visier_api_data_in/models/status.py @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -28,12 +28,12 @@ class Status(BaseModel): """ The response structure for errors. """ # noqa: E501 - error_code: Optional[StrictStr] = Field(default=None, description="Error classification.", alias="errorCode") + code: Optional[StrictStr] = Field(default=None, description="Error classification.") localized_message: Optional[StrictStr] = Field(default=None, description="Localized error message describing the root cause of the error.", alias="localizedMessage") message: Optional[StrictStr] = Field(default=None, description="Not used.") rci: Optional[StrictStr] = Field(default=None, description="Optional root cause identifier.") user_error: Optional[StrictBool] = Field(default=None, description="Indicates whether the error is a user error.", alias="userError") - __properties: ClassVar[List[str]] = ["errorCode", "localizedMessage", "message", "rci", "userError"] + __properties: ClassVar[List[str]] = ["code", "localizedMessage", "message", "rci", "userError"] model_config = ConfigDict( populate_by_name=True, @@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "errorCode": obj.get("errorCode"), + "code": obj.get("code"), "localizedMessage": obj.get("localizedMessage"), "message": obj.get("message"), "rci": obj.get("rci"), diff --git a/src/visier_api_data_in/visier_api_data_in/models/subject_missing_access_dto.py b/src/visier_api_data_in/visier_api_data_in/models/subject_missing_access_dto.py deleted file mode 100644 index b6a8bf1871..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/subject_missing_access_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SubjectMissingAccessDTO(BaseModel): - """ - SubjectMissingAccessDTO - """ # noqa: E501 - attributes: Optional[List[StrictStr]] = Field(default=None, description="The attributes that cannot be accessed.") - error_message: Optional[StrictStr] = Field(default=None, description="The error message detailing the access issue.", alias="errorMessage") - subject: Optional[StrictStr] = Field(default=None, description="The subjects that cannot be accessed.") - __properties: ClassVar[List[str]] = ["attributes", "errorMessage", "subject"] - - @field_validator('subject') - def subject_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['Employee', 'Employee_Budgeted_Compensation', 'Employment_Start', 'Employment_Exit', 'Absenteeism', 'Supervisory', 'Organization', 'Compensation_Payout', 'CustomSubject', 'TestConnectionSubject', 'Internal_Placement', 'Pay_Change', 'Hire', 'Applicant', 'Candidate', 'Requisition']): - raise ValueError("must be one of enum values ('Employee', 'Employee_Budgeted_Compensation', 'Employment_Start', 'Employment_Exit', 'Absenteeism', 'Supervisory', 'Organization', 'Compensation_Payout', 'CustomSubject', 'TestConnectionSubject', 'Internal_Placement', 'Pay_Change', 'Hire', 'Applicant', 'Candidate', 'Requisition')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SubjectMissingAccessDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SubjectMissingAccessDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "attributes": obj.get("attributes"), - "errorMessage": obj.get("errorMessage"), - "subject": obj.get("subject") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/success_factors_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/success_factors_auth_params_dto.py deleted file mode 100644 index 95877e555c..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/success_factors_auth_params_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.success_factors_o_auth_params_dto import SuccessFactorsOAuthParamsDTO -from typing import Optional, Set -from typing_extensions import Self - -class SuccessFactorsAuthParamsDTO(BaseModel): - """ - SuccessFactorsAuthParamsDTO - """ # noqa: E501 - company_id: Optional[StrictStr] = Field(default=None, alias="companyID") - host_domain_name: Optional[StrictStr] = Field(default=None, alias="hostDomainName") - o_auth: Optional[SuccessFactorsOAuthParamsDTO] = Field(default=None, alias="oAuth") - password: Optional[StrictStr] = None - username: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["companyID", "hostDomainName", "oAuth", "password", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessFactorsAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of o_auth - if self.o_auth: - _dict['oAuth'] = self.o_auth.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessFactorsAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "companyID": obj.get("companyID"), - "hostDomainName": obj.get("hostDomainName"), - "oAuth": SuccessFactorsOAuthParamsDTO.from_dict(obj["oAuth"]) if obj.get("oAuth") is not None else None, - "password": obj.get("password"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/success_factors_o_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/success_factors_o_auth_params_dto.py deleted file mode 100644 index dc838e6622..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/success_factors_o_auth_params_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SuccessFactorsOAuthParamsDTO(BaseModel): - """ - SuccessFactorsOAuthParamsDTO - """ # noqa: E501 - api_key: Optional[StrictStr] = Field(default=None, alias="apiKey") - private_x509_key: Optional[StrictStr] = Field(default=None, alias="privateX509Key") - public_x509_cert: Optional[StrictStr] = Field(default=None, alias="publicX509Cert") - __properties: ClassVar[List[str]] = ["apiKey", "privateX509Key", "publicX509Cert"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessFactorsOAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessFactorsOAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "apiKey": obj.get("apiKey"), - "privateX509Key": obj.get("privateX509Key"), - "publicX509Cert": obj.get("publicX509Cert") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/tenant.py b/src/visier_api_data_in/visier_api_data_in/models/tenant.py deleted file mode 100644 index 75886bb0ec..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/tenant.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.source import Source -from typing import Optional, Set -from typing_extensions import Self - -class Tenant(BaseModel): - """ - Tenant - """ # noqa: E501 - sources: Optional[List[Source]] = Field(default=None, description="A list of objects representing the sources that data was pushed to and their data transfer results.") - status: Optional[StrictStr] = Field(default=None, description="The status of the data transfer for this tenant.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant that data was transferred to. For example, WFF_j1r or WFF_j1r~c7o.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["sources", "status", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Tenant from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in sources (list) - _items = [] - if self.sources: - for _item_sources in self.sources: - if _item_sources: - _items.append(_item_sources.to_dict()) - _dict['sources'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Tenant from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "sources": [Source.from_dict(_item) for _item in obj["sources"]] if obj.get("sources") is not None else None, - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/tenant_and_credential.py b/src/visier_api_data_in/visier_api_data_in/models/tenant_and_credential.py deleted file mode 100644 index 28e93f114f..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/tenant_and_credential.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class TenantAndCredential(BaseModel): - """ - TenantAndCredential - """ # noqa: E501 - credential_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the credential.", alias="credentialId") - tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["credentialId", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantAndCredential from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantAndCredential from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "credentialId": obj.get("credentialId"), - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/tenant_connector_settings_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/tenant_connector_settings_request_dto.py deleted file mode 100644 index 072d2d2a7b..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/tenant_connector_settings_request_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.connector_setting_request_dto import ConnectorSettingRequestDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantConnectorSettingsRequestDTO(BaseModel): - """ - TenantConnectorSettingsRequestDTO - """ # noqa: E501 - connector_settings: Optional[List[ConnectorSettingRequestDTO]] = Field(default=None, description="The settings to update.", alias="connectorSettings") - tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") - __properties: ClassVar[List[str]] = ["connectorSettings", "tenantCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantConnectorSettingsRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in connector_settings (list) - _items = [] - if self.connector_settings: - for _item_connector_settings in self.connector_settings: - if _item_connector_settings: - _items.append(_item_connector_settings.to_dict()) - _dict['connectorSettings'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantConnectorSettingsRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "connectorSettings": [ConnectorSettingRequestDTO.from_dict(_item) for _item in obj["connectorSettings"]] if obj.get("connectorSettings") is not None else None, - "tenantCode": obj.get("tenantCode") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/tenant_data_upload_status_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/tenant_data_upload_status_response_dto.py deleted file mode 100644 index 79488255a3..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/tenant_data_upload_status_response_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class TenantDataUploadStatusResponseDTO(BaseModel): - """ - TenantDataUploadStatusResponseDTO - """ # noqa: E501 - included: Optional[StrictBool] = Field(default=None, description="If \"true\", the data upload is included.") - upload_time: Optional[StrictStr] = Field(default=None, description="The upload time of the data upload.", alias="uploadTime") - __properties: ClassVar[List[str]] = ["included", "uploadTime"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantDataUploadStatusResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantDataUploadStatusResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "included": obj.get("included"), - "uploadTime": obj.get("uploadTime") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/tenant_data_upload_update_status_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/tenant_data_upload_update_status_response_dto.py deleted file mode 100644 index 16c2d99c8d..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/tenant_data_upload_update_status_response_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class TenantDataUploadUpdateStatusResponseDTO(BaseModel): - """ - TenantDataUploadUpdateStatusResponseDTO - """ # noqa: E501 - message: Optional[StrictStr] = Field(default=None, description="If applicable, the message explains why errors were encountered during the exclusion operation.") - status: Optional[StrictStr] = Field(default=None, description="The outcome of the exclusion operation.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The analytic tenant that the exclusion operation was conducted for.", alias="tenantCode") - upload_time: Optional[StrictStr] = Field(default=None, description="The upload time of the data upload", alias="uploadTime") - __properties: ClassVar[List[str]] = ["message", "status", "tenantCode", "uploadTime"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantDataUploadUpdateStatusResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantDataUploadUpdateStatusResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "message": obj.get("message"), - "status": obj.get("status"), - "tenantCode": obj.get("tenantCode"), - "uploadTime": obj.get("uploadTime") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/tenant_data_uploads_list_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/tenant_data_uploads_list_response_dto.py deleted file mode 100644 index ea2f792933..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/tenant_data_uploads_list_response_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.tenant_data_uploads_response_dto import TenantDataUploadsResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantDataUploadsListResponseDTO(BaseModel): - """ - TenantDataUploadsListResponseDTO - """ # noqa: E501 - limit: Optional[StrictInt] = Field(default=None, description="The number of analytic tenants to retrieve. The maximum number of analytic tenants to retrieve is 1000.") - start: Optional[StrictInt] = Field(default=None, description="The index to start retrieving results from, also known as offset. The index begins at 0.") - tenants: Optional[List[TenantDataUploadsResponseDTO]] = Field(default=None, description="A list of objects representing analytic tenants and their data uploads.") - __properties: ClassVar[List[str]] = ["limit", "start", "tenants"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantDataUploadsListResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tenants (list) - _items = [] - if self.tenants: - for _item_tenants in self.tenants: - if _item_tenants: - _items.append(_item_tenants.to_dict()) - _dict['tenants'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantDataUploadsListResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "limit": obj.get("limit"), - "start": obj.get("start"), - "tenants": [TenantDataUploadsResponseDTO.from_dict(_item) for _item in obj["tenants"]] if obj.get("tenants") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/tenant_data_uploads_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/tenant_data_uploads_response_dto.py deleted file mode 100644 index 9bdf7831a1..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/tenant_data_uploads_response_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.tenant_data_upload_status_response_dto import TenantDataUploadStatusResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantDataUploadsResponseDTO(BaseModel): - """ - TenantDataUploadsResponseDTO - """ # noqa: E501 - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant owning the data uploads.", alias="tenantCode") - uploads: Optional[List[TenantDataUploadStatusResponseDTO]] = Field(default=None, description="The data uploads completed for the specified analytic tenant. The list is empty if no previous data uploads are found for the analytic tenant.") - __properties: ClassVar[List[str]] = ["tenantCode", "uploads"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantDataUploadsResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in uploads (list) - _items = [] - if self.uploads: - for _item_uploads in self.uploads: - if _item_uploads: - _items.append(_item_uploads.to_dict()) - _dict['uploads'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantDataUploadsResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tenantCode": obj.get("tenantCode"), - "uploads": [TenantDataUploadStatusResponseDTO.from_dict(_item) for _item in obj["uploads"]] if obj.get("uploads") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/tenant_data_uploads_update_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/tenant_data_uploads_update_response_dto.py deleted file mode 100644 index ce9e30b84d..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/tenant_data_uploads_update_response_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.tenant_data_upload_update_status_response_dto import TenantDataUploadUpdateStatusResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class TenantDataUploadsUpdateResponseDTO(BaseModel): - """ - TenantDataUploadsUpdateResponseDTO - """ # noqa: E501 - total_failures: Optional[StrictInt] = Field(default=None, description="The number of data uploads that failed during the exclusion operation.", alias="totalFailures") - total_success: Optional[StrictInt] = Field(default=None, description="The number of data uploads that were excluded successfully.", alias="totalSuccess") - uploads: Optional[List[TenantDataUploadUpdateStatusResponseDTO]] = Field(default=None, description="A list of objects representing the results of the data upload exclusion.") - __properties: ClassVar[List[str]] = ["totalFailures", "totalSuccess", "uploads"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TenantDataUploadsUpdateResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in uploads (list) - _items = [] - if self.uploads: - for _item_uploads in self.uploads: - if _item_uploads: - _items.append(_item_uploads.to_dict()) - _dict['uploads'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TenantDataUploadsUpdateResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "totalFailures": obj.get("totalFailures"), - "totalSuccess": obj.get("totalSuccess"), - "uploads": [TenantDataUploadUpdateStatusResponseDTO.from_dict(_item) for _item in obj["uploads"]] if obj.get("uploads") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/ultimate_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/ultimate_auth_params_dto.py deleted file mode 100644 index d0b43985d2..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/ultimate_auth_params_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UltimateAuthParamsDTO(BaseModel): - """ - UltimateAuthParamsDTO - """ # noqa: E501 - api_key: Optional[StrictStr] = Field(default=None, alias="apiKey") - host_domain_name: Optional[StrictStr] = Field(default=None, alias="hostDomainName") - password: Optional[StrictStr] = None - user_access_key: Optional[StrictStr] = Field(default=None, alias="userAccessKey") - username: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["apiKey", "hostDomainName", "password", "userAccessKey", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UltimateAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UltimateAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "apiKey": obj.get("apiKey"), - "hostDomainName": obj.get("hostDomainName"), - "password": obj.get("password"), - "userAccessKey": obj.get("userAccessKey"), - "username": obj.get("username") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/upload_to_exclude.py b/src/visier_api_data_in/visier_api_data_in/models/upload_to_exclude.py deleted file mode 100644 index 960602eb89..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/upload_to_exclude.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UploadToExclude(BaseModel): - """ - UploadToExclude - """ # noqa: E501 - exclude_all: Optional[StrictBool] = Field(default=None, description="If `true`, all data uploads are excluded for the analytic tenant.", alias="excludeAll") - max_upload_time: Optional[StrictStr] = Field(default=None, description="An ISO-8601 time such as `\"2001-10-25T13:45:35.999\"` for the latest upload time. If defined, omit `uploadTimes`. If omitted and `minUploadTime` is defined, excludes files up to latest time available.", alias="maxUploadTime") - min_upload_time: Optional[StrictStr] = Field(default=None, description="An ISO-8601 time such as `\"2001-10-25T13:45:35.999\"` for the earliest upload time. If defined, omit `uploadTimes`. If omitted and `maxUploadTime` is defined, excludes files up to earliest time available.", alias="minUploadTime") - sources: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings representing the object name of each source to exclude. If `uploadTimes` is omitted, excludes files for the given sources for all `uploadTimes`.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant you are excluding a data upload for.", alias="tenantCode") - upload_times: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of ISO-8601 time strings such as `\"2001-10-25T13:45:35.999\"` representing the upload time of each data upload to exclude.", alias="uploadTimes") - __properties: ClassVar[List[str]] = ["excludeAll", "maxUploadTime", "minUploadTime", "sources", "tenantCode", "uploadTimes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UploadToExclude from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UploadToExclude from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "excludeAll": obj.get("excludeAll"), - "maxUploadTime": obj.get("maxUploadTime"), - "minUploadTime": obj.get("minUploadTime"), - "sources": obj.get("sources"), - "tenantCode": obj.get("tenantCode"), - "uploadTimes": obj.get("uploadTimes") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/upload_to_include.py b/src/visier_api_data_in/visier_api_data_in/models/upload_to_include.py deleted file mode 100644 index 6d1b4d53c2..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/upload_to_include.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UploadToInclude(BaseModel): - """ - UploadToInclude - """ # noqa: E501 - include_all: Optional[StrictBool] = Field(default=None, description="If `true`, all data uploads are included for the analytic tenant.", alias="includeAll") - max_upload_time: Optional[StrictStr] = Field(default=None, description="An ISO-8601 time such as `\"2001-10-25T13:45:35.999\"` for the latest upload time. If defined, omit `uploadTimes`. If omitted and `minUploadTime` is defined, includes files up to latest time available.", alias="maxUploadTime") - min_upload_time: Optional[StrictStr] = Field(default=None, description="An ISO-8601 time such as `\"2001-10-25T13:45:35.999\"` for the earliest upload time. If defined, omit `uploadTimes`. If omitted and `maxUploadTime` is defined, includes files up to earliest time available.", alias="minUploadTime") - sources: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings representing the object name of each source to include. If `uploadTimes` is omitted, includes files for the given sources for all `uploadTimes`.") - tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the analytic tenant you are including a data upload for.", alias="tenantCode") - upload_times: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of ISO-8601 time strings such as `\"2001-10-25T13:45:35.999\"` representing the upload time of each data upload to include.", alias="uploadTimes") - __properties: ClassVar[List[str]] = ["includeAll", "maxUploadTime", "minUploadTime", "sources", "tenantCode", "uploadTimes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UploadToInclude from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UploadToInclude from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "includeAll": obj.get("includeAll"), - "maxUploadTime": obj.get("maxUploadTime"), - "minUploadTime": obj.get("minUploadTime"), - "sources": obj.get("sources"), - "tenantCode": obj.get("tenantCode"), - "uploadTimes": obj.get("uploadTimes") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/willow_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/willow_auth_params_dto.py deleted file mode 100644 index c043f2018f..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/willow_auth_params_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class WillowAuthParamsDTO(BaseModel): - """ - WillowAuthParamsDTO - """ # noqa: E501 - api_token: Optional[StrictStr] = Field(default=None, alias="apiToken") - host_name: Optional[StrictStr] = Field(default=None, alias="hostName") - __properties: ClassVar[List[str]] = ["apiToken", "hostName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of WillowAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of WillowAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "apiToken": obj.get("apiToken"), - "hostName": obj.get("hostName") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/workday_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/workday_auth_params_dto.py deleted file mode 100644 index 598af0c78c..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/workday_auth_params_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_in.models.workday_o_auth_params_dto import WorkdayOAuthParamsDTO -from visier_api_data_in.models.workday_refresh_token_params_dto import WorkdayRefreshTokenParamsDTO -from typing import Optional, Set -from typing_extensions import Self - -class WorkdayAuthParamsDTO(BaseModel): - """ - WorkdayAuthParamsDTO - """ # noqa: E501 - api_key: Optional[StrictStr] = Field(default=None, alias="apiKey") - domain_name: Optional[StrictStr] = Field(default=None, alias="domainName") - implementation_name: Optional[StrictStr] = Field(default=None, alias="implementationName") - integration_system_id: Optional[StrictStr] = Field(default=None, alias="integrationSystemId") - o_auth: Optional[WorkdayOAuthParamsDTO] = Field(default=None, alias="oAuth") - password: Optional[StrictStr] = None - ref_token: Optional[WorkdayRefreshTokenParamsDTO] = Field(default=None, alias="refToken") - user_id: Optional[StrictStr] = Field(default=None, alias="userId") - __properties: ClassVar[List[str]] = ["apiKey", "domainName", "implementationName", "integrationSystemId", "oAuth", "password", "refToken", "userId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of WorkdayAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of o_auth - if self.o_auth: - _dict['oAuth'] = self.o_auth.to_dict() - # override the default output from pydantic by calling `to_dict()` of ref_token - if self.ref_token: - _dict['refToken'] = self.ref_token.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of WorkdayAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "apiKey": obj.get("apiKey"), - "domainName": obj.get("domainName"), - "implementationName": obj.get("implementationName"), - "integrationSystemId": obj.get("integrationSystemId"), - "oAuth": WorkdayOAuthParamsDTO.from_dict(obj["oAuth"]) if obj.get("oAuth") is not None else None, - "password": obj.get("password"), - "refToken": WorkdayRefreshTokenParamsDTO.from_dict(obj["refToken"]) if obj.get("refToken") is not None else None, - "userId": obj.get("userId") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/workday_o_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/workday_o_auth_params_dto.py deleted file mode 100644 index c8f0675745..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/workday_o_auth_params_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class WorkdayOAuthParamsDTO(BaseModel): - """ - WorkdayOAuthParamsDTO - """ # noqa: E501 - api_client_id: Optional[StrictStr] = Field(default=None, alias="apiClientId") - private_x509_key: Optional[StrictStr] = Field(default=None, alias="privateX509Key") - public_x509_cert: Optional[StrictStr] = Field(default=None, alias="publicX509Cert") - __properties: ClassVar[List[str]] = ["apiClientId", "privateX509Key", "publicX509Cert"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of WorkdayOAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of WorkdayOAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "apiClientId": obj.get("apiClientId"), - "privateX509Key": obj.get("privateX509Key"), - "publicX509Cert": obj.get("publicX509Cert") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/workday_raas_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/workday_raas_auth_params_dto.py deleted file mode 100644 index 42e09949e5..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/workday_raas_auth_params_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class WorkdayRaasAuthParamsDTO(BaseModel): - """ - WorkdayRaasAuthParamsDTO - """ # noqa: E501 - domain_name: Optional[StrictStr] = Field(default=None, alias="domainName") - implementation_name: Optional[StrictStr] = Field(default=None, alias="implementationName") - password: Optional[StrictStr] = None - test_report_url: Optional[StrictStr] = Field(default=None, alias="testReportUrl") - user_id: Optional[StrictStr] = Field(default=None, alias="userId") - __properties: ClassVar[List[str]] = ["domainName", "implementationName", "password", "testReportUrl", "userId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of WorkdayRaasAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of WorkdayRaasAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "domainName": obj.get("domainName"), - "implementationName": obj.get("implementationName"), - "password": obj.get("password"), - "testReportUrl": obj.get("testReportUrl"), - "userId": obj.get("userId") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/workday_refresh_token_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/workday_refresh_token_params_dto.py deleted file mode 100644 index aba4a4d7e6..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/workday_refresh_token_params_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class WorkdayRefreshTokenParamsDTO(BaseModel): - """ - WorkdayRefreshTokenParamsDTO - """ # noqa: E501 - api_client_id: Optional[StrictStr] = Field(default=None, alias="apiClientId") - client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") - refresh_token: Optional[StrictStr] = Field(default=None, alias="refreshToken") - __properties: ClassVar[List[str]] = ["apiClientId", "clientSecret", "refreshToken"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of WorkdayRefreshTokenParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of WorkdayRefreshTokenParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "apiClientId": obj.get("apiClientId"), - "clientSecret": obj.get("clientSecret"), - "refreshToken": obj.get("refreshToken") - }) - return _obj - - diff --git a/src/visier_api_data_in/visier_api_data_in/models/zoom_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/zoom_auth_params_dto.py deleted file mode 100644 index ca6da81620..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/zoom_auth_params_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data In APIs - - Visier APIs for sending data to Visier and running data load jobs. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ZoomAuthParamsDTO(BaseModel): - """ - ZoomAuthParamsDTO - """ # noqa: E501 - auth_code: Optional[StrictStr] = Field(default=None, alias="authCode") - client_id: Optional[StrictStr] = Field(default=None, alias="clientId") - client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") - __properties: ClassVar[List[str]] = ["authCode", "clientId", "clientSecret"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ZoomAuthParamsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ZoomAuthParamsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "authCode": obj.get("authCode"), - "clientId": obj.get("clientId"), - "clientSecret": obj.get("clientSecret") - }) - return _obj - - diff --git a/src/visier_api_data_out/.openapi-generator/FILES b/src/visier_api_data_out/.openapi-generator/FILES index 0f665c91d8..c321a0414c 100644 --- a/src/visier_api_data_out/.openapi-generator/FILES +++ b/src/visier_api_data_out/.openapi-generator/FILES @@ -4,104 +4,104 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_aggregation_query_dto.py -test/test_aggregation_query_execution_dto.py -test/test_aggregation_query_source_dto.py -test/test_aggregation_query_source_metric_dto.py -test/test_aggregation_query_source_metrics_dto.py -test/test_aggregation_type_parameter_value_dto.py -test/test_cell_distribution_bin_dto.py -test/test_cell_distribution_options_dto.py -test/test_cell_dto.py -test/test_cell_set_axis_dto.py -test/test_cell_set_axis_position_dto.py -test/test_cell_set_dto.py -test/test_cohort_filter_dto.py +test/test_analysis_common_transfers_report_create_request_dto.py +test/test_analysis_common_transfers_report_delete_success_dto.py +test/test_analysis_common_transfers_report_dto.py +test/test_analysis_common_transfers_report_list_response_dto.py +test/test_analysis_common_transfers_vee_clarification_dto.py +test/test_analysis_common_transfers_vee_conversation_state_dto.py +test/test_analysis_common_transfers_vee_corrections_dto.py +test/test_analysis_common_transfers_vee_data_dto.py +test/test_analysis_common_transfers_vee_feedback_dto.py +test/test_analysis_common_transfers_vee_options_dto.py +test/test_analysis_common_transfers_vee_question_dto.py +test/test_analysis_common_transfers_vee_response_dto.py +test/test_analysis_common_transfers_vee_response_schema_dto.py +test/test_analysis_common_transfers_vee_response_schema_reference_dto.py +test/test_analysis_common_transfers_vee_sample_question_dto.py +test/test_analysis_common_transfers_vee_sample_question_library_dto.py +test/test_analysis_common_transfers_vee_status_code_dto.py +test/test_analysis_common_transfers_vee_visual_dto.py +test/test_analysis_common_transfers_vee_visual_options_dto.py +test/test_data_out_list_response.py test/test_data_query_api.py test/test_data_version_export_api.py -test/test_data_version_export_column_dto.py -test/test_data_version_export_data_version_summary_dto.py -test/test_data_version_export_data_versions_dto.py -test/test_data_version_export_dto.py -test/test_data_version_export_file_dto.py -test/test_data_version_export_job_status_dto.py -test/test_data_version_export_part_file_dto.py -test/test_data_version_export_schedule_job_request_dto.py -test/test_data_version_export_schedule_job_response_dto.py -test/test_data_version_export_table_dto.py -test/test_data_version_exports_dto.py -test/test_dimension_member_reference_dto.py -test/test_dimension_reference_dto.py -test/test_document_search_link_dto.py -test/test_download_source_files_dto.py -test/test_download_source_files_response_dto.py +test/test_dataservices_common_dimension_member_reference_dto.py +test/test_dataservices_common_member_values_dto.py +test/test_dataservices_datamodel_transfers_dimension_reference_dto.py +test/test_dataservices_datamodel_transfers_property_reference_dto.py +test/test_dataservices_datamodel_transfers_selection_concept_reference_dto.py +test/test_dataservices_query_transfers_aggregation_query_dto.py +test/test_dataservices_query_transfers_aggregation_query_execution_dto.py +test/test_dataservices_query_transfers_aggregation_query_source_dto.py +test/test_dataservices_query_transfers_aggregation_query_source_metric_dto.py +test/test_dataservices_query_transfers_aggregation_query_source_metrics_dto.py +test/test_dataservices_query_transfers_aggregation_type_parameter_value_dto.py +test/test_dataservices_query_transfers_cell_distribution_bin_dto.py +test/test_dataservices_query_transfers_cell_distribution_options_dto.py +test/test_dataservices_query_transfers_cell_dto.py +test/test_dataservices_query_transfers_cell_set_axis_dto.py +test/test_dataservices_query_transfers_cell_set_axis_position_dto.py +test/test_dataservices_query_transfers_cell_set_dto.py +test/test_dataservices_query_transfers_cohort_filter_dto.py +test/test_dataservices_query_transfers_internal_query_execution_options_dto.py +test/test_dataservices_query_transfers_key_group_filter_dto.py +test/test_dataservices_query_transfers_key_group_filter_item_dto.py +test/test_dataservices_query_transfers_lineage_dto.py +test/test_dataservices_query_transfers_list_query_execution_dto.py +test/test_dataservices_query_transfers_list_query_execution_options_dto.py +test/test_dataservices_query_transfers_list_query_source_dto.py +test/test_dataservices_query_transfers_member_filter_dto.py +test/test_dataservices_query_transfers_member_parameter_value_dto.py +test/test_dataservices_query_transfers_numeric_parameter_value_dto.py +test/test_dataservices_query_transfers_plan_parameter_value_dto.py +test/test_dataservices_query_transfers_property_column_dto.py +test/test_dataservices_query_transfers_query_axis_dto.py +test/test_dataservices_query_transfers_query_axis_options_dto.py +test/test_dataservices_query_transfers_query_dimension_data_member_selection_dto.py +test/test_dataservices_query_transfers_query_dimension_leaf_selection_dto.py +test/test_dataservices_query_transfers_query_dimension_level_property_dto.py +test/test_dataservices_query_transfers_query_dimension_level_selection_dto.py +test/test_dataservices_query_transfers_query_dimension_member_selection_dto.py +test/test_dataservices_query_transfers_query_execution_options_dto.py +test/test_dataservices_query_transfers_query_filter_dto.py +test/test_dataservices_query_transfers_query_member_map_property_dto.py +test/test_dataservices_query_transfers_query_member_map_selection_dto.py +test/test_dataservices_query_transfers_query_numeric_ranges_dto.py +test/test_dataservices_query_transfers_query_parameter_value_dto.py +test/test_dataservices_query_transfers_query_property_dto.py +test/test_dataservices_query_transfers_query_time_interval_dto.py +test/test_dataservices_query_transfers_query_time_intervals_dto.py +test/test_dataservices_query_transfers_snapshot_query_execution_dto.py +test/test_dataservices_query_transfers_snapshot_query_execution_options_dto.py +test/test_dataservices_query_transfers_sort_option_dto.py +test/test_dataservices_query_transfers_sql_like_query_execution_dto.py +test/test_dataservices_query_transfers_time_shift_dto.py +test/test_designer_transfers_data_version_export_column_dto.py +test/test_designer_transfers_data_version_export_data_version_summary_dto.py +test/test_designer_transfers_data_version_export_data_versions_dto.py +test/test_designer_transfers_data_version_export_dto.py +test/test_designer_transfers_data_version_export_file_dto.py +test/test_designer_transfers_data_version_export_job_status_dto.py +test/test_designer_transfers_data_version_export_part_file_dto.py +test/test_designer_transfers_data_version_export_schedule_job_request_dto.py +test/test_designer_transfers_data_version_export_schedule_job_response_dto.py +test/test_designer_transfers_data_version_export_table_dto.py +test/test_designer_transfers_data_version_exports_dto.py +test/test_designer_transfers_download_source_files_dto.py +test/test_designer_transfers_download_source_files_response_dto.py test/test_dv_export_status.py test/test_google_protobuf_any.py -test/test_internal_query_execution_options_dto.py -test/test_key_group_filter_dto.py -test/test_key_group_filter_item_dto.py -test/test_lineage_dto.py -test/test_list_query_execution_dto.py -test/test_list_query_execution_options_dto.py -test/test_list_query_source_dto.py -test/test_list_response.py -test/test_member_filter_dto.py -test/test_member_parameter_value_dto.py -test/test_member_values_dto.py -test/test_numeric_parameter_value_dto.py -test/test_plan_parameter_value_dto.py -test/test_property_column_dto.py -test/test_property_reference_dto.py -test/test_query_axis_dto.py -test/test_query_axis_options_dto.py -test/test_query_dimension_data_member_selection_dto.py -test/test_query_dimension_leaf_selection_dto.py -test/test_query_dimension_level_property_dto.py -test/test_query_dimension_level_selection_dto.py -test/test_query_dimension_member_selection_dto.py -test/test_query_execution_options_dto.py -test/test_query_filter_dto.py -test/test_query_member_map_property_dto.py -test/test_query_member_map_selection_dto.py -test/test_query_numeric_ranges_dto.py -test/test_query_parameter_value_dto.py -test/test_query_property_dto.py -test/test_query_time_interval_dto.py -test/test_query_time_intervals_dto.py -test/test_report_create_request_dto.py -test/test_report_delete_success_dto.py -test/test_report_dto.py -test/test_report_list_response_dto.py test/test_reporting_api.py test/test_search_api.py -test/test_selection_concept_reference_dto.py -test/test_simple_document_header_search_response_dto.py -test/test_simple_document_header_search_result_dto.py -test/test_snapshot_query_execution_dto.py -test/test_snapshot_query_execution_options_dto.py -test/test_sort_option_dto.py +test/test_servicing_publicapi_transfers_document_search_link_dto.py +test/test_servicing_publicapi_transfers_simple_document_header_search_response_dto.py +test/test_servicing_publicapi_transfers_simple_document_header_search_result_dto.py test/test_source_files_download_api.py -test/test_sql_like_query_execution_dto.py test/test_status.py +test/test_systemstatus_publicapi_transfers_vee_status_dto.py test/test_table_response_dto.py -test/test_time_shift_dto.py test/test_vee_api.py -test/test_vee_clarification_dto.py -test/test_vee_conversation_state_dto.py -test/test_vee_corrections_dto.py -test/test_vee_data_dto.py -test/test_vee_feedback_dto.py -test/test_vee_options_dto.py -test/test_vee_question_dto.py -test/test_vee_response_dto.py -test/test_vee_response_schema_dto.py -test/test_vee_response_schema_reference_dto.py -test/test_vee_sample_question_dto.py -test/test_vee_sample_question_library_dto.py -test/test_vee_status_code_dto.py -test/test_vee_status_dto.py -test/test_vee_visual_dto.py -test/test_vee_visual_options_dto.py tox.ini visier_api_data_out/__init__.py visier_api_data_out/api/__init__.py @@ -112,97 +112,97 @@ visier_api_data_out/api/search_api.py visier_api_data_out/api/source_files_download_api.py visier_api_data_out/api/vee_api.py visier_api_data_out/models/__init__.py -visier_api_data_out/models/aggregation_query_dto.py -visier_api_data_out/models/aggregation_query_execution_dto.py -visier_api_data_out/models/aggregation_query_source_dto.py -visier_api_data_out/models/aggregation_query_source_metric_dto.py -visier_api_data_out/models/aggregation_query_source_metrics_dto.py -visier_api_data_out/models/aggregation_type_parameter_value_dto.py -visier_api_data_out/models/cell_distribution_bin_dto.py -visier_api_data_out/models/cell_distribution_options_dto.py -visier_api_data_out/models/cell_dto.py -visier_api_data_out/models/cell_set_axis_dto.py -visier_api_data_out/models/cell_set_axis_position_dto.py -visier_api_data_out/models/cell_set_dto.py -visier_api_data_out/models/cohort_filter_dto.py -visier_api_data_out/models/data_version_export_column_dto.py -visier_api_data_out/models/data_version_export_data_version_summary_dto.py -visier_api_data_out/models/data_version_export_data_versions_dto.py -visier_api_data_out/models/data_version_export_dto.py -visier_api_data_out/models/data_version_export_file_dto.py -visier_api_data_out/models/data_version_export_job_status_dto.py -visier_api_data_out/models/data_version_export_part_file_dto.py -visier_api_data_out/models/data_version_export_schedule_job_request_dto.py -visier_api_data_out/models/data_version_export_schedule_job_response_dto.py -visier_api_data_out/models/data_version_export_table_dto.py -visier_api_data_out/models/data_version_exports_dto.py -visier_api_data_out/models/dimension_member_reference_dto.py -visier_api_data_out/models/dimension_reference_dto.py -visier_api_data_out/models/document_search_link_dto.py -visier_api_data_out/models/download_source_files_dto.py -visier_api_data_out/models/download_source_files_response_dto.py +visier_api_data_out/models/analysis_common_transfers_report_create_request_dto.py +visier_api_data_out/models/analysis_common_transfers_report_delete_success_dto.py +visier_api_data_out/models/analysis_common_transfers_report_dto.py +visier_api_data_out/models/analysis_common_transfers_report_list_response_dto.py +visier_api_data_out/models/analysis_common_transfers_vee_clarification_dto.py +visier_api_data_out/models/analysis_common_transfers_vee_conversation_state_dto.py +visier_api_data_out/models/analysis_common_transfers_vee_corrections_dto.py +visier_api_data_out/models/analysis_common_transfers_vee_data_dto.py +visier_api_data_out/models/analysis_common_transfers_vee_feedback_dto.py +visier_api_data_out/models/analysis_common_transfers_vee_options_dto.py +visier_api_data_out/models/analysis_common_transfers_vee_question_dto.py +visier_api_data_out/models/analysis_common_transfers_vee_response_dto.py +visier_api_data_out/models/analysis_common_transfers_vee_response_schema_dto.py +visier_api_data_out/models/analysis_common_transfers_vee_response_schema_reference_dto.py +visier_api_data_out/models/analysis_common_transfers_vee_sample_question_dto.py +visier_api_data_out/models/analysis_common_transfers_vee_sample_question_library_dto.py +visier_api_data_out/models/analysis_common_transfers_vee_status_code_dto.py +visier_api_data_out/models/analysis_common_transfers_vee_visual_dto.py +visier_api_data_out/models/analysis_common_transfers_vee_visual_options_dto.py +visier_api_data_out/models/data_out_list_response.py +visier_api_data_out/models/dataservices_common_dimension_member_reference_dto.py +visier_api_data_out/models/dataservices_common_member_values_dto.py +visier_api_data_out/models/dataservices_datamodel_transfers_dimension_reference_dto.py +visier_api_data_out/models/dataservices_datamodel_transfers_property_reference_dto.py +visier_api_data_out/models/dataservices_datamodel_transfers_selection_concept_reference_dto.py +visier_api_data_out/models/dataservices_query_transfers_aggregation_query_dto.py +visier_api_data_out/models/dataservices_query_transfers_aggregation_query_execution_dto.py +visier_api_data_out/models/dataservices_query_transfers_aggregation_query_source_dto.py +visier_api_data_out/models/dataservices_query_transfers_aggregation_query_source_metric_dto.py +visier_api_data_out/models/dataservices_query_transfers_aggregation_query_source_metrics_dto.py +visier_api_data_out/models/dataservices_query_transfers_aggregation_type_parameter_value_dto.py +visier_api_data_out/models/dataservices_query_transfers_cell_distribution_bin_dto.py +visier_api_data_out/models/dataservices_query_transfers_cell_distribution_options_dto.py +visier_api_data_out/models/dataservices_query_transfers_cell_dto.py +visier_api_data_out/models/dataservices_query_transfers_cell_set_axis_dto.py +visier_api_data_out/models/dataservices_query_transfers_cell_set_axis_position_dto.py +visier_api_data_out/models/dataservices_query_transfers_cell_set_dto.py +visier_api_data_out/models/dataservices_query_transfers_cohort_filter_dto.py +visier_api_data_out/models/dataservices_query_transfers_internal_query_execution_options_dto.py +visier_api_data_out/models/dataservices_query_transfers_key_group_filter_dto.py +visier_api_data_out/models/dataservices_query_transfers_key_group_filter_item_dto.py +visier_api_data_out/models/dataservices_query_transfers_lineage_dto.py +visier_api_data_out/models/dataservices_query_transfers_list_query_execution_dto.py +visier_api_data_out/models/dataservices_query_transfers_list_query_execution_options_dto.py +visier_api_data_out/models/dataservices_query_transfers_list_query_source_dto.py +visier_api_data_out/models/dataservices_query_transfers_member_filter_dto.py +visier_api_data_out/models/dataservices_query_transfers_member_parameter_value_dto.py +visier_api_data_out/models/dataservices_query_transfers_numeric_parameter_value_dto.py +visier_api_data_out/models/dataservices_query_transfers_plan_parameter_value_dto.py +visier_api_data_out/models/dataservices_query_transfers_property_column_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_axis_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_axis_options_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_dimension_data_member_selection_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_dimension_leaf_selection_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_dimension_level_property_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_dimension_level_selection_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_dimension_member_selection_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_execution_options_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_filter_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_member_map_property_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_member_map_selection_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_numeric_ranges_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_parameter_value_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_property_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_time_interval_dto.py +visier_api_data_out/models/dataservices_query_transfers_query_time_intervals_dto.py +visier_api_data_out/models/dataservices_query_transfers_snapshot_query_execution_dto.py +visier_api_data_out/models/dataservices_query_transfers_snapshot_query_execution_options_dto.py +visier_api_data_out/models/dataservices_query_transfers_sort_option_dto.py +visier_api_data_out/models/dataservices_query_transfers_sql_like_query_execution_dto.py +visier_api_data_out/models/dataservices_query_transfers_time_shift_dto.py +visier_api_data_out/models/designer_transfers_data_version_export_column_dto.py +visier_api_data_out/models/designer_transfers_data_version_export_data_version_summary_dto.py +visier_api_data_out/models/designer_transfers_data_version_export_data_versions_dto.py +visier_api_data_out/models/designer_transfers_data_version_export_dto.py +visier_api_data_out/models/designer_transfers_data_version_export_file_dto.py +visier_api_data_out/models/designer_transfers_data_version_export_job_status_dto.py +visier_api_data_out/models/designer_transfers_data_version_export_part_file_dto.py +visier_api_data_out/models/designer_transfers_data_version_export_schedule_job_request_dto.py +visier_api_data_out/models/designer_transfers_data_version_export_schedule_job_response_dto.py +visier_api_data_out/models/designer_transfers_data_version_export_table_dto.py +visier_api_data_out/models/designer_transfers_data_version_exports_dto.py +visier_api_data_out/models/designer_transfers_download_source_files_dto.py +visier_api_data_out/models/designer_transfers_download_source_files_response_dto.py visier_api_data_out/models/dv_export_status.py visier_api_data_out/models/google_protobuf_any.py -visier_api_data_out/models/internal_query_execution_options_dto.py -visier_api_data_out/models/key_group_filter_dto.py -visier_api_data_out/models/key_group_filter_item_dto.py -visier_api_data_out/models/lineage_dto.py -visier_api_data_out/models/list_query_execution_dto.py -visier_api_data_out/models/list_query_execution_options_dto.py -visier_api_data_out/models/list_query_source_dto.py -visier_api_data_out/models/list_response.py -visier_api_data_out/models/member_filter_dto.py -visier_api_data_out/models/member_parameter_value_dto.py -visier_api_data_out/models/member_values_dto.py -visier_api_data_out/models/numeric_parameter_value_dto.py -visier_api_data_out/models/plan_parameter_value_dto.py -visier_api_data_out/models/property_column_dto.py -visier_api_data_out/models/property_reference_dto.py -visier_api_data_out/models/query_axis_dto.py -visier_api_data_out/models/query_axis_options_dto.py -visier_api_data_out/models/query_dimension_data_member_selection_dto.py -visier_api_data_out/models/query_dimension_leaf_selection_dto.py -visier_api_data_out/models/query_dimension_level_property_dto.py -visier_api_data_out/models/query_dimension_level_selection_dto.py -visier_api_data_out/models/query_dimension_member_selection_dto.py -visier_api_data_out/models/query_execution_options_dto.py -visier_api_data_out/models/query_filter_dto.py -visier_api_data_out/models/query_member_map_property_dto.py -visier_api_data_out/models/query_member_map_selection_dto.py -visier_api_data_out/models/query_numeric_ranges_dto.py -visier_api_data_out/models/query_parameter_value_dto.py -visier_api_data_out/models/query_property_dto.py -visier_api_data_out/models/query_time_interval_dto.py -visier_api_data_out/models/query_time_intervals_dto.py -visier_api_data_out/models/report_create_request_dto.py -visier_api_data_out/models/report_delete_success_dto.py -visier_api_data_out/models/report_dto.py -visier_api_data_out/models/report_list_response_dto.py -visier_api_data_out/models/selection_concept_reference_dto.py -visier_api_data_out/models/simple_document_header_search_response_dto.py -visier_api_data_out/models/simple_document_header_search_result_dto.py -visier_api_data_out/models/snapshot_query_execution_dto.py -visier_api_data_out/models/snapshot_query_execution_options_dto.py -visier_api_data_out/models/sort_option_dto.py +visier_api_data_out/models/servicing_publicapi_transfers_document_search_link_dto.py +visier_api_data_out/models/servicing_publicapi_transfers_simple_document_header_search_response_dto.py +visier_api_data_out/models/servicing_publicapi_transfers_simple_document_header_search_result_dto.py visier_api_data_out/models/sql_like200_response.py -visier_api_data_out/models/sql_like_query_execution_dto.py visier_api_data_out/models/status.py +visier_api_data_out/models/systemstatus_publicapi_transfers_vee_status_dto.py visier_api_data_out/models/table_response_dto.py -visier_api_data_out/models/time_shift_dto.py -visier_api_data_out/models/vee_clarification_dto.py -visier_api_data_out/models/vee_conversation_state_dto.py -visier_api_data_out/models/vee_corrections_dto.py -visier_api_data_out/models/vee_data_dto.py -visier_api_data_out/models/vee_feedback_dto.py -visier_api_data_out/models/vee_options_dto.py -visier_api_data_out/models/vee_question_dto.py -visier_api_data_out/models/vee_response_dto.py -visier_api_data_out/models/vee_response_schema_dto.py -visier_api_data_out/models/vee_response_schema_reference_dto.py -visier_api_data_out/models/vee_sample_question_dto.py -visier_api_data_out/models/vee_sample_question_library_dto.py -visier_api_data_out/models/vee_status_code_dto.py -visier_api_data_out/models/vee_status_dto.py -visier_api_data_out/models/vee_visual_dto.py -visier_api_data_out/models/vee_visual_options_dto.py visier_api_data_out/py.typed diff --git a/src/visier_api_data_out/pyproject.toml b/src/visier_api_data_out/pyproject.toml index 815fe8f1d7..39da4b64ed 100644 --- a/src/visier_api_data_out/pyproject.toml +++ b/src/visier_api_data_out/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "visier_api_data_out" -version = "0.99201.1772" +version = "0.99201.1793" description = "Visier Data Out APIs" authors = ["Visier "] license = "Apache License, Version 2.0" @@ -12,7 +12,7 @@ include = ["visier_api_data_out/py.typed"] [tool.poetry.dependencies] python = "^3.8" -visier-api-core = "~= 0.99201.1772" +visier-api-core = "~= 0.99201.1793" [tool.poetry.dev-dependencies] pytest = ">=7.2.1" diff --git a/src/visier_api_data_out/requirements.txt b/src/visier_api_data_out/requirements.txt index abc44fc65a..ebf9a91559 100644 --- a/src/visier_api_data_out/requirements.txt +++ b/src/visier_api_data_out/requirements.txt @@ -1 +1 @@ -visier-api-core ~= 0.99201.1772 \ No newline at end of file +visier-api-core ~= 0.99201.1793 \ No newline at end of file diff --git a/src/visier_api_data_out/setup.py b/src/visier_api_data_out/setup.py index 7a69c63ea8..c74ec1a756 100644 --- a/src/visier_api_data_out/setup.py +++ b/src/visier_api_data_out/setup.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,10 +23,10 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "visier-api-data-out" -VERSION = "0.99201.1772" +VERSION = "0.99201.1793" PYTHON_REQUIRES = ">=3.8" REQUIRES = [ - "visier-api-core ~= 0.99201.1772", + "visier-api-core ~= 0.99201.1793", ] setup( diff --git a/src/visier_api_data_out/test/test_aggregation_query_dto.py b/src/visier_api_data_out/test/test_aggregation_query_dto.py deleted file mode 100644 index 314e7c2688..0000000000 --- a/src/visier_api_data_out/test/test_aggregation_query_dto.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.aggregation_query_dto import AggregationQueryDTO - -class TestAggregationQueryDTO(unittest.TestCase): - """AggregationQueryDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AggregationQueryDTO: - """Test AggregationQueryDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AggregationQueryDTO( - axes = [ - visier_api_data_out.models.query_axis_dto.QueryAxisDTO( - dimension_data_member_selection = None, - dimension_leaf_member_selection = None, - dimension_level_selection = None, - dimension_level_with_uncategorized_value_selection = None, - dimension_member_selection = None, - formula = '', - member_map_selection = None, - numeric_ranges = None, - selection_concept = None, - table_axis_options = None, ) - ], - filters = [ - visier_api_data_out.models.query_filter_dto.QueryFilterDTO( - cohort = None, - formula = '', - member_set = None, - selection_concept = None, ) - ], - parameter_values = [ - visier_api_data_out.models.query_parameter_value_dto.QueryParameterValueDTO( - aggregation_type_value = None, - member_value = None, - numeric_value = None, - plan_value = None, ) - ], - source = visier_api_data_out.models.aggregation_query_source_dto.AggregationQuerySourceDTO( - formula = '', - metric = '', - metrics = None, ), - time_intervals = visier_api_data_out.models.query_time_intervals_dto.QueryTimeIntervalsDTO( - direction = 'BACKWARD', - dynamic_date_from = 'SOURCE', - from_date_time = '', - from_instant = '', - interval_count = 56, - interval_period_count = 56, - interval_period_type = 'MONTH', - shift = None, - trailing_period_count = 56, - trailing_period_type = 'MONTH', ) - ) - else: - return AggregationQueryDTO( - ) - - def testAggregationQueryDTO(self): - """Test AggregationQueryDTO""" - def validate_instance(instance): - AggregationQueryDTO.model_validate(inst_req_only) - instance_deserialized = AggregationQueryDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_aggregation_query_execution_dto.py b/src/visier_api_data_out/test/test_aggregation_query_execution_dto.py deleted file mode 100644 index 8a60684722..0000000000 --- a/src/visier_api_data_out/test/test_aggregation_query_execution_dto.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.aggregation_query_execution_dto import AggregationQueryExecutionDTO - -class TestAggregationQueryExecutionDTO(unittest.TestCase): - """AggregationQueryExecutionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AggregationQueryExecutionDTO: - """Test AggregationQueryExecutionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AggregationQueryExecutionDTO( - options = visier_api_data_out.models.query_execution_options_dto.QueryExecutionOptionsDTO( - axes_overall_value_mode = 'NONE', - axis_visibility = 'SIMPLE', - calendar_type = 'TENANT_CALENDAR', - cell_distribution_options = visier_api_data_out.models.cell_distribution_options_dto.CellDistributionOptionsDTO( - bin_count = 56, ), - currency_conversion_code = '', - currency_conversion_date = '', - currency_conversion_mode = 'TENANT_CURRENCY_CONVERSION', - enable_descending_space = True, - enable_sparse_results = True, - internal = visier_api_data_out.models.internal_query_execution_options_dto.InternalQueryExecutionOptionsDTO( - align_time_axis_to_period_end = True, - sparse_handling_mode = 'ALLOW', ), - lineage_depth = 56, - member_display_mode = 'DEFAULT', - null_visibility = 'SHOW', - zero_visibility = 'SHOW', ), - query = visier_api_data_out.models.aggregation_query_dto.AggregationQueryDTO( - axes = [ - visier_api_data_out.models.query_axis_dto.QueryAxisDTO( - dimension_data_member_selection = None, - dimension_leaf_member_selection = None, - dimension_level_selection = None, - dimension_level_with_uncategorized_value_selection = None, - dimension_member_selection = None, - formula = '', - member_map_selection = None, - numeric_ranges = None, - selection_concept = None, - table_axis_options = None, ) - ], - filters = [ - visier_api_data_out.models.query_filter_dto.QueryFilterDTO( - cohort = None, - formula = '', - member_set = None, - selection_concept = None, ) - ], - parameter_values = [ - visier_api_data_out.models.query_parameter_value_dto.QueryParameterValueDTO( - aggregation_type_value = None, - member_value = None, - numeric_value = None, - plan_value = None, ) - ], - source = None, - time_intervals = None, ) - ) - else: - return AggregationQueryExecutionDTO( - ) - - def testAggregationQueryExecutionDTO(self): - """Test AggregationQueryExecutionDTO""" - def validate_instance(instance): - AggregationQueryExecutionDTO.model_validate(inst_req_only) - instance_deserialized = AggregationQueryExecutionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_aggregation_query_source_dto.py b/src/visier_api_data_out/test/test_aggregation_query_source_dto.py deleted file mode 100644 index 73ed52cb6d..0000000000 --- a/src/visier_api_data_out/test/test_aggregation_query_source_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.aggregation_query_source_dto import AggregationQuerySourceDTO - -class TestAggregationQuerySourceDTO(unittest.TestCase): - """AggregationQuerySourceDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AggregationQuerySourceDTO: - """Test AggregationQuerySourceDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AggregationQuerySourceDTO( - formula = '', - metric = '', - metrics = visier_api_data_out.models.aggregation_query_source_metrics_dto.AggregationQuerySourceMetricsDTO( - columns = [ - visier_api_data_out.models.aggregation_query_source_metric_dto.AggregationQuerySourceMetricDTO( - column_name = '', - formula = '', - id = '', - qualifying_path = '', ) - ], ) - ) - else: - return AggregationQuerySourceDTO( - ) - - def testAggregationQuerySourceDTO(self): - """Test AggregationQuerySourceDTO""" - def validate_instance(instance): - AggregationQuerySourceDTO.model_validate(inst_req_only) - instance_deserialized = AggregationQuerySourceDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_aggregation_query_source_metric_dto.py b/src/visier_api_data_out/test/test_aggregation_query_source_metric_dto.py deleted file mode 100644 index 22a5c9b275..0000000000 --- a/src/visier_api_data_out/test/test_aggregation_query_source_metric_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.aggregation_query_source_metric_dto import AggregationQuerySourceMetricDTO - -class TestAggregationQuerySourceMetricDTO(unittest.TestCase): - """AggregationQuerySourceMetricDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AggregationQuerySourceMetricDTO: - """Test AggregationQuerySourceMetricDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AggregationQuerySourceMetricDTO( - column_name = '', - formula = '', - id = '', - qualifying_path = '' - ) - else: - return AggregationQuerySourceMetricDTO( - ) - - def testAggregationQuerySourceMetricDTO(self): - """Test AggregationQuerySourceMetricDTO""" - def validate_instance(instance): - AggregationQuerySourceMetricDTO.model_validate(inst_req_only) - instance_deserialized = AggregationQuerySourceMetricDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_aggregation_query_source_metrics_dto.py b/src/visier_api_data_out/test/test_aggregation_query_source_metrics_dto.py deleted file mode 100644 index 43fd7f5c43..0000000000 --- a/src/visier_api_data_out/test/test_aggregation_query_source_metrics_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.aggregation_query_source_metrics_dto import AggregationQuerySourceMetricsDTO - -class TestAggregationQuerySourceMetricsDTO(unittest.TestCase): - """AggregationQuerySourceMetricsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AggregationQuerySourceMetricsDTO: - """Test AggregationQuerySourceMetricsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AggregationQuerySourceMetricsDTO( - columns = [ - visier_api_data_out.models.aggregation_query_source_metric_dto.AggregationQuerySourceMetricDTO( - column_name = '', - formula = '', - id = '', - qualifying_path = '', ) - ] - ) - else: - return AggregationQuerySourceMetricsDTO( - ) - - def testAggregationQuerySourceMetricsDTO(self): - """Test AggregationQuerySourceMetricsDTO""" - def validate_instance(instance): - AggregationQuerySourceMetricsDTO.model_validate(inst_req_only) - instance_deserialized = AggregationQuerySourceMetricsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_aggregation_type_parameter_value_dto.py b/src/visier_api_data_out/test/test_aggregation_type_parameter_value_dto.py deleted file mode 100644 index 71a289bd2e..0000000000 --- a/src/visier_api_data_out/test/test_aggregation_type_parameter_value_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.aggregation_type_parameter_value_dto import AggregationTypeParameterValueDTO - -class TestAggregationTypeParameterValueDTO(unittest.TestCase): - """AggregationTypeParameterValueDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AggregationTypeParameterValueDTO: - """Test AggregationTypeParameterValueDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return AggregationTypeParameterValueDTO( - aggregation_option_id = '', - parameter_id = '' - ) - else: - return AggregationTypeParameterValueDTO( - ) - - def testAggregationTypeParameterValueDTO(self): - """Test AggregationTypeParameterValueDTO""" - def validate_instance(instance): - AggregationTypeParameterValueDTO.model_validate(inst_req_only) - instance_deserialized = AggregationTypeParameterValueDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_report_create_request_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_report_create_request_dto.py new file mode 100644 index 0000000000..f062027966 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_report_create_request_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_report_create_request_dto import AnalysisCommonTransfersReportCreateRequestDTO + +class TestAnalysisCommonTransfersReportCreateRequestDTO(unittest.TestCase): + """AnalysisCommonTransfersReportCreateRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersReportCreateRequestDTO: + """Test AnalysisCommonTransfersReportCreateRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersReportCreateRequestDTO( + description = '', + title = '' + ) + else: + return AnalysisCommonTransfersReportCreateRequestDTO( + ) + + def testAnalysisCommonTransfersReportCreateRequestDTO(self): + """Test AnalysisCommonTransfersReportCreateRequestDTO""" + def validate_instance(instance): + AnalysisCommonTransfersReportCreateRequestDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersReportCreateRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_report_delete_success_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_report_delete_success_dto.py new file mode 100644 index 0000000000..1f55801149 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_report_delete_success_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_report_delete_success_dto import AnalysisCommonTransfersReportDeleteSuccessDTO + +class TestAnalysisCommonTransfersReportDeleteSuccessDTO(unittest.TestCase): + """AnalysisCommonTransfersReportDeleteSuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersReportDeleteSuccessDTO: + """Test AnalysisCommonTransfersReportDeleteSuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersReportDeleteSuccessDTO( + id = '' + ) + else: + return AnalysisCommonTransfersReportDeleteSuccessDTO( + ) + + def testAnalysisCommonTransfersReportDeleteSuccessDTO(self): + """Test AnalysisCommonTransfersReportDeleteSuccessDTO""" + def validate_instance(instance): + AnalysisCommonTransfersReportDeleteSuccessDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersReportDeleteSuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_report_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_report_dto.py new file mode 100644 index 0000000000..9dcc801fdc --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_report_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_report_dto import AnalysisCommonTransfersReportDTO + +class TestAnalysisCommonTransfersReportDTO(unittest.TestCase): + """AnalysisCommonTransfersReportDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersReportDTO: + """Test AnalysisCommonTransfersReportDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersReportDTO( + allowed_actions = [ + 'duplicate' + ], + description = '', + id = '', + is_owned_by_user = True, + is_published_report = True, + link = '', + owner = '', + title = '', + updated_time = '' + ) + else: + return AnalysisCommonTransfersReportDTO( + ) + + def testAnalysisCommonTransfersReportDTO(self): + """Test AnalysisCommonTransfersReportDTO""" + def validate_instance(instance): + AnalysisCommonTransfersReportDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersReportDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_report_list_response_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_report_list_response_dto.py new file mode 100644 index 0000000000..663fa174c9 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_report_list_response_dto.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_report_list_response_dto import AnalysisCommonTransfersReportListResponseDTO + +class TestAnalysisCommonTransfersReportListResponseDTO(unittest.TestCase): + """AnalysisCommonTransfersReportListResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersReportListResponseDTO: + """Test AnalysisCommonTransfersReportListResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersReportListResponseDTO( + reports = [ + visier_api_data_out.models.analysis/common/transfers/report_dto.analysis.common.transfers.ReportDTO( + allowed_actions = [ + 'duplicate' + ], + description = '', + id = '', + is_owned_by_user = True, + is_published_report = True, + link = '', + owner = '', + title = '', + updated_time = '', ) + ] + ) + else: + return AnalysisCommonTransfersReportListResponseDTO( + ) + + def testAnalysisCommonTransfersReportListResponseDTO(self): + """Test AnalysisCommonTransfersReportListResponseDTO""" + def validate_instance(instance): + AnalysisCommonTransfersReportListResponseDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersReportListResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_vee_clarification_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_clarification_dto.py new file mode 100644 index 0000000000..34a7c00410 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_clarification_dto.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_vee_clarification_dto import AnalysisCommonTransfersVeeClarificationDTO + +class TestAnalysisCommonTransfersVeeClarificationDTO(unittest.TestCase): + """AnalysisCommonTransfersVeeClarificationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersVeeClarificationDTO: + """Test AnalysisCommonTransfersVeeClarificationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersVeeClarificationDTO( + attributes = [ + '' + ], + dimensions = [ + '' + ], + filters = [ + '' + ], + message = '', + metrics = [ + '' + ], + questions = [ + '' + ] + ) + else: + return AnalysisCommonTransfersVeeClarificationDTO( + ) + + def testAnalysisCommonTransfersVeeClarificationDTO(self): + """Test AnalysisCommonTransfersVeeClarificationDTO""" + def validate_instance(instance): + AnalysisCommonTransfersVeeClarificationDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersVeeClarificationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_vee_conversation_state_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_conversation_state_dto.py new file mode 100644 index 0000000000..3efa3e0da0 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_conversation_state_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_vee_conversation_state_dto import AnalysisCommonTransfersVeeConversationStateDTO + +class TestAnalysisCommonTransfersVeeConversationStateDTO(unittest.TestCase): + """AnalysisCommonTransfersVeeConversationStateDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersVeeConversationStateDTO: + """Test AnalysisCommonTransfersVeeConversationStateDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersVeeConversationStateDTO( + question_state = [ + '' + ] + ) + else: + return AnalysisCommonTransfersVeeConversationStateDTO( + ) + + def testAnalysisCommonTransfersVeeConversationStateDTO(self): + """Test AnalysisCommonTransfersVeeConversationStateDTO""" + def validate_instance(instance): + AnalysisCommonTransfersVeeConversationStateDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersVeeConversationStateDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_vee_corrections_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_corrections_dto.py new file mode 100644 index 0000000000..e66055a973 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_corrections_dto.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_vee_corrections_dto import AnalysisCommonTransfersVeeCorrectionsDTO + +class TestAnalysisCommonTransfersVeeCorrectionsDTO(unittest.TestCase): + """AnalysisCommonTransfersVeeCorrectionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersVeeCorrectionsDTO: + """Test AnalysisCommonTransfersVeeCorrectionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersVeeCorrectionsDTO( + clarifications = [ + visier_api_data_out.models.analysis/common/transfers/vee_clarification_dto.analysis.common.transfers.VeeClarificationDTO( + attributes = [ + '' + ], + dimensions = [ + '' + ], + filters = [ + '' + ], + message = '', + metrics = [ + '' + ], + questions = [ + '' + ], ) + ], + warning = [ + 'VEE_NO_WARNING' + ] + ) + else: + return AnalysisCommonTransfersVeeCorrectionsDTO( + ) + + def testAnalysisCommonTransfersVeeCorrectionsDTO(self): + """Test AnalysisCommonTransfersVeeCorrectionsDTO""" + def validate_instance(instance): + AnalysisCommonTransfersVeeCorrectionsDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersVeeCorrectionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_vee_data_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_data_dto.py new file mode 100644 index 0000000000..2569b1eba6 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_data_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_vee_data_dto import AnalysisCommonTransfersVeeDataDTO + +class TestAnalysisCommonTransfersVeeDataDTO(unittest.TestCase): + """AnalysisCommonTransfersVeeDataDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersVeeDataDTO: + """Test AnalysisCommonTransfersVeeDataDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersVeeDataDTO( + context = '', + data_json = '' + ) + else: + return AnalysisCommonTransfersVeeDataDTO( + ) + + def testAnalysisCommonTransfersVeeDataDTO(self): + """Test AnalysisCommonTransfersVeeDataDTO""" + def validate_instance(instance): + AnalysisCommonTransfersVeeDataDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersVeeDataDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_vee_feedback_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_feedback_dto.py new file mode 100644 index 0000000000..54b818d23e --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_feedback_dto.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_vee_feedback_dto import AnalysisCommonTransfersVeeFeedbackDTO + +class TestAnalysisCommonTransfersVeeFeedbackDTO(unittest.TestCase): + """AnalysisCommonTransfersVeeFeedbackDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersVeeFeedbackDTO: + """Test AnalysisCommonTransfersVeeFeedbackDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersVeeFeedbackDTO( + description = '', + is_approved = True, + response = visier_api_data_out.models.analysis/common/transfers/vee_response_dto.analysis.common.transfers.VeeResponseDTO( + chart_url = '', + conversation_state = None, + corrections = [ + visier_api_data_out.models.analysis/common/transfers/vee_corrections_dto.analysis.common.transfers.VeeCorrectionsDTO( + clarifications = [ + visier_api_data_out.models.analysis/common/transfers/vee_clarification_dto.analysis.common.transfers.VeeClarificationDTO( + attributes = [ + '' + ], + dimensions = [ + '' + ], + filters = [ + '' + ], + message = '', + metrics = [ + '' + ], + questions = [ + '' + ], ) + ], + warning = [ + 'VEE_NO_WARNING' + ], ) + ], + data = None, + narrative = '', + reworded_question = '', + schema = None, + status_code = None, + visual = None, ) + ) + else: + return AnalysisCommonTransfersVeeFeedbackDTO( + ) + + def testAnalysisCommonTransfersVeeFeedbackDTO(self): + """Test AnalysisCommonTransfersVeeFeedbackDTO""" + def validate_instance(instance): + AnalysisCommonTransfersVeeFeedbackDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersVeeFeedbackDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_vee_options_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_options_dto.py new file mode 100644 index 0000000000..f03eeea0dc --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_options_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_vee_options_dto import AnalysisCommonTransfersVeeOptionsDTO + +class TestAnalysisCommonTransfersVeeOptionsDTO(unittest.TestCase): + """AnalysisCommonTransfersVeeOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersVeeOptionsDTO: + """Test AnalysisCommonTransfersVeeOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersVeeOptionsDTO( + data_format = 'json', + include_data = True, + include_reworded_question = True, + include_visual = True, + visual_options = visier_api_data_out.models.analysis/common/transfers/vee_visual_options_dto.analysis.common.transfers.VeeVisualOptionsDTO( + height = 56, + width = 56, ) + ) + else: + return AnalysisCommonTransfersVeeOptionsDTO( + ) + + def testAnalysisCommonTransfersVeeOptionsDTO(self): + """Test AnalysisCommonTransfersVeeOptionsDTO""" + def validate_instance(instance): + AnalysisCommonTransfersVeeOptionsDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersVeeOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_vee_question_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_question_dto.py new file mode 100644 index 0000000000..d0f3cbf77a --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_question_dto.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_vee_question_dto import AnalysisCommonTransfersVeeQuestionDTO + +class TestAnalysisCommonTransfersVeeQuestionDTO(unittest.TestCase): + """AnalysisCommonTransfersVeeQuestionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersVeeQuestionDTO: + """Test AnalysisCommonTransfersVeeQuestionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersVeeQuestionDTO( + conversation_state = visier_api_data_out.models.analysis/common/transfers/vee_conversation_state_dto.analysis.common.transfers.VeeConversationStateDTO( + question_state = [ + '' + ], ), + max_view_details_members = 56, + options = visier_api_data_out.models.analysis/common/transfers/vee_options_dto.analysis.common.transfers.VeeOptionsDTO( + data_format = 'json', + include_data = True, + include_reworded_question = True, + include_visual = True, + visual_options = None, ), + question = '' + ) + else: + return AnalysisCommonTransfersVeeQuestionDTO( + ) + + def testAnalysisCommonTransfersVeeQuestionDTO(self): + """Test AnalysisCommonTransfersVeeQuestionDTO""" + def validate_instance(instance): + AnalysisCommonTransfersVeeQuestionDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersVeeQuestionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_vee_response_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_response_dto.py new file mode 100644 index 0000000000..4534ea8e24 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_response_dto.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_vee_response_dto import AnalysisCommonTransfersVeeResponseDTO + +class TestAnalysisCommonTransfersVeeResponseDTO(unittest.TestCase): + """AnalysisCommonTransfersVeeResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersVeeResponseDTO: + """Test AnalysisCommonTransfersVeeResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersVeeResponseDTO( + chart_url = '', + conversation_state = visier_api_data_out.models.analysis/common/transfers/vee_conversation_state_dto.analysis.common.transfers.VeeConversationStateDTO( + question_state = [ + '' + ], ), + corrections = [ + visier_api_data_out.models.analysis/common/transfers/vee_corrections_dto.analysis.common.transfers.VeeCorrectionsDTO( + clarifications = [ + visier_api_data_out.models.analysis/common/transfers/vee_clarification_dto.analysis.common.transfers.VeeClarificationDTO( + attributes = [ + '' + ], + dimensions = [ + '' + ], + filters = [ + '' + ], + message = '', + metrics = [ + '' + ], + questions = [ + '' + ], ) + ], + warning = [ + 'VEE_NO_WARNING' + ], ) + ], + data = visier_api_data_out.models.analysis/common/transfers/vee_data_dto.analysis.common.transfers.VeeDataDTO( + context = '', + data_json = '', ), + narrative = '', + reworded_question = '', + var_schema = visier_api_data_out.models.analysis/common/transfers/vee_response_schema_dto.analysis.common.transfers.VeeResponseSchemaDTO( + concepts = [ + visier_api_data_out.models.analysis/common/transfers/vee_response_schema_reference_dto.analysis.common.transfers.VeeResponseSchemaReferenceDTO( + name = '', + paths = [ + '' + ], ) + ], + dimensions = [ + visier_api_data_out.models.analysis/common/transfers/vee_response_schema_reference_dto.analysis.common.transfers.VeeResponseSchemaReferenceDTO( + name = '', ) + ], + metrics = [ + '' + ], ), + status_code = visier_api_data_out.models.analysis/common/transfers/vee_status_code_dto.analysis.common.transfers.VeeStatusCodeDTO( + status_code = 'UNDEFINED', + status_msg = '', ), + visual = visier_api_data_out.models.analysis/common/transfers/vee_visual_dto.analysis.common.transfers.VeeVisualDTO( + context = '', + image = '', + title = '', ) + ) + else: + return AnalysisCommonTransfersVeeResponseDTO( + ) + + def testAnalysisCommonTransfersVeeResponseDTO(self): + """Test AnalysisCommonTransfersVeeResponseDTO""" + def validate_instance(instance): + AnalysisCommonTransfersVeeResponseDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersVeeResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_vee_response_schema_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_response_schema_dto.py new file mode 100644 index 0000000000..ed0ca28959 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_response_schema_dto.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_vee_response_schema_dto import AnalysisCommonTransfersVeeResponseSchemaDTO + +class TestAnalysisCommonTransfersVeeResponseSchemaDTO(unittest.TestCase): + """AnalysisCommonTransfersVeeResponseSchemaDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersVeeResponseSchemaDTO: + """Test AnalysisCommonTransfersVeeResponseSchemaDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersVeeResponseSchemaDTO( + concepts = [ + visier_api_data_out.models.analysis/common/transfers/vee_response_schema_reference_dto.analysis.common.transfers.VeeResponseSchemaReferenceDTO( + name = '', + paths = [ + '' + ], ) + ], + dimensions = [ + visier_api_data_out.models.analysis/common/transfers/vee_response_schema_reference_dto.analysis.common.transfers.VeeResponseSchemaReferenceDTO( + name = '', + paths = [ + '' + ], ) + ], + metrics = [ + '' + ] + ) + else: + return AnalysisCommonTransfersVeeResponseSchemaDTO( + ) + + def testAnalysisCommonTransfersVeeResponseSchemaDTO(self): + """Test AnalysisCommonTransfersVeeResponseSchemaDTO""" + def validate_instance(instance): + AnalysisCommonTransfersVeeResponseSchemaDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersVeeResponseSchemaDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_vee_response_schema_reference_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_response_schema_reference_dto.py new file mode 100644 index 0000000000..de1d7721ea --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_response_schema_reference_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_vee_response_schema_reference_dto import AnalysisCommonTransfersVeeResponseSchemaReferenceDTO + +class TestAnalysisCommonTransfersVeeResponseSchemaReferenceDTO(unittest.TestCase): + """AnalysisCommonTransfersVeeResponseSchemaReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersVeeResponseSchemaReferenceDTO: + """Test AnalysisCommonTransfersVeeResponseSchemaReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersVeeResponseSchemaReferenceDTO( + name = '', + paths = [ + '' + ] + ) + else: + return AnalysisCommonTransfersVeeResponseSchemaReferenceDTO( + ) + + def testAnalysisCommonTransfersVeeResponseSchemaReferenceDTO(self): + """Test AnalysisCommonTransfersVeeResponseSchemaReferenceDTO""" + def validate_instance(instance): + AnalysisCommonTransfersVeeResponseSchemaReferenceDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersVeeResponseSchemaReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_vee_sample_question_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_sample_question_dto.py new file mode 100644 index 0000000000..8e318c9bf7 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_sample_question_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_vee_sample_question_dto import AnalysisCommonTransfersVeeSampleQuestionDTO + +class TestAnalysisCommonTransfersVeeSampleQuestionDTO(unittest.TestCase): + """AnalysisCommonTransfersVeeSampleQuestionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersVeeSampleQuestionDTO: + """Test AnalysisCommonTransfersVeeSampleQuestionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersVeeSampleQuestionDTO( + category_id = '', + is_assigned_to_user = True, + question = '', + question_id = '' + ) + else: + return AnalysisCommonTransfersVeeSampleQuestionDTO( + ) + + def testAnalysisCommonTransfersVeeSampleQuestionDTO(self): + """Test AnalysisCommonTransfersVeeSampleQuestionDTO""" + def validate_instance(instance): + AnalysisCommonTransfersVeeSampleQuestionDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersVeeSampleQuestionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_vee_sample_question_library_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_sample_question_library_dto.py new file mode 100644 index 0000000000..d5c7d6c3b7 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_sample_question_library_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_vee_sample_question_library_dto import AnalysisCommonTransfersVeeSampleQuestionLibraryDTO + +class TestAnalysisCommonTransfersVeeSampleQuestionLibraryDTO(unittest.TestCase): + """AnalysisCommonTransfersVeeSampleQuestionLibraryDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersVeeSampleQuestionLibraryDTO: + """Test AnalysisCommonTransfersVeeSampleQuestionLibraryDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersVeeSampleQuestionLibraryDTO( + questions = [ + visier_api_data_out.models.analysis/common/transfers/vee_sample_question_dto.analysis.common.transfers.VeeSampleQuestionDTO( + category_id = '', + is_assigned_to_user = True, + question = '', + question_id = '', ) + ] + ) + else: + return AnalysisCommonTransfersVeeSampleQuestionLibraryDTO( + ) + + def testAnalysisCommonTransfersVeeSampleQuestionLibraryDTO(self): + """Test AnalysisCommonTransfersVeeSampleQuestionLibraryDTO""" + def validate_instance(instance): + AnalysisCommonTransfersVeeSampleQuestionLibraryDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersVeeSampleQuestionLibraryDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_vee_status_code_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_status_code_dto.py new file mode 100644 index 0000000000..2ae9a32097 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_status_code_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_vee_status_code_dto import AnalysisCommonTransfersVeeStatusCodeDTO + +class TestAnalysisCommonTransfersVeeStatusCodeDTO(unittest.TestCase): + """AnalysisCommonTransfersVeeStatusCodeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersVeeStatusCodeDTO: + """Test AnalysisCommonTransfersVeeStatusCodeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersVeeStatusCodeDTO( + status_code = 'UNDEFINED', + status_msg = '' + ) + else: + return AnalysisCommonTransfersVeeStatusCodeDTO( + ) + + def testAnalysisCommonTransfersVeeStatusCodeDTO(self): + """Test AnalysisCommonTransfersVeeStatusCodeDTO""" + def validate_instance(instance): + AnalysisCommonTransfersVeeStatusCodeDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersVeeStatusCodeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_vee_visual_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_visual_dto.py new file mode 100644 index 0000000000..0aa1f979d9 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_visual_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_vee_visual_dto import AnalysisCommonTransfersVeeVisualDTO + +class TestAnalysisCommonTransfersVeeVisualDTO(unittest.TestCase): + """AnalysisCommonTransfersVeeVisualDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersVeeVisualDTO: + """Test AnalysisCommonTransfersVeeVisualDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersVeeVisualDTO( + context = '', + image = '', + title = '' + ) + else: + return AnalysisCommonTransfersVeeVisualDTO( + ) + + def testAnalysisCommonTransfersVeeVisualDTO(self): + """Test AnalysisCommonTransfersVeeVisualDTO""" + def validate_instance(instance): + AnalysisCommonTransfersVeeVisualDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersVeeVisualDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_analysis_common_transfers_vee_visual_options_dto.py b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_visual_options_dto.py new file mode 100644 index 0000000000..a7a5ecd498 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_transfers_vee_visual_options_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.analysis_common_transfers_vee_visual_options_dto import AnalysisCommonTransfersVeeVisualOptionsDTO + +class TestAnalysisCommonTransfersVeeVisualOptionsDTO(unittest.TestCase): + """AnalysisCommonTransfersVeeVisualOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonTransfersVeeVisualOptionsDTO: + """Test AnalysisCommonTransfersVeeVisualOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonTransfersVeeVisualOptionsDTO( + height = 56, + width = 56 + ) + else: + return AnalysisCommonTransfersVeeVisualOptionsDTO( + ) + + def testAnalysisCommonTransfersVeeVisualOptionsDTO(self): + """Test AnalysisCommonTransfersVeeVisualOptionsDTO""" + def validate_instance(instance): + AnalysisCommonTransfersVeeVisualOptionsDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonTransfersVeeVisualOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_cell_distribution_bin_dto.py b/src/visier_api_data_out/test/test_cell_distribution_bin_dto.py deleted file mode 100644 index 33688605ab..0000000000 --- a/src/visier_api_data_out/test/test_cell_distribution_bin_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.cell_distribution_bin_dto import CellDistributionBinDTO - -class TestCellDistributionBinDTO(unittest.TestCase): - """CellDistributionBinDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CellDistributionBinDTO: - """Test CellDistributionBinDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CellDistributionBinDTO( - support = '', - value = '' - ) - else: - return CellDistributionBinDTO( - ) - - def testCellDistributionBinDTO(self): - """Test CellDistributionBinDTO""" - def validate_instance(instance): - CellDistributionBinDTO.model_validate(inst_req_only) - instance_deserialized = CellDistributionBinDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_cell_distribution_options_dto.py b/src/visier_api_data_out/test/test_cell_distribution_options_dto.py deleted file mode 100644 index 794ebfdeb6..0000000000 --- a/src/visier_api_data_out/test/test_cell_distribution_options_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.cell_distribution_options_dto import CellDistributionOptionsDTO - -class TestCellDistributionOptionsDTO(unittest.TestCase): - """CellDistributionOptionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CellDistributionOptionsDTO: - """Test CellDistributionOptionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CellDistributionOptionsDTO( - bin_count = 56 - ) - else: - return CellDistributionOptionsDTO( - ) - - def testCellDistributionOptionsDTO(self): - """Test CellDistributionOptionsDTO""" - def validate_instance(instance): - CellDistributionOptionsDTO.model_validate(inst_req_only) - instance_deserialized = CellDistributionOptionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_cell_dto.py b/src/visier_api_data_out/test/test_cell_dto.py deleted file mode 100644 index 7019c1f01a..0000000000 --- a/src/visier_api_data_out/test/test_cell_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.cell_dto import CellDTO - -class TestCellDTO(unittest.TestCase): - """CellDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CellDTO: - """Test CellDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CellDTO( - coordinates = [ - 56 - ], - distribution = [ - visier_api_data_out.models.cell_distribution_bin_dto.CellDistributionBinDTO( - support = '', - value = '', ) - ], - support = '', - value = '' - ) - else: - return CellDTO( - ) - - def testCellDTO(self): - """Test CellDTO""" - def validate_instance(instance): - CellDTO.model_validate(inst_req_only) - instance_deserialized = CellDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_cell_set_axis_dto.py b/src/visier_api_data_out/test/test_cell_set_axis_dto.py deleted file mode 100644 index c3d2eee8ff..0000000000 --- a/src/visier_api_data_out/test/test_cell_set_axis_dto.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.cell_set_axis_dto import CellSetAxisDTO - -class TestCellSetAxisDTO(unittest.TestCase): - """CellSetAxisDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CellSetAxisDTO: - """Test CellSetAxisDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CellSetAxisDTO( - dimension = visier_api_data_out.models.dimension_reference_dto.DimensionReferenceDTO( - name = '', - qualifying_path = '', ), - positions = [ - visier_api_data_out.models.cell_set_axis_position_dto.CellSetAxisPositionDTO( - display_name = '', - display_name_path = [ - '' - ], - path = [ - '' - ], ) - ] - ) - else: - return CellSetAxisDTO( - ) - - def testCellSetAxisDTO(self): - """Test CellSetAxisDTO""" - def validate_instance(instance): - CellSetAxisDTO.model_validate(inst_req_only) - instance_deserialized = CellSetAxisDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_cell_set_axis_position_dto.py b/src/visier_api_data_out/test/test_cell_set_axis_position_dto.py deleted file mode 100644 index 517d19829e..0000000000 --- a/src/visier_api_data_out/test/test_cell_set_axis_position_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.cell_set_axis_position_dto import CellSetAxisPositionDTO - -class TestCellSetAxisPositionDTO(unittest.TestCase): - """CellSetAxisPositionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CellSetAxisPositionDTO: - """Test CellSetAxisPositionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CellSetAxisPositionDTO( - display_name = '', - display_name_path = [ - '' - ], - path = [ - '' - ] - ) - else: - return CellSetAxisPositionDTO( - ) - - def testCellSetAxisPositionDTO(self): - """Test CellSetAxisPositionDTO""" - def validate_instance(instance): - CellSetAxisPositionDTO.model_validate(inst_req_only) - instance_deserialized = CellSetAxisPositionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_cell_set_dto.py b/src/visier_api_data_out/test/test_cell_set_dto.py deleted file mode 100644 index aafeba8f02..0000000000 --- a/src/visier_api_data_out/test/test_cell_set_dto.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.cell_set_dto import CellSetDTO - -class TestCellSetDTO(unittest.TestCase): - """CellSetDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CellSetDTO: - """Test CellSetDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CellSetDTO( - axes = [ - visier_api_data_out.models.cell_set_axis_dto.CellSetAxisDTO( - dimension = None, - positions = [ - visier_api_data_out.models.cell_set_axis_position_dto.CellSetAxisPositionDTO( - display_name = '', - display_name_path = [ - '' - ], - path = [ - '' - ], ) - ], ) - ], - cells = [ - visier_api_data_out.models.cell_dto.CellDTO( - coordinates = [ - 56 - ], - distribution = [ - visier_api_data_out.models.cell_distribution_bin_dto.CellDistributionBinDTO( - support = '', - value = '', ) - ], - support = '', - value = '', ) - ], - lineage = visier_api_data_out.models.lineage_dto.LineageDTO( - cell_sets = [ - visier_api_data_out.models.cell_set_dto.CellSetDTO( - axes = [ - visier_api_data_out.models.cell_set_axis_dto.CellSetAxisDTO( - dimension = None, - positions = [ - visier_api_data_out.models.cell_set_axis_position_dto.CellSetAxisPositionDTO( - display_name = '', - display_name_path = [ - '' - ], - path = [ - '' - ], ) - ], ) - ], - cells = [ - visier_api_data_out.models.cell_dto.CellDTO( - coordinates = [ - 56 - ], - distribution = [ - visier_api_data_out.models.cell_distribution_bin_dto.CellDistributionBinDTO( - support = '', - value = '', ) - ], - support = '', - value = '', ) - ], - lineage = None, ) - ], - op = '', ) - ) - else: - return CellSetDTO( - ) - - def testCellSetDTO(self): - """Test CellSetDTO""" - def validate_instance(instance): - CellSetDTO.model_validate(inst_req_only) - instance_deserialized = CellSetDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_cohort_filter_dto.py b/src/visier_api_data_out/test/test_cohort_filter_dto.py deleted file mode 100644 index aa19bc55c8..0000000000 --- a/src/visier_api_data_out/test/test_cohort_filter_dto.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.cohort_filter_dto import CohortFilterDTO - -class TestCohortFilterDTO(unittest.TestCase): - """CohortFilterDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CohortFilterDTO: - """Test CohortFilterDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return CohortFilterDTO( - exclude = True, - key_group = visier_api_data_out.models.key_group_filter_dto.KeyGroupFilterDTO( - filters = [ - visier_api_data_out.models.key_group_filter_item_dto.KeyGroupFilterItemDTO( - formula = '', - member_set = None, - selection_concept = None, ) - ], ), - time_interval = visier_api_data_out.models.query_time_interval_dto.QueryTimeIntervalDTO( - direction = 'BACKWARD', - dynamic_date_from = 'SOURCE', - from_date_time = '', - from_instant = '', - interval_period_count = 56, - interval_period_type = 'MONTH', - shift = None, ) - ) - else: - return CohortFilterDTO( - ) - - def testCohortFilterDTO(self): - """Test CohortFilterDTO""" - def validate_instance(instance): - CohortFilterDTO.model_validate(inst_req_only) - instance_deserialized = CohortFilterDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_data_out_list_response.py b/src/visier_api_data_out/test/test_data_out_list_response.py new file mode 100644 index 0000000000..7725845aa0 --- /dev/null +++ b/src/visier_api_data_out/test/test_data_out_list_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.data_out_list_response import DataOutListResponse + +class TestDataOutListResponse(unittest.TestCase): + """DataOutListResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataOutListResponse: + """Test DataOutListResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataOutListResponse( + header = { }, + rows = [ + { } + ] + ) + else: + return DataOutListResponse( + ) + + def testDataOutListResponse(self): + """Test DataOutListResponse""" + def validate_instance(instance): + DataOutListResponse.model_validate(inst_req_only) + instance_deserialized = DataOutListResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_data_query_api.py b/src/visier_api_data_out/test/test_data_query_api.py index aab93f1c7c..7836065ba7 100644 --- a/src/visier_api_data_out/test/test_data_query_api.py +++ b/src/visier_api_data_out/test/test_data_query_api.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/test/test_data_version_export_api.py b/src/visier_api_data_out/test/test_data_version_export_api.py index 494d2b7c3a..46380d23c4 100644 --- a/src/visier_api_data_out/test/test_data_version_export_api.py +++ b/src/visier_api_data_out/test/test_data_version_export_api.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/test/test_data_version_export_column_dto.py b/src/visier_api_data_out/test/test_data_version_export_column_dto.py deleted file mode 100644 index 5fb46036db..0000000000 --- a/src/visier_api_data_out/test/test_data_version_export_column_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.data_version_export_column_dto import DataVersionExportColumnDTO - -class TestDataVersionExportColumnDTO(unittest.TestCase): - """DataVersionExportColumnDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataVersionExportColumnDTO: - """Test DataVersionExportColumnDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataVersionExportColumnDTO( - allows_null = True, - data_type = '', - is_primary_key_component = True, - name = '' - ) - else: - return DataVersionExportColumnDTO( - ) - - def testDataVersionExportColumnDTO(self): - """Test DataVersionExportColumnDTO""" - def validate_instance(instance): - DataVersionExportColumnDTO.model_validate(inst_req_only) - instance_deserialized = DataVersionExportColumnDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_data_version_export_data_version_summary_dto.py b/src/visier_api_data_out/test/test_data_version_export_data_version_summary_dto.py deleted file mode 100644 index 22acabab4c..0000000000 --- a/src/visier_api_data_out/test/test_data_version_export_data_version_summary_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.data_version_export_data_version_summary_dto import DataVersionExportDataVersionSummaryDTO - -class TestDataVersionExportDataVersionSummaryDTO(unittest.TestCase): - """DataVersionExportDataVersionSummaryDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataVersionExportDataVersionSummaryDTO: - """Test DataVersionExportDataVersionSummaryDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataVersionExportDataVersionSummaryDTO( - created = '', - data_category = '', - data_version = '' - ) - else: - return DataVersionExportDataVersionSummaryDTO( - ) - - def testDataVersionExportDataVersionSummaryDTO(self): - """Test DataVersionExportDataVersionSummaryDTO""" - def validate_instance(instance): - DataVersionExportDataVersionSummaryDTO.model_validate(inst_req_only) - instance_deserialized = DataVersionExportDataVersionSummaryDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_data_version_export_data_versions_dto.py b/src/visier_api_data_out/test/test_data_version_export_data_versions_dto.py deleted file mode 100644 index a118f7161a..0000000000 --- a/src/visier_api_data_out/test/test_data_version_export_data_versions_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.data_version_export_data_versions_dto import DataVersionExportDataVersionsDTO - -class TestDataVersionExportDataVersionsDTO(unittest.TestCase): - """DataVersionExportDataVersionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataVersionExportDataVersionsDTO: - """Test DataVersionExportDataVersionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataVersionExportDataVersionsDTO( - data_versions = [ - visier_api_data_out.models.data_version_export_data_version_summary_dto.DataVersionExportDataVersionSummaryDTO( - created = '', - data_category = '', - data_version = '', ) - ] - ) - else: - return DataVersionExportDataVersionsDTO( - ) - - def testDataVersionExportDataVersionsDTO(self): - """Test DataVersionExportDataVersionsDTO""" - def validate_instance(instance): - DataVersionExportDataVersionsDTO.model_validate(inst_req_only) - instance_deserialized = DataVersionExportDataVersionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_data_version_export_dto.py b/src/visier_api_data_out/test/test_data_version_export_dto.py deleted file mode 100644 index 9dc70f7c09..0000000000 --- a/src/visier_api_data_out/test/test_data_version_export_dto.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.data_version_export_dto import DataVersionExportDTO - -class TestDataVersionExportDTO(unittest.TestCase): - """DataVersionExportDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataVersionExportDTO: - """Test DataVersionExportDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataVersionExportDTO( - base_data_version_number = '', - data_version_number = '', - deleted_tables = [ - '' - ], - new_tables = [ - '' - ], - tables = [ - visier_api_data_out.models.data_version_export_table_dto.DataVersionExportTableDTO( - common_columns = None, - deleted_columns = [ - '' - ], - name = '', - new_columns = None, ) - ], - timestamp = '', - uuid = '' - ) - else: - return DataVersionExportDTO( - ) - - def testDataVersionExportDTO(self): - """Test DataVersionExportDTO""" - def validate_instance(instance): - DataVersionExportDTO.model_validate(inst_req_only) - instance_deserialized = DataVersionExportDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_data_version_export_file_dto.py b/src/visier_api_data_out/test/test_data_version_export_file_dto.py deleted file mode 100644 index 0f9e3a0ee1..0000000000 --- a/src/visier_api_data_out/test/test_data_version_export_file_dto.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.data_version_export_file_dto import DataVersionExportFileDTO - -class TestDataVersionExportFileDTO(unittest.TestCase): - """DataVersionExportFileDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataVersionExportFileDTO: - """Test DataVersionExportFileDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataVersionExportFileDTO( - columns = [ - visier_api_data_out.models.data_version_export_column_dto.DataVersionExportColumnDTO( - allows_null = True, - data_type = '', - is_primary_key_component = True, - name = '', ) - ], - files = [ - visier_api_data_out.models.data_version_export_part_file_dto.DataVersionExportPartFileDTO( - file_id = 56, - filename = '', ) - ] - ) - else: - return DataVersionExportFileDTO( - ) - - def testDataVersionExportFileDTO(self): - """Test DataVersionExportFileDTO""" - def validate_instance(instance): - DataVersionExportFileDTO.model_validate(inst_req_only) - instance_deserialized = DataVersionExportFileDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_data_version_export_job_status_dto.py b/src/visier_api_data_out/test/test_data_version_export_job_status_dto.py deleted file mode 100644 index f539344257..0000000000 --- a/src/visier_api_data_out/test/test_data_version_export_job_status_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.data_version_export_job_status_dto import DataVersionExportJobStatusDTO - -class TestDataVersionExportJobStatusDTO(unittest.TestCase): - """DataVersionExportJobStatusDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataVersionExportJobStatusDTO: - """Test DataVersionExportJobStatusDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataVersionExportJobStatusDTO( - completed = True, - export_uuid = '', - failed = True, - job_uuid = '' - ) - else: - return DataVersionExportJobStatusDTO( - ) - - def testDataVersionExportJobStatusDTO(self): - """Test DataVersionExportJobStatusDTO""" - def validate_instance(instance): - DataVersionExportJobStatusDTO.model_validate(inst_req_only) - instance_deserialized = DataVersionExportJobStatusDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_data_version_export_part_file_dto.py b/src/visier_api_data_out/test/test_data_version_export_part_file_dto.py deleted file mode 100644 index 3de8675319..0000000000 --- a/src/visier_api_data_out/test/test_data_version_export_part_file_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.data_version_export_part_file_dto import DataVersionExportPartFileDTO - -class TestDataVersionExportPartFileDTO(unittest.TestCase): - """DataVersionExportPartFileDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataVersionExportPartFileDTO: - """Test DataVersionExportPartFileDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataVersionExportPartFileDTO( - file_id = 56, - filename = '' - ) - else: - return DataVersionExportPartFileDTO( - ) - - def testDataVersionExportPartFileDTO(self): - """Test DataVersionExportPartFileDTO""" - def validate_instance(instance): - DataVersionExportPartFileDTO.model_validate(inst_req_only) - instance_deserialized = DataVersionExportPartFileDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_data_version_export_schedule_job_request_dto.py b/src/visier_api_data_out/test/test_data_version_export_schedule_job_request_dto.py deleted file mode 100644 index c16774c566..0000000000 --- a/src/visier_api_data_out/test/test_data_version_export_schedule_job_request_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.data_version_export_schedule_job_request_dto import DataVersionExportScheduleJobRequestDTO - -class TestDataVersionExportScheduleJobRequestDTO(unittest.TestCase): - """DataVersionExportScheduleJobRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataVersionExportScheduleJobRequestDTO: - """Test DataVersionExportScheduleJobRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataVersionExportScheduleJobRequestDTO( - base_data_version_number = '', - data_version_number = '' - ) - else: - return DataVersionExportScheduleJobRequestDTO( - ) - - def testDataVersionExportScheduleJobRequestDTO(self): - """Test DataVersionExportScheduleJobRequestDTO""" - def validate_instance(instance): - DataVersionExportScheduleJobRequestDTO.model_validate(inst_req_only) - instance_deserialized = DataVersionExportScheduleJobRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_data_version_export_schedule_job_response_dto.py b/src/visier_api_data_out/test/test_data_version_export_schedule_job_response_dto.py deleted file mode 100644 index cdbf5143e4..0000000000 --- a/src/visier_api_data_out/test/test_data_version_export_schedule_job_response_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.data_version_export_schedule_job_response_dto import DataVersionExportScheduleJobResponseDTO - -class TestDataVersionExportScheduleJobResponseDTO(unittest.TestCase): - """DataVersionExportScheduleJobResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataVersionExportScheduleJobResponseDTO: - """Test DataVersionExportScheduleJobResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataVersionExportScheduleJobResponseDTO( - job_uuid = '' - ) - else: - return DataVersionExportScheduleJobResponseDTO( - ) - - def testDataVersionExportScheduleJobResponseDTO(self): - """Test DataVersionExportScheduleJobResponseDTO""" - def validate_instance(instance): - DataVersionExportScheduleJobResponseDTO.model_validate(inst_req_only) - instance_deserialized = DataVersionExportScheduleJobResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_data_version_export_table_dto.py b/src/visier_api_data_out/test/test_data_version_export_table_dto.py deleted file mode 100644 index c82f68cbe8..0000000000 --- a/src/visier_api_data_out/test/test_data_version_export_table_dto.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.data_version_export_table_dto import DataVersionExportTableDTO - -class TestDataVersionExportTableDTO(unittest.TestCase): - """DataVersionExportTableDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataVersionExportTableDTO: - """Test DataVersionExportTableDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataVersionExportTableDTO( - common_columns = visier_api_data_out.models.data_version_export_file_dto.DataVersionExportFileDTO( - columns = [ - visier_api_data_out.models.data_version_export_column_dto.DataVersionExportColumnDTO( - allows_null = True, - data_type = '', - is_primary_key_component = True, - name = '', ) - ], - files = [ - visier_api_data_out.models.data_version_export_part_file_dto.DataVersionExportPartFileDTO( - file_id = 56, - filename = '', ) - ], ), - deleted_columns = [ - '' - ], - name = '', - new_columns = visier_api_data_out.models.data_version_export_file_dto.DataVersionExportFileDTO( - columns = [ - visier_api_data_out.models.data_version_export_column_dto.DataVersionExportColumnDTO( - allows_null = True, - data_type = '', - is_primary_key_component = True, - name = '', ) - ], - files = [ - visier_api_data_out.models.data_version_export_part_file_dto.DataVersionExportPartFileDTO( - file_id = 56, - filename = '', ) - ], ) - ) - else: - return DataVersionExportTableDTO( - ) - - def testDataVersionExportTableDTO(self): - """Test DataVersionExportTableDTO""" - def validate_instance(instance): - DataVersionExportTableDTO.model_validate(inst_req_only) - instance_deserialized = DataVersionExportTableDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_data_version_exports_dto.py b/src/visier_api_data_out/test/test_data_version_exports_dto.py deleted file mode 100644 index 5af5df70ff..0000000000 --- a/src/visier_api_data_out/test/test_data_version_exports_dto.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.data_version_exports_dto import DataVersionExportsDTO - -class TestDataVersionExportsDTO(unittest.TestCase): - """DataVersionExportsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataVersionExportsDTO: - """Test DataVersionExportsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DataVersionExportsDTO( - data_version_exports = [ - visier_api_data_out.models.data_version_export_dto.DataVersionExportDTO( - base_data_version_number = '', - data_version_number = '', - deleted_tables = [ - '' - ], - new_tables = [ - '' - ], - tables = [ - visier_api_data_out.models.data_version_export_table_dto.DataVersionExportTableDTO( - common_columns = None, - deleted_columns = [ - '' - ], - name = '', - new_columns = None, ) - ], - timestamp = '', - uuid = '', ) - ] - ) - else: - return DataVersionExportsDTO( - ) - - def testDataVersionExportsDTO(self): - """Test DataVersionExportsDTO""" - def validate_instance(instance): - DataVersionExportsDTO.model_validate(inst_req_only) - instance_deserialized = DataVersionExportsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_common_dimension_member_reference_dto.py b/src/visier_api_data_out/test/test_dataservices_common_dimension_member_reference_dto.py new file mode 100644 index 0000000000..fe8f94d087 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_common_dimension_member_reference_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_common_dimension_member_reference_dto import DataservicesCommonDimensionMemberReferenceDTO + +class TestDataservicesCommonDimensionMemberReferenceDTO(unittest.TestCase): + """DataservicesCommonDimensionMemberReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesCommonDimensionMemberReferenceDTO: + """Test DataservicesCommonDimensionMemberReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesCommonDimensionMemberReferenceDTO( + path = [ + '' + ] + ) + else: + return DataservicesCommonDimensionMemberReferenceDTO( + ) + + def testDataservicesCommonDimensionMemberReferenceDTO(self): + """Test DataservicesCommonDimensionMemberReferenceDTO""" + def validate_instance(instance): + DataservicesCommonDimensionMemberReferenceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesCommonDimensionMemberReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_common_member_values_dto.py b/src/visier_api_data_out/test/test_dataservices_common_member_values_dto.py new file mode 100644 index 0000000000..bf9111408c --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_common_member_values_dto.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_common_member_values_dto import DataservicesCommonMemberValuesDTO + +class TestDataservicesCommonMemberValuesDTO(unittest.TestCase): + """DataservicesCommonMemberValuesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesCommonMemberValuesDTO: + """Test DataservicesCommonMemberValuesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesCommonMemberValuesDTO( + excluded = [ + visier_api_data_out.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO( + path = [ + '' + ], ) + ], + included = [ + visier_api_data_out.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO( + path = [ + '' + ], ) + ] + ) + else: + return DataservicesCommonMemberValuesDTO( + ) + + def testDataservicesCommonMemberValuesDTO(self): + """Test DataservicesCommonMemberValuesDTO""" + def validate_instance(instance): + DataservicesCommonMemberValuesDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesCommonMemberValuesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_datamodel_transfers_dimension_reference_dto.py b/src/visier_api_data_out/test/test_dataservices_datamodel_transfers_dimension_reference_dto.py new file mode 100644 index 0000000000..8e4fae73a5 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_datamodel_transfers_dimension_reference_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO + +class TestDataservicesDatamodelTransfersDimensionReferenceDTO(unittest.TestCase): + """DataservicesDatamodelTransfersDimensionReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersDimensionReferenceDTO: + """Test DataservicesDatamodelTransfersDimensionReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersDimensionReferenceDTO( + name = '', + qualifying_path = '' + ) + else: + return DataservicesDatamodelTransfersDimensionReferenceDTO( + ) + + def testDataservicesDatamodelTransfersDimensionReferenceDTO(self): + """Test DataservicesDatamodelTransfersDimensionReferenceDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersDimensionReferenceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersDimensionReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_datamodel_transfers_property_reference_dto.py b/src/visier_api_data_out/test/test_dataservices_datamodel_transfers_property_reference_dto.py new file mode 100644 index 0000000000..dd2961fe3a --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_datamodel_transfers_property_reference_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_datamodel_transfers_property_reference_dto import DataservicesDatamodelTransfersPropertyReferenceDTO + +class TestDataservicesDatamodelTransfersPropertyReferenceDTO(unittest.TestCase): + """DataservicesDatamodelTransfersPropertyReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersPropertyReferenceDTO: + """Test DataservicesDatamodelTransfersPropertyReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersPropertyReferenceDTO( + name = '', + qualifying_path = '' + ) + else: + return DataservicesDatamodelTransfersPropertyReferenceDTO( + ) + + def testDataservicesDatamodelTransfersPropertyReferenceDTO(self): + """Test DataservicesDatamodelTransfersPropertyReferenceDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersPropertyReferenceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersPropertyReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_datamodel_transfers_selection_concept_reference_dto.py b/src/visier_api_data_out/test/test_dataservices_datamodel_transfers_selection_concept_reference_dto.py new file mode 100644 index 0000000000..47dca149d9 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_datamodel_transfers_selection_concept_reference_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_datamodel_transfers_selection_concept_reference_dto import DataservicesDatamodelTransfersSelectionConceptReferenceDTO + +class TestDataservicesDatamodelTransfersSelectionConceptReferenceDTO(unittest.TestCase): + """DataservicesDatamodelTransfersSelectionConceptReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTransfersSelectionConceptReferenceDTO: + """Test DataservicesDatamodelTransfersSelectionConceptReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTransfersSelectionConceptReferenceDTO( + name = '', + qualifying_path = '' + ) + else: + return DataservicesDatamodelTransfersSelectionConceptReferenceDTO( + ) + + def testDataservicesDatamodelTransfersSelectionConceptReferenceDTO(self): + """Test DataservicesDatamodelTransfersSelectionConceptReferenceDTO""" + def validate_instance(instance): + DataservicesDatamodelTransfersSelectionConceptReferenceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTransfersSelectionConceptReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_query_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_query_dto.py new file mode 100644 index 0000000000..5c7aeb14ee --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_query_dto.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_dto import DataservicesQueryTransfersAggregationQueryDTO + +class TestDataservicesQueryTransfersAggregationQueryDTO(unittest.TestCase): + """DataservicesQueryTransfersAggregationQueryDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersAggregationQueryDTO: + """Test DataservicesQueryTransfersAggregationQueryDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersAggregationQueryDTO( + axes = [ + visier_api_data_out.models.dataservices/query/transfers/query_axis_dto.dataservices.query.transfers.QueryAxisDTO( + dimension_data_member_selection = None, + dimension_leaf_member_selection = None, + dimension_level_selection = None, + dimension_level_with_uncategorized_value_selection = None, + dimension_member_selection = None, + formula = '', + member_map_selection = None, + numeric_ranges = None, + selection_concept = None, + table_axis_options = None, ) + ], + filters = [ + visier_api_data_out.models.dataservices/query/transfers/query_filter_dto.dataservices.query.transfers.QueryFilterDTO( + cohort = None, + formula = '', + member_set = None, + selection_concept = None, ) + ], + parameter_values = [ + visier_api_data_out.models.dataservices/query/transfers/query_parameter_value_dto.dataservices.query.transfers.QueryParameterValueDTO( + aggregation_type_value = None, + member_value = None, + numeric_value = None, + plan_value = None, ) + ], + source = visier_api_data_out.models.dataservices/query/transfers/aggregation_query_source_dto.dataservices.query.transfers.AggregationQuerySourceDTO( + formula = '', + metric = '', + metrics = None, ), + time_intervals = visier_api_data_out.models.dataservices/query/transfers/query_time_intervals_dto.dataservices.query.transfers.QueryTimeIntervalsDTO( + direction = 'BACKWARD', + dynamic_date_from = 'SOURCE', + from_date_time = '', + from_instant = '', + interval_count = 56, + interval_period_count = 56, + interval_period_type = 'MONTH', + shift = None, + trailing_period_count = 56, + trailing_period_type = 'MONTH', ) + ) + else: + return DataservicesQueryTransfersAggregationQueryDTO( + ) + + def testDataservicesQueryTransfersAggregationQueryDTO(self): + """Test DataservicesQueryTransfersAggregationQueryDTO""" + def validate_instance(instance): + DataservicesQueryTransfersAggregationQueryDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersAggregationQueryDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_query_execution_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_query_execution_dto.py new file mode 100644 index 0000000000..1292c6b101 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_query_execution_dto.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_execution_dto import DataservicesQueryTransfersAggregationQueryExecutionDTO + +class TestDataservicesQueryTransfersAggregationQueryExecutionDTO(unittest.TestCase): + """DataservicesQueryTransfersAggregationQueryExecutionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersAggregationQueryExecutionDTO: + """Test DataservicesQueryTransfersAggregationQueryExecutionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersAggregationQueryExecutionDTO( + options = visier_api_data_out.models.dataservices/query/transfers/query_execution_options_dto.dataservices.query.transfers.QueryExecutionOptionsDTO( + axes_overall_value_mode = 'NONE', + axis_visibility = 'SIMPLE', + calendar_type = 'TENANT_CALENDAR', + cell_distribution_options = visier_api_data_out.models.dataservices/query/transfers/cell_distribution_options_dto.dataservices.query.transfers.CellDistributionOptionsDTO( + bin_count = 56, ), + currency_conversion_code = '', + currency_conversion_date = '', + currency_conversion_mode = 'TENANT_CURRENCY_CONVERSION', + enable_descending_space = True, + enable_sparse_results = True, + internal = visier_api_data_out.models.dataservices/query/transfers/internal_query_execution_options_dto.dataservices.query.transfers.InternalQueryExecutionOptionsDTO( + align_time_axis_to_period_end = True, + sparse_handling_mode = 'ALLOW', ), + lineage_depth = 56, + member_display_mode = 'DEFAULT', + null_visibility = 'SHOW', + zero_visibility = 'SHOW', ), + query = visier_api_data_out.models.dataservices/query/transfers/aggregation_query_dto.dataservices.query.transfers.AggregationQueryDTO( + axes = [ + visier_api_data_out.models.dataservices/query/transfers/query_axis_dto.dataservices.query.transfers.QueryAxisDTO( + dimension_data_member_selection = None, + dimension_leaf_member_selection = None, + dimension_level_selection = None, + dimension_level_with_uncategorized_value_selection = None, + dimension_member_selection = None, + formula = '', + member_map_selection = None, + numeric_ranges = None, + selection_concept = None, + table_axis_options = None, ) + ], + filters = [ + visier_api_data_out.models.dataservices/query/transfers/query_filter_dto.dataservices.query.transfers.QueryFilterDTO( + cohort = None, + formula = '', + member_set = None, + selection_concept = None, ) + ], + parameter_values = [ + visier_api_data_out.models.dataservices/query/transfers/query_parameter_value_dto.dataservices.query.transfers.QueryParameterValueDTO( + aggregation_type_value = None, + member_value = None, + numeric_value = None, + plan_value = None, ) + ], + source = None, + time_intervals = None, ) + ) + else: + return DataservicesQueryTransfersAggregationQueryExecutionDTO( + ) + + def testDataservicesQueryTransfersAggregationQueryExecutionDTO(self): + """Test DataservicesQueryTransfersAggregationQueryExecutionDTO""" + def validate_instance(instance): + DataservicesQueryTransfersAggregationQueryExecutionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersAggregationQueryExecutionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_query_source_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_query_source_dto.py new file mode 100644 index 0000000000..2f7e225809 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_query_source_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_source_dto import DataservicesQueryTransfersAggregationQuerySourceDTO + +class TestDataservicesQueryTransfersAggregationQuerySourceDTO(unittest.TestCase): + """DataservicesQueryTransfersAggregationQuerySourceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersAggregationQuerySourceDTO: + """Test DataservicesQueryTransfersAggregationQuerySourceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersAggregationQuerySourceDTO( + formula = '', + metric = '', + metrics = visier_api_data_out.models.dataservices/query/transfers/aggregation_query_source_metrics_dto.dataservices.query.transfers.AggregationQuerySourceMetricsDTO( + columns = [ + visier_api_data_out.models.dataservices/query/transfers/aggregation_query_source_metric_dto.dataservices.query.transfers.AggregationQuerySourceMetricDTO( + column_name = '', + formula = '', + id = '', + qualifying_path = '', ) + ], ) + ) + else: + return DataservicesQueryTransfersAggregationQuerySourceDTO( + ) + + def testDataservicesQueryTransfersAggregationQuerySourceDTO(self): + """Test DataservicesQueryTransfersAggregationQuerySourceDTO""" + def validate_instance(instance): + DataservicesQueryTransfersAggregationQuerySourceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersAggregationQuerySourceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_query_source_metric_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_query_source_metric_dto.py new file mode 100644 index 0000000000..43cc41642d --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_query_source_metric_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_source_metric_dto import DataservicesQueryTransfersAggregationQuerySourceMetricDTO + +class TestDataservicesQueryTransfersAggregationQuerySourceMetricDTO(unittest.TestCase): + """DataservicesQueryTransfersAggregationQuerySourceMetricDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersAggregationQuerySourceMetricDTO: + """Test DataservicesQueryTransfersAggregationQuerySourceMetricDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersAggregationQuerySourceMetricDTO( + column_name = '', + formula = '', + id = '', + qualifying_path = '' + ) + else: + return DataservicesQueryTransfersAggregationQuerySourceMetricDTO( + ) + + def testDataservicesQueryTransfersAggregationQuerySourceMetricDTO(self): + """Test DataservicesQueryTransfersAggregationQuerySourceMetricDTO""" + def validate_instance(instance): + DataservicesQueryTransfersAggregationQuerySourceMetricDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersAggregationQuerySourceMetricDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_query_source_metrics_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_query_source_metrics_dto.py new file mode 100644 index 0000000000..467f3fec18 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_query_source_metrics_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_source_metrics_dto import DataservicesQueryTransfersAggregationQuerySourceMetricsDTO + +class TestDataservicesQueryTransfersAggregationQuerySourceMetricsDTO(unittest.TestCase): + """DataservicesQueryTransfersAggregationQuerySourceMetricsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersAggregationQuerySourceMetricsDTO: + """Test DataservicesQueryTransfersAggregationQuerySourceMetricsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersAggregationQuerySourceMetricsDTO( + columns = [ + visier_api_data_out.models.dataservices/query/transfers/aggregation_query_source_metric_dto.dataservices.query.transfers.AggregationQuerySourceMetricDTO( + column_name = '', + formula = '', + id = '', + qualifying_path = '', ) + ] + ) + else: + return DataservicesQueryTransfersAggregationQuerySourceMetricsDTO( + ) + + def testDataservicesQueryTransfersAggregationQuerySourceMetricsDTO(self): + """Test DataservicesQueryTransfersAggregationQuerySourceMetricsDTO""" + def validate_instance(instance): + DataservicesQueryTransfersAggregationQuerySourceMetricsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersAggregationQuerySourceMetricsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_type_parameter_value_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_type_parameter_value_dto.py new file mode 100644 index 0000000000..bac516ccda --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_aggregation_type_parameter_value_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_aggregation_type_parameter_value_dto import DataservicesQueryTransfersAggregationTypeParameterValueDTO + +class TestDataservicesQueryTransfersAggregationTypeParameterValueDTO(unittest.TestCase): + """DataservicesQueryTransfersAggregationTypeParameterValueDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersAggregationTypeParameterValueDTO: + """Test DataservicesQueryTransfersAggregationTypeParameterValueDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersAggregationTypeParameterValueDTO( + aggregation_option_id = '', + parameter_id = '' + ) + else: + return DataservicesQueryTransfersAggregationTypeParameterValueDTO( + ) + + def testDataservicesQueryTransfersAggregationTypeParameterValueDTO(self): + """Test DataservicesQueryTransfersAggregationTypeParameterValueDTO""" + def validate_instance(instance): + DataservicesQueryTransfersAggregationTypeParameterValueDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersAggregationTypeParameterValueDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_distribution_bin_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_distribution_bin_dto.py new file mode 100644 index 0000000000..43cfaf5bdd --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_distribution_bin_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_cell_distribution_bin_dto import DataservicesQueryTransfersCellDistributionBinDTO + +class TestDataservicesQueryTransfersCellDistributionBinDTO(unittest.TestCase): + """DataservicesQueryTransfersCellDistributionBinDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersCellDistributionBinDTO: + """Test DataservicesQueryTransfersCellDistributionBinDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersCellDistributionBinDTO( + support = '', + value = '' + ) + else: + return DataservicesQueryTransfersCellDistributionBinDTO( + ) + + def testDataservicesQueryTransfersCellDistributionBinDTO(self): + """Test DataservicesQueryTransfersCellDistributionBinDTO""" + def validate_instance(instance): + DataservicesQueryTransfersCellDistributionBinDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersCellDistributionBinDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_distribution_options_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_distribution_options_dto.py new file mode 100644 index 0000000000..10072d7a4f --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_distribution_options_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_cell_distribution_options_dto import DataservicesQueryTransfersCellDistributionOptionsDTO + +class TestDataservicesQueryTransfersCellDistributionOptionsDTO(unittest.TestCase): + """DataservicesQueryTransfersCellDistributionOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersCellDistributionOptionsDTO: + """Test DataservicesQueryTransfersCellDistributionOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersCellDistributionOptionsDTO( + bin_count = 56 + ) + else: + return DataservicesQueryTransfersCellDistributionOptionsDTO( + ) + + def testDataservicesQueryTransfersCellDistributionOptionsDTO(self): + """Test DataservicesQueryTransfersCellDistributionOptionsDTO""" + def validate_instance(instance): + DataservicesQueryTransfersCellDistributionOptionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersCellDistributionOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_dto.py new file mode 100644 index 0000000000..78b1f481d2 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_cell_dto import DataservicesQueryTransfersCellDTO + +class TestDataservicesQueryTransfersCellDTO(unittest.TestCase): + """DataservicesQueryTransfersCellDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersCellDTO: + """Test DataservicesQueryTransfersCellDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersCellDTO( + coordinates = [ + 56 + ], + distribution = [ + visier_api_data_out.models.dataservices/query/transfers/cell_distribution_bin_dto.dataservices.query.transfers.CellDistributionBinDTO( + support = '', + value = '', ) + ], + support = '', + value = '' + ) + else: + return DataservicesQueryTransfersCellDTO( + ) + + def testDataservicesQueryTransfersCellDTO(self): + """Test DataservicesQueryTransfersCellDTO""" + def validate_instance(instance): + DataservicesQueryTransfersCellDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersCellDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_set_axis_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_set_axis_dto.py new file mode 100644 index 0000000000..db78756681 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_set_axis_dto.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_cell_set_axis_dto import DataservicesQueryTransfersCellSetAxisDTO + +class TestDataservicesQueryTransfersCellSetAxisDTO(unittest.TestCase): + """DataservicesQueryTransfersCellSetAxisDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersCellSetAxisDTO: + """Test DataservicesQueryTransfersCellSetAxisDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersCellSetAxisDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/transfers/dimension_reference_dto.dataservices.datamodel.transfers.DimensionReferenceDTO( + name = '', + qualifying_path = '', ), + positions = [ + visier_api_data_out.models.dataservices/query/transfers/cell_set_axis_position_dto.dataservices.query.transfers.CellSetAxisPositionDTO( + display_name = '', + display_name_path = [ + '' + ], + path = [ + '' + ], ) + ] + ) + else: + return DataservicesQueryTransfersCellSetAxisDTO( + ) + + def testDataservicesQueryTransfersCellSetAxisDTO(self): + """Test DataservicesQueryTransfersCellSetAxisDTO""" + def validate_instance(instance): + DataservicesQueryTransfersCellSetAxisDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersCellSetAxisDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_set_axis_position_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_set_axis_position_dto.py new file mode 100644 index 0000000000..7ffc269024 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_set_axis_position_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_cell_set_axis_position_dto import DataservicesQueryTransfersCellSetAxisPositionDTO + +class TestDataservicesQueryTransfersCellSetAxisPositionDTO(unittest.TestCase): + """DataservicesQueryTransfersCellSetAxisPositionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersCellSetAxisPositionDTO: + """Test DataservicesQueryTransfersCellSetAxisPositionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersCellSetAxisPositionDTO( + display_name = '', + display_name_path = [ + '' + ], + path = [ + '' + ] + ) + else: + return DataservicesQueryTransfersCellSetAxisPositionDTO( + ) + + def testDataservicesQueryTransfersCellSetAxisPositionDTO(self): + """Test DataservicesQueryTransfersCellSetAxisPositionDTO""" + def validate_instance(instance): + DataservicesQueryTransfersCellSetAxisPositionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersCellSetAxisPositionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_set_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_set_dto.py new file mode 100644 index 0000000000..25b11581b7 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_cell_set_dto.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_cell_set_dto import DataservicesQueryTransfersCellSetDTO + +class TestDataservicesQueryTransfersCellSetDTO(unittest.TestCase): + """DataservicesQueryTransfersCellSetDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersCellSetDTO: + """Test DataservicesQueryTransfersCellSetDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersCellSetDTO( + axes = [ + visier_api_data_out.models.dataservices/query/transfers/cell_set_axis_dto.dataservices.query.transfers.CellSetAxisDTO( + dimension = None, + positions = [ + visier_api_data_out.models.dataservices/query/transfers/cell_set_axis_position_dto.dataservices.query.transfers.CellSetAxisPositionDTO( + display_name = '', + display_name_path = [ + '' + ], + path = [ + '' + ], ) + ], ) + ], + cells = [ + visier_api_data_out.models.dataservices/query/transfers/cell_dto.dataservices.query.transfers.CellDTO( + coordinates = [ + 56 + ], + distribution = [ + visier_api_data_out.models.dataservices/query/transfers/cell_distribution_bin_dto.dataservices.query.transfers.CellDistributionBinDTO( + support = '', + value = '', ) + ], + support = '', + value = '', ) + ], + lineage = visier_api_data_out.models.dataservices/query/transfers/lineage_dto.dataservices.query.transfers.LineageDTO( + cell_sets = [ + visier_api_data_out.models.dataservices/query/transfers/cell_set_dto.dataservices.query.transfers.CellSetDTO( + axes = [ + visier_api_data_out.models.dataservices/query/transfers/cell_set_axis_dto.dataservices.query.transfers.CellSetAxisDTO( + dimension = None, + positions = [ + visier_api_data_out.models.dataservices/query/transfers/cell_set_axis_position_dto.dataservices.query.transfers.CellSetAxisPositionDTO( + display_name = '', + display_name_path = [ + '' + ], + path = [ + '' + ], ) + ], ) + ], + cells = [ + visier_api_data_out.models.dataservices/query/transfers/cell_dto.dataservices.query.transfers.CellDTO( + coordinates = [ + 56 + ], + distribution = [ + visier_api_data_out.models.dataservices/query/transfers/cell_distribution_bin_dto.dataservices.query.transfers.CellDistributionBinDTO( + support = '', + value = '', ) + ], + support = '', + value = '', ) + ], + lineage = None, ) + ], + op = '', ) + ) + else: + return DataservicesQueryTransfersCellSetDTO( + ) + + def testDataservicesQueryTransfersCellSetDTO(self): + """Test DataservicesQueryTransfersCellSetDTO""" + def validate_instance(instance): + DataservicesQueryTransfersCellSetDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersCellSetDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_cohort_filter_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_cohort_filter_dto.py new file mode 100644 index 0000000000..3aa1d46989 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_cohort_filter_dto.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_cohort_filter_dto import DataservicesQueryTransfersCohortFilterDTO + +class TestDataservicesQueryTransfersCohortFilterDTO(unittest.TestCase): + """DataservicesQueryTransfersCohortFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersCohortFilterDTO: + """Test DataservicesQueryTransfersCohortFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersCohortFilterDTO( + exclude = True, + key_group = visier_api_data_out.models.dataservices/query/transfers/key_group_filter_dto.dataservices.query.transfers.KeyGroupFilterDTO( + filters = [ + visier_api_data_out.models.dataservices/query/transfers/key_group_filter_item_dto.dataservices.query.transfers.KeyGroupFilterItemDTO( + formula = '', + member_set = None, + selection_concept = None, ) + ], ), + time_interval = visier_api_data_out.models.dataservices/query/transfers/query_time_interval_dto.dataservices.query.transfers.QueryTimeIntervalDTO( + direction = 'BACKWARD', + dynamic_date_from = 'SOURCE', + from_date_time = '', + from_instant = '', + interval_period_count = 56, + interval_period_type = 'MONTH', + shift = None, ) + ) + else: + return DataservicesQueryTransfersCohortFilterDTO( + ) + + def testDataservicesQueryTransfersCohortFilterDTO(self): + """Test DataservicesQueryTransfersCohortFilterDTO""" + def validate_instance(instance): + DataservicesQueryTransfersCohortFilterDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersCohortFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_internal_query_execution_options_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_internal_query_execution_options_dto.py new file mode 100644 index 0000000000..79369d0188 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_internal_query_execution_options_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_internal_query_execution_options_dto import DataservicesQueryTransfersInternalQueryExecutionOptionsDTO + +class TestDataservicesQueryTransfersInternalQueryExecutionOptionsDTO(unittest.TestCase): + """DataservicesQueryTransfersInternalQueryExecutionOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersInternalQueryExecutionOptionsDTO: + """Test DataservicesQueryTransfersInternalQueryExecutionOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersInternalQueryExecutionOptionsDTO( + align_time_axis_to_period_end = True, + sparse_handling_mode = 'ALLOW' + ) + else: + return DataservicesQueryTransfersInternalQueryExecutionOptionsDTO( + ) + + def testDataservicesQueryTransfersInternalQueryExecutionOptionsDTO(self): + """Test DataservicesQueryTransfersInternalQueryExecutionOptionsDTO""" + def validate_instance(instance): + DataservicesQueryTransfersInternalQueryExecutionOptionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersInternalQueryExecutionOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_key_group_filter_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_key_group_filter_dto.py new file mode 100644 index 0000000000..5d36ebebe0 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_key_group_filter_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_key_group_filter_dto import DataservicesQueryTransfersKeyGroupFilterDTO + +class TestDataservicesQueryTransfersKeyGroupFilterDTO(unittest.TestCase): + """DataservicesQueryTransfersKeyGroupFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersKeyGroupFilterDTO: + """Test DataservicesQueryTransfersKeyGroupFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersKeyGroupFilterDTO( + filters = [ + visier_api_data_out.models.dataservices/query/transfers/key_group_filter_item_dto.dataservices.query.transfers.KeyGroupFilterItemDTO( + formula = '', + member_set = None, + selection_concept = None, ) + ] + ) + else: + return DataservicesQueryTransfersKeyGroupFilterDTO( + ) + + def testDataservicesQueryTransfersKeyGroupFilterDTO(self): + """Test DataservicesQueryTransfersKeyGroupFilterDTO""" + def validate_instance(instance): + DataservicesQueryTransfersKeyGroupFilterDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersKeyGroupFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_key_group_filter_item_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_key_group_filter_item_dto.py new file mode 100644 index 0000000000..56776fe6ec --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_key_group_filter_item_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_key_group_filter_item_dto import DataservicesQueryTransfersKeyGroupFilterItemDTO + +class TestDataservicesQueryTransfersKeyGroupFilterItemDTO(unittest.TestCase): + """DataservicesQueryTransfersKeyGroupFilterItemDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersKeyGroupFilterItemDTO: + """Test DataservicesQueryTransfersKeyGroupFilterItemDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersKeyGroupFilterItemDTO( + formula = '', + member_set = visier_api_data_out.models.dataservices/query/transfers/member_filter_dto.dataservices.query.transfers.MemberFilterDTO( + dimension = None, + values = None, ), + selection_concept = visier_api_data_out.models.dataservices/datamodel/transfers/selection_concept_reference_dto.dataservices.datamodel.transfers.SelectionConceptReferenceDTO( + name = '', + qualifying_path = '', ) + ) + else: + return DataservicesQueryTransfersKeyGroupFilterItemDTO( + ) + + def testDataservicesQueryTransfersKeyGroupFilterItemDTO(self): + """Test DataservicesQueryTransfersKeyGroupFilterItemDTO""" + def validate_instance(instance): + DataservicesQueryTransfersKeyGroupFilterItemDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersKeyGroupFilterItemDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_lineage_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_lineage_dto.py new file mode 100644 index 0000000000..7188a5649d --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_lineage_dto.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_lineage_dto import DataservicesQueryTransfersLineageDTO + +class TestDataservicesQueryTransfersLineageDTO(unittest.TestCase): + """DataservicesQueryTransfersLineageDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersLineageDTO: + """Test DataservicesQueryTransfersLineageDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersLineageDTO( + cell_sets = [ + visier_api_data_out.models.dataservices/query/transfers/cell_set_dto.dataservices.query.transfers.CellSetDTO( + axes = [ + visier_api_data_out.models.dataservices/query/transfers/cell_set_axis_dto.dataservices.query.transfers.CellSetAxisDTO( + dimension = None, + positions = [ + visier_api_data_out.models.dataservices/query/transfers/cell_set_axis_position_dto.dataservices.query.transfers.CellSetAxisPositionDTO( + display_name = '', + display_name_path = [ + '' + ], + path = [ + '' + ], ) + ], ) + ], + cells = [ + visier_api_data_out.models.dataservices/query/transfers/cell_dto.dataservices.query.transfers.CellDTO( + coordinates = [ + 56 + ], + distribution = [ + visier_api_data_out.models.dataservices/query/transfers/cell_distribution_bin_dto.dataservices.query.transfers.CellDistributionBinDTO( + support = '', + value = '', ) + ], + support = '', + value = '', ) + ], + lineage = None, ) + ], + op = '' + ) + else: + return DataservicesQueryTransfersLineageDTO( + ) + + def testDataservicesQueryTransfersLineageDTO(self): + """Test DataservicesQueryTransfersLineageDTO""" + def validate_instance(instance): + DataservicesQueryTransfersLineageDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersLineageDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_list_query_execution_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_list_query_execution_dto.py new file mode 100644 index 0000000000..a25561608a --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_list_query_execution_dto.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_list_query_execution_dto import DataservicesQueryTransfersListQueryExecutionDTO + +class TestDataservicesQueryTransfersListQueryExecutionDTO(unittest.TestCase): + """DataservicesQueryTransfersListQueryExecutionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersListQueryExecutionDTO: + """Test DataservicesQueryTransfersListQueryExecutionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersListQueryExecutionDTO( + columns = [ + visier_api_data_out.models.dataservices/query/transfers/property_column_dto.dataservices.query.transfers.PropertyColumnDTO( + column_definition = None, + column_name = '', ) + ], + filters = [ + visier_api_data_out.models.dataservices/query/transfers/query_filter_dto.dataservices.query.transfers.QueryFilterDTO( + cohort = None, + formula = '', + member_set = None, + selection_concept = None, ) + ], + options = visier_api_data_out.models.dataservices/query/transfers/list_query_execution_options_dto.dataservices.query.transfers.ListQueryExecutionOptionsDTO( + calendar_type = 'TENANT_CALENDAR', + currency_conversion_code = '', + currency_conversion_date = '', + currency_conversion_mode = 'TENANT_CURRENCY_CONVERSION', + date_time_display_mode = 'EPOCH', + limit = 56, + multiple_tables = True, + omit_header = True, + page = 56, + query_mode = 'DEFAULT', + record_mode = 'NORMAL', ), + parameter_values = [ + visier_api_data_out.models.dataservices/query/transfers/query_parameter_value_dto.dataservices.query.transfers.QueryParameterValueDTO( + aggregation_type_value = None, + member_value = None, + numeric_value = None, + plan_value = None, ) + ], + sort_options = [ + visier_api_data_out.models.dataservices/query/transfers/sort_option_dto.dataservices.query.transfers.SortOptionDTO( + column_index = 56, + sort_direction = 'SORT_ASCENDING', ) + ], + source = visier_api_data_out.models.dataservices/query/transfers/list_query_source_dto.dataservices.query.transfers.ListQuerySourceDTO( + analytic_object = '', + formula = '', + metric = '', + text_concept = '', ), + time_interval = visier_api_data_out.models.dataservices/query/transfers/query_time_interval_dto.dataservices.query.transfers.QueryTimeIntervalDTO( + direction = 'BACKWARD', + dynamic_date_from = 'SOURCE', + from_date_time = '', + from_instant = '', + interval_period_count = 56, + interval_period_type = 'MONTH', + shift = None, ) + ) + else: + return DataservicesQueryTransfersListQueryExecutionDTO( + ) + + def testDataservicesQueryTransfersListQueryExecutionDTO(self): + """Test DataservicesQueryTransfersListQueryExecutionDTO""" + def validate_instance(instance): + DataservicesQueryTransfersListQueryExecutionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersListQueryExecutionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_list_query_execution_options_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_list_query_execution_options_dto.py new file mode 100644 index 0000000000..c4d778bccb --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_list_query_execution_options_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_list_query_execution_options_dto import DataservicesQueryTransfersListQueryExecutionOptionsDTO + +class TestDataservicesQueryTransfersListQueryExecutionOptionsDTO(unittest.TestCase): + """DataservicesQueryTransfersListQueryExecutionOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersListQueryExecutionOptionsDTO: + """Test DataservicesQueryTransfersListQueryExecutionOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersListQueryExecutionOptionsDTO( + calendar_type = 'TENANT_CALENDAR', + currency_conversion_code = '', + currency_conversion_date = '', + currency_conversion_mode = 'TENANT_CURRENCY_CONVERSION', + date_time_display_mode = 'EPOCH', + limit = 56, + multiple_tables = True, + omit_header = True, + page = 56, + query_mode = 'DEFAULT', + record_mode = 'NORMAL' + ) + else: + return DataservicesQueryTransfersListQueryExecutionOptionsDTO( + ) + + def testDataservicesQueryTransfersListQueryExecutionOptionsDTO(self): + """Test DataservicesQueryTransfersListQueryExecutionOptionsDTO""" + def validate_instance(instance): + DataservicesQueryTransfersListQueryExecutionOptionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersListQueryExecutionOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_list_query_source_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_list_query_source_dto.py new file mode 100644 index 0000000000..567c59ad0d --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_list_query_source_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_list_query_source_dto import DataservicesQueryTransfersListQuerySourceDTO + +class TestDataservicesQueryTransfersListQuerySourceDTO(unittest.TestCase): + """DataservicesQueryTransfersListQuerySourceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersListQuerySourceDTO: + """Test DataservicesQueryTransfersListQuerySourceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersListQuerySourceDTO( + analytic_object = '', + formula = '', + metric = '', + text_concept = '' + ) + else: + return DataservicesQueryTransfersListQuerySourceDTO( + ) + + def testDataservicesQueryTransfersListQuerySourceDTO(self): + """Test DataservicesQueryTransfersListQuerySourceDTO""" + def validate_instance(instance): + DataservicesQueryTransfersListQuerySourceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersListQuerySourceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_member_filter_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_member_filter_dto.py new file mode 100644 index 0000000000..60ceeb62bc --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_member_filter_dto.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_member_filter_dto import DataservicesQueryTransfersMemberFilterDTO + +class TestDataservicesQueryTransfersMemberFilterDTO(unittest.TestCase): + """DataservicesQueryTransfersMemberFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersMemberFilterDTO: + """Test DataservicesQueryTransfersMemberFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersMemberFilterDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/transfers/dimension_reference_dto.dataservices.datamodel.transfers.DimensionReferenceDTO( + name = '', + qualifying_path = '', ), + values = visier_api_data_out.models.dataservices/common/member_values_dto.dataservices.common.MemberValuesDTO( + excluded = [ + visier_api_data_out.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO( + path = [ + '' + ], ) + ], + included = [ + visier_api_data_out.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO() + ], ) + ) + else: + return DataservicesQueryTransfersMemberFilterDTO( + ) + + def testDataservicesQueryTransfersMemberFilterDTO(self): + """Test DataservicesQueryTransfersMemberFilterDTO""" + def validate_instance(instance): + DataservicesQueryTransfersMemberFilterDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersMemberFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_member_parameter_value_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_member_parameter_value_dto.py new file mode 100644 index 0000000000..c38ce9307b --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_member_parameter_value_dto.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_member_parameter_value_dto import DataservicesQueryTransfersMemberParameterValueDTO + +class TestDataservicesQueryTransfersMemberParameterValueDTO(unittest.TestCase): + """DataservicesQueryTransfersMemberParameterValueDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersMemberParameterValueDTO: + """Test DataservicesQueryTransfersMemberParameterValueDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersMemberParameterValueDTO( + dimension_id = '', + parameter_id = '', + reference_path = [ + '' + ], + values = visier_api_data_out.models.dataservices/common/member_values_dto.dataservices.common.MemberValuesDTO( + excluded = [ + visier_api_data_out.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO( + path = [ + '' + ], ) + ], + included = [ + visier_api_data_out.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO() + ], ) + ) + else: + return DataservicesQueryTransfersMemberParameterValueDTO( + ) + + def testDataservicesQueryTransfersMemberParameterValueDTO(self): + """Test DataservicesQueryTransfersMemberParameterValueDTO""" + def validate_instance(instance): + DataservicesQueryTransfersMemberParameterValueDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersMemberParameterValueDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_numeric_parameter_value_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_numeric_parameter_value_dto.py new file mode 100644 index 0000000000..73f11b0129 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_numeric_parameter_value_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_numeric_parameter_value_dto import DataservicesQueryTransfersNumericParameterValueDTO + +class TestDataservicesQueryTransfersNumericParameterValueDTO(unittest.TestCase): + """DataservicesQueryTransfersNumericParameterValueDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersNumericParameterValueDTO: + """Test DataservicesQueryTransfersNumericParameterValueDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersNumericParameterValueDTO( + parameter_id = '', + value = 1.337 + ) + else: + return DataservicesQueryTransfersNumericParameterValueDTO( + ) + + def testDataservicesQueryTransfersNumericParameterValueDTO(self): + """Test DataservicesQueryTransfersNumericParameterValueDTO""" + def validate_instance(instance): + DataservicesQueryTransfersNumericParameterValueDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersNumericParameterValueDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_plan_parameter_value_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_plan_parameter_value_dto.py new file mode 100644 index 0000000000..9651c2d28a --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_plan_parameter_value_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_plan_parameter_value_dto import DataservicesQueryTransfersPlanParameterValueDTO + +class TestDataservicesQueryTransfersPlanParameterValueDTO(unittest.TestCase): + """DataservicesQueryTransfersPlanParameterValueDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersPlanParameterValueDTO: + """Test DataservicesQueryTransfersPlanParameterValueDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersPlanParameterValueDTO( + parameter_id = '', + plan_id = '', + scenario_id = '', + snapshot_id = '' + ) + else: + return DataservicesQueryTransfersPlanParameterValueDTO( + ) + + def testDataservicesQueryTransfersPlanParameterValueDTO(self): + """Test DataservicesQueryTransfersPlanParameterValueDTO""" + def validate_instance(instance): + DataservicesQueryTransfersPlanParameterValueDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersPlanParameterValueDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_property_column_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_property_column_dto.py new file mode 100644 index 0000000000..659fa4bade --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_property_column_dto.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_property_column_dto import DataservicesQueryTransfersPropertyColumnDTO + +class TestDataservicesQueryTransfersPropertyColumnDTO(unittest.TestCase): + """DataservicesQueryTransfersPropertyColumnDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersPropertyColumnDTO: + """Test DataservicesQueryTransfersPropertyColumnDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersPropertyColumnDTO( + column_definition = visier_api_data_out.models.dataservices/query/transfers/query_property_dto.dataservices.query.transfers.QueryPropertyDTO( + dimension = None, + dimension_level_selection = None, + effective_date_property = None, + formula = '', + member_map_property = None, + property = None, + selection_concept = None, ), + column_name = '' + ) + else: + return DataservicesQueryTransfersPropertyColumnDTO( + ) + + def testDataservicesQueryTransfersPropertyColumnDTO(self): + """Test DataservicesQueryTransfersPropertyColumnDTO""" + def validate_instance(instance): + DataservicesQueryTransfersPropertyColumnDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersPropertyColumnDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_axis_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_axis_dto.py new file mode 100644 index 0000000000..1a1158a7d8 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_axis_dto.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_axis_dto import DataservicesQueryTransfersQueryAxisDTO + +class TestDataservicesQueryTransfersQueryAxisDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryAxisDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryAxisDTO: + """Test DataservicesQueryTransfersQueryAxisDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryAxisDTO( + dimension_data_member_selection = visier_api_data_out.models.dataservices/query/transfers/query_dimension_data_member_selection_dto.dataservices.query.transfers.QueryDimensionDataMemberSelectionDTO( + dimension = None, ), + dimension_leaf_member_selection = visier_api_data_out.models.dataservices/query/transfers/query_dimension_leaf_selection_dto.dataservices.query.transfers.QueryDimensionLeafSelectionDTO( + dimension = None, ), + dimension_level_selection = visier_api_data_out.models.dataservices/query/transfers/query_dimension_level_selection_dto.dataservices.query.transfers.QueryDimensionLevelSelectionDTO( + dimension = None, + level_ids = [ + '' + ], ), + dimension_level_with_uncategorized_value_selection = visier_api_data_out.models.dataservices/query/transfers/query_dimension_level_selection_dto.dataservices.query.transfers.QueryDimensionLevelSelectionDTO( + dimension = None, + level_ids = [ + '' + ], ), + dimension_member_selection = visier_api_data_out.models.dataservices/query/transfers/query_dimension_member_selection_dto.dataservices.query.transfers.QueryDimensionMemberSelectionDTO( + dimension = None, + members = [ + visier_api_data_out.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO( + path = [ + '' + ], ) + ], ), + formula = '', + member_map_selection = visier_api_data_out.models.dataservices/query/transfers/query_member_map_selection_dto.dataservices.query.transfers.QueryMemberMapSelectionDTO( + member_map = None, + members = [ + visier_api_data_out.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO( + path = [ + '' + ], ) + ], + target_dimension_name = '', ), + numeric_ranges = visier_api_data_out.models.dataservices/query/transfers/query_numeric_ranges_dto.dataservices.query.transfers.QueryNumericRangesDTO( + include_all_member = True, + include_independent_zero_range = True, + include_negative = True, + property = None, + ranges = '', ), + selection_concept = visier_api_data_out.models.dataservices/datamodel/transfers/selection_concept_reference_dto.dataservices.datamodel.transfers.SelectionConceptReferenceDTO( + name = '', + qualifying_path = '', ), + table_axis_options = visier_api_data_out.models.dataservices/query/transfers/query_axis_options_dto.dataservices.query.transfers.QueryAxisOptionsDTO( + column_name = '', + member_display_mode = 'UNCHANGED', ) + ) + else: + return DataservicesQueryTransfersQueryAxisDTO( + ) + + def testDataservicesQueryTransfersQueryAxisDTO(self): + """Test DataservicesQueryTransfersQueryAxisDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryAxisDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryAxisDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_axis_options_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_axis_options_dto.py new file mode 100644 index 0000000000..e680ec70f7 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_axis_options_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_axis_options_dto import DataservicesQueryTransfersQueryAxisOptionsDTO + +class TestDataservicesQueryTransfersQueryAxisOptionsDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryAxisOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryAxisOptionsDTO: + """Test DataservicesQueryTransfersQueryAxisOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryAxisOptionsDTO( + column_name = '', + member_display_mode = 'UNCHANGED' + ) + else: + return DataservicesQueryTransfersQueryAxisOptionsDTO( + ) + + def testDataservicesQueryTransfersQueryAxisOptionsDTO(self): + """Test DataservicesQueryTransfersQueryAxisOptionsDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryAxisOptionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryAxisOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_dimension_data_member_selection_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_dimension_data_member_selection_dto.py new file mode 100644 index 0000000000..998ac38562 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_dimension_data_member_selection_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_data_member_selection_dto import DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO + +class TestDataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO: + """Test DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/transfers/dimension_reference_dto.dataservices.datamodel.transfers.DimensionReferenceDTO( + name = '', + qualifying_path = '', ) + ) + else: + return DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO( + ) + + def testDataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO(self): + """Test DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_dimension_leaf_selection_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_dimension_leaf_selection_dto.py new file mode 100644 index 0000000000..7c442c0752 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_dimension_leaf_selection_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_leaf_selection_dto import DataservicesQueryTransfersQueryDimensionLeafSelectionDTO + +class TestDataservicesQueryTransfersQueryDimensionLeafSelectionDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryDimensionLeafSelectionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryDimensionLeafSelectionDTO: + """Test DataservicesQueryTransfersQueryDimensionLeafSelectionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryDimensionLeafSelectionDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/transfers/dimension_reference_dto.dataservices.datamodel.transfers.DimensionReferenceDTO( + name = '', + qualifying_path = '', ) + ) + else: + return DataservicesQueryTransfersQueryDimensionLeafSelectionDTO( + ) + + def testDataservicesQueryTransfersQueryDimensionLeafSelectionDTO(self): + """Test DataservicesQueryTransfersQueryDimensionLeafSelectionDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryDimensionLeafSelectionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryDimensionLeafSelectionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_dimension_level_property_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_dimension_level_property_dto.py new file mode 100644 index 0000000000..65357e28c3 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_dimension_level_property_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_level_property_dto import DataservicesQueryTransfersQueryDimensionLevelPropertyDTO + +class TestDataservicesQueryTransfersQueryDimensionLevelPropertyDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryDimensionLevelPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryDimensionLevelPropertyDTO: + """Test DataservicesQueryTransfersQueryDimensionLevelPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryDimensionLevelPropertyDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/transfers/dimension_reference_dto.dataservices.datamodel.transfers.DimensionReferenceDTO( + name = '', + qualifying_path = '', ), + level_depth = 56, + level_id = '', + member_value_mode = 'NAME' + ) + else: + return DataservicesQueryTransfersQueryDimensionLevelPropertyDTO( + ) + + def testDataservicesQueryTransfersQueryDimensionLevelPropertyDTO(self): + """Test DataservicesQueryTransfersQueryDimensionLevelPropertyDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryDimensionLevelPropertyDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryDimensionLevelPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_dimension_level_selection_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_dimension_level_selection_dto.py new file mode 100644 index 0000000000..e858b4a773 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_dimension_level_selection_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_level_selection_dto import DataservicesQueryTransfersQueryDimensionLevelSelectionDTO + +class TestDataservicesQueryTransfersQueryDimensionLevelSelectionDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryDimensionLevelSelectionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryDimensionLevelSelectionDTO: + """Test DataservicesQueryTransfersQueryDimensionLevelSelectionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryDimensionLevelSelectionDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/transfers/dimension_reference_dto.dataservices.datamodel.transfers.DimensionReferenceDTO( + name = '', + qualifying_path = '', ), + level_ids = [ + '' + ] + ) + else: + return DataservicesQueryTransfersQueryDimensionLevelSelectionDTO( + ) + + def testDataservicesQueryTransfersQueryDimensionLevelSelectionDTO(self): + """Test DataservicesQueryTransfersQueryDimensionLevelSelectionDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryDimensionLevelSelectionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryDimensionLevelSelectionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_dimension_member_selection_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_dimension_member_selection_dto.py new file mode 100644 index 0000000000..37f6a78867 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_dimension_member_selection_dto.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_member_selection_dto import DataservicesQueryTransfersQueryDimensionMemberSelectionDTO + +class TestDataservicesQueryTransfersQueryDimensionMemberSelectionDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryDimensionMemberSelectionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryDimensionMemberSelectionDTO: + """Test DataservicesQueryTransfersQueryDimensionMemberSelectionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryDimensionMemberSelectionDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/transfers/dimension_reference_dto.dataservices.datamodel.transfers.DimensionReferenceDTO( + name = '', + qualifying_path = '', ), + members = [ + visier_api_data_out.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO( + path = [ + '' + ], ) + ] + ) + else: + return DataservicesQueryTransfersQueryDimensionMemberSelectionDTO( + ) + + def testDataservicesQueryTransfersQueryDimensionMemberSelectionDTO(self): + """Test DataservicesQueryTransfersQueryDimensionMemberSelectionDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryDimensionMemberSelectionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryDimensionMemberSelectionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_execution_options_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_execution_options_dto.py new file mode 100644 index 0000000000..d9d45f5384 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_execution_options_dto.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_execution_options_dto import DataservicesQueryTransfersQueryExecutionOptionsDTO + +class TestDataservicesQueryTransfersQueryExecutionOptionsDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryExecutionOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryExecutionOptionsDTO: + """Test DataservicesQueryTransfersQueryExecutionOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryExecutionOptionsDTO( + axes_overall_value_mode = 'NONE', + axis_visibility = 'SIMPLE', + calendar_type = 'TENANT_CALENDAR', + cell_distribution_options = visier_api_data_out.models.dataservices/query/transfers/cell_distribution_options_dto.dataservices.query.transfers.CellDistributionOptionsDTO( + bin_count = 56, ), + currency_conversion_code = '', + currency_conversion_date = '', + currency_conversion_mode = 'TENANT_CURRENCY_CONVERSION', + enable_descending_space = True, + enable_sparse_results = True, + internal = visier_api_data_out.models.dataservices/query/transfers/internal_query_execution_options_dto.dataservices.query.transfers.InternalQueryExecutionOptionsDTO( + align_time_axis_to_period_end = True, + sparse_handling_mode = 'ALLOW', ), + lineage_depth = 56, + member_display_mode = 'DEFAULT', + null_visibility = 'SHOW', + zero_visibility = 'SHOW' + ) + else: + return DataservicesQueryTransfersQueryExecutionOptionsDTO( + ) + + def testDataservicesQueryTransfersQueryExecutionOptionsDTO(self): + """Test DataservicesQueryTransfersQueryExecutionOptionsDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryExecutionOptionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryExecutionOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_filter_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_filter_dto.py new file mode 100644 index 0000000000..573ee317a8 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_filter_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_filter_dto import DataservicesQueryTransfersQueryFilterDTO + +class TestDataservicesQueryTransfersQueryFilterDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryFilterDTO: + """Test DataservicesQueryTransfersQueryFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryFilterDTO( + cohort = visier_api_data_out.models.dataservices/query/transfers/cohort_filter_dto.dataservices.query.transfers.CohortFilterDTO( + exclude = True, + key_group = None, + time_interval = None, ), + formula = '', + member_set = visier_api_data_out.models.dataservices/query/transfers/member_filter_dto.dataservices.query.transfers.MemberFilterDTO( + dimension = None, + values = None, ), + selection_concept = visier_api_data_out.models.dataservices/datamodel/transfers/selection_concept_reference_dto.dataservices.datamodel.transfers.SelectionConceptReferenceDTO( + name = '', + qualifying_path = '', ) + ) + else: + return DataservicesQueryTransfersQueryFilterDTO( + ) + + def testDataservicesQueryTransfersQueryFilterDTO(self): + """Test DataservicesQueryTransfersQueryFilterDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryFilterDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_member_map_property_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_member_map_property_dto.py new file mode 100644 index 0000000000..17197efa12 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_member_map_property_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_member_map_property_dto import DataservicesQueryTransfersQueryMemberMapPropertyDTO + +class TestDataservicesQueryTransfersQueryMemberMapPropertyDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryMemberMapPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryMemberMapPropertyDTO: + """Test DataservicesQueryTransfersQueryMemberMapPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryMemberMapPropertyDTO( + member_map = visier_api_data_out.models.dataservices/datamodel/transfers/dimension_reference_dto.dataservices.datamodel.transfers.DimensionReferenceDTO( + name = '', + qualifying_path = '', ), + target_dimension_name = '' + ) + else: + return DataservicesQueryTransfersQueryMemberMapPropertyDTO( + ) + + def testDataservicesQueryTransfersQueryMemberMapPropertyDTO(self): + """Test DataservicesQueryTransfersQueryMemberMapPropertyDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryMemberMapPropertyDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryMemberMapPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_member_map_selection_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_member_map_selection_dto.py new file mode 100644 index 0000000000..4b0a351101 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_member_map_selection_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_member_map_selection_dto import DataservicesQueryTransfersQueryMemberMapSelectionDTO + +class TestDataservicesQueryTransfersQueryMemberMapSelectionDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryMemberMapSelectionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryMemberMapSelectionDTO: + """Test DataservicesQueryTransfersQueryMemberMapSelectionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryMemberMapSelectionDTO( + member_map = visier_api_data_out.models.dataservices/datamodel/transfers/dimension_reference_dto.dataservices.datamodel.transfers.DimensionReferenceDTO( + name = '', + qualifying_path = '', ), + members = [ + visier_api_data_out.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO( + path = [ + '' + ], ) + ], + target_dimension_name = '' + ) + else: + return DataservicesQueryTransfersQueryMemberMapSelectionDTO( + ) + + def testDataservicesQueryTransfersQueryMemberMapSelectionDTO(self): + """Test DataservicesQueryTransfersQueryMemberMapSelectionDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryMemberMapSelectionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryMemberMapSelectionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_numeric_ranges_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_numeric_ranges_dto.py new file mode 100644 index 0000000000..cf1d716897 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_numeric_ranges_dto.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_numeric_ranges_dto import DataservicesQueryTransfersQueryNumericRangesDTO + +class TestDataservicesQueryTransfersQueryNumericRangesDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryNumericRangesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryNumericRangesDTO: + """Test DataservicesQueryTransfersQueryNumericRangesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryNumericRangesDTO( + include_all_member = True, + include_independent_zero_range = True, + include_negative = True, + var_property = visier_api_data_out.models.dataservices/query/transfers/query_property_dto.dataservices.query.transfers.QueryPropertyDTO( + dimension = None, + dimension_level_selection = None, + effective_date_property = None, + formula = '', + member_map_property = None, + property = None, + selection_concept = None, ), + ranges = '' + ) + else: + return DataservicesQueryTransfersQueryNumericRangesDTO( + ) + + def testDataservicesQueryTransfersQueryNumericRangesDTO(self): + """Test DataservicesQueryTransfersQueryNumericRangesDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryNumericRangesDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryNumericRangesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_parameter_value_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_parameter_value_dto.py new file mode 100644 index 0000000000..91d9e54b9f --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_parameter_value_dto.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_parameter_value_dto import DataservicesQueryTransfersQueryParameterValueDTO + +class TestDataservicesQueryTransfersQueryParameterValueDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryParameterValueDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryParameterValueDTO: + """Test DataservicesQueryTransfersQueryParameterValueDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryParameterValueDTO( + aggregation_type_value = visier_api_data_out.models.dataservices/query/transfers/aggregation_type_parameter_value_dto.dataservices.query.transfers.AggregationTypeParameterValueDTO( + aggregation_option_id = '', + parameter_id = '', ), + member_value = visier_api_data_out.models.dataservices/query/transfers/member_parameter_value_dto.dataservices.query.transfers.MemberParameterValueDTO( + dimension_id = '', + parameter_id = '', + reference_path = [ + '' + ], + values = None, ), + numeric_value = visier_api_data_out.models.dataservices/query/transfers/numeric_parameter_value_dto.dataservices.query.transfers.NumericParameterValueDTO( + parameter_id = '', + value = 1.337, ), + plan_value = visier_api_data_out.models.dataservices/query/transfers/plan_parameter_value_dto.dataservices.query.transfers.PlanParameterValueDTO( + parameter_id = '', + plan_id = '', + scenario_id = '', + snapshot_id = '', ) + ) + else: + return DataservicesQueryTransfersQueryParameterValueDTO( + ) + + def testDataservicesQueryTransfersQueryParameterValueDTO(self): + """Test DataservicesQueryTransfersQueryParameterValueDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryParameterValueDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryParameterValueDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_property_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_property_dto.py new file mode 100644 index 0000000000..10c36b65c6 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_property_dto.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_property_dto import DataservicesQueryTransfersQueryPropertyDTO + +class TestDataservicesQueryTransfersQueryPropertyDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryPropertyDTO: + """Test DataservicesQueryTransfersQueryPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryPropertyDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/transfers/dimension_reference_dto.dataservices.datamodel.transfers.DimensionReferenceDTO( + name = '', + qualifying_path = '', ), + dimension_level_selection = visier_api_data_out.models.dataservices/query/transfers/query_dimension_level_property_dto.dataservices.query.transfers.QueryDimensionLevelPropertyDTO( + dimension = None, + level_depth = 56, + level_id = '', + member_value_mode = 'NAME', ), + effective_date_property = None, + formula = '', + member_map_property = visier_api_data_out.models.dataservices/query/transfers/query_member_map_property_dto.dataservices.query.transfers.QueryMemberMapPropertyDTO( + member_map = None, + target_dimension_name = '', ), + var_property = visier_api_data_out.models.dataservices/datamodel/transfers/property_reference_dto.dataservices.datamodel.transfers.PropertyReferenceDTO( + name = '', + qualifying_path = '', ), + selection_concept = visier_api_data_out.models.dataservices/datamodel/transfers/selection_concept_reference_dto.dataservices.datamodel.transfers.SelectionConceptReferenceDTO( + name = '', + qualifying_path = '', ) + ) + else: + return DataservicesQueryTransfersQueryPropertyDTO( + ) + + def testDataservicesQueryTransfersQueryPropertyDTO(self): + """Test DataservicesQueryTransfersQueryPropertyDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryPropertyDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_time_interval_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_time_interval_dto.py new file mode 100644 index 0000000000..35638d6c3a --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_time_interval_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_time_interval_dto import DataservicesQueryTransfersQueryTimeIntervalDTO + +class TestDataservicesQueryTransfersQueryTimeIntervalDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryTimeIntervalDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryTimeIntervalDTO: + """Test DataservicesQueryTransfersQueryTimeIntervalDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryTimeIntervalDTO( + direction = 'BACKWARD', + dynamic_date_from = 'SOURCE', + from_date_time = '', + from_instant = '', + interval_period_count = 56, + interval_period_type = 'MONTH', + shift = visier_api_data_out.models.dataservices/query/transfers/time_shift_dto.dataservices.query.transfers.TimeShiftDTO( + direction = 'BACKWARD', + period_count = 56, + period_type = 'MONTH', ) + ) + else: + return DataservicesQueryTransfersQueryTimeIntervalDTO( + ) + + def testDataservicesQueryTransfersQueryTimeIntervalDTO(self): + """Test DataservicesQueryTransfersQueryTimeIntervalDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryTimeIntervalDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryTimeIntervalDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_query_time_intervals_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_time_intervals_dto.py new file mode 100644 index 0000000000..bc1cafce1e --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_query_time_intervals_dto.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_query_time_intervals_dto import DataservicesQueryTransfersQueryTimeIntervalsDTO + +class TestDataservicesQueryTransfersQueryTimeIntervalsDTO(unittest.TestCase): + """DataservicesQueryTransfersQueryTimeIntervalsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersQueryTimeIntervalsDTO: + """Test DataservicesQueryTransfersQueryTimeIntervalsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersQueryTimeIntervalsDTO( + direction = 'BACKWARD', + dynamic_date_from = 'SOURCE', + from_date_time = '', + from_instant = '', + interval_count = 56, + interval_period_count = 56, + interval_period_type = 'MONTH', + shift = visier_api_data_out.models.dataservices/query/transfers/time_shift_dto.dataservices.query.transfers.TimeShiftDTO( + direction = 'BACKWARD', + period_count = 56, + period_type = 'MONTH', ), + trailing_period_count = 56, + trailing_period_type = 'MONTH' + ) + else: + return DataservicesQueryTransfersQueryTimeIntervalsDTO( + ) + + def testDataservicesQueryTransfersQueryTimeIntervalsDTO(self): + """Test DataservicesQueryTransfersQueryTimeIntervalsDTO""" + def validate_instance(instance): + DataservicesQueryTransfersQueryTimeIntervalsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersQueryTimeIntervalsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_snapshot_query_execution_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_snapshot_query_execution_dto.py new file mode 100644 index 0000000000..08d2212dad --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_snapshot_query_execution_dto.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_snapshot_query_execution_dto import DataservicesQueryTransfersSnapshotQueryExecutionDTO + +class TestDataservicesQueryTransfersSnapshotQueryExecutionDTO(unittest.TestCase): + """DataservicesQueryTransfersSnapshotQueryExecutionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersSnapshotQueryExecutionDTO: + """Test DataservicesQueryTransfersSnapshotQueryExecutionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersSnapshotQueryExecutionDTO( + columns = [ + visier_api_data_out.models.dataservices/query/transfers/property_column_dto.dataservices.query.transfers.PropertyColumnDTO( + column_definition = None, + column_name = '', ) + ], + filters = [ + visier_api_data_out.models.dataservices/query/transfers/query_filter_dto.dataservices.query.transfers.QueryFilterDTO( + cohort = None, + formula = '', + member_set = None, + selection_concept = None, ) + ], + options = visier_api_data_out.models.dataservices/query/transfers/snapshot_query_execution_options_dto.dataservices.query.transfers.SnapshotQueryExecutionOptionsDTO( + calendar_type = 'TENANT_CALENDAR', + currency_conversion_code = '', + currency_conversion_date = '', + date_time_display_mode = 'EPOCH', + limit = 56, + multiple_tables = True, + omit_header = True, + page = 56, + query_mode = 'DEFAULT', ), + parameter_values = [ + visier_api_data_out.models.dataservices/query/transfers/query_parameter_value_dto.dataservices.query.transfers.QueryParameterValueDTO( + aggregation_type_value = None, + member_value = None, + numeric_value = None, + plan_value = None, ) + ], + sort_options = [ + visier_api_data_out.models.dataservices/query/transfers/sort_option_dto.dataservices.query.transfers.SortOptionDTO( + column_index = 56, + sort_direction = 'SORT_ASCENDING', ) + ], + source = visier_api_data_out.models.dataservices/query/transfers/list_query_source_dto.dataservices.query.transfers.ListQuerySourceDTO( + analytic_object = '', + formula = '', + metric = '', + text_concept = '', ), + time_intervals = visier_api_data_out.models.dataservices/query/transfers/query_time_intervals_dto.dataservices.query.transfers.QueryTimeIntervalsDTO( + direction = 'BACKWARD', + dynamic_date_from = 'SOURCE', + from_date_time = '', + from_instant = '', + interval_count = 56, + interval_period_count = 56, + interval_period_type = 'MONTH', + shift = None, + trailing_period_count = 56, + trailing_period_type = 'MONTH', ) + ) + else: + return DataservicesQueryTransfersSnapshotQueryExecutionDTO( + ) + + def testDataservicesQueryTransfersSnapshotQueryExecutionDTO(self): + """Test DataservicesQueryTransfersSnapshotQueryExecutionDTO""" + def validate_instance(instance): + DataservicesQueryTransfersSnapshotQueryExecutionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersSnapshotQueryExecutionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_snapshot_query_execution_options_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_snapshot_query_execution_options_dto.py new file mode 100644 index 0000000000..66727e843b --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_snapshot_query_execution_options_dto.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_snapshot_query_execution_options_dto import DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO + +class TestDataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO(unittest.TestCase): + """DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO: + """Test DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO( + calendar_type = 'TENANT_CALENDAR', + currency_conversion_code = '', + currency_conversion_date = '', + date_time_display_mode = 'EPOCH', + limit = 56, + multiple_tables = True, + omit_header = True, + page = 56, + query_mode = 'DEFAULT' + ) + else: + return DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO( + ) + + def testDataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO(self): + """Test DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO""" + def validate_instance(instance): + DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_sort_option_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_sort_option_dto.py new file mode 100644 index 0000000000..18fc085a7f --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_sort_option_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_sort_option_dto import DataservicesQueryTransfersSortOptionDTO + +class TestDataservicesQueryTransfersSortOptionDTO(unittest.TestCase): + """DataservicesQueryTransfersSortOptionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersSortOptionDTO: + """Test DataservicesQueryTransfersSortOptionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersSortOptionDTO( + column_index = 56, + sort_direction = 'SORT_ASCENDING' + ) + else: + return DataservicesQueryTransfersSortOptionDTO( + ) + + def testDataservicesQueryTransfersSortOptionDTO(self): + """Test DataservicesQueryTransfersSortOptionDTO""" + def validate_instance(instance): + DataservicesQueryTransfersSortOptionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersSortOptionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_sql_like_query_execution_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_sql_like_query_execution_dto.py new file mode 100644 index 0000000000..6d5f18940b --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_sql_like_query_execution_dto.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_sql_like_query_execution_dto import DataservicesQueryTransfersSqlLikeQueryExecutionDTO + +class TestDataservicesQueryTransfersSqlLikeQueryExecutionDTO(unittest.TestCase): + """DataservicesQueryTransfersSqlLikeQueryExecutionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersSqlLikeQueryExecutionDTO: + """Test DataservicesQueryTransfersSqlLikeQueryExecutionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersSqlLikeQueryExecutionDTO( + options = visier_api_data_out.models.dataservices/query/transfers/query_execution_options_dto.dataservices.query.transfers.QueryExecutionOptionsDTO( + axes_overall_value_mode = 'NONE', + axis_visibility = 'SIMPLE', + calendar_type = 'TENANT_CALENDAR', + cell_distribution_options = visier_api_data_out.models.dataservices/query/transfers/cell_distribution_options_dto.dataservices.query.transfers.CellDistributionOptionsDTO( + bin_count = 56, ), + currency_conversion_code = '', + currency_conversion_date = '', + currency_conversion_mode = 'TENANT_CURRENCY_CONVERSION', + enable_descending_space = True, + enable_sparse_results = True, + internal = visier_api_data_out.models.dataservices/query/transfers/internal_query_execution_options_dto.dataservices.query.transfers.InternalQueryExecutionOptionsDTO( + align_time_axis_to_period_end = True, + sparse_handling_mode = 'ALLOW', ), + lineage_depth = 56, + member_display_mode = 'DEFAULT', + null_visibility = 'SHOW', + zero_visibility = 'SHOW', ), + query = '' + ) + else: + return DataservicesQueryTransfersSqlLikeQueryExecutionDTO( + ) + + def testDataservicesQueryTransfersSqlLikeQueryExecutionDTO(self): + """Test DataservicesQueryTransfersSqlLikeQueryExecutionDTO""" + def validate_instance(instance): + DataservicesQueryTransfersSqlLikeQueryExecutionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersSqlLikeQueryExecutionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dataservices_query_transfers_time_shift_dto.py b/src/visier_api_data_out/test/test_dataservices_query_transfers_time_shift_dto.py new file mode 100644 index 0000000000..fd728a04ec --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_transfers_time_shift_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.dataservices_query_transfers_time_shift_dto import DataservicesQueryTransfersTimeShiftDTO + +class TestDataservicesQueryTransfersTimeShiftDTO(unittest.TestCase): + """DataservicesQueryTransfersTimeShiftDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTransfersTimeShiftDTO: + """Test DataservicesQueryTransfersTimeShiftDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTransfersTimeShiftDTO( + direction = 'BACKWARD', + period_count = 56, + period_type = 'MONTH' + ) + else: + return DataservicesQueryTransfersTimeShiftDTO( + ) + + def testDataservicesQueryTransfersTimeShiftDTO(self): + """Test DataservicesQueryTransfersTimeShiftDTO""" + def validate_instance(instance): + DataservicesQueryTransfersTimeShiftDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTransfersTimeShiftDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_designer_transfers_data_version_export_column_dto.py b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_column_dto.py new file mode 100644 index 0000000000..c3c80a99e6 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_column_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.designer_transfers_data_version_export_column_dto import DesignerTransfersDataVersionExportColumnDTO + +class TestDesignerTransfersDataVersionExportColumnDTO(unittest.TestCase): + """DesignerTransfersDataVersionExportColumnDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDataVersionExportColumnDTO: + """Test DesignerTransfersDataVersionExportColumnDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDataVersionExportColumnDTO( + allows_null = True, + data_type = '', + is_primary_key_component = True, + name = '' + ) + else: + return DesignerTransfersDataVersionExportColumnDTO( + ) + + def testDesignerTransfersDataVersionExportColumnDTO(self): + """Test DesignerTransfersDataVersionExportColumnDTO""" + def validate_instance(instance): + DesignerTransfersDataVersionExportColumnDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDataVersionExportColumnDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_designer_transfers_data_version_export_data_version_summary_dto.py b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_data_version_summary_dto.py new file mode 100644 index 0000000000..01063277d3 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_data_version_summary_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.designer_transfers_data_version_export_data_version_summary_dto import DesignerTransfersDataVersionExportDataVersionSummaryDTO + +class TestDesignerTransfersDataVersionExportDataVersionSummaryDTO(unittest.TestCase): + """DesignerTransfersDataVersionExportDataVersionSummaryDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDataVersionExportDataVersionSummaryDTO: + """Test DesignerTransfersDataVersionExportDataVersionSummaryDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDataVersionExportDataVersionSummaryDTO( + created = '', + data_category = '', + data_version = '' + ) + else: + return DesignerTransfersDataVersionExportDataVersionSummaryDTO( + ) + + def testDesignerTransfersDataVersionExportDataVersionSummaryDTO(self): + """Test DesignerTransfersDataVersionExportDataVersionSummaryDTO""" + def validate_instance(instance): + DesignerTransfersDataVersionExportDataVersionSummaryDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDataVersionExportDataVersionSummaryDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_designer_transfers_data_version_export_data_versions_dto.py b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_data_versions_dto.py new file mode 100644 index 0000000000..4303dd7c86 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_data_versions_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.designer_transfers_data_version_export_data_versions_dto import DesignerTransfersDataVersionExportDataVersionsDTO + +class TestDesignerTransfersDataVersionExportDataVersionsDTO(unittest.TestCase): + """DesignerTransfersDataVersionExportDataVersionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDataVersionExportDataVersionsDTO: + """Test DesignerTransfersDataVersionExportDataVersionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDataVersionExportDataVersionsDTO( + data_versions = [ + visier_api_data_out.models.designer/transfers/data_version_export_data_version_summary_dto.designer.transfers.DataVersionExportDataVersionSummaryDTO( + created = '', + data_category = '', + data_version = '', ) + ] + ) + else: + return DesignerTransfersDataVersionExportDataVersionsDTO( + ) + + def testDesignerTransfersDataVersionExportDataVersionsDTO(self): + """Test DesignerTransfersDataVersionExportDataVersionsDTO""" + def validate_instance(instance): + DesignerTransfersDataVersionExportDataVersionsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDataVersionExportDataVersionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_designer_transfers_data_version_export_dto.py b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_dto.py new file mode 100644 index 0000000000..1b417a0ce0 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_dto.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.designer_transfers_data_version_export_dto import DesignerTransfersDataVersionExportDTO + +class TestDesignerTransfersDataVersionExportDTO(unittest.TestCase): + """DesignerTransfersDataVersionExportDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDataVersionExportDTO: + """Test DesignerTransfersDataVersionExportDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDataVersionExportDTO( + base_data_version_number = '', + data_version_number = '', + deleted_tables = [ + '' + ], + new_tables = [ + '' + ], + tables = [ + visier_api_data_out.models.designer/transfers/data_version_export_table_dto.designer.transfers.DataVersionExportTableDTO( + common_columns = None, + deleted_columns = [ + '' + ], + name = '', + new_columns = None, ) + ], + timestamp = '', + uuid = '' + ) + else: + return DesignerTransfersDataVersionExportDTO( + ) + + def testDesignerTransfersDataVersionExportDTO(self): + """Test DesignerTransfersDataVersionExportDTO""" + def validate_instance(instance): + DesignerTransfersDataVersionExportDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDataVersionExportDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_designer_transfers_data_version_export_file_dto.py b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_file_dto.py new file mode 100644 index 0000000000..a572f7a009 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_file_dto.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.designer_transfers_data_version_export_file_dto import DesignerTransfersDataVersionExportFileDTO + +class TestDesignerTransfersDataVersionExportFileDTO(unittest.TestCase): + """DesignerTransfersDataVersionExportFileDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDataVersionExportFileDTO: + """Test DesignerTransfersDataVersionExportFileDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDataVersionExportFileDTO( + columns = [ + visier_api_data_out.models.designer/transfers/data_version_export_column_dto.designer.transfers.DataVersionExportColumnDTO( + allows_null = True, + data_type = '', + is_primary_key_component = True, + name = '', ) + ], + files = [ + visier_api_data_out.models.designer/transfers/data_version_export_part_file_dto.designer.transfers.DataVersionExportPartFileDTO( + file_id = 56, + filename = '', ) + ] + ) + else: + return DesignerTransfersDataVersionExportFileDTO( + ) + + def testDesignerTransfersDataVersionExportFileDTO(self): + """Test DesignerTransfersDataVersionExportFileDTO""" + def validate_instance(instance): + DesignerTransfersDataVersionExportFileDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDataVersionExportFileDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_designer_transfers_data_version_export_job_status_dto.py b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_job_status_dto.py new file mode 100644 index 0000000000..954c0d5dc4 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_job_status_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.designer_transfers_data_version_export_job_status_dto import DesignerTransfersDataVersionExportJobStatusDTO + +class TestDesignerTransfersDataVersionExportJobStatusDTO(unittest.TestCase): + """DesignerTransfersDataVersionExportJobStatusDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDataVersionExportJobStatusDTO: + """Test DesignerTransfersDataVersionExportJobStatusDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDataVersionExportJobStatusDTO( + completed = True, + export_uuid = '', + failed = True, + job_uuid = '' + ) + else: + return DesignerTransfersDataVersionExportJobStatusDTO( + ) + + def testDesignerTransfersDataVersionExportJobStatusDTO(self): + """Test DesignerTransfersDataVersionExportJobStatusDTO""" + def validate_instance(instance): + DesignerTransfersDataVersionExportJobStatusDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDataVersionExportJobStatusDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_designer_transfers_data_version_export_part_file_dto.py b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_part_file_dto.py new file mode 100644 index 0000000000..dfc6fa7f51 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_part_file_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.designer_transfers_data_version_export_part_file_dto import DesignerTransfersDataVersionExportPartFileDTO + +class TestDesignerTransfersDataVersionExportPartFileDTO(unittest.TestCase): + """DesignerTransfersDataVersionExportPartFileDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDataVersionExportPartFileDTO: + """Test DesignerTransfersDataVersionExportPartFileDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDataVersionExportPartFileDTO( + file_id = 56, + filename = '' + ) + else: + return DesignerTransfersDataVersionExportPartFileDTO( + ) + + def testDesignerTransfersDataVersionExportPartFileDTO(self): + """Test DesignerTransfersDataVersionExportPartFileDTO""" + def validate_instance(instance): + DesignerTransfersDataVersionExportPartFileDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDataVersionExportPartFileDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_designer_transfers_data_version_export_schedule_job_request_dto.py b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_schedule_job_request_dto.py new file mode 100644 index 0000000000..818ae57768 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_schedule_job_request_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.designer_transfers_data_version_export_schedule_job_request_dto import DesignerTransfersDataVersionExportScheduleJobRequestDTO + +class TestDesignerTransfersDataVersionExportScheduleJobRequestDTO(unittest.TestCase): + """DesignerTransfersDataVersionExportScheduleJobRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDataVersionExportScheduleJobRequestDTO: + """Test DesignerTransfersDataVersionExportScheduleJobRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDataVersionExportScheduleJobRequestDTO( + base_data_version_number = '', + data_version_number = '' + ) + else: + return DesignerTransfersDataVersionExportScheduleJobRequestDTO( + ) + + def testDesignerTransfersDataVersionExportScheduleJobRequestDTO(self): + """Test DesignerTransfersDataVersionExportScheduleJobRequestDTO""" + def validate_instance(instance): + DesignerTransfersDataVersionExportScheduleJobRequestDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDataVersionExportScheduleJobRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_designer_transfers_data_version_export_schedule_job_response_dto.py b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_schedule_job_response_dto.py new file mode 100644 index 0000000000..6a573f6203 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_schedule_job_response_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.designer_transfers_data_version_export_schedule_job_response_dto import DesignerTransfersDataVersionExportScheduleJobResponseDTO + +class TestDesignerTransfersDataVersionExportScheduleJobResponseDTO(unittest.TestCase): + """DesignerTransfersDataVersionExportScheduleJobResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDataVersionExportScheduleJobResponseDTO: + """Test DesignerTransfersDataVersionExportScheduleJobResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDataVersionExportScheduleJobResponseDTO( + job_uuid = '' + ) + else: + return DesignerTransfersDataVersionExportScheduleJobResponseDTO( + ) + + def testDesignerTransfersDataVersionExportScheduleJobResponseDTO(self): + """Test DesignerTransfersDataVersionExportScheduleJobResponseDTO""" + def validate_instance(instance): + DesignerTransfersDataVersionExportScheduleJobResponseDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDataVersionExportScheduleJobResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_designer_transfers_data_version_export_table_dto.py b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_table_dto.py new file mode 100644 index 0000000000..5932280413 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_transfers_data_version_export_table_dto.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.designer_transfers_data_version_export_table_dto import DesignerTransfersDataVersionExportTableDTO + +class TestDesignerTransfersDataVersionExportTableDTO(unittest.TestCase): + """DesignerTransfersDataVersionExportTableDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDataVersionExportTableDTO: + """Test DesignerTransfersDataVersionExportTableDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDataVersionExportTableDTO( + common_columns = visier_api_data_out.models.designer/transfers/data_version_export_file_dto.designer.transfers.DataVersionExportFileDTO( + columns = [ + visier_api_data_out.models.designer/transfers/data_version_export_column_dto.designer.transfers.DataVersionExportColumnDTO( + allows_null = True, + data_type = '', + is_primary_key_component = True, + name = '', ) + ], + files = [ + visier_api_data_out.models.designer/transfers/data_version_export_part_file_dto.designer.transfers.DataVersionExportPartFileDTO( + file_id = 56, + filename = '', ) + ], ), + deleted_columns = [ + '' + ], + name = '', + new_columns = visier_api_data_out.models.designer/transfers/data_version_export_file_dto.designer.transfers.DataVersionExportFileDTO( + columns = [ + visier_api_data_out.models.designer/transfers/data_version_export_column_dto.designer.transfers.DataVersionExportColumnDTO( + allows_null = True, + data_type = '', + is_primary_key_component = True, + name = '', ) + ], + files = [ + visier_api_data_out.models.designer/transfers/data_version_export_part_file_dto.designer.transfers.DataVersionExportPartFileDTO( + file_id = 56, + filename = '', ) + ], ) + ) + else: + return DesignerTransfersDataVersionExportTableDTO( + ) + + def testDesignerTransfersDataVersionExportTableDTO(self): + """Test DesignerTransfersDataVersionExportTableDTO""" + def validate_instance(instance): + DesignerTransfersDataVersionExportTableDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDataVersionExportTableDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_designer_transfers_data_version_exports_dto.py b/src/visier_api_data_out/test/test_designer_transfers_data_version_exports_dto.py new file mode 100644 index 0000000000..636d5e6af9 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_transfers_data_version_exports_dto.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.designer_transfers_data_version_exports_dto import DesignerTransfersDataVersionExportsDTO + +class TestDesignerTransfersDataVersionExportsDTO(unittest.TestCase): + """DesignerTransfersDataVersionExportsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDataVersionExportsDTO: + """Test DesignerTransfersDataVersionExportsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDataVersionExportsDTO( + data_version_exports = [ + visier_api_data_out.models.designer/transfers/data_version_export_dto.designer.transfers.DataVersionExportDTO( + base_data_version_number = '', + data_version_number = '', + deleted_tables = [ + '' + ], + new_tables = [ + '' + ], + tables = [ + visier_api_data_out.models.designer/transfers/data_version_export_table_dto.designer.transfers.DataVersionExportTableDTO( + common_columns = None, + deleted_columns = [ + '' + ], + name = '', + new_columns = None, ) + ], + timestamp = '', + uuid = '', ) + ] + ) + else: + return DesignerTransfersDataVersionExportsDTO( + ) + + def testDesignerTransfersDataVersionExportsDTO(self): + """Test DesignerTransfersDataVersionExportsDTO""" + def validate_instance(instance): + DesignerTransfersDataVersionExportsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDataVersionExportsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_designer_transfers_download_source_files_dto.py b/src/visier_api_data_out/test/test_designer_transfers_download_source_files_dto.py new file mode 100644 index 0000000000..d94959bad1 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_transfers_download_source_files_dto.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.designer_transfers_download_source_files_dto import DesignerTransfersDownloadSourceFilesDTO + +class TestDesignerTransfersDownloadSourceFilesDTO(unittest.TestCase): + """DesignerTransfersDownloadSourceFilesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDownloadSourceFilesDTO: + """Test DesignerTransfersDownloadSourceFilesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDownloadSourceFilesDTO( + download_all = True, + max_timestamp = '', + min_timestamp = '', + source_ids = [ + '' + ], + sources = [ + '' + ] + ) + else: + return DesignerTransfersDownloadSourceFilesDTO( + ) + + def testDesignerTransfersDownloadSourceFilesDTO(self): + """Test DesignerTransfersDownloadSourceFilesDTO""" + def validate_instance(instance): + DesignerTransfersDownloadSourceFilesDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDownloadSourceFilesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_designer_transfers_download_source_files_response_dto.py b/src/visier_api_data_out/test/test_designer_transfers_download_source_files_response_dto.py new file mode 100644 index 0000000000..9af597d009 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_transfers_download_source_files_response_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.designer_transfers_download_source_files_response_dto import DesignerTransfersDownloadSourceFilesResponseDTO + +class TestDesignerTransfersDownloadSourceFilesResponseDTO(unittest.TestCase): + """DesignerTransfersDownloadSourceFilesResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTransfersDownloadSourceFilesResponseDTO: + """Test DesignerTransfersDownloadSourceFilesResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTransfersDownloadSourceFilesResponseDTO( + messages = '', + status = '' + ) + else: + return DesignerTransfersDownloadSourceFilesResponseDTO( + ) + + def testDesignerTransfersDownloadSourceFilesResponseDTO(self): + """Test DesignerTransfersDownloadSourceFilesResponseDTO""" + def validate_instance(instance): + DesignerTransfersDownloadSourceFilesResponseDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTransfersDownloadSourceFilesResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_dimension_member_reference_dto.py b/src/visier_api_data_out/test/test_dimension_member_reference_dto.py deleted file mode 100644 index ef2c2ca44d..0000000000 --- a/src/visier_api_data_out/test/test_dimension_member_reference_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.dimension_member_reference_dto import DimensionMemberReferenceDTO - -class TestDimensionMemberReferenceDTO(unittest.TestCase): - """DimensionMemberReferenceDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DimensionMemberReferenceDTO: - """Test DimensionMemberReferenceDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DimensionMemberReferenceDTO( - path = [ - '' - ] - ) - else: - return DimensionMemberReferenceDTO( - ) - - def testDimensionMemberReferenceDTO(self): - """Test DimensionMemberReferenceDTO""" - def validate_instance(instance): - DimensionMemberReferenceDTO.model_validate(inst_req_only) - instance_deserialized = DimensionMemberReferenceDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_dimension_reference_dto.py b/src/visier_api_data_out/test/test_dimension_reference_dto.py deleted file mode 100644 index 5a2f01be5d..0000000000 --- a/src/visier_api_data_out/test/test_dimension_reference_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.dimension_reference_dto import DimensionReferenceDTO - -class TestDimensionReferenceDTO(unittest.TestCase): - """DimensionReferenceDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DimensionReferenceDTO: - """Test DimensionReferenceDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DimensionReferenceDTO( - name = '', - qualifying_path = '' - ) - else: - return DimensionReferenceDTO( - ) - - def testDimensionReferenceDTO(self): - """Test DimensionReferenceDTO""" - def validate_instance(instance): - DimensionReferenceDTO.model_validate(inst_req_only) - instance_deserialized = DimensionReferenceDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_document_search_link_dto.py b/src/visier_api_data_out/test/test_document_search_link_dto.py deleted file mode 100644 index 3d637f41eb..0000000000 --- a/src/visier_api_data_out/test/test_document_search_link_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.document_search_link_dto import DocumentSearchLinkDTO - -class TestDocumentSearchLinkDTO(unittest.TestCase): - """DocumentSearchLinkDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DocumentSearchLinkDTO: - """Test DocumentSearchLinkDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DocumentSearchLinkDTO( - href = '', - verb = '' - ) - else: - return DocumentSearchLinkDTO( - ) - - def testDocumentSearchLinkDTO(self): - """Test DocumentSearchLinkDTO""" - def validate_instance(instance): - DocumentSearchLinkDTO.model_validate(inst_req_only) - instance_deserialized = DocumentSearchLinkDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_download_source_files_dto.py b/src/visier_api_data_out/test/test_download_source_files_dto.py deleted file mode 100644 index 9b34b0e680..0000000000 --- a/src/visier_api_data_out/test/test_download_source_files_dto.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.download_source_files_dto import DownloadSourceFilesDTO - -class TestDownloadSourceFilesDTO(unittest.TestCase): - """DownloadSourceFilesDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DownloadSourceFilesDTO: - """Test DownloadSourceFilesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DownloadSourceFilesDTO( - download_all = True, - max_timestamp = '', - min_timestamp = '', - source_ids = [ - '' - ], - sources = [ - '' - ] - ) - else: - return DownloadSourceFilesDTO( - ) - - def testDownloadSourceFilesDTO(self): - """Test DownloadSourceFilesDTO""" - def validate_instance(instance): - DownloadSourceFilesDTO.model_validate(inst_req_only) - instance_deserialized = DownloadSourceFilesDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_download_source_files_response_dto.py b/src/visier_api_data_out/test/test_download_source_files_response_dto.py deleted file mode 100644 index a222672044..0000000000 --- a/src/visier_api_data_out/test/test_download_source_files_response_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.download_source_files_response_dto import DownloadSourceFilesResponseDTO - -class TestDownloadSourceFilesResponseDTO(unittest.TestCase): - """DownloadSourceFilesResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DownloadSourceFilesResponseDTO: - """Test DownloadSourceFilesResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return DownloadSourceFilesResponseDTO( - messages = '', - status = '' - ) - else: - return DownloadSourceFilesResponseDTO( - ) - - def testDownloadSourceFilesResponseDTO(self): - """Test DownloadSourceFilesResponseDTO""" - def validate_instance(instance): - DownloadSourceFilesResponseDTO.model_validate(inst_req_only) - instance_deserialized = DownloadSourceFilesResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_dv_export_status.py b/src/visier_api_data_out/test/test_dv_export_status.py index 7a6775f9d8..7ce0646b69 100644 --- a/src/visier_api_data_out/test/test_dv_export_status.py +++ b/src/visier_api_data_out/test/test_dv_export_status.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/test/test_google_protobuf_any.py b/src/visier_api_data_out/test/test_google_protobuf_any.py index cb77d241a1..1c82d57015 100644 --- a/src/visier_api_data_out/test/test_google_protobuf_any.py +++ b/src/visier_api_data_out/test/test_google_protobuf_any.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/test/test_internal_query_execution_options_dto.py b/src/visier_api_data_out/test/test_internal_query_execution_options_dto.py deleted file mode 100644 index 1e28fed7cf..0000000000 --- a/src/visier_api_data_out/test/test_internal_query_execution_options_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.internal_query_execution_options_dto import InternalQueryExecutionOptionsDTO - -class TestInternalQueryExecutionOptionsDTO(unittest.TestCase): - """InternalQueryExecutionOptionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> InternalQueryExecutionOptionsDTO: - """Test InternalQueryExecutionOptionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return InternalQueryExecutionOptionsDTO( - align_time_axis_to_period_end = True, - sparse_handling_mode = 'ALLOW' - ) - else: - return InternalQueryExecutionOptionsDTO( - ) - - def testInternalQueryExecutionOptionsDTO(self): - """Test InternalQueryExecutionOptionsDTO""" - def validate_instance(instance): - InternalQueryExecutionOptionsDTO.model_validate(inst_req_only) - instance_deserialized = InternalQueryExecutionOptionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_key_group_filter_dto.py b/src/visier_api_data_out/test/test_key_group_filter_dto.py deleted file mode 100644 index 4696d152cf..0000000000 --- a/src/visier_api_data_out/test/test_key_group_filter_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.key_group_filter_dto import KeyGroupFilterDTO - -class TestKeyGroupFilterDTO(unittest.TestCase): - """KeyGroupFilterDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> KeyGroupFilterDTO: - """Test KeyGroupFilterDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return KeyGroupFilterDTO( - filters = [ - visier_api_data_out.models.key_group_filter_item_dto.KeyGroupFilterItemDTO( - formula = '', - member_set = None, - selection_concept = None, ) - ] - ) - else: - return KeyGroupFilterDTO( - ) - - def testKeyGroupFilterDTO(self): - """Test KeyGroupFilterDTO""" - def validate_instance(instance): - KeyGroupFilterDTO.model_validate(inst_req_only) - instance_deserialized = KeyGroupFilterDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_key_group_filter_item_dto.py b/src/visier_api_data_out/test/test_key_group_filter_item_dto.py deleted file mode 100644 index c8b5f5ee3d..0000000000 --- a/src/visier_api_data_out/test/test_key_group_filter_item_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.key_group_filter_item_dto import KeyGroupFilterItemDTO - -class TestKeyGroupFilterItemDTO(unittest.TestCase): - """KeyGroupFilterItemDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> KeyGroupFilterItemDTO: - """Test KeyGroupFilterItemDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return KeyGroupFilterItemDTO( - formula = '', - member_set = visier_api_data_out.models.member_filter_dto.MemberFilterDTO( - dimension = None, - values = None, ), - selection_concept = visier_api_data_out.models.selection_concept_reference_dto.SelectionConceptReferenceDTO( - name = '', - qualifying_path = '', ) - ) - else: - return KeyGroupFilterItemDTO( - ) - - def testKeyGroupFilterItemDTO(self): - """Test KeyGroupFilterItemDTO""" - def validate_instance(instance): - KeyGroupFilterItemDTO.model_validate(inst_req_only) - instance_deserialized = KeyGroupFilterItemDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_lineage_dto.py b/src/visier_api_data_out/test/test_lineage_dto.py deleted file mode 100644 index f2512897b2..0000000000 --- a/src/visier_api_data_out/test/test_lineage_dto.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.lineage_dto import LineageDTO - -class TestLineageDTO(unittest.TestCase): - """LineageDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LineageDTO: - """Test LineageDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return LineageDTO( - cell_sets = [ - visier_api_data_out.models.cell_set_dto.CellSetDTO( - axes = [ - visier_api_data_out.models.cell_set_axis_dto.CellSetAxisDTO( - dimension = None, - positions = [ - visier_api_data_out.models.cell_set_axis_position_dto.CellSetAxisPositionDTO( - display_name = '', - display_name_path = [ - '' - ], - path = [ - '' - ], ) - ], ) - ], - cells = [ - visier_api_data_out.models.cell_dto.CellDTO( - coordinates = [ - 56 - ], - distribution = [ - visier_api_data_out.models.cell_distribution_bin_dto.CellDistributionBinDTO( - support = '', - value = '', ) - ], - support = '', - value = '', ) - ], - lineage = None, ) - ], - op = '' - ) - else: - return LineageDTO( - ) - - def testLineageDTO(self): - """Test LineageDTO""" - def validate_instance(instance): - LineageDTO.model_validate(inst_req_only) - instance_deserialized = LineageDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_list_query_execution_dto.py b/src/visier_api_data_out/test/test_list_query_execution_dto.py deleted file mode 100644 index 271ba6a5e8..0000000000 --- a/src/visier_api_data_out/test/test_list_query_execution_dto.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.list_query_execution_dto import ListQueryExecutionDTO - -class TestListQueryExecutionDTO(unittest.TestCase): - """ListQueryExecutionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ListQueryExecutionDTO: - """Test ListQueryExecutionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ListQueryExecutionDTO( - columns = [ - visier_api_data_out.models.property_column_dto.PropertyColumnDTO( - column_definition = None, - column_name = '', ) - ], - filters = [ - visier_api_data_out.models.query_filter_dto.QueryFilterDTO( - cohort = None, - formula = '', - member_set = None, - selection_concept = None, ) - ], - options = visier_api_data_out.models.list_query_execution_options_dto.ListQueryExecutionOptionsDTO( - calendar_type = 'TENANT_CALENDAR', - currency_conversion_code = '', - currency_conversion_date = '', - currency_conversion_mode = 'TENANT_CURRENCY_CONVERSION', - date_time_display_mode = 'EPOCH', - limit = 56, - multiple_tables = True, - omit_header = True, - page = 56, - query_mode = 'DEFAULT', - record_mode = 'NORMAL', ), - parameter_values = [ - visier_api_data_out.models.query_parameter_value_dto.QueryParameterValueDTO( - aggregation_type_value = None, - member_value = None, - numeric_value = None, - plan_value = None, ) - ], - sort_options = [ - visier_api_data_out.models.sort_option_dto.SortOptionDTO( - column_index = 56, - sort_direction = 'SORT_ASCENDING', ) - ], - source = visier_api_data_out.models.list_query_source_dto.ListQuerySourceDTO( - analytic_object = '', - formula = '', - metric = '', - text_concept = '', ), - time_interval = visier_api_data_out.models.query_time_interval_dto.QueryTimeIntervalDTO( - direction = 'BACKWARD', - dynamic_date_from = 'SOURCE', - from_date_time = '', - from_instant = '', - interval_period_count = 56, - interval_period_type = 'MONTH', - shift = None, ) - ) - else: - return ListQueryExecutionDTO( - ) - - def testListQueryExecutionDTO(self): - """Test ListQueryExecutionDTO""" - def validate_instance(instance): - ListQueryExecutionDTO.model_validate(inst_req_only) - instance_deserialized = ListQueryExecutionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_list_query_execution_options_dto.py b/src/visier_api_data_out/test/test_list_query_execution_options_dto.py deleted file mode 100644 index cd156650c2..0000000000 --- a/src/visier_api_data_out/test/test_list_query_execution_options_dto.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.list_query_execution_options_dto import ListQueryExecutionOptionsDTO - -class TestListQueryExecutionOptionsDTO(unittest.TestCase): - """ListQueryExecutionOptionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ListQueryExecutionOptionsDTO: - """Test ListQueryExecutionOptionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ListQueryExecutionOptionsDTO( - calendar_type = 'TENANT_CALENDAR', - currency_conversion_code = '', - currency_conversion_date = '', - currency_conversion_mode = 'TENANT_CURRENCY_CONVERSION', - date_time_display_mode = 'EPOCH', - limit = 56, - multiple_tables = True, - omit_header = True, - page = 56, - query_mode = 'DEFAULT', - record_mode = 'NORMAL' - ) - else: - return ListQueryExecutionOptionsDTO( - ) - - def testListQueryExecutionOptionsDTO(self): - """Test ListQueryExecutionOptionsDTO""" - def validate_instance(instance): - ListQueryExecutionOptionsDTO.model_validate(inst_req_only) - instance_deserialized = ListQueryExecutionOptionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_list_query_source_dto.py b/src/visier_api_data_out/test/test_list_query_source_dto.py deleted file mode 100644 index c647a1096b..0000000000 --- a/src/visier_api_data_out/test/test_list_query_source_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.list_query_source_dto import ListQuerySourceDTO - -class TestListQuerySourceDTO(unittest.TestCase): - """ListQuerySourceDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ListQuerySourceDTO: - """Test ListQuerySourceDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ListQuerySourceDTO( - analytic_object = '', - formula = '', - metric = '', - text_concept = '' - ) - else: - return ListQuerySourceDTO( - ) - - def testListQuerySourceDTO(self): - """Test ListQuerySourceDTO""" - def validate_instance(instance): - ListQuerySourceDTO.model_validate(inst_req_only) - instance_deserialized = ListQuerySourceDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_list_response.py b/src/visier_api_data_out/test/test_list_response.py deleted file mode 100644 index 0f7eb59c94..0000000000 --- a/src/visier_api_data_out/test/test_list_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.list_response import ListResponse - -class TestListResponse(unittest.TestCase): - """ListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ListResponse: - """Test ListResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ListResponse( - header = { }, - rows = [ - { } - ] - ) - else: - return ListResponse( - ) - - def testListResponse(self): - """Test ListResponse""" - def validate_instance(instance): - ListResponse.model_validate(inst_req_only) - instance_deserialized = ListResponse.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_member_filter_dto.py b/src/visier_api_data_out/test/test_member_filter_dto.py deleted file mode 100644 index 267700cab3..0000000000 --- a/src/visier_api_data_out/test/test_member_filter_dto.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.member_filter_dto import MemberFilterDTO - -class TestMemberFilterDTO(unittest.TestCase): - """MemberFilterDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MemberFilterDTO: - """Test MemberFilterDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MemberFilterDTO( - dimension = visier_api_data_out.models.dimension_reference_dto.DimensionReferenceDTO( - name = '', - qualifying_path = '', ), - values = visier_api_data_out.models.member_values_dto.MemberValuesDTO( - excluded = [ - visier_api_data_out.models.dimension_member_reference_dto.DimensionMemberReferenceDTO( - path = [ - '' - ], ) - ], - included = [ - visier_api_data_out.models.dimension_member_reference_dto.DimensionMemberReferenceDTO() - ], ) - ) - else: - return MemberFilterDTO( - ) - - def testMemberFilterDTO(self): - """Test MemberFilterDTO""" - def validate_instance(instance): - MemberFilterDTO.model_validate(inst_req_only) - instance_deserialized = MemberFilterDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_member_parameter_value_dto.py b/src/visier_api_data_out/test/test_member_parameter_value_dto.py deleted file mode 100644 index e4748abf07..0000000000 --- a/src/visier_api_data_out/test/test_member_parameter_value_dto.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.member_parameter_value_dto import MemberParameterValueDTO - -class TestMemberParameterValueDTO(unittest.TestCase): - """MemberParameterValueDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MemberParameterValueDTO: - """Test MemberParameterValueDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MemberParameterValueDTO( - dimension_id = '', - parameter_id = '', - reference_path = [ - '' - ], - values = visier_api_data_out.models.member_values_dto.MemberValuesDTO( - excluded = [ - visier_api_data_out.models.dimension_member_reference_dto.DimensionMemberReferenceDTO( - path = [ - '' - ], ) - ], - included = [ - visier_api_data_out.models.dimension_member_reference_dto.DimensionMemberReferenceDTO() - ], ) - ) - else: - return MemberParameterValueDTO( - ) - - def testMemberParameterValueDTO(self): - """Test MemberParameterValueDTO""" - def validate_instance(instance): - MemberParameterValueDTO.model_validate(inst_req_only) - instance_deserialized = MemberParameterValueDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_member_values_dto.py b/src/visier_api_data_out/test/test_member_values_dto.py deleted file mode 100644 index dca789406c..0000000000 --- a/src/visier_api_data_out/test/test_member_values_dto.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.member_values_dto import MemberValuesDTO - -class TestMemberValuesDTO(unittest.TestCase): - """MemberValuesDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MemberValuesDTO: - """Test MemberValuesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return MemberValuesDTO( - excluded = [ - visier_api_data_out.models.dimension_member_reference_dto.DimensionMemberReferenceDTO( - path = [ - '' - ], ) - ], - included = [ - visier_api_data_out.models.dimension_member_reference_dto.DimensionMemberReferenceDTO( - path = [ - '' - ], ) - ] - ) - else: - return MemberValuesDTO( - ) - - def testMemberValuesDTO(self): - """Test MemberValuesDTO""" - def validate_instance(instance): - MemberValuesDTO.model_validate(inst_req_only) - instance_deserialized = MemberValuesDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_numeric_parameter_value_dto.py b/src/visier_api_data_out/test/test_numeric_parameter_value_dto.py deleted file mode 100644 index b3da7e776c..0000000000 --- a/src/visier_api_data_out/test/test_numeric_parameter_value_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.numeric_parameter_value_dto import NumericParameterValueDTO - -class TestNumericParameterValueDTO(unittest.TestCase): - """NumericParameterValueDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NumericParameterValueDTO: - """Test NumericParameterValueDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return NumericParameterValueDTO( - parameter_id = '', - value = 1.337 - ) - else: - return NumericParameterValueDTO( - ) - - def testNumericParameterValueDTO(self): - """Test NumericParameterValueDTO""" - def validate_instance(instance): - NumericParameterValueDTO.model_validate(inst_req_only) - instance_deserialized = NumericParameterValueDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_plan_parameter_value_dto.py b/src/visier_api_data_out/test/test_plan_parameter_value_dto.py deleted file mode 100644 index 3056a51901..0000000000 --- a/src/visier_api_data_out/test/test_plan_parameter_value_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.plan_parameter_value_dto import PlanParameterValueDTO - -class TestPlanParameterValueDTO(unittest.TestCase): - """PlanParameterValueDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanParameterValueDTO: - """Test PlanParameterValueDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PlanParameterValueDTO( - parameter_id = '', - plan_id = '', - scenario_id = '', - snapshot_id = '' - ) - else: - return PlanParameterValueDTO( - ) - - def testPlanParameterValueDTO(self): - """Test PlanParameterValueDTO""" - def validate_instance(instance): - PlanParameterValueDTO.model_validate(inst_req_only) - instance_deserialized = PlanParameterValueDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_property_column_dto.py b/src/visier_api_data_out/test/test_property_column_dto.py deleted file mode 100644 index 32e8b7e665..0000000000 --- a/src/visier_api_data_out/test/test_property_column_dto.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.property_column_dto import PropertyColumnDTO - -class TestPropertyColumnDTO(unittest.TestCase): - """PropertyColumnDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertyColumnDTO: - """Test PropertyColumnDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertyColumnDTO( - column_definition = visier_api_data_out.models.query_property_dto.QueryPropertyDTO( - dimension = None, - dimension_level_selection = None, - effective_date_property = None, - formula = '', - member_map_property = None, - property = None, - selection_concept = None, ), - column_name = '' - ) - else: - return PropertyColumnDTO( - ) - - def testPropertyColumnDTO(self): - """Test PropertyColumnDTO""" - def validate_instance(instance): - PropertyColumnDTO.model_validate(inst_req_only) - instance_deserialized = PropertyColumnDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_property_reference_dto.py b/src/visier_api_data_out/test/test_property_reference_dto.py deleted file mode 100644 index e7a4651ea2..0000000000 --- a/src/visier_api_data_out/test/test_property_reference_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.property_reference_dto import PropertyReferenceDTO - -class TestPropertyReferenceDTO(unittest.TestCase): - """PropertyReferenceDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PropertyReferenceDTO: - """Test PropertyReferenceDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return PropertyReferenceDTO( - name = '', - qualifying_path = '' - ) - else: - return PropertyReferenceDTO( - ) - - def testPropertyReferenceDTO(self): - """Test PropertyReferenceDTO""" - def validate_instance(instance): - PropertyReferenceDTO.model_validate(inst_req_only) - instance_deserialized = PropertyReferenceDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_axis_dto.py b/src/visier_api_data_out/test/test_query_axis_dto.py deleted file mode 100644 index 0ab147a7d2..0000000000 --- a/src/visier_api_data_out/test/test_query_axis_dto.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_axis_dto import QueryAxisDTO - -class TestQueryAxisDTO(unittest.TestCase): - """QueryAxisDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryAxisDTO: - """Test QueryAxisDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryAxisDTO( - dimension_data_member_selection = visier_api_data_out.models.query_dimension_data_member_selection_dto.QueryDimensionDataMemberSelectionDTO( - dimension = None, ), - dimension_leaf_member_selection = visier_api_data_out.models.query_dimension_leaf_selection_dto.QueryDimensionLeafSelectionDTO( - dimension = None, ), - dimension_level_selection = visier_api_data_out.models.query_dimension_level_selection_dto.QueryDimensionLevelSelectionDTO( - dimension = None, - level_ids = [ - '' - ], ), - dimension_level_with_uncategorized_value_selection = visier_api_data_out.models.query_dimension_level_selection_dto.QueryDimensionLevelSelectionDTO( - dimension = None, - level_ids = [ - '' - ], ), - dimension_member_selection = visier_api_data_out.models.query_dimension_member_selection_dto.QueryDimensionMemberSelectionDTO( - dimension = None, - members = [ - visier_api_data_out.models.dimension_member_reference_dto.DimensionMemberReferenceDTO( - path = [ - '' - ], ) - ], ), - formula = '', - member_map_selection = visier_api_data_out.models.query_member_map_selection_dto.QueryMemberMapSelectionDTO( - member_map = None, - members = [ - visier_api_data_out.models.dimension_member_reference_dto.DimensionMemberReferenceDTO( - path = [ - '' - ], ) - ], - target_dimension_name = '', ), - numeric_ranges = visier_api_data_out.models.query_numeric_ranges_dto.QueryNumericRangesDTO( - include_all_member = True, - include_independent_zero_range = True, - include_negative = True, - property = None, - ranges = '', ), - selection_concept = visier_api_data_out.models.selection_concept_reference_dto.SelectionConceptReferenceDTO( - name = '', - qualifying_path = '', ), - table_axis_options = visier_api_data_out.models.query_axis_options_dto.QueryAxisOptionsDTO( - column_name = '', - member_display_mode = 'UNCHANGED', ) - ) - else: - return QueryAxisDTO( - ) - - def testQueryAxisDTO(self): - """Test QueryAxisDTO""" - def validate_instance(instance): - QueryAxisDTO.model_validate(inst_req_only) - instance_deserialized = QueryAxisDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_axis_options_dto.py b/src/visier_api_data_out/test/test_query_axis_options_dto.py deleted file mode 100644 index 0c5393989d..0000000000 --- a/src/visier_api_data_out/test/test_query_axis_options_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_axis_options_dto import QueryAxisOptionsDTO - -class TestQueryAxisOptionsDTO(unittest.TestCase): - """QueryAxisOptionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryAxisOptionsDTO: - """Test QueryAxisOptionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryAxisOptionsDTO( - column_name = '', - member_display_mode = 'UNCHANGED' - ) - else: - return QueryAxisOptionsDTO( - ) - - def testQueryAxisOptionsDTO(self): - """Test QueryAxisOptionsDTO""" - def validate_instance(instance): - QueryAxisOptionsDTO.model_validate(inst_req_only) - instance_deserialized = QueryAxisOptionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_dimension_data_member_selection_dto.py b/src/visier_api_data_out/test/test_query_dimension_data_member_selection_dto.py deleted file mode 100644 index 46dd8a71a2..0000000000 --- a/src/visier_api_data_out/test/test_query_dimension_data_member_selection_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_dimension_data_member_selection_dto import QueryDimensionDataMemberSelectionDTO - -class TestQueryDimensionDataMemberSelectionDTO(unittest.TestCase): - """QueryDimensionDataMemberSelectionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryDimensionDataMemberSelectionDTO: - """Test QueryDimensionDataMemberSelectionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryDimensionDataMemberSelectionDTO( - dimension = visier_api_data_out.models.dimension_reference_dto.DimensionReferenceDTO( - name = '', - qualifying_path = '', ) - ) - else: - return QueryDimensionDataMemberSelectionDTO( - ) - - def testQueryDimensionDataMemberSelectionDTO(self): - """Test QueryDimensionDataMemberSelectionDTO""" - def validate_instance(instance): - QueryDimensionDataMemberSelectionDTO.model_validate(inst_req_only) - instance_deserialized = QueryDimensionDataMemberSelectionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_dimension_leaf_selection_dto.py b/src/visier_api_data_out/test/test_query_dimension_leaf_selection_dto.py deleted file mode 100644 index dac5aa16be..0000000000 --- a/src/visier_api_data_out/test/test_query_dimension_leaf_selection_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_dimension_leaf_selection_dto import QueryDimensionLeafSelectionDTO - -class TestQueryDimensionLeafSelectionDTO(unittest.TestCase): - """QueryDimensionLeafSelectionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryDimensionLeafSelectionDTO: - """Test QueryDimensionLeafSelectionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryDimensionLeafSelectionDTO( - dimension = visier_api_data_out.models.dimension_reference_dto.DimensionReferenceDTO( - name = '', - qualifying_path = '', ) - ) - else: - return QueryDimensionLeafSelectionDTO( - ) - - def testQueryDimensionLeafSelectionDTO(self): - """Test QueryDimensionLeafSelectionDTO""" - def validate_instance(instance): - QueryDimensionLeafSelectionDTO.model_validate(inst_req_only) - instance_deserialized = QueryDimensionLeafSelectionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_dimension_level_property_dto.py b/src/visier_api_data_out/test/test_query_dimension_level_property_dto.py deleted file mode 100644 index 4b417cec8a..0000000000 --- a/src/visier_api_data_out/test/test_query_dimension_level_property_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_dimension_level_property_dto import QueryDimensionLevelPropertyDTO - -class TestQueryDimensionLevelPropertyDTO(unittest.TestCase): - """QueryDimensionLevelPropertyDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryDimensionLevelPropertyDTO: - """Test QueryDimensionLevelPropertyDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryDimensionLevelPropertyDTO( - dimension = visier_api_data_out.models.dimension_reference_dto.DimensionReferenceDTO( - name = '', - qualifying_path = '', ), - level_depth = 56, - level_id = '', - member_value_mode = 'NAME' - ) - else: - return QueryDimensionLevelPropertyDTO( - ) - - def testQueryDimensionLevelPropertyDTO(self): - """Test QueryDimensionLevelPropertyDTO""" - def validate_instance(instance): - QueryDimensionLevelPropertyDTO.model_validate(inst_req_only) - instance_deserialized = QueryDimensionLevelPropertyDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_dimension_level_selection_dto.py b/src/visier_api_data_out/test/test_query_dimension_level_selection_dto.py deleted file mode 100644 index e392271138..0000000000 --- a/src/visier_api_data_out/test/test_query_dimension_level_selection_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_dimension_level_selection_dto import QueryDimensionLevelSelectionDTO - -class TestQueryDimensionLevelSelectionDTO(unittest.TestCase): - """QueryDimensionLevelSelectionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryDimensionLevelSelectionDTO: - """Test QueryDimensionLevelSelectionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryDimensionLevelSelectionDTO( - dimension = visier_api_data_out.models.dimension_reference_dto.DimensionReferenceDTO( - name = '', - qualifying_path = '', ), - level_ids = [ - '' - ] - ) - else: - return QueryDimensionLevelSelectionDTO( - ) - - def testQueryDimensionLevelSelectionDTO(self): - """Test QueryDimensionLevelSelectionDTO""" - def validate_instance(instance): - QueryDimensionLevelSelectionDTO.model_validate(inst_req_only) - instance_deserialized = QueryDimensionLevelSelectionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_dimension_member_selection_dto.py b/src/visier_api_data_out/test/test_query_dimension_member_selection_dto.py deleted file mode 100644 index 3ce3c25d61..0000000000 --- a/src/visier_api_data_out/test/test_query_dimension_member_selection_dto.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_dimension_member_selection_dto import QueryDimensionMemberSelectionDTO - -class TestQueryDimensionMemberSelectionDTO(unittest.TestCase): - """QueryDimensionMemberSelectionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryDimensionMemberSelectionDTO: - """Test QueryDimensionMemberSelectionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryDimensionMemberSelectionDTO( - dimension = visier_api_data_out.models.dimension_reference_dto.DimensionReferenceDTO( - name = '', - qualifying_path = '', ), - members = [ - visier_api_data_out.models.dimension_member_reference_dto.DimensionMemberReferenceDTO( - path = [ - '' - ], ) - ] - ) - else: - return QueryDimensionMemberSelectionDTO( - ) - - def testQueryDimensionMemberSelectionDTO(self): - """Test QueryDimensionMemberSelectionDTO""" - def validate_instance(instance): - QueryDimensionMemberSelectionDTO.model_validate(inst_req_only) - instance_deserialized = QueryDimensionMemberSelectionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_execution_options_dto.py b/src/visier_api_data_out/test/test_query_execution_options_dto.py deleted file mode 100644 index 1d5f6f39af..0000000000 --- a/src/visier_api_data_out/test/test_query_execution_options_dto.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_execution_options_dto import QueryExecutionOptionsDTO - -class TestQueryExecutionOptionsDTO(unittest.TestCase): - """QueryExecutionOptionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryExecutionOptionsDTO: - """Test QueryExecutionOptionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryExecutionOptionsDTO( - axes_overall_value_mode = 'NONE', - axis_visibility = 'SIMPLE', - calendar_type = 'TENANT_CALENDAR', - cell_distribution_options = visier_api_data_out.models.cell_distribution_options_dto.CellDistributionOptionsDTO( - bin_count = 56, ), - currency_conversion_code = '', - currency_conversion_date = '', - currency_conversion_mode = 'TENANT_CURRENCY_CONVERSION', - enable_descending_space = True, - enable_sparse_results = True, - internal = visier_api_data_out.models.internal_query_execution_options_dto.InternalQueryExecutionOptionsDTO( - align_time_axis_to_period_end = True, - sparse_handling_mode = 'ALLOW', ), - lineage_depth = 56, - member_display_mode = 'DEFAULT', - null_visibility = 'SHOW', - zero_visibility = 'SHOW' - ) - else: - return QueryExecutionOptionsDTO( - ) - - def testQueryExecutionOptionsDTO(self): - """Test QueryExecutionOptionsDTO""" - def validate_instance(instance): - QueryExecutionOptionsDTO.model_validate(inst_req_only) - instance_deserialized = QueryExecutionOptionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_filter_dto.py b/src/visier_api_data_out/test/test_query_filter_dto.py deleted file mode 100644 index bd264efc21..0000000000 --- a/src/visier_api_data_out/test/test_query_filter_dto.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_filter_dto import QueryFilterDTO - -class TestQueryFilterDTO(unittest.TestCase): - """QueryFilterDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryFilterDTO: - """Test QueryFilterDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryFilterDTO( - cohort = visier_api_data_out.models.cohort_filter_dto.CohortFilterDTO( - exclude = True, - key_group = None, - time_interval = None, ), - formula = '', - member_set = visier_api_data_out.models.member_filter_dto.MemberFilterDTO( - dimension = None, - values = None, ), - selection_concept = visier_api_data_out.models.selection_concept_reference_dto.SelectionConceptReferenceDTO( - name = '', - qualifying_path = '', ) - ) - else: - return QueryFilterDTO( - ) - - def testQueryFilterDTO(self): - """Test QueryFilterDTO""" - def validate_instance(instance): - QueryFilterDTO.model_validate(inst_req_only) - instance_deserialized = QueryFilterDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_member_map_property_dto.py b/src/visier_api_data_out/test/test_query_member_map_property_dto.py deleted file mode 100644 index e9cd571444..0000000000 --- a/src/visier_api_data_out/test/test_query_member_map_property_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_member_map_property_dto import QueryMemberMapPropertyDTO - -class TestQueryMemberMapPropertyDTO(unittest.TestCase): - """QueryMemberMapPropertyDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryMemberMapPropertyDTO: - """Test QueryMemberMapPropertyDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryMemberMapPropertyDTO( - member_map = visier_api_data_out.models.dimension_reference_dto.DimensionReferenceDTO( - name = '', - qualifying_path = '', ), - target_dimension_name = '' - ) - else: - return QueryMemberMapPropertyDTO( - ) - - def testQueryMemberMapPropertyDTO(self): - """Test QueryMemberMapPropertyDTO""" - def validate_instance(instance): - QueryMemberMapPropertyDTO.model_validate(inst_req_only) - instance_deserialized = QueryMemberMapPropertyDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_member_map_selection_dto.py b/src/visier_api_data_out/test/test_query_member_map_selection_dto.py deleted file mode 100644 index c14f78deca..0000000000 --- a/src/visier_api_data_out/test/test_query_member_map_selection_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_member_map_selection_dto import QueryMemberMapSelectionDTO - -class TestQueryMemberMapSelectionDTO(unittest.TestCase): - """QueryMemberMapSelectionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryMemberMapSelectionDTO: - """Test QueryMemberMapSelectionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryMemberMapSelectionDTO( - member_map = visier_api_data_out.models.dimension_reference_dto.DimensionReferenceDTO( - name = '', - qualifying_path = '', ), - members = [ - visier_api_data_out.models.dimension_member_reference_dto.DimensionMemberReferenceDTO( - path = [ - '' - ], ) - ], - target_dimension_name = '' - ) - else: - return QueryMemberMapSelectionDTO( - ) - - def testQueryMemberMapSelectionDTO(self): - """Test QueryMemberMapSelectionDTO""" - def validate_instance(instance): - QueryMemberMapSelectionDTO.model_validate(inst_req_only) - instance_deserialized = QueryMemberMapSelectionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_numeric_ranges_dto.py b/src/visier_api_data_out/test/test_query_numeric_ranges_dto.py deleted file mode 100644 index 2516ccaae8..0000000000 --- a/src/visier_api_data_out/test/test_query_numeric_ranges_dto.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_numeric_ranges_dto import QueryNumericRangesDTO - -class TestQueryNumericRangesDTO(unittest.TestCase): - """QueryNumericRangesDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryNumericRangesDTO: - """Test QueryNumericRangesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryNumericRangesDTO( - include_all_member = True, - include_independent_zero_range = True, - include_negative = True, - var_property = visier_api_data_out.models.query_property_dto.QueryPropertyDTO( - dimension = None, - dimension_level_selection = None, - effective_date_property = None, - formula = '', - member_map_property = None, - property = None, - selection_concept = None, ), - ranges = '' - ) - else: - return QueryNumericRangesDTO( - ) - - def testQueryNumericRangesDTO(self): - """Test QueryNumericRangesDTO""" - def validate_instance(instance): - QueryNumericRangesDTO.model_validate(inst_req_only) - instance_deserialized = QueryNumericRangesDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_parameter_value_dto.py b/src/visier_api_data_out/test/test_query_parameter_value_dto.py deleted file mode 100644 index c245554c02..0000000000 --- a/src/visier_api_data_out/test/test_query_parameter_value_dto.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_parameter_value_dto import QueryParameterValueDTO - -class TestQueryParameterValueDTO(unittest.TestCase): - """QueryParameterValueDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryParameterValueDTO: - """Test QueryParameterValueDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryParameterValueDTO( - aggregation_type_value = visier_api_data_out.models.aggregation_type_parameter_value_dto.AggregationTypeParameterValueDTO( - aggregation_option_id = '', - parameter_id = '', ), - member_value = visier_api_data_out.models.member_parameter_value_dto.MemberParameterValueDTO( - dimension_id = '', - parameter_id = '', - reference_path = [ - '' - ], - values = None, ), - numeric_value = visier_api_data_out.models.numeric_parameter_value_dto.NumericParameterValueDTO( - parameter_id = '', - value = 1.337, ), - plan_value = visier_api_data_out.models.plan_parameter_value_dto.PlanParameterValueDTO( - parameter_id = '', - plan_id = '', - scenario_id = '', - snapshot_id = '', ) - ) - else: - return QueryParameterValueDTO( - ) - - def testQueryParameterValueDTO(self): - """Test QueryParameterValueDTO""" - def validate_instance(instance): - QueryParameterValueDTO.model_validate(inst_req_only) - instance_deserialized = QueryParameterValueDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_property_dto.py b/src/visier_api_data_out/test/test_query_property_dto.py deleted file mode 100644 index 71ba69173f..0000000000 --- a/src/visier_api_data_out/test/test_query_property_dto.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_property_dto import QueryPropertyDTO - -class TestQueryPropertyDTO(unittest.TestCase): - """QueryPropertyDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryPropertyDTO: - """Test QueryPropertyDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryPropertyDTO( - dimension = visier_api_data_out.models.dimension_reference_dto.DimensionReferenceDTO( - name = '', - qualifying_path = '', ), - dimension_level_selection = visier_api_data_out.models.query_dimension_level_property_dto.QueryDimensionLevelPropertyDTO( - dimension = None, - level_depth = 56, - level_id = '', - member_value_mode = 'NAME', ), - effective_date_property = None, - formula = '', - member_map_property = visier_api_data_out.models.query_member_map_property_dto.QueryMemberMapPropertyDTO( - member_map = None, - target_dimension_name = '', ), - var_property = visier_api_data_out.models.property_reference_dto.PropertyReferenceDTO( - name = '', - qualifying_path = '', ), - selection_concept = visier_api_data_out.models.selection_concept_reference_dto.SelectionConceptReferenceDTO( - name = '', - qualifying_path = '', ) - ) - else: - return QueryPropertyDTO( - ) - - def testQueryPropertyDTO(self): - """Test QueryPropertyDTO""" - def validate_instance(instance): - QueryPropertyDTO.model_validate(inst_req_only) - instance_deserialized = QueryPropertyDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_time_interval_dto.py b/src/visier_api_data_out/test/test_query_time_interval_dto.py deleted file mode 100644 index c9fb4c1514..0000000000 --- a/src/visier_api_data_out/test/test_query_time_interval_dto.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_time_interval_dto import QueryTimeIntervalDTO - -class TestQueryTimeIntervalDTO(unittest.TestCase): - """QueryTimeIntervalDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryTimeIntervalDTO: - """Test QueryTimeIntervalDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryTimeIntervalDTO( - direction = 'BACKWARD', - dynamic_date_from = 'SOURCE', - from_date_time = '', - from_instant = '', - interval_period_count = 56, - interval_period_type = 'MONTH', - shift = visier_api_data_out.models.time_shift_dto.TimeShiftDTO( - direction = 'BACKWARD', - period_count = 56, - period_type = 'MONTH', ) - ) - else: - return QueryTimeIntervalDTO( - ) - - def testQueryTimeIntervalDTO(self): - """Test QueryTimeIntervalDTO""" - def validate_instance(instance): - QueryTimeIntervalDTO.model_validate(inst_req_only) - instance_deserialized = QueryTimeIntervalDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_query_time_intervals_dto.py b/src/visier_api_data_out/test/test_query_time_intervals_dto.py deleted file mode 100644 index 42e4332765..0000000000 --- a/src/visier_api_data_out/test/test_query_time_intervals_dto.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.query_time_intervals_dto import QueryTimeIntervalsDTO - -class TestQueryTimeIntervalsDTO(unittest.TestCase): - """QueryTimeIntervalsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryTimeIntervalsDTO: - """Test QueryTimeIntervalsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return QueryTimeIntervalsDTO( - direction = 'BACKWARD', - dynamic_date_from = 'SOURCE', - from_date_time = '', - from_instant = '', - interval_count = 56, - interval_period_count = 56, - interval_period_type = 'MONTH', - shift = visier_api_data_out.models.time_shift_dto.TimeShiftDTO( - direction = 'BACKWARD', - period_count = 56, - period_type = 'MONTH', ), - trailing_period_count = 56, - trailing_period_type = 'MONTH' - ) - else: - return QueryTimeIntervalsDTO( - ) - - def testQueryTimeIntervalsDTO(self): - """Test QueryTimeIntervalsDTO""" - def validate_instance(instance): - QueryTimeIntervalsDTO.model_validate(inst_req_only) - instance_deserialized = QueryTimeIntervalsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_report_create_request_dto.py b/src/visier_api_data_out/test/test_report_create_request_dto.py deleted file mode 100644 index 83b770b81c..0000000000 --- a/src/visier_api_data_out/test/test_report_create_request_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.report_create_request_dto import ReportCreateRequestDTO - -class TestReportCreateRequestDTO(unittest.TestCase): - """ReportCreateRequestDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReportCreateRequestDTO: - """Test ReportCreateRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ReportCreateRequestDTO( - description = '', - title = '' - ) - else: - return ReportCreateRequestDTO( - ) - - def testReportCreateRequestDTO(self): - """Test ReportCreateRequestDTO""" - def validate_instance(instance): - ReportCreateRequestDTO.model_validate(inst_req_only) - instance_deserialized = ReportCreateRequestDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_report_delete_success_dto.py b/src/visier_api_data_out/test/test_report_delete_success_dto.py deleted file mode 100644 index 7507a667b7..0000000000 --- a/src/visier_api_data_out/test/test_report_delete_success_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.report_delete_success_dto import ReportDeleteSuccessDTO - -class TestReportDeleteSuccessDTO(unittest.TestCase): - """ReportDeleteSuccessDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReportDeleteSuccessDTO: - """Test ReportDeleteSuccessDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ReportDeleteSuccessDTO( - id = '' - ) - else: - return ReportDeleteSuccessDTO( - ) - - def testReportDeleteSuccessDTO(self): - """Test ReportDeleteSuccessDTO""" - def validate_instance(instance): - ReportDeleteSuccessDTO.model_validate(inst_req_only) - instance_deserialized = ReportDeleteSuccessDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_report_dto.py b/src/visier_api_data_out/test/test_report_dto.py deleted file mode 100644 index dbf5262c9e..0000000000 --- a/src/visier_api_data_out/test/test_report_dto.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.report_dto import ReportDTO - -class TestReportDTO(unittest.TestCase): - """ReportDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReportDTO: - """Test ReportDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ReportDTO( - allowed_actions = [ - 'duplicate' - ], - description = '', - id = '', - is_owned_by_user = True, - is_published_report = True, - link = '', - owner = '', - title = '', - updated_time = '' - ) - else: - return ReportDTO( - ) - - def testReportDTO(self): - """Test ReportDTO""" - def validate_instance(instance): - ReportDTO.model_validate(inst_req_only) - instance_deserialized = ReportDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_report_list_response_dto.py b/src/visier_api_data_out/test/test_report_list_response_dto.py deleted file mode 100644 index 24bc73e906..0000000000 --- a/src/visier_api_data_out/test/test_report_list_response_dto.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.report_list_response_dto import ReportListResponseDTO - -class TestReportListResponseDTO(unittest.TestCase): - """ReportListResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReportListResponseDTO: - """Test ReportListResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return ReportListResponseDTO( - reports = [ - visier_api_data_out.models.report_dto.ReportDTO( - allowed_actions = [ - 'duplicate' - ], - description = '', - id = '', - is_owned_by_user = True, - is_published_report = True, - link = '', - owner = '', - title = '', - updated_time = '', ) - ] - ) - else: - return ReportListResponseDTO( - ) - - def testReportListResponseDTO(self): - """Test ReportListResponseDTO""" - def validate_instance(instance): - ReportListResponseDTO.model_validate(inst_req_only) - instance_deserialized = ReportListResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_reporting_api.py b/src/visier_api_data_out/test/test_reporting_api.py index 72b2002eae..161fe2d8e4 100644 --- a/src/visier_api_data_out/test/test_reporting_api.py +++ b/src/visier_api_data_out/test/test_reporting_api.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/test/test_search_api.py b/src/visier_api_data_out/test/test_search_api.py index d5885a8ee3..85d3561265 100644 --- a/src/visier_api_data_out/test/test_search_api.py +++ b/src/visier_api_data_out/test/test_search_api.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/test/test_selection_concept_reference_dto.py b/src/visier_api_data_out/test/test_selection_concept_reference_dto.py deleted file mode 100644 index 85680c2511..0000000000 --- a/src/visier_api_data_out/test/test_selection_concept_reference_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.selection_concept_reference_dto import SelectionConceptReferenceDTO - -class TestSelectionConceptReferenceDTO(unittest.TestCase): - """SelectionConceptReferenceDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SelectionConceptReferenceDTO: - """Test SelectionConceptReferenceDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SelectionConceptReferenceDTO( - name = '', - qualifying_path = '' - ) - else: - return SelectionConceptReferenceDTO( - ) - - def testSelectionConceptReferenceDTO(self): - """Test SelectionConceptReferenceDTO""" - def validate_instance(instance): - SelectionConceptReferenceDTO.model_validate(inst_req_only) - instance_deserialized = SelectionConceptReferenceDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_servicing_publicapi_transfers_document_search_link_dto.py b/src/visier_api_data_out/test/test_servicing_publicapi_transfers_document_search_link_dto.py new file mode 100644 index 0000000000..396c13b9cd --- /dev/null +++ b/src/visier_api_data_out/test/test_servicing_publicapi_transfers_document_search_link_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.servicing_publicapi_transfers_document_search_link_dto import ServicingPublicapiTransfersDocumentSearchLinkDTO + +class TestServicingPublicapiTransfersDocumentSearchLinkDTO(unittest.TestCase): + """ServicingPublicapiTransfersDocumentSearchLinkDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersDocumentSearchLinkDTO: + """Test ServicingPublicapiTransfersDocumentSearchLinkDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersDocumentSearchLinkDTO( + href = '', + verb = '' + ) + else: + return ServicingPublicapiTransfersDocumentSearchLinkDTO( + ) + + def testServicingPublicapiTransfersDocumentSearchLinkDTO(self): + """Test ServicingPublicapiTransfersDocumentSearchLinkDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersDocumentSearchLinkDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersDocumentSearchLinkDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_servicing_publicapi_transfers_simple_document_header_search_response_dto.py b/src/visier_api_data_out/test/test_servicing_publicapi_transfers_simple_document_header_search_response_dto.py new file mode 100644 index 0000000000..06635e8a30 --- /dev/null +++ b/src/visier_api_data_out/test/test_servicing_publicapi_transfers_simple_document_header_search_response_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.servicing_publicapi_transfers_simple_document_header_search_response_dto import ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO + +class TestServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO(unittest.TestCase): + """ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO: + """Test ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO( + document_headers = [ + visier_api_data_out.models.servicing/publicapi/transfers/simple_document_header_search_result_dto.servicing.publicapi.transfers.SimpleDocumentHeaderSearchResultDTO( + description = '', + display_name = '', + relevance = 1.337, + view_link = None, ) + ] + ) + else: + return ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO( + ) + + def testServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO(self): + """Test ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_servicing_publicapi_transfers_simple_document_header_search_result_dto.py b/src/visier_api_data_out/test/test_servicing_publicapi_transfers_simple_document_header_search_result_dto.py new file mode 100644 index 0000000000..efad687dc5 --- /dev/null +++ b/src/visier_api_data_out/test/test_servicing_publicapi_transfers_simple_document_header_search_result_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.servicing_publicapi_transfers_simple_document_header_search_result_dto import ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO + +class TestServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO(unittest.TestCase): + """ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO: + """Test ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO( + description = '', + display_name = '', + relevance = 1.337, + view_link = visier_api_data_out.models.servicing/publicapi/transfers/document_search_link_dto.servicing.publicapi.transfers.DocumentSearchLinkDTO( + href = '', + verb = '', ) + ) + else: + return ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO( + ) + + def testServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO(self): + """Test ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO""" + def validate_instance(instance): + ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_simple_document_header_search_response_dto.py b/src/visier_api_data_out/test/test_simple_document_header_search_response_dto.py deleted file mode 100644 index 2ac40a7c7e..0000000000 --- a/src/visier_api_data_out/test/test_simple_document_header_search_response_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.simple_document_header_search_response_dto import SimpleDocumentHeaderSearchResponseDTO - -class TestSimpleDocumentHeaderSearchResponseDTO(unittest.TestCase): - """SimpleDocumentHeaderSearchResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SimpleDocumentHeaderSearchResponseDTO: - """Test SimpleDocumentHeaderSearchResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SimpleDocumentHeaderSearchResponseDTO( - document_headers = [ - visier_api_data_out.models.simple_document_header_search_result_dto.SimpleDocumentHeaderSearchResultDTO( - description = '', - display_name = '', - relevance = 1.337, - view_link = None, ) - ] - ) - else: - return SimpleDocumentHeaderSearchResponseDTO( - ) - - def testSimpleDocumentHeaderSearchResponseDTO(self): - """Test SimpleDocumentHeaderSearchResponseDTO""" - def validate_instance(instance): - SimpleDocumentHeaderSearchResponseDTO.model_validate(inst_req_only) - instance_deserialized = SimpleDocumentHeaderSearchResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_simple_document_header_search_result_dto.py b/src/visier_api_data_out/test/test_simple_document_header_search_result_dto.py deleted file mode 100644 index fed962a4d4..0000000000 --- a/src/visier_api_data_out/test/test_simple_document_header_search_result_dto.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.simple_document_header_search_result_dto import SimpleDocumentHeaderSearchResultDTO - -class TestSimpleDocumentHeaderSearchResultDTO(unittest.TestCase): - """SimpleDocumentHeaderSearchResultDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SimpleDocumentHeaderSearchResultDTO: - """Test SimpleDocumentHeaderSearchResultDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SimpleDocumentHeaderSearchResultDTO( - description = '', - display_name = '', - relevance = 1.337, - view_link = visier_api_data_out.models.document_search_link_dto.DocumentSearchLinkDTO( - href = '', - verb = '', ) - ) - else: - return SimpleDocumentHeaderSearchResultDTO( - ) - - def testSimpleDocumentHeaderSearchResultDTO(self): - """Test SimpleDocumentHeaderSearchResultDTO""" - def validate_instance(instance): - SimpleDocumentHeaderSearchResultDTO.model_validate(inst_req_only) - instance_deserialized = SimpleDocumentHeaderSearchResultDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_snapshot_query_execution_dto.py b/src/visier_api_data_out/test/test_snapshot_query_execution_dto.py deleted file mode 100644 index a1ba1f1637..0000000000 --- a/src/visier_api_data_out/test/test_snapshot_query_execution_dto.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.snapshot_query_execution_dto import SnapshotQueryExecutionDTO - -class TestSnapshotQueryExecutionDTO(unittest.TestCase): - """SnapshotQueryExecutionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SnapshotQueryExecutionDTO: - """Test SnapshotQueryExecutionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SnapshotQueryExecutionDTO( - columns = [ - visier_api_data_out.models.property_column_dto.PropertyColumnDTO( - column_definition = None, - column_name = '', ) - ], - filters = [ - visier_api_data_out.models.query_filter_dto.QueryFilterDTO( - cohort = None, - formula = '', - member_set = None, - selection_concept = None, ) - ], - options = visier_api_data_out.models.snapshot_query_execution_options_dto.SnapshotQueryExecutionOptionsDTO( - calendar_type = 'TENANT_CALENDAR', - currency_conversion_code = '', - currency_conversion_date = '', - date_time_display_mode = 'EPOCH', - limit = 56, - multiple_tables = True, - omit_header = True, - page = 56, - query_mode = 'DEFAULT', ), - parameter_values = [ - visier_api_data_out.models.query_parameter_value_dto.QueryParameterValueDTO( - aggregation_type_value = None, - member_value = None, - numeric_value = None, - plan_value = None, ) - ], - sort_options = [ - visier_api_data_out.models.sort_option_dto.SortOptionDTO( - column_index = 56, - sort_direction = 'SORT_ASCENDING', ) - ], - source = visier_api_data_out.models.list_query_source_dto.ListQuerySourceDTO( - analytic_object = '', - formula = '', - metric = '', - text_concept = '', ), - time_intervals = visier_api_data_out.models.query_time_intervals_dto.QueryTimeIntervalsDTO( - direction = 'BACKWARD', - dynamic_date_from = 'SOURCE', - from_date_time = '', - from_instant = '', - interval_count = 56, - interval_period_count = 56, - interval_period_type = 'MONTH', - shift = None, - trailing_period_count = 56, - trailing_period_type = 'MONTH', ) - ) - else: - return SnapshotQueryExecutionDTO( - ) - - def testSnapshotQueryExecutionDTO(self): - """Test SnapshotQueryExecutionDTO""" - def validate_instance(instance): - SnapshotQueryExecutionDTO.model_validate(inst_req_only) - instance_deserialized = SnapshotQueryExecutionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_snapshot_query_execution_options_dto.py b/src/visier_api_data_out/test/test_snapshot_query_execution_options_dto.py deleted file mode 100644 index 2e6d33f549..0000000000 --- a/src/visier_api_data_out/test/test_snapshot_query_execution_options_dto.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.snapshot_query_execution_options_dto import SnapshotQueryExecutionOptionsDTO - -class TestSnapshotQueryExecutionOptionsDTO(unittest.TestCase): - """SnapshotQueryExecutionOptionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SnapshotQueryExecutionOptionsDTO: - """Test SnapshotQueryExecutionOptionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SnapshotQueryExecutionOptionsDTO( - calendar_type = 'TENANT_CALENDAR', - currency_conversion_code = '', - currency_conversion_date = '', - date_time_display_mode = 'EPOCH', - limit = 56, - multiple_tables = True, - omit_header = True, - page = 56, - query_mode = 'DEFAULT' - ) - else: - return SnapshotQueryExecutionOptionsDTO( - ) - - def testSnapshotQueryExecutionOptionsDTO(self): - """Test SnapshotQueryExecutionOptionsDTO""" - def validate_instance(instance): - SnapshotQueryExecutionOptionsDTO.model_validate(inst_req_only) - instance_deserialized = SnapshotQueryExecutionOptionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_sort_option_dto.py b/src/visier_api_data_out/test/test_sort_option_dto.py deleted file mode 100644 index 0bb2e47274..0000000000 --- a/src/visier_api_data_out/test/test_sort_option_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.sort_option_dto import SortOptionDTO - -class TestSortOptionDTO(unittest.TestCase): - """SortOptionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SortOptionDTO: - """Test SortOptionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SortOptionDTO( - column_index = 56, - sort_direction = 'SORT_ASCENDING' - ) - else: - return SortOptionDTO( - ) - - def testSortOptionDTO(self): - """Test SortOptionDTO""" - def validate_instance(instance): - SortOptionDTO.model_validate(inst_req_only) - instance_deserialized = SortOptionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_source_files_download_api.py b/src/visier_api_data_out/test/test_source_files_download_api.py index 7ac5d92738..0f440cff07 100644 --- a/src/visier_api_data_out/test/test_source_files_download_api.py +++ b/src/visier_api_data_out/test/test_source_files_download_api.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/test/test_sql_like_query_execution_dto.py b/src/visier_api_data_out/test/test_sql_like_query_execution_dto.py deleted file mode 100644 index 1055e48668..0000000000 --- a/src/visier_api_data_out/test/test_sql_like_query_execution_dto.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.sql_like_query_execution_dto import SqlLikeQueryExecutionDTO - -class TestSqlLikeQueryExecutionDTO(unittest.TestCase): - """SqlLikeQueryExecutionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SqlLikeQueryExecutionDTO: - """Test SqlLikeQueryExecutionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return SqlLikeQueryExecutionDTO( - options = visier_api_data_out.models.query_execution_options_dto.QueryExecutionOptionsDTO( - axes_overall_value_mode = 'NONE', - axis_visibility = 'SIMPLE', - calendar_type = 'TENANT_CALENDAR', - cell_distribution_options = visier_api_data_out.models.cell_distribution_options_dto.CellDistributionOptionsDTO( - bin_count = 56, ), - currency_conversion_code = '', - currency_conversion_date = '', - currency_conversion_mode = 'TENANT_CURRENCY_CONVERSION', - enable_descending_space = True, - enable_sparse_results = True, - internal = visier_api_data_out.models.internal_query_execution_options_dto.InternalQueryExecutionOptionsDTO( - align_time_axis_to_period_end = True, - sparse_handling_mode = 'ALLOW', ), - lineage_depth = 56, - member_display_mode = 'DEFAULT', - null_visibility = 'SHOW', - zero_visibility = 'SHOW', ), - query = '' - ) - else: - return SqlLikeQueryExecutionDTO( - ) - - def testSqlLikeQueryExecutionDTO(self): - """Test SqlLikeQueryExecutionDTO""" - def validate_instance(instance): - SqlLikeQueryExecutionDTO.model_validate(inst_req_only) - instance_deserialized = SqlLikeQueryExecutionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_status.py b/src/visier_api_data_out/test/test_status.py index 7556564191..1b88304319 100644 --- a/src/visier_api_data_out/test/test_status.py +++ b/src/visier_api_data_out/test/test_status.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -36,9 +36,11 @@ def make_instance(self, include_optional) -> Status: if include_optional: return Status( - error_code = '', + code = '', + localized_message = '', message = '', - rci = '' + rci = '', + user_error = True ) else: return Status( diff --git a/src/visier_api_data_out/test/test_systemstatus_publicapi_transfers_vee_status_dto.py b/src/visier_api_data_out/test/test_systemstatus_publicapi_transfers_vee_status_dto.py new file mode 100644 index 0000000000..529b3ba008 --- /dev/null +++ b/src/visier_api_data_out/test/test_systemstatus_publicapi_transfers_vee_status_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +import visier_api_data_out.models +from visier_api_data_out.models.systemstatus_publicapi_transfers_vee_status_dto import SystemstatusPublicapiTransfersVeeStatusDTO + +class TestSystemstatusPublicapiTransfersVeeStatusDTO(unittest.TestCase): + """SystemstatusPublicapiTransfersVeeStatusDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SystemstatusPublicapiTransfersVeeStatusDTO: + """Test SystemstatusPublicapiTransfersVeeStatusDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return SystemstatusPublicapiTransfersVeeStatusDTO( + overall = '' + ) + else: + return SystemstatusPublicapiTransfersVeeStatusDTO( + ) + + def testSystemstatusPublicapiTransfersVeeStatusDTO(self): + """Test SystemstatusPublicapiTransfersVeeStatusDTO""" + def validate_instance(instance): + SystemstatusPublicapiTransfersVeeStatusDTO.model_validate(inst_req_only) + instance_deserialized = SystemstatusPublicapiTransfersVeeStatusDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(include_optional=True) + validate_instance(inst_req_and_optional) + +if __name__ == '__main__': + unittest.main() diff --git a/src/visier_api_data_out/test/test_table_response_dto.py b/src/visier_api_data_out/test/test_table_response_dto.py index 75203cbeca..63dabfa2f6 100644 --- a/src/visier_api_data_out/test/test_table_response_dto.py +++ b/src/visier_api_data_out/test/test_table_response_dto.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/test/test_time_shift_dto.py b/src/visier_api_data_out/test/test_time_shift_dto.py deleted file mode 100644 index 70bf59370a..0000000000 --- a/src/visier_api_data_out/test/test_time_shift_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.time_shift_dto import TimeShiftDTO - -class TestTimeShiftDTO(unittest.TestCase): - """TimeShiftDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TimeShiftDTO: - """Test TimeShiftDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return TimeShiftDTO( - direction = 'BACKWARD', - period_count = 56, - period_type = 'MONTH' - ) - else: - return TimeShiftDTO( - ) - - def testTimeShiftDTO(self): - """Test TimeShiftDTO""" - def validate_instance(instance): - TimeShiftDTO.model_validate(inst_req_only) - instance_deserialized = TimeShiftDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_api.py b/src/visier_api_data_out/test/test_vee_api.py index a0769561be..338ee7ddd5 100644 --- a/src/visier_api_data_out/test/test_vee_api.py +++ b/src/visier_api_data_out/test/test_vee_api.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/test/test_vee_clarification_dto.py b/src/visier_api_data_out/test/test_vee_clarification_dto.py deleted file mode 100644 index 4b6b965d67..0000000000 --- a/src/visier_api_data_out/test/test_vee_clarification_dto.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_clarification_dto import VeeClarificationDTO - -class TestVeeClarificationDTO(unittest.TestCase): - """VeeClarificationDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeClarificationDTO: - """Test VeeClarificationDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeClarificationDTO( - attributes = [ - '' - ], - dimensions = [ - '' - ], - filters = [ - '' - ], - message = '', - metrics = [ - '' - ], - questions = [ - '' - ] - ) - else: - return VeeClarificationDTO( - ) - - def testVeeClarificationDTO(self): - """Test VeeClarificationDTO""" - def validate_instance(instance): - VeeClarificationDTO.model_validate(inst_req_only) - instance_deserialized = VeeClarificationDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_conversation_state_dto.py b/src/visier_api_data_out/test/test_vee_conversation_state_dto.py deleted file mode 100644 index 86182f89cc..0000000000 --- a/src/visier_api_data_out/test/test_vee_conversation_state_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_conversation_state_dto import VeeConversationStateDTO - -class TestVeeConversationStateDTO(unittest.TestCase): - """VeeConversationStateDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeConversationStateDTO: - """Test VeeConversationStateDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeConversationStateDTO( - question_state = [ - '' - ] - ) - else: - return VeeConversationStateDTO( - ) - - def testVeeConversationStateDTO(self): - """Test VeeConversationStateDTO""" - def validate_instance(instance): - VeeConversationStateDTO.model_validate(inst_req_only) - instance_deserialized = VeeConversationStateDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_corrections_dto.py b/src/visier_api_data_out/test/test_vee_corrections_dto.py deleted file mode 100644 index 5b63b193db..0000000000 --- a/src/visier_api_data_out/test/test_vee_corrections_dto.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_corrections_dto import VeeCorrectionsDTO - -class TestVeeCorrectionsDTO(unittest.TestCase): - """VeeCorrectionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeCorrectionsDTO: - """Test VeeCorrectionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeCorrectionsDTO( - clarifications = [ - visier_api_data_out.models.vee_clarification_dto.VeeClarificationDTO( - attributes = [ - '' - ], - dimensions = [ - '' - ], - filters = [ - '' - ], - message = '', - metrics = [ - '' - ], - questions = [ - '' - ], ) - ], - warning = [ - 'VEE_NO_WARNING' - ] - ) - else: - return VeeCorrectionsDTO( - ) - - def testVeeCorrectionsDTO(self): - """Test VeeCorrectionsDTO""" - def validate_instance(instance): - VeeCorrectionsDTO.model_validate(inst_req_only) - instance_deserialized = VeeCorrectionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_data_dto.py b/src/visier_api_data_out/test/test_vee_data_dto.py deleted file mode 100644 index 441b2fb500..0000000000 --- a/src/visier_api_data_out/test/test_vee_data_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_data_dto import VeeDataDTO - -class TestVeeDataDTO(unittest.TestCase): - """VeeDataDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeDataDTO: - """Test VeeDataDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeDataDTO( - context = '', - data_json = '' - ) - else: - return VeeDataDTO( - ) - - def testVeeDataDTO(self): - """Test VeeDataDTO""" - def validate_instance(instance): - VeeDataDTO.model_validate(inst_req_only) - instance_deserialized = VeeDataDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_feedback_dto.py b/src/visier_api_data_out/test/test_vee_feedback_dto.py deleted file mode 100644 index 1a2b5590d2..0000000000 --- a/src/visier_api_data_out/test/test_vee_feedback_dto.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_feedback_dto import VeeFeedbackDTO - -class TestVeeFeedbackDTO(unittest.TestCase): - """VeeFeedbackDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeFeedbackDTO: - """Test VeeFeedbackDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeFeedbackDTO( - description = '', - is_approved = True, - response = visier_api_data_out.models.vee_response_dto.VeeResponseDTO( - chart_url = '', - conversation_state = None, - corrections = [ - visier_api_data_out.models.vee_corrections_dto.VeeCorrectionsDTO( - clarifications = [ - visier_api_data_out.models.vee_clarification_dto.VeeClarificationDTO( - attributes = [ - '' - ], - dimensions = [ - '' - ], - filters = [ - '' - ], - message = '', - metrics = [ - '' - ], - questions = [ - '' - ], ) - ], - warning = [ - 'VEE_NO_WARNING' - ], ) - ], - data = None, - narrative = '', - reworded_question = '', - schema = None, - status_code = None, - visual = None, ) - ) - else: - return VeeFeedbackDTO( - ) - - def testVeeFeedbackDTO(self): - """Test VeeFeedbackDTO""" - def validate_instance(instance): - VeeFeedbackDTO.model_validate(inst_req_only) - instance_deserialized = VeeFeedbackDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_options_dto.py b/src/visier_api_data_out/test/test_vee_options_dto.py deleted file mode 100644 index 6b08401746..0000000000 --- a/src/visier_api_data_out/test/test_vee_options_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_options_dto import VeeOptionsDTO - -class TestVeeOptionsDTO(unittest.TestCase): - """VeeOptionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeOptionsDTO: - """Test VeeOptionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeOptionsDTO( - data_format = 'json', - include_data = True, - include_reworded_question = True, - include_visual = True, - visual_options = visier_api_data_out.models.vee_visual_options_dto.VeeVisualOptionsDTO( - height = 56, - width = 56, ) - ) - else: - return VeeOptionsDTO( - ) - - def testVeeOptionsDTO(self): - """Test VeeOptionsDTO""" - def validate_instance(instance): - VeeOptionsDTO.model_validate(inst_req_only) - instance_deserialized = VeeOptionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_question_dto.py b/src/visier_api_data_out/test/test_vee_question_dto.py deleted file mode 100644 index f4069af55d..0000000000 --- a/src/visier_api_data_out/test/test_vee_question_dto.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_question_dto import VeeQuestionDTO - -class TestVeeQuestionDTO(unittest.TestCase): - """VeeQuestionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeQuestionDTO: - """Test VeeQuestionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeQuestionDTO( - conversation_state = visier_api_data_out.models.vee_conversation_state_dto.VeeConversationStateDTO( - question_state = [ - '' - ], ), - max_view_details_members = 56, - options = visier_api_data_out.models.vee_options_dto.VeeOptionsDTO( - data_format = 'json', - include_data = True, - include_reworded_question = True, - include_visual = True, - visual_options = None, ), - question = '' - ) - else: - return VeeQuestionDTO( - ) - - def testVeeQuestionDTO(self): - """Test VeeQuestionDTO""" - def validate_instance(instance): - VeeQuestionDTO.model_validate(inst_req_only) - instance_deserialized = VeeQuestionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_response_dto.py b/src/visier_api_data_out/test/test_vee_response_dto.py deleted file mode 100644 index 46674cdb9d..0000000000 --- a/src/visier_api_data_out/test/test_vee_response_dto.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_response_dto import VeeResponseDTO - -class TestVeeResponseDTO(unittest.TestCase): - """VeeResponseDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeResponseDTO: - """Test VeeResponseDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeResponseDTO( - chart_url = '', - conversation_state = visier_api_data_out.models.vee_conversation_state_dto.VeeConversationStateDTO( - question_state = [ - '' - ], ), - corrections = [ - visier_api_data_out.models.vee_corrections_dto.VeeCorrectionsDTO( - clarifications = [ - visier_api_data_out.models.vee_clarification_dto.VeeClarificationDTO( - attributes = [ - '' - ], - dimensions = [ - '' - ], - filters = [ - '' - ], - message = '', - metrics = [ - '' - ], - questions = [ - '' - ], ) - ], - warning = [ - 'VEE_NO_WARNING' - ], ) - ], - data = visier_api_data_out.models.vee_data_dto.VeeDataDTO( - context = '', - data_json = '', ), - narrative = '', - reworded_question = '', - var_schema = visier_api_data_out.models.vee_response_schema_dto.VeeResponseSchemaDTO( - concepts = [ - visier_api_data_out.models.vee_response_schema_reference_dto.VeeResponseSchemaReferenceDTO( - name = '', - paths = [ - '' - ], ) - ], - dimensions = [ - visier_api_data_out.models.vee_response_schema_reference_dto.VeeResponseSchemaReferenceDTO( - name = '', ) - ], - metrics = [ - '' - ], ), - status_code = visier_api_data_out.models.vee_status_code_dto.VeeStatusCodeDTO( - status_code = 'UNDEFINED', - status_msg = '', ), - visual = visier_api_data_out.models.vee_visual_dto.VeeVisualDTO( - context = '', - image = '', - title = '', ) - ) - else: - return VeeResponseDTO( - ) - - def testVeeResponseDTO(self): - """Test VeeResponseDTO""" - def validate_instance(instance): - VeeResponseDTO.model_validate(inst_req_only) - instance_deserialized = VeeResponseDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_response_schema_dto.py b/src/visier_api_data_out/test/test_vee_response_schema_dto.py deleted file mode 100644 index 582a3c903d..0000000000 --- a/src/visier_api_data_out/test/test_vee_response_schema_dto.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_response_schema_dto import VeeResponseSchemaDTO - -class TestVeeResponseSchemaDTO(unittest.TestCase): - """VeeResponseSchemaDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeResponseSchemaDTO: - """Test VeeResponseSchemaDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeResponseSchemaDTO( - concepts = [ - visier_api_data_out.models.vee_response_schema_reference_dto.VeeResponseSchemaReferenceDTO( - name = '', - paths = [ - '' - ], ) - ], - dimensions = [ - visier_api_data_out.models.vee_response_schema_reference_dto.VeeResponseSchemaReferenceDTO( - name = '', - paths = [ - '' - ], ) - ], - metrics = [ - '' - ] - ) - else: - return VeeResponseSchemaDTO( - ) - - def testVeeResponseSchemaDTO(self): - """Test VeeResponseSchemaDTO""" - def validate_instance(instance): - VeeResponseSchemaDTO.model_validate(inst_req_only) - instance_deserialized = VeeResponseSchemaDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_response_schema_reference_dto.py b/src/visier_api_data_out/test/test_vee_response_schema_reference_dto.py deleted file mode 100644 index 08ed00f7e3..0000000000 --- a/src/visier_api_data_out/test/test_vee_response_schema_reference_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_response_schema_reference_dto import VeeResponseSchemaReferenceDTO - -class TestVeeResponseSchemaReferenceDTO(unittest.TestCase): - """VeeResponseSchemaReferenceDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeResponseSchemaReferenceDTO: - """Test VeeResponseSchemaReferenceDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeResponseSchemaReferenceDTO( - name = '', - paths = [ - '' - ] - ) - else: - return VeeResponseSchemaReferenceDTO( - ) - - def testVeeResponseSchemaReferenceDTO(self): - """Test VeeResponseSchemaReferenceDTO""" - def validate_instance(instance): - VeeResponseSchemaReferenceDTO.model_validate(inst_req_only) - instance_deserialized = VeeResponseSchemaReferenceDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_sample_question_dto.py b/src/visier_api_data_out/test/test_vee_sample_question_dto.py deleted file mode 100644 index 21bfd77035..0000000000 --- a/src/visier_api_data_out/test/test_vee_sample_question_dto.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_sample_question_dto import VeeSampleQuestionDTO - -class TestVeeSampleQuestionDTO(unittest.TestCase): - """VeeSampleQuestionDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeSampleQuestionDTO: - """Test VeeSampleQuestionDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeSampleQuestionDTO( - category_id = '', - is_assigned_to_user = True, - question = '', - question_id = '' - ) - else: - return VeeSampleQuestionDTO( - ) - - def testVeeSampleQuestionDTO(self): - """Test VeeSampleQuestionDTO""" - def validate_instance(instance): - VeeSampleQuestionDTO.model_validate(inst_req_only) - instance_deserialized = VeeSampleQuestionDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_sample_question_library_dto.py b/src/visier_api_data_out/test/test_vee_sample_question_library_dto.py deleted file mode 100644 index 338805f1ac..0000000000 --- a/src/visier_api_data_out/test/test_vee_sample_question_library_dto.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_sample_question_library_dto import VeeSampleQuestionLibraryDTO - -class TestVeeSampleQuestionLibraryDTO(unittest.TestCase): - """VeeSampleQuestionLibraryDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeSampleQuestionLibraryDTO: - """Test VeeSampleQuestionLibraryDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeSampleQuestionLibraryDTO( - questions = [ - visier_api_data_out.models.vee_sample_question_dto.VeeSampleQuestionDTO( - category_id = '', - is_assigned_to_user = True, - question = '', - question_id = '', ) - ] - ) - else: - return VeeSampleQuestionLibraryDTO( - ) - - def testVeeSampleQuestionLibraryDTO(self): - """Test VeeSampleQuestionLibraryDTO""" - def validate_instance(instance): - VeeSampleQuestionLibraryDTO.model_validate(inst_req_only) - instance_deserialized = VeeSampleQuestionLibraryDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_status_code_dto.py b/src/visier_api_data_out/test/test_vee_status_code_dto.py deleted file mode 100644 index adeb508e3e..0000000000 --- a/src/visier_api_data_out/test/test_vee_status_code_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_status_code_dto import VeeStatusCodeDTO - -class TestVeeStatusCodeDTO(unittest.TestCase): - """VeeStatusCodeDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeStatusCodeDTO: - """Test VeeStatusCodeDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeStatusCodeDTO( - status_code = 'UNDEFINED', - status_msg = '' - ) - else: - return VeeStatusCodeDTO( - ) - - def testVeeStatusCodeDTO(self): - """Test VeeStatusCodeDTO""" - def validate_instance(instance): - VeeStatusCodeDTO.model_validate(inst_req_only) - instance_deserialized = VeeStatusCodeDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_status_dto.py b/src/visier_api_data_out/test/test_vee_status_dto.py deleted file mode 100644 index 0bb210d35b..0000000000 --- a/src/visier_api_data_out/test/test_vee_status_dto.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_status_dto import VeeStatusDTO - -class TestVeeStatusDTO(unittest.TestCase): - """VeeStatusDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeStatusDTO: - """Test VeeStatusDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeStatusDTO( - overall = '' - ) - else: - return VeeStatusDTO( - ) - - def testVeeStatusDTO(self): - """Test VeeStatusDTO""" - def validate_instance(instance): - VeeStatusDTO.model_validate(inst_req_only) - instance_deserialized = VeeStatusDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_visual_dto.py b/src/visier_api_data_out/test/test_vee_visual_dto.py deleted file mode 100644 index 7ffb959053..0000000000 --- a/src/visier_api_data_out/test/test_vee_visual_dto.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_visual_dto import VeeVisualDTO - -class TestVeeVisualDTO(unittest.TestCase): - """VeeVisualDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeVisualDTO: - """Test VeeVisualDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeVisualDTO( - context = '', - image = '', - title = '' - ) - else: - return VeeVisualDTO( - ) - - def testVeeVisualDTO(self): - """Test VeeVisualDTO""" - def validate_instance(instance): - VeeVisualDTO.model_validate(inst_req_only) - instance_deserialized = VeeVisualDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/test/test_vee_visual_options_dto.py b/src/visier_api_data_out/test/test_vee_visual_options_dto.py deleted file mode 100644 index 74e4b00919..0000000000 --- a/src/visier_api_data_out/test/test_vee_visual_options_dto.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -import unittest - -import visier_api_data_out.models -from visier_api_data_out.models.vee_visual_options_dto import VeeVisualOptionsDTO - -class TestVeeVisualOptionsDTO(unittest.TestCase): - """VeeVisualOptionsDTO unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VeeVisualOptionsDTO: - """Test VeeVisualOptionsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - - if include_optional: - return VeeVisualOptionsDTO( - height = 56, - width = 56 - ) - else: - return VeeVisualOptionsDTO( - ) - - def testVeeVisualOptionsDTO(self): - """Test VeeVisualOptionsDTO""" - def validate_instance(instance): - VeeVisualOptionsDTO.model_validate(inst_req_only) - instance_deserialized = VeeVisualOptionsDTO.from_dict(instance.to_dict()) - assert instance == instance_deserialized - - inst_req_only = self.make_instance(include_optional=False) - validate_instance(inst_req_only) - - inst_req_and_optional = self.make_instance(include_optional=True) - validate_instance(inst_req_and_optional) - -if __name__ == '__main__': - unittest.main() diff --git a/src/visier_api_data_out/visier_api_data_out/__init__.py b/src/visier_api_data_out/visier_api_data_out/__init__.py index 99a8f94522..be3e2b44a1 100644 --- a/src/visier_api_data_out/visier_api_data_out/__init__.py +++ b/src/visier_api_data_out/visier_api_data_out/__init__.py @@ -7,7 +7,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,7 +16,7 @@ """ # noqa: E501 -__version__ = "0.99201.1772" +__version__ = "0.99201.1793" # import apis into sdk package from visier_api_data_out.api.data_query_api import DataQueryApi @@ -28,96 +28,96 @@ # import models into sdk package -from visier_api_data_out.models.aggregation_query_dto import AggregationQueryDTO -from visier_api_data_out.models.aggregation_query_execution_dto import AggregationQueryExecutionDTO -from visier_api_data_out.models.aggregation_query_source_dto import AggregationQuerySourceDTO -from visier_api_data_out.models.aggregation_query_source_metric_dto import AggregationQuerySourceMetricDTO -from visier_api_data_out.models.aggregation_query_source_metrics_dto import AggregationQuerySourceMetricsDTO -from visier_api_data_out.models.aggregation_type_parameter_value_dto import AggregationTypeParameterValueDTO -from visier_api_data_out.models.cell_dto import CellDTO -from visier_api_data_out.models.cell_distribution_bin_dto import CellDistributionBinDTO -from visier_api_data_out.models.cell_distribution_options_dto import CellDistributionOptionsDTO -from visier_api_data_out.models.cell_set_axis_dto import CellSetAxisDTO -from visier_api_data_out.models.cell_set_axis_position_dto import CellSetAxisPositionDTO -from visier_api_data_out.models.cell_set_dto import CellSetDTO -from visier_api_data_out.models.cohort_filter_dto import CohortFilterDTO -from visier_api_data_out.models.data_version_export_column_dto import DataVersionExportColumnDTO -from visier_api_data_out.models.data_version_export_dto import DataVersionExportDTO -from visier_api_data_out.models.data_version_export_data_version_summary_dto import DataVersionExportDataVersionSummaryDTO -from visier_api_data_out.models.data_version_export_data_versions_dto import DataVersionExportDataVersionsDTO -from visier_api_data_out.models.data_version_export_file_dto import DataVersionExportFileDTO -from visier_api_data_out.models.data_version_export_job_status_dto import DataVersionExportJobStatusDTO -from visier_api_data_out.models.data_version_export_part_file_dto import DataVersionExportPartFileDTO -from visier_api_data_out.models.data_version_export_schedule_job_request_dto import DataVersionExportScheduleJobRequestDTO -from visier_api_data_out.models.data_version_export_schedule_job_response_dto import DataVersionExportScheduleJobResponseDTO -from visier_api_data_out.models.data_version_export_table_dto import DataVersionExportTableDTO -from visier_api_data_out.models.data_version_exports_dto import DataVersionExportsDTO -from visier_api_data_out.models.dimension_member_reference_dto import DimensionMemberReferenceDTO -from visier_api_data_out.models.dimension_reference_dto import DimensionReferenceDTO -from visier_api_data_out.models.document_search_link_dto import DocumentSearchLinkDTO -from visier_api_data_out.models.download_source_files_dto import DownloadSourceFilesDTO -from visier_api_data_out.models.download_source_files_response_dto import DownloadSourceFilesResponseDTO +from visier_api_data_out.models.analysis_common_transfers_report_create_request_dto import AnalysisCommonTransfersReportCreateRequestDTO +from visier_api_data_out.models.analysis_common_transfers_report_dto import AnalysisCommonTransfersReportDTO +from visier_api_data_out.models.analysis_common_transfers_report_delete_success_dto import AnalysisCommonTransfersReportDeleteSuccessDTO +from visier_api_data_out.models.analysis_common_transfers_report_list_response_dto import AnalysisCommonTransfersReportListResponseDTO +from visier_api_data_out.models.analysis_common_transfers_vee_clarification_dto import AnalysisCommonTransfersVeeClarificationDTO +from visier_api_data_out.models.analysis_common_transfers_vee_conversation_state_dto import AnalysisCommonTransfersVeeConversationStateDTO +from visier_api_data_out.models.analysis_common_transfers_vee_corrections_dto import AnalysisCommonTransfersVeeCorrectionsDTO +from visier_api_data_out.models.analysis_common_transfers_vee_data_dto import AnalysisCommonTransfersVeeDataDTO +from visier_api_data_out.models.analysis_common_transfers_vee_feedback_dto import AnalysisCommonTransfersVeeFeedbackDTO +from visier_api_data_out.models.analysis_common_transfers_vee_options_dto import AnalysisCommonTransfersVeeOptionsDTO +from visier_api_data_out.models.analysis_common_transfers_vee_question_dto import AnalysisCommonTransfersVeeQuestionDTO +from visier_api_data_out.models.analysis_common_transfers_vee_response_dto import AnalysisCommonTransfersVeeResponseDTO +from visier_api_data_out.models.analysis_common_transfers_vee_response_schema_dto import AnalysisCommonTransfersVeeResponseSchemaDTO +from visier_api_data_out.models.analysis_common_transfers_vee_response_schema_reference_dto import AnalysisCommonTransfersVeeResponseSchemaReferenceDTO +from visier_api_data_out.models.analysis_common_transfers_vee_sample_question_dto import AnalysisCommonTransfersVeeSampleQuestionDTO +from visier_api_data_out.models.analysis_common_transfers_vee_sample_question_library_dto import AnalysisCommonTransfersVeeSampleQuestionLibraryDTO +from visier_api_data_out.models.analysis_common_transfers_vee_status_code_dto import AnalysisCommonTransfersVeeStatusCodeDTO +from visier_api_data_out.models.analysis_common_transfers_vee_visual_dto import AnalysisCommonTransfersVeeVisualDTO +from visier_api_data_out.models.analysis_common_transfers_vee_visual_options_dto import AnalysisCommonTransfersVeeVisualOptionsDTO +from visier_api_data_out.models.data_out_list_response import DataOutListResponse +from visier_api_data_out.models.dataservices_common_dimension_member_reference_dto import DataservicesCommonDimensionMemberReferenceDTO +from visier_api_data_out.models.dataservices_common_member_values_dto import DataservicesCommonMemberValuesDTO +from visier_api_data_out.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO +from visier_api_data_out.models.dataservices_datamodel_transfers_property_reference_dto import DataservicesDatamodelTransfersPropertyReferenceDTO +from visier_api_data_out.models.dataservices_datamodel_transfers_selection_concept_reference_dto import DataservicesDatamodelTransfersSelectionConceptReferenceDTO +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_dto import DataservicesQueryTransfersAggregationQueryDTO +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_execution_dto import DataservicesQueryTransfersAggregationQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_source_dto import DataservicesQueryTransfersAggregationQuerySourceDTO +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_source_metric_dto import DataservicesQueryTransfersAggregationQuerySourceMetricDTO +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_source_metrics_dto import DataservicesQueryTransfersAggregationQuerySourceMetricsDTO +from visier_api_data_out.models.dataservices_query_transfers_aggregation_type_parameter_value_dto import DataservicesQueryTransfersAggregationTypeParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_dto import DataservicesQueryTransfersCellDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_distribution_bin_dto import DataservicesQueryTransfersCellDistributionBinDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_distribution_options_dto import DataservicesQueryTransfersCellDistributionOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_set_axis_dto import DataservicesQueryTransfersCellSetAxisDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_set_axis_position_dto import DataservicesQueryTransfersCellSetAxisPositionDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_set_dto import DataservicesQueryTransfersCellSetDTO +from visier_api_data_out.models.dataservices_query_transfers_cohort_filter_dto import DataservicesQueryTransfersCohortFilterDTO +from visier_api_data_out.models.dataservices_query_transfers_internal_query_execution_options_dto import DataservicesQueryTransfersInternalQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_key_group_filter_dto import DataservicesQueryTransfersKeyGroupFilterDTO +from visier_api_data_out.models.dataservices_query_transfers_key_group_filter_item_dto import DataservicesQueryTransfersKeyGroupFilterItemDTO +from visier_api_data_out.models.dataservices_query_transfers_lineage_dto import DataservicesQueryTransfersLineageDTO +from visier_api_data_out.models.dataservices_query_transfers_list_query_execution_dto import DataservicesQueryTransfersListQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_transfers_list_query_execution_options_dto import DataservicesQueryTransfersListQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_list_query_source_dto import DataservicesQueryTransfersListQuerySourceDTO +from visier_api_data_out.models.dataservices_query_transfers_member_filter_dto import DataservicesQueryTransfersMemberFilterDTO +from visier_api_data_out.models.dataservices_query_transfers_member_parameter_value_dto import DataservicesQueryTransfersMemberParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_numeric_parameter_value_dto import DataservicesQueryTransfersNumericParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_plan_parameter_value_dto import DataservicesQueryTransfersPlanParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_property_column_dto import DataservicesQueryTransfersPropertyColumnDTO +from visier_api_data_out.models.dataservices_query_transfers_query_axis_dto import DataservicesQueryTransfersQueryAxisDTO +from visier_api_data_out.models.dataservices_query_transfers_query_axis_options_dto import DataservicesQueryTransfersQueryAxisOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_data_member_selection_dto import DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_leaf_selection_dto import DataservicesQueryTransfersQueryDimensionLeafSelectionDTO +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_level_property_dto import DataservicesQueryTransfersQueryDimensionLevelPropertyDTO +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_level_selection_dto import DataservicesQueryTransfersQueryDimensionLevelSelectionDTO +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_member_selection_dto import DataservicesQueryTransfersQueryDimensionMemberSelectionDTO +from visier_api_data_out.models.dataservices_query_transfers_query_execution_options_dto import DataservicesQueryTransfersQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_query_filter_dto import DataservicesQueryTransfersQueryFilterDTO +from visier_api_data_out.models.dataservices_query_transfers_query_member_map_property_dto import DataservicesQueryTransfersQueryMemberMapPropertyDTO +from visier_api_data_out.models.dataservices_query_transfers_query_member_map_selection_dto import DataservicesQueryTransfersQueryMemberMapSelectionDTO +from visier_api_data_out.models.dataservices_query_transfers_query_numeric_ranges_dto import DataservicesQueryTransfersQueryNumericRangesDTO +from visier_api_data_out.models.dataservices_query_transfers_query_parameter_value_dto import DataservicesQueryTransfersQueryParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_query_property_dto import DataservicesQueryTransfersQueryPropertyDTO +from visier_api_data_out.models.dataservices_query_transfers_query_time_interval_dto import DataservicesQueryTransfersQueryTimeIntervalDTO +from visier_api_data_out.models.dataservices_query_transfers_query_time_intervals_dto import DataservicesQueryTransfersQueryTimeIntervalsDTO +from visier_api_data_out.models.dataservices_query_transfers_snapshot_query_execution_dto import DataservicesQueryTransfersSnapshotQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_transfers_snapshot_query_execution_options_dto import DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_sort_option_dto import DataservicesQueryTransfersSortOptionDTO +from visier_api_data_out.models.dataservices_query_transfers_sql_like_query_execution_dto import DataservicesQueryTransfersSqlLikeQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_transfers_time_shift_dto import DataservicesQueryTransfersTimeShiftDTO +from visier_api_data_out.models.designer_transfers_data_version_export_column_dto import DesignerTransfersDataVersionExportColumnDTO +from visier_api_data_out.models.designer_transfers_data_version_export_dto import DesignerTransfersDataVersionExportDTO +from visier_api_data_out.models.designer_transfers_data_version_export_data_version_summary_dto import DesignerTransfersDataVersionExportDataVersionSummaryDTO +from visier_api_data_out.models.designer_transfers_data_version_export_data_versions_dto import DesignerTransfersDataVersionExportDataVersionsDTO +from visier_api_data_out.models.designer_transfers_data_version_export_file_dto import DesignerTransfersDataVersionExportFileDTO +from visier_api_data_out.models.designer_transfers_data_version_export_job_status_dto import DesignerTransfersDataVersionExportJobStatusDTO +from visier_api_data_out.models.designer_transfers_data_version_export_part_file_dto import DesignerTransfersDataVersionExportPartFileDTO +from visier_api_data_out.models.designer_transfers_data_version_export_schedule_job_request_dto import DesignerTransfersDataVersionExportScheduleJobRequestDTO +from visier_api_data_out.models.designer_transfers_data_version_export_schedule_job_response_dto import DesignerTransfersDataVersionExportScheduleJobResponseDTO +from visier_api_data_out.models.designer_transfers_data_version_export_table_dto import DesignerTransfersDataVersionExportTableDTO +from visier_api_data_out.models.designer_transfers_data_version_exports_dto import DesignerTransfersDataVersionExportsDTO +from visier_api_data_out.models.designer_transfers_download_source_files_dto import DesignerTransfersDownloadSourceFilesDTO +from visier_api_data_out.models.designer_transfers_download_source_files_response_dto import DesignerTransfersDownloadSourceFilesResponseDTO from visier_api_data_out.models.dv_export_status import DvExportStatus from visier_api_data_out.models.google_protobuf_any import GoogleProtobufAny -from visier_api_data_out.models.internal_query_execution_options_dto import InternalQueryExecutionOptionsDTO -from visier_api_data_out.models.key_group_filter_dto import KeyGroupFilterDTO -from visier_api_data_out.models.key_group_filter_item_dto import KeyGroupFilterItemDTO -from visier_api_data_out.models.lineage_dto import LineageDTO -from visier_api_data_out.models.list_query_execution_dto import ListQueryExecutionDTO -from visier_api_data_out.models.list_query_execution_options_dto import ListQueryExecutionOptionsDTO -from visier_api_data_out.models.list_query_source_dto import ListQuerySourceDTO -from visier_api_data_out.models.list_response import ListResponse -from visier_api_data_out.models.member_filter_dto import MemberFilterDTO -from visier_api_data_out.models.member_parameter_value_dto import MemberParameterValueDTO -from visier_api_data_out.models.member_values_dto import MemberValuesDTO -from visier_api_data_out.models.numeric_parameter_value_dto import NumericParameterValueDTO -from visier_api_data_out.models.plan_parameter_value_dto import PlanParameterValueDTO -from visier_api_data_out.models.property_column_dto import PropertyColumnDTO -from visier_api_data_out.models.property_reference_dto import PropertyReferenceDTO -from visier_api_data_out.models.query_axis_dto import QueryAxisDTO -from visier_api_data_out.models.query_axis_options_dto import QueryAxisOptionsDTO -from visier_api_data_out.models.query_dimension_data_member_selection_dto import QueryDimensionDataMemberSelectionDTO -from visier_api_data_out.models.query_dimension_leaf_selection_dto import QueryDimensionLeafSelectionDTO -from visier_api_data_out.models.query_dimension_level_property_dto import QueryDimensionLevelPropertyDTO -from visier_api_data_out.models.query_dimension_level_selection_dto import QueryDimensionLevelSelectionDTO -from visier_api_data_out.models.query_dimension_member_selection_dto import QueryDimensionMemberSelectionDTO -from visier_api_data_out.models.query_execution_options_dto import QueryExecutionOptionsDTO -from visier_api_data_out.models.query_filter_dto import QueryFilterDTO -from visier_api_data_out.models.query_member_map_property_dto import QueryMemberMapPropertyDTO -from visier_api_data_out.models.query_member_map_selection_dto import QueryMemberMapSelectionDTO -from visier_api_data_out.models.query_numeric_ranges_dto import QueryNumericRangesDTO -from visier_api_data_out.models.query_parameter_value_dto import QueryParameterValueDTO -from visier_api_data_out.models.query_property_dto import QueryPropertyDTO -from visier_api_data_out.models.query_time_interval_dto import QueryTimeIntervalDTO -from visier_api_data_out.models.query_time_intervals_dto import QueryTimeIntervalsDTO -from visier_api_data_out.models.report_create_request_dto import ReportCreateRequestDTO -from visier_api_data_out.models.report_dto import ReportDTO -from visier_api_data_out.models.report_delete_success_dto import ReportDeleteSuccessDTO -from visier_api_data_out.models.report_list_response_dto import ReportListResponseDTO -from visier_api_data_out.models.selection_concept_reference_dto import SelectionConceptReferenceDTO -from visier_api_data_out.models.simple_document_header_search_response_dto import SimpleDocumentHeaderSearchResponseDTO -from visier_api_data_out.models.simple_document_header_search_result_dto import SimpleDocumentHeaderSearchResultDTO -from visier_api_data_out.models.snapshot_query_execution_dto import SnapshotQueryExecutionDTO -from visier_api_data_out.models.snapshot_query_execution_options_dto import SnapshotQueryExecutionOptionsDTO -from visier_api_data_out.models.sort_option_dto import SortOptionDTO +from visier_api_data_out.models.servicing_publicapi_transfers_document_search_link_dto import ServicingPublicapiTransfersDocumentSearchLinkDTO +from visier_api_data_out.models.servicing_publicapi_transfers_simple_document_header_search_response_dto import ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO +from visier_api_data_out.models.servicing_publicapi_transfers_simple_document_header_search_result_dto import ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO from visier_api_data_out.models.sql_like200_response import SqlLike200Response -from visier_api_data_out.models.sql_like_query_execution_dto import SqlLikeQueryExecutionDTO from visier_api_data_out.models.status import Status +from visier_api_data_out.models.systemstatus_publicapi_transfers_vee_status_dto import SystemstatusPublicapiTransfersVeeStatusDTO from visier_api_data_out.models.table_response_dto import TableResponseDTO -from visier_api_data_out.models.time_shift_dto import TimeShiftDTO -from visier_api_data_out.models.vee_clarification_dto import VeeClarificationDTO -from visier_api_data_out.models.vee_conversation_state_dto import VeeConversationStateDTO -from visier_api_data_out.models.vee_corrections_dto import VeeCorrectionsDTO -from visier_api_data_out.models.vee_data_dto import VeeDataDTO -from visier_api_data_out.models.vee_feedback_dto import VeeFeedbackDTO -from visier_api_data_out.models.vee_options_dto import VeeOptionsDTO -from visier_api_data_out.models.vee_question_dto import VeeQuestionDTO -from visier_api_data_out.models.vee_response_dto import VeeResponseDTO -from visier_api_data_out.models.vee_response_schema_dto import VeeResponseSchemaDTO -from visier_api_data_out.models.vee_response_schema_reference_dto import VeeResponseSchemaReferenceDTO -from visier_api_data_out.models.vee_sample_question_dto import VeeSampleQuestionDTO -from visier_api_data_out.models.vee_sample_question_library_dto import VeeSampleQuestionLibraryDTO -from visier_api_data_out.models.vee_status_code_dto import VeeStatusCodeDTO -from visier_api_data_out.models.vee_status_dto import VeeStatusDTO -from visier_api_data_out.models.vee_visual_dto import VeeVisualDTO -from visier_api_data_out.models.vee_visual_options_dto import VeeVisualOptionsDTO diff --git a/src/visier_api_data_out/visier_api_data_out/api/data_query_api.py b/src/visier_api_data_out/visier_api_data_out/api/data_query_api.py index c35879f737..9dd0486bc5 100644 --- a/src/visier_api_data_out/visier_api_data_out/api/data_query_api.py +++ b/src/visier_api_data_out/visier_api_data_out/api/data_query_api.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,13 +23,13 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_data_out.models.aggregation_query_execution_dto import AggregationQueryExecutionDTO -from visier_api_data_out.models.cell_set_dto import CellSetDTO -from visier_api_data_out.models.list_query_execution_dto import ListQueryExecutionDTO -from visier_api_data_out.models.list_response import ListResponse -from visier_api_data_out.models.snapshot_query_execution_dto import SnapshotQueryExecutionDTO +from visier_api_data_out.models.data_out_list_response import DataOutListResponse +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_execution_dto import DataservicesQueryTransfersAggregationQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_set_dto import DataservicesQueryTransfersCellSetDTO +from visier_api_data_out.models.dataservices_query_transfers_list_query_execution_dto import DataservicesQueryTransfersListQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_transfers_snapshot_query_execution_dto import DataservicesQueryTransfersSnapshotQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_transfers_sql_like_query_execution_dto import DataservicesQueryTransfersSqlLikeQueryExecutionDTO from visier_api_data_out.models.sql_like200_response import SqlLike200Response -from visier_api_data_out.models.sql_like_query_execution_dto import SqlLikeQueryExecutionDTO import visier_api_data_out.models @@ -48,7 +48,7 @@ def __init__(self, api_client=None) -> None: @validate_call def aggregate( self, - aggregation_query_execution_dto: AggregationQueryExecutionDTO, + dataservices_query_transfers_aggregation_query_execution_dto: DataservicesQueryTransfersAggregationQueryExecutionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -62,13 +62,13 @@ def aggregate( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CellSetDTO: + ) -> DataservicesQueryTransfersCellSetDTO: """Query aggregate data To retrieve aggregated values from your data in Visier, you can perform an aggregation. Usually, an aggregation retrieves values over a period of time, such as multiple months. You can also group and filter your data in an aggregation query to retrieve detailed information. - :param aggregation_query_execution_dto: (required) - :type aggregation_query_execution_dto: AggregationQueryExecutionDTO + :param dataservices_query_transfers_aggregation_query_execution_dto: (required) + :type dataservices_query_transfers_aggregation_query_execution_dto: DataservicesQueryTransfersAggregationQueryExecutionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -94,7 +94,7 @@ def aggregate( """ # noqa: E501 _param = self._aggregate_serialize( - aggregation_query_execution_dto=aggregation_query_execution_dto, + dataservices_query_transfers_aggregation_query_execution_dto=dataservices_query_transfers_aggregation_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -103,7 +103,7 @@ def aggregate( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CellSetDTO", + '200': "DataservicesQueryTransfersCellSetDTO", } response_data = self.api_client.call_api( *_param, @@ -120,7 +120,7 @@ def aggregate( @validate_call def aggregate_with_http_info( self, - aggregation_query_execution_dto: AggregationQueryExecutionDTO, + dataservices_query_transfers_aggregation_query_execution_dto: DataservicesQueryTransfersAggregationQueryExecutionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -134,13 +134,13 @@ def aggregate_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CellSetDTO]: + ) -> ApiResponse[DataservicesQueryTransfersCellSetDTO]: """Query aggregate data To retrieve aggregated values from your data in Visier, you can perform an aggregation. Usually, an aggregation retrieves values over a period of time, such as multiple months. You can also group and filter your data in an aggregation query to retrieve detailed information. - :param aggregation_query_execution_dto: (required) - :type aggregation_query_execution_dto: AggregationQueryExecutionDTO + :param dataservices_query_transfers_aggregation_query_execution_dto: (required) + :type dataservices_query_transfers_aggregation_query_execution_dto: DataservicesQueryTransfersAggregationQueryExecutionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -166,7 +166,7 @@ def aggregate_with_http_info( """ # noqa: E501 _param = self._aggregate_serialize( - aggregation_query_execution_dto=aggregation_query_execution_dto, + dataservices_query_transfers_aggregation_query_execution_dto=dataservices_query_transfers_aggregation_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -175,7 +175,7 @@ def aggregate_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CellSetDTO", + '200': "DataservicesQueryTransfersCellSetDTO", } response_data = self.api_client.call_api( *_param, @@ -192,7 +192,7 @@ def aggregate_with_http_info( @validate_call def aggregate_without_preload_content( self, - aggregation_query_execution_dto: AggregationQueryExecutionDTO, + dataservices_query_transfers_aggregation_query_execution_dto: DataservicesQueryTransfersAggregationQueryExecutionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -211,8 +211,8 @@ def aggregate_without_preload_content( To retrieve aggregated values from your data in Visier, you can perform an aggregation. Usually, an aggregation retrieves values over a period of time, such as multiple months. You can also group and filter your data in an aggregation query to retrieve detailed information. - :param aggregation_query_execution_dto: (required) - :type aggregation_query_execution_dto: AggregationQueryExecutionDTO + :param dataservices_query_transfers_aggregation_query_execution_dto: (required) + :type dataservices_query_transfers_aggregation_query_execution_dto: DataservicesQueryTransfersAggregationQueryExecutionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -238,7 +238,7 @@ def aggregate_without_preload_content( """ # noqa: E501 _param = self._aggregate_serialize( - aggregation_query_execution_dto=aggregation_query_execution_dto, + dataservices_query_transfers_aggregation_query_execution_dto=dataservices_query_transfers_aggregation_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -247,7 +247,7 @@ def aggregate_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CellSetDTO", + '200': "DataservicesQueryTransfersCellSetDTO", } response_data = self.api_client.call_api( *_param, @@ -258,7 +258,7 @@ def aggregate_without_preload_content( def _aggregate_serialize( self, - aggregation_query_execution_dto, + dataservices_query_transfers_aggregation_query_execution_dto, target_tenant_id, _request_auth, _content_type, @@ -285,8 +285,8 @@ def _aggregate_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if aggregation_query_execution_dto is not None: - _body_params = aggregation_query_execution_dto + if dataservices_query_transfers_aggregation_query_execution_dto is not None: + _body_params = dataservices_query_transfers_aggregation_query_execution_dto # set the HTTP header `Accept` @@ -343,7 +343,7 @@ def _aggregate_serialize( @validate_call def list( self, - list_query_execution_dto: ListQueryExecutionDTO, + dataservices_query_transfers_list_query_execution_dto: DataservicesQueryTransfersListQueryExecutionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -357,13 +357,13 @@ def list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListResponse: + ) -> DataOutListResponse: """Query a list of details To retrieve a list of values for specific objects, you can perform a list query. A list query provides information about values for selected data points, and is not an aggregated value. In Visier's interface, a list query is comparable to View Details for a specific data point in a visualization. - :param list_query_execution_dto: (required) - :type list_query_execution_dto: ListQueryExecutionDTO + :param dataservices_query_transfers_list_query_execution_dto: (required) + :type dataservices_query_transfers_list_query_execution_dto: DataservicesQueryTransfersListQueryExecutionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -389,7 +389,7 @@ def list( """ # noqa: E501 _param = self._list_serialize( - list_query_execution_dto=list_query_execution_dto, + dataservices_query_transfers_list_query_execution_dto=dataservices_query_transfers_list_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -398,7 +398,7 @@ def list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListResponse", + '200': "DataOutListResponse", } response_data = self.api_client.call_api( *_param, @@ -415,7 +415,7 @@ def list( @validate_call def list_with_http_info( self, - list_query_execution_dto: ListQueryExecutionDTO, + dataservices_query_transfers_list_query_execution_dto: DataservicesQueryTransfersListQueryExecutionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -429,13 +429,13 @@ def list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ListResponse]: + ) -> ApiResponse[DataOutListResponse]: """Query a list of details To retrieve a list of values for specific objects, you can perform a list query. A list query provides information about values for selected data points, and is not an aggregated value. In Visier's interface, a list query is comparable to View Details for a specific data point in a visualization. - :param list_query_execution_dto: (required) - :type list_query_execution_dto: ListQueryExecutionDTO + :param dataservices_query_transfers_list_query_execution_dto: (required) + :type dataservices_query_transfers_list_query_execution_dto: DataservicesQueryTransfersListQueryExecutionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -461,7 +461,7 @@ def list_with_http_info( """ # noqa: E501 _param = self._list_serialize( - list_query_execution_dto=list_query_execution_dto, + dataservices_query_transfers_list_query_execution_dto=dataservices_query_transfers_list_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -470,7 +470,7 @@ def list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListResponse", + '200': "DataOutListResponse", } response_data = self.api_client.call_api( *_param, @@ -487,7 +487,7 @@ def list_with_http_info( @validate_call def list_without_preload_content( self, - list_query_execution_dto: ListQueryExecutionDTO, + dataservices_query_transfers_list_query_execution_dto: DataservicesQueryTransfersListQueryExecutionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -506,8 +506,8 @@ def list_without_preload_content( To retrieve a list of values for specific objects, you can perform a list query. A list query provides information about values for selected data points, and is not an aggregated value. In Visier's interface, a list query is comparable to View Details for a specific data point in a visualization. - :param list_query_execution_dto: (required) - :type list_query_execution_dto: ListQueryExecutionDTO + :param dataservices_query_transfers_list_query_execution_dto: (required) + :type dataservices_query_transfers_list_query_execution_dto: DataservicesQueryTransfersListQueryExecutionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -533,7 +533,7 @@ def list_without_preload_content( """ # noqa: E501 _param = self._list_serialize( - list_query_execution_dto=list_query_execution_dto, + dataservices_query_transfers_list_query_execution_dto=dataservices_query_transfers_list_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -542,7 +542,7 @@ def list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListResponse", + '200': "DataOutListResponse", } response_data = self.api_client.call_api( *_param, @@ -553,7 +553,7 @@ def list_without_preload_content( def _list_serialize( self, - list_query_execution_dto, + dataservices_query_transfers_list_query_execution_dto, target_tenant_id, _request_auth, _content_type, @@ -580,8 +580,8 @@ def _list_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if list_query_execution_dto is not None: - _body_params = list_query_execution_dto + if dataservices_query_transfers_list_query_execution_dto is not None: + _body_params = dataservices_query_transfers_list_query_execution_dto # set the HTTP header `Accept` @@ -638,7 +638,7 @@ def _list_serialize( @validate_call def query_snapshot( self, - snapshot_query_execution_dto: SnapshotQueryExecutionDTO, + dataservices_query_transfers_snapshot_query_execution_dto: DataservicesQueryTransfersSnapshotQueryExecutionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -652,13 +652,13 @@ def query_snapshot( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListResponse: + ) -> DataOutListResponse: """Query a series of detailed snapshots To retrieve a collection of `list` query-style snapshots taken at the defined intervals, execute a `snapshot` query. Each snapshot in the result is associated with a timestamp, or the \"effective date\" at which date snapshot data was valid. This API allows you to request a detailed time series from Visier. Structurally, a `snapshot` query is similar to a `list` query, but has the following differences: * The `snapshot` query may contain a column, `effectiveDateProperty`, that specifies the time for each snapshot. To include the `effectiveDateProperty` column, add the following object to the columns array: ```json { \"columnName\": \"Snapshot_Date\", \"columnDefinition\": { \"effectiveDateProperty\": {} } } ``` * The `snapshot` query uses `timeIntervals` (like an `aggregate` query) instead of `timeInterval` (like a `list` query) because the `snapshot` query must specify the number of snapshots to generate. To specify the number of snapshots to generate, use the `intervalCount` property in the `timeIntervals` object, as shown next. ```json { \"timeIntervals\": { \"fromDateTime\": \"2022-01-01\", \"intervalPeriodType\": \"MONTH\", \"intervalPeriodCount\": 6, \"intervalCount\": 4 } ``` - :param snapshot_query_execution_dto: (required) - :type snapshot_query_execution_dto: SnapshotQueryExecutionDTO + :param dataservices_query_transfers_snapshot_query_execution_dto: (required) + :type dataservices_query_transfers_snapshot_query_execution_dto: DataservicesQueryTransfersSnapshotQueryExecutionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -684,7 +684,7 @@ def query_snapshot( """ # noqa: E501 _param = self._query_snapshot_serialize( - snapshot_query_execution_dto=snapshot_query_execution_dto, + dataservices_query_transfers_snapshot_query_execution_dto=dataservices_query_transfers_snapshot_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -693,7 +693,7 @@ def query_snapshot( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListResponse", + '200': "DataOutListResponse", } response_data = self.api_client.call_api( *_param, @@ -710,7 +710,7 @@ def query_snapshot( @validate_call def query_snapshot_with_http_info( self, - snapshot_query_execution_dto: SnapshotQueryExecutionDTO, + dataservices_query_transfers_snapshot_query_execution_dto: DataservicesQueryTransfersSnapshotQueryExecutionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -724,13 +724,13 @@ def query_snapshot_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ListResponse]: + ) -> ApiResponse[DataOutListResponse]: """Query a series of detailed snapshots To retrieve a collection of `list` query-style snapshots taken at the defined intervals, execute a `snapshot` query. Each snapshot in the result is associated with a timestamp, or the \"effective date\" at which date snapshot data was valid. This API allows you to request a detailed time series from Visier. Structurally, a `snapshot` query is similar to a `list` query, but has the following differences: * The `snapshot` query may contain a column, `effectiveDateProperty`, that specifies the time for each snapshot. To include the `effectiveDateProperty` column, add the following object to the columns array: ```json { \"columnName\": \"Snapshot_Date\", \"columnDefinition\": { \"effectiveDateProperty\": {} } } ``` * The `snapshot` query uses `timeIntervals` (like an `aggregate` query) instead of `timeInterval` (like a `list` query) because the `snapshot` query must specify the number of snapshots to generate. To specify the number of snapshots to generate, use the `intervalCount` property in the `timeIntervals` object, as shown next. ```json { \"timeIntervals\": { \"fromDateTime\": \"2022-01-01\", \"intervalPeriodType\": \"MONTH\", \"intervalPeriodCount\": 6, \"intervalCount\": 4 } ``` - :param snapshot_query_execution_dto: (required) - :type snapshot_query_execution_dto: SnapshotQueryExecutionDTO + :param dataservices_query_transfers_snapshot_query_execution_dto: (required) + :type dataservices_query_transfers_snapshot_query_execution_dto: DataservicesQueryTransfersSnapshotQueryExecutionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -756,7 +756,7 @@ def query_snapshot_with_http_info( """ # noqa: E501 _param = self._query_snapshot_serialize( - snapshot_query_execution_dto=snapshot_query_execution_dto, + dataservices_query_transfers_snapshot_query_execution_dto=dataservices_query_transfers_snapshot_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -765,7 +765,7 @@ def query_snapshot_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListResponse", + '200': "DataOutListResponse", } response_data = self.api_client.call_api( *_param, @@ -782,7 +782,7 @@ def query_snapshot_with_http_info( @validate_call def query_snapshot_without_preload_content( self, - snapshot_query_execution_dto: SnapshotQueryExecutionDTO, + dataservices_query_transfers_snapshot_query_execution_dto: DataservicesQueryTransfersSnapshotQueryExecutionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -801,8 +801,8 @@ def query_snapshot_without_preload_content( To retrieve a collection of `list` query-style snapshots taken at the defined intervals, execute a `snapshot` query. Each snapshot in the result is associated with a timestamp, or the \"effective date\" at which date snapshot data was valid. This API allows you to request a detailed time series from Visier. Structurally, a `snapshot` query is similar to a `list` query, but has the following differences: * The `snapshot` query may contain a column, `effectiveDateProperty`, that specifies the time for each snapshot. To include the `effectiveDateProperty` column, add the following object to the columns array: ```json { \"columnName\": \"Snapshot_Date\", \"columnDefinition\": { \"effectiveDateProperty\": {} } } ``` * The `snapshot` query uses `timeIntervals` (like an `aggregate` query) instead of `timeInterval` (like a `list` query) because the `snapshot` query must specify the number of snapshots to generate. To specify the number of snapshots to generate, use the `intervalCount` property in the `timeIntervals` object, as shown next. ```json { \"timeIntervals\": { \"fromDateTime\": \"2022-01-01\", \"intervalPeriodType\": \"MONTH\", \"intervalPeriodCount\": 6, \"intervalCount\": 4 } ``` - :param snapshot_query_execution_dto: (required) - :type snapshot_query_execution_dto: SnapshotQueryExecutionDTO + :param dataservices_query_transfers_snapshot_query_execution_dto: (required) + :type dataservices_query_transfers_snapshot_query_execution_dto: DataservicesQueryTransfersSnapshotQueryExecutionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -828,7 +828,7 @@ def query_snapshot_without_preload_content( """ # noqa: E501 _param = self._query_snapshot_serialize( - snapshot_query_execution_dto=snapshot_query_execution_dto, + dataservices_query_transfers_snapshot_query_execution_dto=dataservices_query_transfers_snapshot_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -837,7 +837,7 @@ def query_snapshot_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListResponse", + '200': "DataOutListResponse", } response_data = self.api_client.call_api( *_param, @@ -848,7 +848,7 @@ def query_snapshot_without_preload_content( def _query_snapshot_serialize( self, - snapshot_query_execution_dto, + dataservices_query_transfers_snapshot_query_execution_dto, target_tenant_id, _request_auth, _content_type, @@ -875,8 +875,8 @@ def _query_snapshot_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if snapshot_query_execution_dto is not None: - _body_params = snapshot_query_execution_dto + if dataservices_query_transfers_snapshot_query_execution_dto is not None: + _body_params = dataservices_query_transfers_snapshot_query_execution_dto # set the HTTP header `Accept` @@ -933,7 +933,7 @@ def _query_snapshot_serialize( @validate_call def sql_like( self, - sql_like_query_execution_dto: SqlLikeQueryExecutionDTO, + dataservices_query_transfers_sql_like_query_execution_dto: DataservicesQueryTransfersSqlLikeQueryExecutionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -952,8 +952,8 @@ def sql_like( To retrieve a list of values for specific objects or aggregate values from metrics, you can write queries using SQL-like syntax. The response format matches the query type whether aggregate or list. If requested, aggregate query results may be flattened into tabular format. A SQL-like query is an aggregate if it contains at least one metric. Aggregate queries must specify a time interval divided into periods; for example: ```sql SELECT employeeCount() AS \"Employee Count\", level(Gender, \"Gender\") AS Gender FROM Employee WHERE Visier_Time IN periods(date(\"2023-01-01\"), 4, period(3, Month)); ``` A SQL-like query is a list if it does not contain any metrics. List queries define time intervals as simple intervals; for example: ```sql SELECT EmployeeID AS \"Employee ID\", level(Gender, \"Gender\") AS Gender FROM Employee WHERE Visier_Time BETWEEN date(\"2022-01-01\") AND date(\"2023-01-01\"); ``` - :param sql_like_query_execution_dto: (required) - :type sql_like_query_execution_dto: SqlLikeQueryExecutionDTO + :param dataservices_query_transfers_sql_like_query_execution_dto: (required) + :type dataservices_query_transfers_sql_like_query_execution_dto: DataservicesQueryTransfersSqlLikeQueryExecutionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -979,7 +979,7 @@ def sql_like( """ # noqa: E501 _param = self._sql_like_serialize( - sql_like_query_execution_dto=sql_like_query_execution_dto, + dataservices_query_transfers_sql_like_query_execution_dto=dataservices_query_transfers_sql_like_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1005,7 +1005,7 @@ def sql_like( @validate_call def sql_like_with_http_info( self, - sql_like_query_execution_dto: SqlLikeQueryExecutionDTO, + dataservices_query_transfers_sql_like_query_execution_dto: DataservicesQueryTransfersSqlLikeQueryExecutionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1024,8 +1024,8 @@ def sql_like_with_http_info( To retrieve a list of values for specific objects or aggregate values from metrics, you can write queries using SQL-like syntax. The response format matches the query type whether aggregate or list. If requested, aggregate query results may be flattened into tabular format. A SQL-like query is an aggregate if it contains at least one metric. Aggregate queries must specify a time interval divided into periods; for example: ```sql SELECT employeeCount() AS \"Employee Count\", level(Gender, \"Gender\") AS Gender FROM Employee WHERE Visier_Time IN periods(date(\"2023-01-01\"), 4, period(3, Month)); ``` A SQL-like query is a list if it does not contain any metrics. List queries define time intervals as simple intervals; for example: ```sql SELECT EmployeeID AS \"Employee ID\", level(Gender, \"Gender\") AS Gender FROM Employee WHERE Visier_Time BETWEEN date(\"2022-01-01\") AND date(\"2023-01-01\"); ``` - :param sql_like_query_execution_dto: (required) - :type sql_like_query_execution_dto: SqlLikeQueryExecutionDTO + :param dataservices_query_transfers_sql_like_query_execution_dto: (required) + :type dataservices_query_transfers_sql_like_query_execution_dto: DataservicesQueryTransfersSqlLikeQueryExecutionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1051,7 +1051,7 @@ def sql_like_with_http_info( """ # noqa: E501 _param = self._sql_like_serialize( - sql_like_query_execution_dto=sql_like_query_execution_dto, + dataservices_query_transfers_sql_like_query_execution_dto=dataservices_query_transfers_sql_like_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1077,7 +1077,7 @@ def sql_like_with_http_info( @validate_call def sql_like_without_preload_content( self, - sql_like_query_execution_dto: SqlLikeQueryExecutionDTO, + dataservices_query_transfers_sql_like_query_execution_dto: DataservicesQueryTransfersSqlLikeQueryExecutionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1096,8 +1096,8 @@ def sql_like_without_preload_content( To retrieve a list of values for specific objects or aggregate values from metrics, you can write queries using SQL-like syntax. The response format matches the query type whether aggregate or list. If requested, aggregate query results may be flattened into tabular format. A SQL-like query is an aggregate if it contains at least one metric. Aggregate queries must specify a time interval divided into periods; for example: ```sql SELECT employeeCount() AS \"Employee Count\", level(Gender, \"Gender\") AS Gender FROM Employee WHERE Visier_Time IN periods(date(\"2023-01-01\"), 4, period(3, Month)); ``` A SQL-like query is a list if it does not contain any metrics. List queries define time intervals as simple intervals; for example: ```sql SELECT EmployeeID AS \"Employee ID\", level(Gender, \"Gender\") AS Gender FROM Employee WHERE Visier_Time BETWEEN date(\"2022-01-01\") AND date(\"2023-01-01\"); ``` - :param sql_like_query_execution_dto: (required) - :type sql_like_query_execution_dto: SqlLikeQueryExecutionDTO + :param dataservices_query_transfers_sql_like_query_execution_dto: (required) + :type dataservices_query_transfers_sql_like_query_execution_dto: DataservicesQueryTransfersSqlLikeQueryExecutionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1123,7 +1123,7 @@ def sql_like_without_preload_content( """ # noqa: E501 _param = self._sql_like_serialize( - sql_like_query_execution_dto=sql_like_query_execution_dto, + dataservices_query_transfers_sql_like_query_execution_dto=dataservices_query_transfers_sql_like_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1143,7 +1143,7 @@ def sql_like_without_preload_content( def _sql_like_serialize( self, - sql_like_query_execution_dto, + dataservices_query_transfers_sql_like_query_execution_dto, target_tenant_id, _request_auth, _content_type, @@ -1170,8 +1170,8 @@ def _sql_like_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if sql_like_query_execution_dto is not None: - _body_params = sql_like_query_execution_dto + if dataservices_query_transfers_sql_like_query_execution_dto is not None: + _body_params = dataservices_query_transfers_sql_like_query_execution_dto # set the HTTP header `Accept` diff --git a/src/visier_api_data_out/visier_api_data_out/api/data_version_export_api.py b/src/visier_api_data_out/visier_api_data_out/api/data_version_export_api.py index 356911a279..ebecfec114 100644 --- a/src/visier_api_data_out/visier_api_data_out/api/data_version_export_api.py +++ b/src/visier_api_data_out/visier_api_data_out/api/data_version_export_api.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,12 +23,12 @@ from pydantic import Field, StrictBytes, StrictInt, StrictStr from typing import Optional, Tuple, Union from typing_extensions import Annotated -from visier_api_data_out.models.data_version_export_dto import DataVersionExportDTO -from visier_api_data_out.models.data_version_export_data_versions_dto import DataVersionExportDataVersionsDTO -from visier_api_data_out.models.data_version_export_job_status_dto import DataVersionExportJobStatusDTO -from visier_api_data_out.models.data_version_export_schedule_job_request_dto import DataVersionExportScheduleJobRequestDTO -from visier_api_data_out.models.data_version_export_schedule_job_response_dto import DataVersionExportScheduleJobResponseDTO -from visier_api_data_out.models.data_version_exports_dto import DataVersionExportsDTO +from visier_api_data_out.models.designer_transfers_data_version_export_dto import DesignerTransfersDataVersionExportDTO +from visier_api_data_out.models.designer_transfers_data_version_export_data_versions_dto import DesignerTransfersDataVersionExportDataVersionsDTO +from visier_api_data_out.models.designer_transfers_data_version_export_job_status_dto import DesignerTransfersDataVersionExportJobStatusDTO +from visier_api_data_out.models.designer_transfers_data_version_export_schedule_job_request_dto import DesignerTransfersDataVersionExportScheduleJobRequestDTO +from visier_api_data_out.models.designer_transfers_data_version_export_schedule_job_response_dto import DesignerTransfersDataVersionExportScheduleJobResponseDTO +from visier_api_data_out.models.designer_transfers_data_version_exports_dto import DesignerTransfersDataVersionExportsDTO import visier_api_data_out.models @@ -356,7 +356,7 @@ def get_available_data_versions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataVersionExportDataVersionsDTO: + ) -> DesignerTransfersDataVersionExportDataVersionsDTO: """Retrieve a list of all data versions Retrieve a list of all data versions in the tenant. **Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -394,7 +394,7 @@ def get_available_data_versions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataVersionExportDataVersionsDTO", + '200': "DesignerTransfersDataVersionExportDataVersionsDTO", } response_data = self.api_client.call_api( *_param, @@ -424,7 +424,7 @@ def get_available_data_versions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DataVersionExportDataVersionsDTO]: + ) -> ApiResponse[DesignerTransfersDataVersionExportDataVersionsDTO]: """Retrieve a list of all data versions Retrieve a list of all data versions in the tenant. **Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -462,7 +462,7 @@ def get_available_data_versions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataVersionExportDataVersionsDTO", + '200': "DesignerTransfersDataVersionExportDataVersionsDTO", } response_data = self.api_client.call_api( *_param, @@ -530,7 +530,7 @@ def get_available_data_versions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataVersionExportDataVersionsDTO", + '200': "DesignerTransfersDataVersionExportDataVersionsDTO", } response_data = self.api_client.call_api( *_param, @@ -621,7 +621,7 @@ def get_available_exports( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataVersionExportsDTO: + ) -> DesignerTransfersDataVersionExportsDTO: """Retrieve the details of all data version exports Retrieve the information for all available data version exports. **Note:** Data version exports are available for 14 days after export job completes. **Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -659,7 +659,7 @@ def get_available_exports( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataVersionExportsDTO", + '200': "DesignerTransfersDataVersionExportsDTO", } response_data = self.api_client.call_api( *_param, @@ -689,7 +689,7 @@ def get_available_exports_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DataVersionExportsDTO]: + ) -> ApiResponse[DesignerTransfersDataVersionExportsDTO]: """Retrieve the details of all data version exports Retrieve the information for all available data version exports. **Note:** Data version exports are available for 14 days after export job completes. **Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -727,7 +727,7 @@ def get_available_exports_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataVersionExportsDTO", + '200': "DesignerTransfersDataVersionExportsDTO", } response_data = self.api_client.call_api( *_param, @@ -795,7 +795,7 @@ def get_available_exports_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataVersionExportsDTO", + '200': "DesignerTransfersDataVersionExportsDTO", } response_data = self.api_client.call_api( *_param, @@ -887,7 +887,7 @@ def get_export( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataVersionExportDTO: + ) -> DesignerTransfersDataVersionExportDTO: """Retrieve the details of a data version export Retrieve information for a specific data version export. **Note:** Data version exports are available for 14 days after export job completes. **Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -928,7 +928,7 @@ def get_export( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataVersionExportDTO", + '200': "DesignerTransfersDataVersionExportDTO", } response_data = self.api_client.call_api( *_param, @@ -959,7 +959,7 @@ def get_export_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DataVersionExportDTO]: + ) -> ApiResponse[DesignerTransfersDataVersionExportDTO]: """Retrieve the details of a data version export Retrieve information for a specific data version export. **Note:** Data version exports are available for 14 days after export job completes. **Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1000,7 +1000,7 @@ def get_export_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataVersionExportDTO", + '200': "DesignerTransfersDataVersionExportDTO", } response_data = self.api_client.call_api( *_param, @@ -1072,7 +1072,7 @@ def get_export_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataVersionExportDTO", + '200': "DesignerTransfersDataVersionExportDTO", } response_data = self.api_client.call_api( *_param, @@ -1167,7 +1167,7 @@ def get_export_job_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataVersionExportJobStatusDTO: + ) -> DesignerTransfersDataVersionExportJobStatusDTO: """Retrieve a data version export job's status Retrieve the status of a data version export job. After the job completes successfully, this endpoint returns an `exportUuid` that you can use to retrieve the export information and download export files. **Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1208,7 +1208,7 @@ def get_export_job_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataVersionExportJobStatusDTO", + '200': "DesignerTransfersDataVersionExportJobStatusDTO", } response_data = self.api_client.call_api( *_param, @@ -1239,7 +1239,7 @@ def get_export_job_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DataVersionExportJobStatusDTO]: + ) -> ApiResponse[DesignerTransfersDataVersionExportJobStatusDTO]: """Retrieve a data version export job's status Retrieve the status of a data version export job. After the job completes successfully, this endpoint returns an `exportUuid` that you can use to retrieve the export information and download export files. **Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1280,7 +1280,7 @@ def get_export_job_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataVersionExportJobStatusDTO", + '200': "DesignerTransfersDataVersionExportJobStatusDTO", } response_data = self.api_client.call_api( *_param, @@ -1352,7 +1352,7 @@ def get_export_job_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataVersionExportJobStatusDTO", + '200': "DesignerTransfersDataVersionExportJobStatusDTO", } response_data = self.api_client.call_api( *_param, @@ -1433,7 +1433,7 @@ def _get_export_job_status_serialize( @validate_call def schedule_export_job( self, - data_version_export_schedule_job_request_dto: DataVersionExportScheduleJobRequestDTO, + designer_transfers_data_version_export_schedule_job_request_dto: DesignerTransfersDataVersionExportScheduleJobRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1447,13 +1447,13 @@ def schedule_export_job( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataVersionExportScheduleJobResponseDTO: + ) -> DesignerTransfersDataVersionExportScheduleJobResponseDTO: """Schedule a data version export job Schedule a data version export job. The job schedules immediately and will begin when resources are available. The response returns a `jobUuid` that you can use to check the export job status. **Note:** There is a limit of 10 export jobs per tenant per day. **Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param data_version_export_schedule_job_request_dto: (required) - :type data_version_export_schedule_job_request_dto: DataVersionExportScheduleJobRequestDTO + :param designer_transfers_data_version_export_schedule_job_request_dto: (required) + :type designer_transfers_data_version_export_schedule_job_request_dto: DesignerTransfersDataVersionExportScheduleJobRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1479,7 +1479,7 @@ def schedule_export_job( """ # noqa: E501 _param = self._schedule_export_job_serialize( - data_version_export_schedule_job_request_dto=data_version_export_schedule_job_request_dto, + designer_transfers_data_version_export_schedule_job_request_dto=designer_transfers_data_version_export_schedule_job_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1488,7 +1488,7 @@ def schedule_export_job( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataVersionExportScheduleJobResponseDTO", + '200': "DesignerTransfersDataVersionExportScheduleJobResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1505,7 +1505,7 @@ def schedule_export_job( @validate_call def schedule_export_job_with_http_info( self, - data_version_export_schedule_job_request_dto: DataVersionExportScheduleJobRequestDTO, + designer_transfers_data_version_export_schedule_job_request_dto: DesignerTransfersDataVersionExportScheduleJobRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1519,13 +1519,13 @@ def schedule_export_job_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DataVersionExportScheduleJobResponseDTO]: + ) -> ApiResponse[DesignerTransfersDataVersionExportScheduleJobResponseDTO]: """Schedule a data version export job Schedule a data version export job. The job schedules immediately and will begin when resources are available. The response returns a `jobUuid` that you can use to check the export job status. **Note:** There is a limit of 10 export jobs per tenant per day. **Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param data_version_export_schedule_job_request_dto: (required) - :type data_version_export_schedule_job_request_dto: DataVersionExportScheduleJobRequestDTO + :param designer_transfers_data_version_export_schedule_job_request_dto: (required) + :type designer_transfers_data_version_export_schedule_job_request_dto: DesignerTransfersDataVersionExportScheduleJobRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1551,7 +1551,7 @@ def schedule_export_job_with_http_info( """ # noqa: E501 _param = self._schedule_export_job_serialize( - data_version_export_schedule_job_request_dto=data_version_export_schedule_job_request_dto, + designer_transfers_data_version_export_schedule_job_request_dto=designer_transfers_data_version_export_schedule_job_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1560,7 +1560,7 @@ def schedule_export_job_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataVersionExportScheduleJobResponseDTO", + '200': "DesignerTransfersDataVersionExportScheduleJobResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1577,7 +1577,7 @@ def schedule_export_job_with_http_info( @validate_call def schedule_export_job_without_preload_content( self, - data_version_export_schedule_job_request_dto: DataVersionExportScheduleJobRequestDTO, + designer_transfers_data_version_export_schedule_job_request_dto: DesignerTransfersDataVersionExportScheduleJobRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -1596,8 +1596,8 @@ def schedule_export_job_without_preload_content( Schedule a data version export job. The job schedules immediately and will begin when resources are available. The response returns a `jobUuid` that you can use to check the export job status. **Note:** There is a limit of 10 export jobs per tenant per day. **Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param data_version_export_schedule_job_request_dto: (required) - :type data_version_export_schedule_job_request_dto: DataVersionExportScheduleJobRequestDTO + :param designer_transfers_data_version_export_schedule_job_request_dto: (required) + :type designer_transfers_data_version_export_schedule_job_request_dto: DesignerTransfersDataVersionExportScheduleJobRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1623,7 +1623,7 @@ def schedule_export_job_without_preload_content( """ # noqa: E501 _param = self._schedule_export_job_serialize( - data_version_export_schedule_job_request_dto=data_version_export_schedule_job_request_dto, + designer_transfers_data_version_export_schedule_job_request_dto=designer_transfers_data_version_export_schedule_job_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1632,7 +1632,7 @@ def schedule_export_job_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataVersionExportScheduleJobResponseDTO", + '200': "DesignerTransfersDataVersionExportScheduleJobResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1643,7 +1643,7 @@ def schedule_export_job_without_preload_content( def _schedule_export_job_serialize( self, - data_version_export_schedule_job_request_dto, + designer_transfers_data_version_export_schedule_job_request_dto, target_tenant_id, _request_auth, _content_type, @@ -1670,8 +1670,8 @@ def _schedule_export_job_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if data_version_export_schedule_job_request_dto is not None: - _body_params = data_version_export_schedule_job_request_dto + if designer_transfers_data_version_export_schedule_job_request_dto is not None: + _body_params = designer_transfers_data_version_export_schedule_job_request_dto # set the HTTP header `Accept` diff --git a/src/visier_api_data_out/visier_api_data_out/api/reporting_api.py b/src/visier_api_data_out/visier_api_data_out/api/reporting_api.py index 73dc72b10d..2f4ac04b5c 100644 --- a/src/visier_api_data_out/visier_api_data_out/api/reporting_api.py +++ b/src/visier_api_data_out/visier_api_data_out/api/reporting_api.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,10 +23,10 @@ from pydantic import Field, StrictBytes, StrictInt, StrictStr from typing import Optional, Tuple, Union from typing_extensions import Annotated -from visier_api_data_out.models.report_create_request_dto import ReportCreateRequestDTO -from visier_api_data_out.models.report_dto import ReportDTO -from visier_api_data_out.models.report_delete_success_dto import ReportDeleteSuccessDTO -from visier_api_data_out.models.report_list_response_dto import ReportListResponseDTO +from visier_api_data_out.models.analysis_common_transfers_report_create_request_dto import AnalysisCommonTransfersReportCreateRequestDTO +from visier_api_data_out.models.analysis_common_transfers_report_dto import AnalysisCommonTransfersReportDTO +from visier_api_data_out.models.analysis_common_transfers_report_delete_success_dto import AnalysisCommonTransfersReportDeleteSuccessDTO +from visier_api_data_out.models.analysis_common_transfers_report_list_response_dto import AnalysisCommonTransfersReportListResponseDTO import visier_api_data_out.models @@ -45,7 +45,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_report( self, - report_create_request_dto: ReportCreateRequestDTO, + analysis_common_transfers_report_create_request_dto: AnalysisCommonTransfersReportCreateRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -59,13 +59,13 @@ def create_report( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ReportDTO: + ) -> AnalysisCommonTransfersReportDTO: """Create a report Create a new report with a title and description. To edit other contents of the report, such as columns and group bys, navigate to the Reports room in Visier.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param report_create_request_dto: (required) - :type report_create_request_dto: ReportCreateRequestDTO + :param analysis_common_transfers_report_create_request_dto: (required) + :type analysis_common_transfers_report_create_request_dto: AnalysisCommonTransfersReportCreateRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -91,7 +91,7 @@ def create_report( """ # noqa: E501 _param = self._create_report_serialize( - report_create_request_dto=report_create_request_dto, + analysis_common_transfers_report_create_request_dto=analysis_common_transfers_report_create_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -100,7 +100,7 @@ def create_report( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReportDTO", + '200': "AnalysisCommonTransfersReportDTO", } response_data = self.api_client.call_api( *_param, @@ -117,7 +117,7 @@ def create_report( @validate_call def create_report_with_http_info( self, - report_create_request_dto: ReportCreateRequestDTO, + analysis_common_transfers_report_create_request_dto: AnalysisCommonTransfersReportCreateRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -131,13 +131,13 @@ def create_report_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ReportDTO]: + ) -> ApiResponse[AnalysisCommonTransfersReportDTO]: """Create a report Create a new report with a title and description. To edit other contents of the report, such as columns and group bys, navigate to the Reports room in Visier.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param report_create_request_dto: (required) - :type report_create_request_dto: ReportCreateRequestDTO + :param analysis_common_transfers_report_create_request_dto: (required) + :type analysis_common_transfers_report_create_request_dto: AnalysisCommonTransfersReportCreateRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -163,7 +163,7 @@ def create_report_with_http_info( """ # noqa: E501 _param = self._create_report_serialize( - report_create_request_dto=report_create_request_dto, + analysis_common_transfers_report_create_request_dto=analysis_common_transfers_report_create_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -172,7 +172,7 @@ def create_report_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReportDTO", + '200': "AnalysisCommonTransfersReportDTO", } response_data = self.api_client.call_api( *_param, @@ -189,7 +189,7 @@ def create_report_with_http_info( @validate_call def create_report_without_preload_content( self, - report_create_request_dto: ReportCreateRequestDTO, + analysis_common_transfers_report_create_request_dto: AnalysisCommonTransfersReportCreateRequestDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -208,8 +208,8 @@ def create_report_without_preload_content( Create a new report with a title and description. To edit other contents of the report, such as columns and group bys, navigate to the Reports room in Visier.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param report_create_request_dto: (required) - :type report_create_request_dto: ReportCreateRequestDTO + :param analysis_common_transfers_report_create_request_dto: (required) + :type analysis_common_transfers_report_create_request_dto: AnalysisCommonTransfersReportCreateRequestDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -235,7 +235,7 @@ def create_report_without_preload_content( """ # noqa: E501 _param = self._create_report_serialize( - report_create_request_dto=report_create_request_dto, + analysis_common_transfers_report_create_request_dto=analysis_common_transfers_report_create_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -244,7 +244,7 @@ def create_report_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReportDTO", + '200': "AnalysisCommonTransfersReportDTO", } response_data = self.api_client.call_api( *_param, @@ -255,7 +255,7 @@ def create_report_without_preload_content( def _create_report_serialize( self, - report_create_request_dto, + analysis_common_transfers_report_create_request_dto, target_tenant_id, _request_auth, _content_type, @@ -282,8 +282,8 @@ def _create_report_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if report_create_request_dto is not None: - _body_params = report_create_request_dto + if analysis_common_transfers_report_create_request_dto is not None: + _body_params = analysis_common_transfers_report_create_request_dto # set the HTTP header `Accept` @@ -352,7 +352,7 @@ def delete_report( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ReportDeleteSuccessDTO: + ) -> AnalysisCommonTransfersReportDeleteSuccessDTO: """Delete a report Delete a report in the tenant. You must know the ID of the report to delete it. To retrieve report IDs, see `GET /v1alpha/reporting/reports`.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -393,7 +393,7 @@ def delete_report( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReportDeleteSuccessDTO", + '200': "AnalysisCommonTransfersReportDeleteSuccessDTO", } response_data = self.api_client.call_api( *_param, @@ -424,7 +424,7 @@ def delete_report_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ReportDeleteSuccessDTO]: + ) -> ApiResponse[AnalysisCommonTransfersReportDeleteSuccessDTO]: """Delete a report Delete a report in the tenant. You must know the ID of the report to delete it. To retrieve report IDs, see `GET /v1alpha/reporting/reports`.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -465,7 +465,7 @@ def delete_report_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReportDeleteSuccessDTO", + '200': "AnalysisCommonTransfersReportDeleteSuccessDTO", } response_data = self.api_client.call_api( *_param, @@ -537,7 +537,7 @@ def delete_report_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReportDeleteSuccessDTO", + '200': "AnalysisCommonTransfersReportDeleteSuccessDTO", } response_data = self.api_client.call_api( *_param, @@ -914,7 +914,7 @@ def duplicate_report( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ReportDTO: + ) -> AnalysisCommonTransfersReportDTO: """Duplicate a report Make a copy of an existing report. You must know the ID of the report to copy it. To retrieve report IDs, see `GET /v1alpha/reporting/reports`.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -955,7 +955,7 @@ def duplicate_report( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReportDTO", + '200': "AnalysisCommonTransfersReportDTO", } response_data = self.api_client.call_api( *_param, @@ -986,7 +986,7 @@ def duplicate_report_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ReportDTO]: + ) -> ApiResponse[AnalysisCommonTransfersReportDTO]: """Duplicate a report Make a copy of an existing report. You must know the ID of the report to copy it. To retrieve report IDs, see `GET /v1alpha/reporting/reports`.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1027,7 +1027,7 @@ def duplicate_report_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReportDTO", + '200': "AnalysisCommonTransfersReportDTO", } response_data = self.api_client.call_api( *_param, @@ -1099,7 +1099,7 @@ def duplicate_report_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReportDTO", + '200': "AnalysisCommonTransfersReportDTO", } response_data = self.api_client.call_api( *_param, @@ -1194,7 +1194,7 @@ def get_report( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ReportDTO: + ) -> AnalysisCommonTransfersReportDTO: """Retrieve a report's details Retrieve the details of a specific report. The response returns information such as title, description, owner, and the allowed actions you can take on the report. You must know the ID of the report to retrieve its details. To retrieve report IDs, see `GET /v1alpha/reporting/reports`.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1235,7 +1235,7 @@ def get_report( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReportDTO", + '200': "AnalysisCommonTransfersReportDTO", } response_data = self.api_client.call_api( *_param, @@ -1266,7 +1266,7 @@ def get_report_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ReportDTO]: + ) -> ApiResponse[AnalysisCommonTransfersReportDTO]: """Retrieve a report's details Retrieve the details of a specific report. The response returns information such as title, description, owner, and the allowed actions you can take on the report. You must know the ID of the report to retrieve its details. To retrieve report IDs, see `GET /v1alpha/reporting/reports`.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1307,7 +1307,7 @@ def get_report_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReportDTO", + '200': "AnalysisCommonTransfersReportDTO", } response_data = self.api_client.call_api( *_param, @@ -1379,7 +1379,7 @@ def get_report_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReportDTO", + '200': "AnalysisCommonTransfersReportDTO", } response_data = self.api_client.call_api( *_param, @@ -1475,7 +1475,7 @@ def get_reports( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ReportListResponseDTO: + ) -> AnalysisCommonTransfersReportListResponseDTO: """Retrieve a list of reports Retrieve a list of reports. The response returns information such as the unique ID, title, description, owner, and the allowed actions you can take on the report.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1519,7 +1519,7 @@ def get_reports( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReportListResponseDTO", + '200': "AnalysisCommonTransfersReportListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1551,7 +1551,7 @@ def get_reports_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ReportListResponseDTO]: + ) -> ApiResponse[AnalysisCommonTransfersReportListResponseDTO]: """Retrieve a list of reports Retrieve a list of reports. The response returns information such as the unique ID, title, description, owner, and the allowed actions you can take on the report.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -1595,7 +1595,7 @@ def get_reports_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReportListResponseDTO", + '200': "AnalysisCommonTransfersReportListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1671,7 +1671,7 @@ def get_reports_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReportListResponseDTO", + '200': "AnalysisCommonTransfersReportListResponseDTO", } response_data = self.api_client.call_api( *_param, diff --git a/src/visier_api_data_out/visier_api_data_out/api/search_api.py b/src/visier_api_data_out/visier_api_data_out/api/search_api.py index dd517be32b..1859be5e10 100644 --- a/src/visier_api_data_out/visier_api_data_out/api/search_api.py +++ b/src/visier_api_data_out/visier_api_data_out/api/search_api.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,7 +23,7 @@ from pydantic import Field, StrictInt, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_data_out.models.simple_document_header_search_response_dto import SimpleDocumentHeaderSearchResponseDTO +from visier_api_data_out.models.servicing_publicapi_transfers_simple_document_header_search_response_dto import ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO import visier_api_data_out.models @@ -58,7 +58,7 @@ def simple_search_document_headers( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SimpleDocumentHeaderSearchResponseDTO: + ) -> ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO: """Perform a simple search for Visier document headers Perform a simple search for Visier document headers, such as analysis titles. Simple search doesn't support keywords, Boolean expressions, or any other advanced search features. Example: `GET /v1alpha/search/simple/document-headers?q=My+Query&limit=10` returns the first 10 document headers that best match the query string `My Query`.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -105,7 +105,7 @@ def simple_search_document_headers( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SimpleDocumentHeaderSearchResponseDTO", + '200': "ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -138,7 +138,7 @@ def simple_search_document_headers_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SimpleDocumentHeaderSearchResponseDTO]: + ) -> ApiResponse[ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO]: """Perform a simple search for Visier document headers Perform a simple search for Visier document headers, such as analysis titles. Simple search doesn't support keywords, Boolean expressions, or any other advanced search features. Example: `GET /v1alpha/search/simple/document-headers?q=My+Query&limit=10` returns the first 10 document headers that best match the query string `My Query`.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -185,7 +185,7 @@ def simple_search_document_headers_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SimpleDocumentHeaderSearchResponseDTO", + '200': "ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -265,7 +265,7 @@ def simple_search_document_headers_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SimpleDocumentHeaderSearchResponseDTO", + '200': "ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO", } response_data = self.api_client.call_api( *_param, diff --git a/src/visier_api_data_out/visier_api_data_out/api/source_files_download_api.py b/src/visier_api_data_out/visier_api_data_out/api/source_files_download_api.py index 15ce722fb3..f04b3cc97d 100644 --- a/src/visier_api_data_out/visier_api_data_out/api/source_files_download_api.py +++ b/src/visier_api_data_out/visier_api_data_out/api/source_files_download_api.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,8 +23,8 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_data_out.models.download_source_files_dto import DownloadSourceFilesDTO -from visier_api_data_out.models.download_source_files_response_dto import DownloadSourceFilesResponseDTO +from visier_api_data_out.models.designer_transfers_download_source_files_dto import DesignerTransfersDownloadSourceFilesDTO +from visier_api_data_out.models.designer_transfers_download_source_files_response_dto import DesignerTransfersDownloadSourceFilesResponseDTO import visier_api_data_out.models @@ -43,7 +43,7 @@ def __init__(self, api_client=None) -> None: @validate_call def download_source_files( self, - download_source_files_dto: DownloadSourceFilesDTO, + designer_transfers_download_source_files_dto: DesignerTransfersDownloadSourceFilesDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -57,13 +57,13 @@ def download_source_files( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DownloadSourceFilesResponseDTO: + ) -> DesignerTransfersDownloadSourceFilesResponseDTO: """Download source files Download a tenant's source files. You can download all included source files or specify a list of sources to download. Use object names or unique identifiers to specify the list of sources. Excluded source files will not be downloaded. If `minTimestamp` and `maxTimestamp` are defined, downloads the source files uploaded within the specified time range for all sources or the specified sources. Administrating tenants can specify the tenant from which to download sources using the `TargetTenantID` header. **Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param download_source_files_dto: (required) - :type download_source_files_dto: DownloadSourceFilesDTO + :param designer_transfers_download_source_files_dto: (required) + :type designer_transfers_download_source_files_dto: DesignerTransfersDownloadSourceFilesDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -89,7 +89,7 @@ def download_source_files( """ # noqa: E501 _param = self._download_source_files_serialize( - download_source_files_dto=download_source_files_dto, + designer_transfers_download_source_files_dto=designer_transfers_download_source_files_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -98,7 +98,7 @@ def download_source_files( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DownloadSourceFilesResponseDTO", + '200': "DesignerTransfersDownloadSourceFilesResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -115,7 +115,7 @@ def download_source_files( @validate_call def download_source_files_with_http_info( self, - download_source_files_dto: DownloadSourceFilesDTO, + designer_transfers_download_source_files_dto: DesignerTransfersDownloadSourceFilesDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -129,13 +129,13 @@ def download_source_files_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DownloadSourceFilesResponseDTO]: + ) -> ApiResponse[DesignerTransfersDownloadSourceFilesResponseDTO]: """Download source files Download a tenant's source files. You can download all included source files or specify a list of sources to download. Use object names or unique identifiers to specify the list of sources. Excluded source files will not be downloaded. If `minTimestamp` and `maxTimestamp` are defined, downloads the source files uploaded within the specified time range for all sources or the specified sources. Administrating tenants can specify the tenant from which to download sources using the `TargetTenantID` header. **Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param download_source_files_dto: (required) - :type download_source_files_dto: DownloadSourceFilesDTO + :param designer_transfers_download_source_files_dto: (required) + :type designer_transfers_download_source_files_dto: DesignerTransfersDownloadSourceFilesDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -161,7 +161,7 @@ def download_source_files_with_http_info( """ # noqa: E501 _param = self._download_source_files_serialize( - download_source_files_dto=download_source_files_dto, + designer_transfers_download_source_files_dto=designer_transfers_download_source_files_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -170,7 +170,7 @@ def download_source_files_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DownloadSourceFilesResponseDTO", + '200': "DesignerTransfersDownloadSourceFilesResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -187,7 +187,7 @@ def download_source_files_with_http_info( @validate_call def download_source_files_without_preload_content( self, - download_source_files_dto: DownloadSourceFilesDTO, + designer_transfers_download_source_files_dto: DesignerTransfersDownloadSourceFilesDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -206,8 +206,8 @@ def download_source_files_without_preload_content( Download a tenant's source files. You can download all included source files or specify a list of sources to download. Use object names or unique identifiers to specify the list of sources. Excluded source files will not be downloaded. If `minTimestamp` and `maxTimestamp` are defined, downloads the source files uploaded within the specified time range for all sources or the specified sources. Administrating tenants can specify the tenant from which to download sources using the `TargetTenantID` header. **Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param download_source_files_dto: (required) - :type download_source_files_dto: DownloadSourceFilesDTO + :param designer_transfers_download_source_files_dto: (required) + :type designer_transfers_download_source_files_dto: DesignerTransfersDownloadSourceFilesDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -233,7 +233,7 @@ def download_source_files_without_preload_content( """ # noqa: E501 _param = self._download_source_files_serialize( - download_source_files_dto=download_source_files_dto, + designer_transfers_download_source_files_dto=designer_transfers_download_source_files_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -242,7 +242,7 @@ def download_source_files_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DownloadSourceFilesResponseDTO", + '200': "DesignerTransfersDownloadSourceFilesResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -253,7 +253,7 @@ def download_source_files_without_preload_content( def _download_source_files_serialize( self, - download_source_files_dto, + designer_transfers_download_source_files_dto, target_tenant_id, _request_auth, _content_type, @@ -280,8 +280,8 @@ def _download_source_files_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if download_source_files_dto is not None: - _body_params = download_source_files_dto + if designer_transfers_download_source_files_dto is not None: + _body_params = designer_transfers_download_source_files_dto # set the HTTP header `Accept` diff --git a/src/visier_api_data_out/visier_api_data_out/api/vee_api.py b/src/visier_api_data_out/visier_api_data_out/api/vee_api.py index aeb5fb2422..7c7e52cda0 100644 --- a/src/visier_api_data_out/visier_api_data_out/api/vee_api.py +++ b/src/visier_api_data_out/visier_api_data_out/api/vee_api.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,12 +23,12 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_data_out.models.vee_feedback_dto import VeeFeedbackDTO -from visier_api_data_out.models.vee_question_dto import VeeQuestionDTO -from visier_api_data_out.models.vee_response_dto import VeeResponseDTO -from visier_api_data_out.models.vee_sample_question_library_dto import VeeSampleQuestionLibraryDTO -from visier_api_data_out.models.vee_status_code_dto import VeeStatusCodeDTO -from visier_api_data_out.models.vee_status_dto import VeeStatusDTO +from visier_api_data_out.models.analysis_common_transfers_vee_feedback_dto import AnalysisCommonTransfersVeeFeedbackDTO +from visier_api_data_out.models.analysis_common_transfers_vee_question_dto import AnalysisCommonTransfersVeeQuestionDTO +from visier_api_data_out.models.analysis_common_transfers_vee_response_dto import AnalysisCommonTransfersVeeResponseDTO +from visier_api_data_out.models.analysis_common_transfers_vee_sample_question_library_dto import AnalysisCommonTransfersVeeSampleQuestionLibraryDTO +from visier_api_data_out.models.analysis_common_transfers_vee_status_code_dto import AnalysisCommonTransfersVeeStatusCodeDTO +from visier_api_data_out.models.systemstatus_publicapi_transfers_vee_status_dto import SystemstatusPublicapiTransfersVeeStatusDTO import visier_api_data_out.models @@ -47,7 +47,7 @@ def __init__(self, api_client=None) -> None: @validate_call def vee_feedback( self, - vee_feedback_dto: VeeFeedbackDTO, + analysis_common_transfers_vee_feedback_dto: AnalysisCommonTransfersVeeFeedbackDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -61,13 +61,13 @@ def vee_feedback( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> VeeStatusCodeDTO: + ) -> AnalysisCommonTransfersVeeStatusCodeDTO: """Submit Vee feedback Give Vee feedback for a previous answer. To submit feedback, include: * The response object from the `/question` response. * A rating of Vee's answer. If `isApproved` is `true`, Vee answered the question correctly. If `isApproved` is `false`, Vee's answer was incorrect or lacked details. * A description of how Vee should have answered the question or how Vee can improve the answer, such as \"Expected Headcount metric, but Vee returned Average Headcount\".
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param vee_feedback_dto: (required) - :type vee_feedback_dto: VeeFeedbackDTO + :param analysis_common_transfers_vee_feedback_dto: (required) + :type analysis_common_transfers_vee_feedback_dto: AnalysisCommonTransfersVeeFeedbackDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -93,7 +93,7 @@ def vee_feedback( """ # noqa: E501 _param = self._vee_feedback_serialize( - vee_feedback_dto=vee_feedback_dto, + analysis_common_transfers_vee_feedback_dto=analysis_common_transfers_vee_feedback_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -102,7 +102,7 @@ def vee_feedback( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VeeStatusCodeDTO", + '200': "AnalysisCommonTransfersVeeStatusCodeDTO", } response_data = self.api_client.call_api( *_param, @@ -119,7 +119,7 @@ def vee_feedback( @validate_call def vee_feedback_with_http_info( self, - vee_feedback_dto: VeeFeedbackDTO, + analysis_common_transfers_vee_feedback_dto: AnalysisCommonTransfersVeeFeedbackDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -133,13 +133,13 @@ def vee_feedback_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[VeeStatusCodeDTO]: + ) -> ApiResponse[AnalysisCommonTransfersVeeStatusCodeDTO]: """Submit Vee feedback Give Vee feedback for a previous answer. To submit feedback, include: * The response object from the `/question` response. * A rating of Vee's answer. If `isApproved` is `true`, Vee answered the question correctly. If `isApproved` is `false`, Vee's answer was incorrect or lacked details. * A description of how Vee should have answered the question or how Vee can improve the answer, such as \"Expected Headcount metric, but Vee returned Average Headcount\".
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param vee_feedback_dto: (required) - :type vee_feedback_dto: VeeFeedbackDTO + :param analysis_common_transfers_vee_feedback_dto: (required) + :type analysis_common_transfers_vee_feedback_dto: AnalysisCommonTransfersVeeFeedbackDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -165,7 +165,7 @@ def vee_feedback_with_http_info( """ # noqa: E501 _param = self._vee_feedback_serialize( - vee_feedback_dto=vee_feedback_dto, + analysis_common_transfers_vee_feedback_dto=analysis_common_transfers_vee_feedback_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -174,7 +174,7 @@ def vee_feedback_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VeeStatusCodeDTO", + '200': "AnalysisCommonTransfersVeeStatusCodeDTO", } response_data = self.api_client.call_api( *_param, @@ -191,7 +191,7 @@ def vee_feedback_with_http_info( @validate_call def vee_feedback_without_preload_content( self, - vee_feedback_dto: VeeFeedbackDTO, + analysis_common_transfers_vee_feedback_dto: AnalysisCommonTransfersVeeFeedbackDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -210,8 +210,8 @@ def vee_feedback_without_preload_content( Give Vee feedback for a previous answer. To submit feedback, include: * The response object from the `/question` response. * A rating of Vee's answer. If `isApproved` is `true`, Vee answered the question correctly. If `isApproved` is `false`, Vee's answer was incorrect or lacked details. * A description of how Vee should have answered the question or how Vee can improve the answer, such as \"Expected Headcount metric, but Vee returned Average Headcount\".
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param vee_feedback_dto: (required) - :type vee_feedback_dto: VeeFeedbackDTO + :param analysis_common_transfers_vee_feedback_dto: (required) + :type analysis_common_transfers_vee_feedback_dto: AnalysisCommonTransfersVeeFeedbackDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -237,7 +237,7 @@ def vee_feedback_without_preload_content( """ # noqa: E501 _param = self._vee_feedback_serialize( - vee_feedback_dto=vee_feedback_dto, + analysis_common_transfers_vee_feedback_dto=analysis_common_transfers_vee_feedback_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -246,7 +246,7 @@ def vee_feedback_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VeeStatusCodeDTO", + '200': "AnalysisCommonTransfersVeeStatusCodeDTO", } response_data = self.api_client.call_api( *_param, @@ -257,7 +257,7 @@ def vee_feedback_without_preload_content( def _vee_feedback_serialize( self, - vee_feedback_dto, + analysis_common_transfers_vee_feedback_dto, target_tenant_id, _request_auth, _content_type, @@ -284,8 +284,8 @@ def _vee_feedback_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if vee_feedback_dto is not None: - _body_params = vee_feedback_dto + if analysis_common_transfers_vee_feedback_dto is not None: + _body_params = analysis_common_transfers_vee_feedback_dto # set the HTTP header `Accept` @@ -340,7 +340,7 @@ def _vee_feedback_serialize( @validate_call def vee_question_request( self, - vee_question_dto: VeeQuestionDTO, + analysis_common_transfers_vee_question_dto: AnalysisCommonTransfersVeeQuestionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -354,13 +354,13 @@ def vee_question_request( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> VeeResponseDTO: + ) -> AnalysisCommonTransfersVeeResponseDTO: """Ask Vee a question Use plain language to ask Vee a people question. Use body parameters to specify how Vee should respond, such as returning a visualization, data, or rewording the question. The response always returns a `conversationState` object containing a unique ID for the conversation. To ask a follow-up question or continue the conversation with Vee, include the `conversationState` from the response in your next `/question` call. To submit feedback about Vee's answer, copy the entire response into your `/feedback` call.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param vee_question_dto: (required) - :type vee_question_dto: VeeQuestionDTO + :param analysis_common_transfers_vee_question_dto: (required) + :type analysis_common_transfers_vee_question_dto: AnalysisCommonTransfersVeeQuestionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -386,7 +386,7 @@ def vee_question_request( """ # noqa: E501 _param = self._vee_question_request_serialize( - vee_question_dto=vee_question_dto, + analysis_common_transfers_vee_question_dto=analysis_common_transfers_vee_question_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -395,7 +395,7 @@ def vee_question_request( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VeeResponseDTO", + '200': "AnalysisCommonTransfersVeeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -412,7 +412,7 @@ def vee_question_request( @validate_call def vee_question_request_with_http_info( self, - vee_question_dto: VeeQuestionDTO, + analysis_common_transfers_vee_question_dto: AnalysisCommonTransfersVeeQuestionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -426,13 +426,13 @@ def vee_question_request_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[VeeResponseDTO]: + ) -> ApiResponse[AnalysisCommonTransfersVeeResponseDTO]: """Ask Vee a question Use plain language to ask Vee a people question. Use body parameters to specify how Vee should respond, such as returning a visualization, data, or rewording the question. The response always returns a `conversationState` object containing a unique ID for the conversation. To ask a follow-up question or continue the conversation with Vee, include the `conversationState` from the response in your next `/question` call. To submit feedback about Vee's answer, copy the entire response into your `/feedback` call.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param vee_question_dto: (required) - :type vee_question_dto: VeeQuestionDTO + :param analysis_common_transfers_vee_question_dto: (required) + :type analysis_common_transfers_vee_question_dto: AnalysisCommonTransfersVeeQuestionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -458,7 +458,7 @@ def vee_question_request_with_http_info( """ # noqa: E501 _param = self._vee_question_request_serialize( - vee_question_dto=vee_question_dto, + analysis_common_transfers_vee_question_dto=analysis_common_transfers_vee_question_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -467,7 +467,7 @@ def vee_question_request_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VeeResponseDTO", + '200': "AnalysisCommonTransfersVeeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -484,7 +484,7 @@ def vee_question_request_with_http_info( @validate_call def vee_question_request_without_preload_content( self, - vee_question_dto: VeeQuestionDTO, + analysis_common_transfers_vee_question_dto: AnalysisCommonTransfersVeeQuestionDTO, target_tenant_id: Annotated[Optional[StrictStr], Field(description="Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant.")] = None, _request_timeout: Union[ None, @@ -503,8 +503,8 @@ def vee_question_request_without_preload_content( Use plain language to ask Vee a people question. Use body parameters to specify how Vee should respond, such as returning a visualization, data, or rewording the question. The response always returns a `conversationState` object containing a unique ID for the conversation. To ask a follow-up question or continue the conversation with Vee, include the `conversationState` from the response in your next `/question` call. To submit feedback about Vee's answer, copy the entire response into your `/feedback` call.
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). - :param vee_question_dto: (required) - :type vee_question_dto: VeeQuestionDTO + :param analysis_common_transfers_vee_question_dto: (required) + :type analysis_common_transfers_vee_question_dto: AnalysisCommonTransfersVeeQuestionDTO :param target_tenant_id: Optionally, specify the tenant that you want to execute the API call on. This defines the tenant that you're logged into. If omitted, the request uses the administrating tenant as the login tenant. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -530,7 +530,7 @@ def vee_question_request_without_preload_content( """ # noqa: E501 _param = self._vee_question_request_serialize( - vee_question_dto=vee_question_dto, + analysis_common_transfers_vee_question_dto=analysis_common_transfers_vee_question_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -539,7 +539,7 @@ def vee_question_request_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VeeResponseDTO", + '200': "AnalysisCommonTransfersVeeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -550,7 +550,7 @@ def vee_question_request_without_preload_content( def _vee_question_request_serialize( self, - vee_question_dto, + analysis_common_transfers_vee_question_dto, target_tenant_id, _request_auth, _content_type, @@ -577,8 +577,8 @@ def _vee_question_request_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if vee_question_dto is not None: - _body_params = vee_question_dto + if analysis_common_transfers_vee_question_dto is not None: + _body_params = analysis_common_transfers_vee_question_dto # set the HTTP header `Accept` @@ -646,7 +646,7 @@ def vee_sample_questions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> VeeSampleQuestionLibraryDTO: + ) -> AnalysisCommonTransfersVeeSampleQuestionLibraryDTO: """Retrieve a list of sample questions to ask Vee Get a list of sample questions to help you start using Vee. The response returns a list of questions that you can ask Vee, such as \"What is the turnover rate?\". You may occasionally encounter a sample question that can't be answered due to data availability or your data access
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -684,7 +684,7 @@ def vee_sample_questions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VeeSampleQuestionLibraryDTO", + '200': "AnalysisCommonTransfersVeeSampleQuestionLibraryDTO", } response_data = self.api_client.call_api( *_param, @@ -714,7 +714,7 @@ def vee_sample_questions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[VeeSampleQuestionLibraryDTO]: + ) -> ApiResponse[AnalysisCommonTransfersVeeSampleQuestionLibraryDTO]: """Retrieve a list of sample questions to ask Vee Get a list of sample questions to help you start using Vee. The response returns a list of questions that you can ask Vee, such as \"What is the turnover rate?\". You may occasionally encounter a sample question that can't be answered due to data availability or your data access
**Note:** This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued. If you are interested in using this API, please contact your Customer Success Manager (CSM). @@ -752,7 +752,7 @@ def vee_sample_questions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VeeSampleQuestionLibraryDTO", + '200': "AnalysisCommonTransfersVeeSampleQuestionLibraryDTO", } response_data = self.api_client.call_api( *_param, @@ -820,7 +820,7 @@ def vee_sample_questions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VeeSampleQuestionLibraryDTO", + '200': "AnalysisCommonTransfersVeeSampleQuestionLibraryDTO", } response_data = self.api_client.call_api( *_param, @@ -911,7 +911,7 @@ def vee_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> VeeStatusDTO: + ) -> SystemstatusPublicapiTransfersVeeStatusDTO: """Check the overall current status of Vee Check the current overall status of Vee. The overall status is one of: * `UP` : Vee is operational. * `DOWN`: Vee is not operational. @@ -949,7 +949,7 @@ def vee_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VeeStatusDTO", + '200': "SystemstatusPublicapiTransfersVeeStatusDTO", } response_data = self.api_client.call_api( *_param, @@ -979,7 +979,7 @@ def vee_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[VeeStatusDTO]: + ) -> ApiResponse[SystemstatusPublicapiTransfersVeeStatusDTO]: """Check the overall current status of Vee Check the current overall status of Vee. The overall status is one of: * `UP` : Vee is operational. * `DOWN`: Vee is not operational. @@ -1017,7 +1017,7 @@ def vee_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VeeStatusDTO", + '200': "SystemstatusPublicapiTransfersVeeStatusDTO", } response_data = self.api_client.call_api( *_param, @@ -1085,7 +1085,7 @@ def vee_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VeeStatusDTO", + '200': "SystemstatusPublicapiTransfersVeeStatusDTO", } response_data = self.api_client.call_api( *_param, diff --git a/src/visier_api_data_out/visier_api_data_out/models/__init__.py b/src/visier_api_data_out/visier_api_data_out/models/__init__.py index 933617bf8c..7438102a0d 100644 --- a/src/visier_api_data_out/visier_api_data_out/models/__init__.py +++ b/src/visier_api_data_out/visier_api_data_out/models/__init__.py @@ -6,7 +6,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,96 +16,96 @@ # import models into model package -from visier_api_data_out.models.aggregation_query_dto import AggregationQueryDTO -from visier_api_data_out.models.aggregation_query_execution_dto import AggregationQueryExecutionDTO -from visier_api_data_out.models.aggregation_query_source_dto import AggregationQuerySourceDTO -from visier_api_data_out.models.aggregation_query_source_metric_dto import AggregationQuerySourceMetricDTO -from visier_api_data_out.models.aggregation_query_source_metrics_dto import AggregationQuerySourceMetricsDTO -from visier_api_data_out.models.aggregation_type_parameter_value_dto import AggregationTypeParameterValueDTO -from visier_api_data_out.models.cell_dto import CellDTO -from visier_api_data_out.models.cell_distribution_bin_dto import CellDistributionBinDTO -from visier_api_data_out.models.cell_distribution_options_dto import CellDistributionOptionsDTO -from visier_api_data_out.models.cell_set_axis_dto import CellSetAxisDTO -from visier_api_data_out.models.cell_set_axis_position_dto import CellSetAxisPositionDTO -from visier_api_data_out.models.cell_set_dto import CellSetDTO -from visier_api_data_out.models.cohort_filter_dto import CohortFilterDTO -from visier_api_data_out.models.data_version_export_column_dto import DataVersionExportColumnDTO -from visier_api_data_out.models.data_version_export_dto import DataVersionExportDTO -from visier_api_data_out.models.data_version_export_data_version_summary_dto import DataVersionExportDataVersionSummaryDTO -from visier_api_data_out.models.data_version_export_data_versions_dto import DataVersionExportDataVersionsDTO -from visier_api_data_out.models.data_version_export_file_dto import DataVersionExportFileDTO -from visier_api_data_out.models.data_version_export_job_status_dto import DataVersionExportJobStatusDTO -from visier_api_data_out.models.data_version_export_part_file_dto import DataVersionExportPartFileDTO -from visier_api_data_out.models.data_version_export_schedule_job_request_dto import DataVersionExportScheduleJobRequestDTO -from visier_api_data_out.models.data_version_export_schedule_job_response_dto import DataVersionExportScheduleJobResponseDTO -from visier_api_data_out.models.data_version_export_table_dto import DataVersionExportTableDTO -from visier_api_data_out.models.data_version_exports_dto import DataVersionExportsDTO -from visier_api_data_out.models.dimension_member_reference_dto import DimensionMemberReferenceDTO -from visier_api_data_out.models.dimension_reference_dto import DimensionReferenceDTO -from visier_api_data_out.models.document_search_link_dto import DocumentSearchLinkDTO -from visier_api_data_out.models.download_source_files_dto import DownloadSourceFilesDTO -from visier_api_data_out.models.download_source_files_response_dto import DownloadSourceFilesResponseDTO +from visier_api_data_out.models.analysis_common_transfers_report_create_request_dto import AnalysisCommonTransfersReportCreateRequestDTO +from visier_api_data_out.models.analysis_common_transfers_report_dto import AnalysisCommonTransfersReportDTO +from visier_api_data_out.models.analysis_common_transfers_report_delete_success_dto import AnalysisCommonTransfersReportDeleteSuccessDTO +from visier_api_data_out.models.analysis_common_transfers_report_list_response_dto import AnalysisCommonTransfersReportListResponseDTO +from visier_api_data_out.models.analysis_common_transfers_vee_clarification_dto import AnalysisCommonTransfersVeeClarificationDTO +from visier_api_data_out.models.analysis_common_transfers_vee_conversation_state_dto import AnalysisCommonTransfersVeeConversationStateDTO +from visier_api_data_out.models.analysis_common_transfers_vee_corrections_dto import AnalysisCommonTransfersVeeCorrectionsDTO +from visier_api_data_out.models.analysis_common_transfers_vee_data_dto import AnalysisCommonTransfersVeeDataDTO +from visier_api_data_out.models.analysis_common_transfers_vee_feedback_dto import AnalysisCommonTransfersVeeFeedbackDTO +from visier_api_data_out.models.analysis_common_transfers_vee_options_dto import AnalysisCommonTransfersVeeOptionsDTO +from visier_api_data_out.models.analysis_common_transfers_vee_question_dto import AnalysisCommonTransfersVeeQuestionDTO +from visier_api_data_out.models.analysis_common_transfers_vee_response_dto import AnalysisCommonTransfersVeeResponseDTO +from visier_api_data_out.models.analysis_common_transfers_vee_response_schema_dto import AnalysisCommonTransfersVeeResponseSchemaDTO +from visier_api_data_out.models.analysis_common_transfers_vee_response_schema_reference_dto import AnalysisCommonTransfersVeeResponseSchemaReferenceDTO +from visier_api_data_out.models.analysis_common_transfers_vee_sample_question_dto import AnalysisCommonTransfersVeeSampleQuestionDTO +from visier_api_data_out.models.analysis_common_transfers_vee_sample_question_library_dto import AnalysisCommonTransfersVeeSampleQuestionLibraryDTO +from visier_api_data_out.models.analysis_common_transfers_vee_status_code_dto import AnalysisCommonTransfersVeeStatusCodeDTO +from visier_api_data_out.models.analysis_common_transfers_vee_visual_dto import AnalysisCommonTransfersVeeVisualDTO +from visier_api_data_out.models.analysis_common_transfers_vee_visual_options_dto import AnalysisCommonTransfersVeeVisualOptionsDTO +from visier_api_data_out.models.data_out_list_response import DataOutListResponse +from visier_api_data_out.models.dataservices_common_dimension_member_reference_dto import DataservicesCommonDimensionMemberReferenceDTO +from visier_api_data_out.models.dataservices_common_member_values_dto import DataservicesCommonMemberValuesDTO +from visier_api_data_out.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO +from visier_api_data_out.models.dataservices_datamodel_transfers_property_reference_dto import DataservicesDatamodelTransfersPropertyReferenceDTO +from visier_api_data_out.models.dataservices_datamodel_transfers_selection_concept_reference_dto import DataservicesDatamodelTransfersSelectionConceptReferenceDTO +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_dto import DataservicesQueryTransfersAggregationQueryDTO +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_execution_dto import DataservicesQueryTransfersAggregationQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_source_dto import DataservicesQueryTransfersAggregationQuerySourceDTO +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_source_metric_dto import DataservicesQueryTransfersAggregationQuerySourceMetricDTO +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_source_metrics_dto import DataservicesQueryTransfersAggregationQuerySourceMetricsDTO +from visier_api_data_out.models.dataservices_query_transfers_aggregation_type_parameter_value_dto import DataservicesQueryTransfersAggregationTypeParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_dto import DataservicesQueryTransfersCellDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_distribution_bin_dto import DataservicesQueryTransfersCellDistributionBinDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_distribution_options_dto import DataservicesQueryTransfersCellDistributionOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_set_axis_dto import DataservicesQueryTransfersCellSetAxisDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_set_axis_position_dto import DataservicesQueryTransfersCellSetAxisPositionDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_set_dto import DataservicesQueryTransfersCellSetDTO +from visier_api_data_out.models.dataservices_query_transfers_cohort_filter_dto import DataservicesQueryTransfersCohortFilterDTO +from visier_api_data_out.models.dataservices_query_transfers_internal_query_execution_options_dto import DataservicesQueryTransfersInternalQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_key_group_filter_dto import DataservicesQueryTransfersKeyGroupFilterDTO +from visier_api_data_out.models.dataservices_query_transfers_key_group_filter_item_dto import DataservicesQueryTransfersKeyGroupFilterItemDTO +from visier_api_data_out.models.dataservices_query_transfers_lineage_dto import DataservicesQueryTransfersLineageDTO +from visier_api_data_out.models.dataservices_query_transfers_list_query_execution_dto import DataservicesQueryTransfersListQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_transfers_list_query_execution_options_dto import DataservicesQueryTransfersListQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_list_query_source_dto import DataservicesQueryTransfersListQuerySourceDTO +from visier_api_data_out.models.dataservices_query_transfers_member_filter_dto import DataservicesQueryTransfersMemberFilterDTO +from visier_api_data_out.models.dataservices_query_transfers_member_parameter_value_dto import DataservicesQueryTransfersMemberParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_numeric_parameter_value_dto import DataservicesQueryTransfersNumericParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_plan_parameter_value_dto import DataservicesQueryTransfersPlanParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_property_column_dto import DataservicesQueryTransfersPropertyColumnDTO +from visier_api_data_out.models.dataservices_query_transfers_query_axis_dto import DataservicesQueryTransfersQueryAxisDTO +from visier_api_data_out.models.dataservices_query_transfers_query_axis_options_dto import DataservicesQueryTransfersQueryAxisOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_data_member_selection_dto import DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_leaf_selection_dto import DataservicesQueryTransfersQueryDimensionLeafSelectionDTO +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_level_property_dto import DataservicesQueryTransfersQueryDimensionLevelPropertyDTO +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_level_selection_dto import DataservicesQueryTransfersQueryDimensionLevelSelectionDTO +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_member_selection_dto import DataservicesQueryTransfersQueryDimensionMemberSelectionDTO +from visier_api_data_out.models.dataservices_query_transfers_query_execution_options_dto import DataservicesQueryTransfersQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_query_filter_dto import DataservicesQueryTransfersQueryFilterDTO +from visier_api_data_out.models.dataservices_query_transfers_query_member_map_property_dto import DataservicesQueryTransfersQueryMemberMapPropertyDTO +from visier_api_data_out.models.dataservices_query_transfers_query_member_map_selection_dto import DataservicesQueryTransfersQueryMemberMapSelectionDTO +from visier_api_data_out.models.dataservices_query_transfers_query_numeric_ranges_dto import DataservicesQueryTransfersQueryNumericRangesDTO +from visier_api_data_out.models.dataservices_query_transfers_query_parameter_value_dto import DataservicesQueryTransfersQueryParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_query_property_dto import DataservicesQueryTransfersQueryPropertyDTO +from visier_api_data_out.models.dataservices_query_transfers_query_time_interval_dto import DataservicesQueryTransfersQueryTimeIntervalDTO +from visier_api_data_out.models.dataservices_query_transfers_query_time_intervals_dto import DataservicesQueryTransfersQueryTimeIntervalsDTO +from visier_api_data_out.models.dataservices_query_transfers_snapshot_query_execution_dto import DataservicesQueryTransfersSnapshotQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_transfers_snapshot_query_execution_options_dto import DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_sort_option_dto import DataservicesQueryTransfersSortOptionDTO +from visier_api_data_out.models.dataservices_query_transfers_sql_like_query_execution_dto import DataservicesQueryTransfersSqlLikeQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_transfers_time_shift_dto import DataservicesQueryTransfersTimeShiftDTO +from visier_api_data_out.models.designer_transfers_data_version_export_column_dto import DesignerTransfersDataVersionExportColumnDTO +from visier_api_data_out.models.designer_transfers_data_version_export_dto import DesignerTransfersDataVersionExportDTO +from visier_api_data_out.models.designer_transfers_data_version_export_data_version_summary_dto import DesignerTransfersDataVersionExportDataVersionSummaryDTO +from visier_api_data_out.models.designer_transfers_data_version_export_data_versions_dto import DesignerTransfersDataVersionExportDataVersionsDTO +from visier_api_data_out.models.designer_transfers_data_version_export_file_dto import DesignerTransfersDataVersionExportFileDTO +from visier_api_data_out.models.designer_transfers_data_version_export_job_status_dto import DesignerTransfersDataVersionExportJobStatusDTO +from visier_api_data_out.models.designer_transfers_data_version_export_part_file_dto import DesignerTransfersDataVersionExportPartFileDTO +from visier_api_data_out.models.designer_transfers_data_version_export_schedule_job_request_dto import DesignerTransfersDataVersionExportScheduleJobRequestDTO +from visier_api_data_out.models.designer_transfers_data_version_export_schedule_job_response_dto import DesignerTransfersDataVersionExportScheduleJobResponseDTO +from visier_api_data_out.models.designer_transfers_data_version_export_table_dto import DesignerTransfersDataVersionExportTableDTO +from visier_api_data_out.models.designer_transfers_data_version_exports_dto import DesignerTransfersDataVersionExportsDTO +from visier_api_data_out.models.designer_transfers_download_source_files_dto import DesignerTransfersDownloadSourceFilesDTO +from visier_api_data_out.models.designer_transfers_download_source_files_response_dto import DesignerTransfersDownloadSourceFilesResponseDTO from visier_api_data_out.models.dv_export_status import DvExportStatus from visier_api_data_out.models.google_protobuf_any import GoogleProtobufAny -from visier_api_data_out.models.internal_query_execution_options_dto import InternalQueryExecutionOptionsDTO -from visier_api_data_out.models.key_group_filter_dto import KeyGroupFilterDTO -from visier_api_data_out.models.key_group_filter_item_dto import KeyGroupFilterItemDTO -from visier_api_data_out.models.lineage_dto import LineageDTO -from visier_api_data_out.models.list_query_execution_dto import ListQueryExecutionDTO -from visier_api_data_out.models.list_query_execution_options_dto import ListQueryExecutionOptionsDTO -from visier_api_data_out.models.list_query_source_dto import ListQuerySourceDTO -from visier_api_data_out.models.list_response import ListResponse -from visier_api_data_out.models.member_filter_dto import MemberFilterDTO -from visier_api_data_out.models.member_parameter_value_dto import MemberParameterValueDTO -from visier_api_data_out.models.member_values_dto import MemberValuesDTO -from visier_api_data_out.models.numeric_parameter_value_dto import NumericParameterValueDTO -from visier_api_data_out.models.plan_parameter_value_dto import PlanParameterValueDTO -from visier_api_data_out.models.property_column_dto import PropertyColumnDTO -from visier_api_data_out.models.property_reference_dto import PropertyReferenceDTO -from visier_api_data_out.models.query_axis_dto import QueryAxisDTO -from visier_api_data_out.models.query_axis_options_dto import QueryAxisOptionsDTO -from visier_api_data_out.models.query_dimension_data_member_selection_dto import QueryDimensionDataMemberSelectionDTO -from visier_api_data_out.models.query_dimension_leaf_selection_dto import QueryDimensionLeafSelectionDTO -from visier_api_data_out.models.query_dimension_level_property_dto import QueryDimensionLevelPropertyDTO -from visier_api_data_out.models.query_dimension_level_selection_dto import QueryDimensionLevelSelectionDTO -from visier_api_data_out.models.query_dimension_member_selection_dto import QueryDimensionMemberSelectionDTO -from visier_api_data_out.models.query_execution_options_dto import QueryExecutionOptionsDTO -from visier_api_data_out.models.query_filter_dto import QueryFilterDTO -from visier_api_data_out.models.query_member_map_property_dto import QueryMemberMapPropertyDTO -from visier_api_data_out.models.query_member_map_selection_dto import QueryMemberMapSelectionDTO -from visier_api_data_out.models.query_numeric_ranges_dto import QueryNumericRangesDTO -from visier_api_data_out.models.query_parameter_value_dto import QueryParameterValueDTO -from visier_api_data_out.models.query_property_dto import QueryPropertyDTO -from visier_api_data_out.models.query_time_interval_dto import QueryTimeIntervalDTO -from visier_api_data_out.models.query_time_intervals_dto import QueryTimeIntervalsDTO -from visier_api_data_out.models.report_create_request_dto import ReportCreateRequestDTO -from visier_api_data_out.models.report_dto import ReportDTO -from visier_api_data_out.models.report_delete_success_dto import ReportDeleteSuccessDTO -from visier_api_data_out.models.report_list_response_dto import ReportListResponseDTO -from visier_api_data_out.models.selection_concept_reference_dto import SelectionConceptReferenceDTO -from visier_api_data_out.models.simple_document_header_search_response_dto import SimpleDocumentHeaderSearchResponseDTO -from visier_api_data_out.models.simple_document_header_search_result_dto import SimpleDocumentHeaderSearchResultDTO -from visier_api_data_out.models.snapshot_query_execution_dto import SnapshotQueryExecutionDTO -from visier_api_data_out.models.snapshot_query_execution_options_dto import SnapshotQueryExecutionOptionsDTO -from visier_api_data_out.models.sort_option_dto import SortOptionDTO +from visier_api_data_out.models.servicing_publicapi_transfers_document_search_link_dto import ServicingPublicapiTransfersDocumentSearchLinkDTO +from visier_api_data_out.models.servicing_publicapi_transfers_simple_document_header_search_response_dto import ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO +from visier_api_data_out.models.servicing_publicapi_transfers_simple_document_header_search_result_dto import ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO from visier_api_data_out.models.sql_like200_response import SqlLike200Response -from visier_api_data_out.models.sql_like_query_execution_dto import SqlLikeQueryExecutionDTO from visier_api_data_out.models.status import Status +from visier_api_data_out.models.systemstatus_publicapi_transfers_vee_status_dto import SystemstatusPublicapiTransfersVeeStatusDTO from visier_api_data_out.models.table_response_dto import TableResponseDTO -from visier_api_data_out.models.time_shift_dto import TimeShiftDTO -from visier_api_data_out.models.vee_clarification_dto import VeeClarificationDTO -from visier_api_data_out.models.vee_conversation_state_dto import VeeConversationStateDTO -from visier_api_data_out.models.vee_corrections_dto import VeeCorrectionsDTO -from visier_api_data_out.models.vee_data_dto import VeeDataDTO -from visier_api_data_out.models.vee_feedback_dto import VeeFeedbackDTO -from visier_api_data_out.models.vee_options_dto import VeeOptionsDTO -from visier_api_data_out.models.vee_question_dto import VeeQuestionDTO -from visier_api_data_out.models.vee_response_dto import VeeResponseDTO -from visier_api_data_out.models.vee_response_schema_dto import VeeResponseSchemaDTO -from visier_api_data_out.models.vee_response_schema_reference_dto import VeeResponseSchemaReferenceDTO -from visier_api_data_out.models.vee_sample_question_dto import VeeSampleQuestionDTO -from visier_api_data_out.models.vee_sample_question_library_dto import VeeSampleQuestionLibraryDTO -from visier_api_data_out.models.vee_status_code_dto import VeeStatusCodeDTO -from visier_api_data_out.models.vee_status_dto import VeeStatusDTO -from visier_api_data_out.models.vee_visual_dto import VeeVisualDTO -from visier_api_data_out.models.vee_visual_options_dto import VeeVisualOptionsDTO diff --git a/src/visier_api_data_out/visier_api_data_out/models/aggregation_query_dto.py b/src/visier_api_data_out/visier_api_data_out/models/aggregation_query_dto.py deleted file mode 100644 index 0a3dd3b448..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/aggregation_query_dto.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.aggregation_query_source_dto import AggregationQuerySourceDTO -from visier_api_data_out.models.query_axis_dto import QueryAxisDTO -from visier_api_data_out.models.query_filter_dto import QueryFilterDTO -from visier_api_data_out.models.query_parameter_value_dto import QueryParameterValueDTO -from visier_api_data_out.models.query_time_intervals_dto import QueryTimeIntervalsDTO -from typing import Optional, Set -from typing_extensions import Self - -class AggregationQueryDTO(BaseModel): - """ - An AggregationQuery defines the data to query in an aggregation query and returns a `cell set` calculated from the selected data points. - """ # noqa: E501 - axes: Optional[List[QueryAxisDTO]] = Field(default=None, description="The objects by which to group the query. An axis defines the groups that the data belongs to. Omit `axes` if no grouping is required.") - filters: Optional[List[QueryFilterDTO]] = Field(default=None, description="The objects by which to filter the query, such as dimensions or concepts. A filter defines the population to retrieve data from. Omit `filters` if no filtering is required.") - parameter_values: Optional[List[QueryParameterValueDTO]] = Field(default=None, description="The values associated with parameters, if defined.", alias="parameterValues") - source: Optional[AggregationQuerySourceDTO] = Field(default=None, description="The source data, such as a metric or formula, to query.") - time_intervals: Optional[QueryTimeIntervalsDTO] = Field(default=None, description="The time intervals to query.", alias="timeIntervals") - __properties: ClassVar[List[str]] = ["axes", "filters", "parameterValues", "source", "timeIntervals"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AggregationQueryDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in axes (list) - _items = [] - if self.axes: - for _item_axes in self.axes: - if _item_axes: - _items.append(_item_axes.to_dict()) - _dict['axes'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in filters (list) - _items = [] - if self.filters: - for _item_filters in self.filters: - if _item_filters: - _items.append(_item_filters.to_dict()) - _dict['filters'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in parameter_values (list) - _items = [] - if self.parameter_values: - for _item_parameter_values in self.parameter_values: - if _item_parameter_values: - _items.append(_item_parameter_values.to_dict()) - _dict['parameterValues'] = _items - # override the default output from pydantic by calling `to_dict()` of source - if self.source: - _dict['source'] = self.source.to_dict() - # override the default output from pydantic by calling `to_dict()` of time_intervals - if self.time_intervals: - _dict['timeIntervals'] = self.time_intervals.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AggregationQueryDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "axes": [QueryAxisDTO.from_dict(_item) for _item in obj["axes"]] if obj.get("axes") is not None else None, - "filters": [QueryFilterDTO.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None, - "parameterValues": [QueryParameterValueDTO.from_dict(_item) for _item in obj["parameterValues"]] if obj.get("parameterValues") is not None else None, - "source": AggregationQuerySourceDTO.from_dict(obj["source"]) if obj.get("source") is not None else None, - "timeIntervals": QueryTimeIntervalsDTO.from_dict(obj["timeIntervals"]) if obj.get("timeIntervals") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/aggregation_query_execution_dto.py b/src/visier_api_data_out/visier_api_data_out/models/aggregation_query_execution_dto.py deleted file mode 100644 index 20808f9e75..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/aggregation_query_execution_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.aggregation_query_dto import AggregationQueryDTO -from visier_api_data_out.models.query_execution_options_dto import QueryExecutionOptionsDTO -from typing import Optional, Set -from typing_extensions import Self - -class AggregationQueryExecutionDTO(BaseModel): - """ - An AggregationQueryExecution provides instructions to perform your aggregation query. - """ # noqa: E501 - options: Optional[QueryExecutionOptionsDTO] = Field(default=None, description="Additional instructions for your query, such as a calendar type or conversion information.") - query: Optional[AggregationQueryDTO] = Field(default=None, description="The data to perform an aggregation on, such as a metric or formula. The query must include a time interval, and may optionally include filters and axes.") - __properties: ClassVar[List[str]] = ["options", "query"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AggregationQueryExecutionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of options - if self.options: - _dict['options'] = self.options.to_dict() - # override the default output from pydantic by calling `to_dict()` of query - if self.query: - _dict['query'] = self.query.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AggregationQueryExecutionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "options": QueryExecutionOptionsDTO.from_dict(obj["options"]) if obj.get("options") is not None else None, - "query": AggregationQueryDTO.from_dict(obj["query"]) if obj.get("query") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/aggregation_query_source_dto.py b/src/visier_api_data_out/visier_api_data_out/models/aggregation_query_source_dto.py deleted file mode 100644 index 4a10400733..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/aggregation_query_source_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.aggregation_query_source_metrics_dto import AggregationQuerySourceMetricsDTO -from typing import Optional, Set -from typing_extensions import Self - -class AggregationQuerySourceDTO(BaseModel): - """ - An AggregationQuerySource defines the source data to query in an aggregation query. - """ # noqa: E501 - formula: Optional[StrictStr] = Field(default=None, description="An ad-hoc metric formula. The response returns the results of the aggregate. See the formula dictionary in Visier to find functions and objects you can use in a formula.") - metric: Optional[StrictStr] = Field(default=None, description="The ID of an existing metric in your Visier solution. See `Metrics` to get the ID.") - metrics: Optional[AggregationQuerySourceMetricsDTO] = Field(default=None, description="The IDs of metrics to aggregate. All metrics in the query must reference the same analytic object. For example, you cannot query Headcount and Applicant Count because one uses the Employee subject and the other uses the Applicant subject. You can query Headcount and Employee Count for Women because both reference the Employee subject. Only available when the Accept header is text/csv. For more information, see `Aggregate`.") - __properties: ClassVar[List[str]] = ["formula", "metric", "metrics"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AggregationQuerySourceDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of metrics - if self.metrics: - _dict['metrics'] = self.metrics.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AggregationQuerySourceDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "formula": obj.get("formula"), - "metric": obj.get("metric"), - "metrics": AggregationQuerySourceMetricsDTO.from_dict(obj["metrics"]) if obj.get("metrics") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/aggregation_query_source_metric_dto.py b/src/visier_api_data_out/visier_api_data_out/models/aggregation_query_source_metric_dto.py deleted file mode 100644 index 163fca364e..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/aggregation_query_source_metric_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AggregationQuerySourceMetricDTO(BaseModel): - """ - The column definition for a single metric within a `metrics` query. - """ # noqa: E501 - column_name: Optional[StrictStr] = Field(default=None, description="The column name in the CSV file. Default is to use id as the column name.", alias="columnName") - formula: Optional[StrictStr] = Field(default=None, description="An ad-hoc metric formula. The response returns the results of the aggregate. See the formula dictionary in Visier to find functions and objects you can use in a formula.") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the metric. Note: See `Metrics` to get the ID. If columnName is omitted, id is the column name in the CSV file.") - qualifying_path: Optional[StrictStr] = Field(default=None, description="The base qualifying path to prefix the axes and filters' qualifying paths with. You must specify the qualifying path on a metric if the convergent analytic object of the metric doesn't match the starting object in the qualifying paths of the axes and filters. For example, consider a multi-metric query that contains metrics that count the number of applicants and requisitions, grouped by the country of the recruiter's direct manager. The following sample shows how to use qualifyingPath to specify the object reference traversal path from each metric's convergent analytic object to the start of the path for the axes. In this example, there is only one convergent analytic object. ``` \"source\": { \"metrics\": { \"columns\": [ { \"id\": \"employeeCount\" }, { \"id\": \"applicantCount\", \"qualifyingPath\": \"Applicant.Requisition.Recruiter\" }, { \"id\": \"requisitionCount\", \"qualifyingPath\": \"Requisition.Recruiter\" } ] } }, \"axes\": [ { \"dimensionLevelSelection\": { \"dimension\": { \"name\": \"Location\", \"qualifyingPath\": \"Employee.Direct_Manager\" }, \"levelIds\": [ \"Location_1\" ] } } ] ``` **Note:** * `employeeCount` doesn't need a `qualifyingPath` because it's already convergent with the start of the axis path. * The metrics' qualifying paths must provide the reference name that resolves to the first object of the axis' qualifying path as their last path segment. In this case, Recruiter is a named reference pointing to Employee. The final qualifying paths for the metrics are: * `employeeCount`: Employee.Direct_Manager * `applicantCount`: Applicant.Requisition.Recruiter.Direct_Manager * `requisitionCount`: Requisition.Recruiter.Direct_Manager", alias="qualifyingPath") - __properties: ClassVar[List[str]] = ["columnName", "formula", "id", "qualifyingPath"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AggregationQuerySourceMetricDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AggregationQuerySourceMetricDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "columnName": obj.get("columnName"), - "formula": obj.get("formula"), - "id": obj.get("id"), - "qualifyingPath": obj.get("qualifyingPath") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/aggregation_query_source_metrics_dto.py b/src/visier_api_data_out/visier_api_data_out/models/aggregation_query_source_metrics_dto.py deleted file mode 100644 index 519413dbae..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/aggregation_query_source_metrics_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.aggregation_query_source_metric_dto import AggregationQuerySourceMetricDTO -from typing import Optional, Set -from typing_extensions import Self - -class AggregationQuerySourceMetricsDTO(BaseModel): - """ - The IDs and column names of multiple metrics. **Note:** Only available when the `Accept` header is text/csv. For more information, see `Aggregate` - """ # noqa: E501 - columns: Optional[List[AggregationQuerySourceMetricDTO]] = Field(default=None, description="An array of metric columns.") - __properties: ClassVar[List[str]] = ["columns"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AggregationQuerySourceMetricsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in columns (list) - _items = [] - if self.columns: - for _item_columns in self.columns: - if _item_columns: - _items.append(_item_columns.to_dict()) - _dict['columns'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AggregationQuerySourceMetricsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "columns": [AggregationQuerySourceMetricDTO.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/aggregation_type_parameter_value_dto.py b/src/visier_api_data_out/visier_api_data_out/models/aggregation_type_parameter_value_dto.py deleted file mode 100644 index 72e3273ebe..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/aggregation_type_parameter_value_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AggregationTypeParameterValueDTO(BaseModel): - """ - The value for an aggregation parameter. - """ # noqa: E501 - aggregation_option_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the aggregation option.", alias="aggregationOptionId") - parameter_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the aggregation parameter.", alias="parameterId") - __properties: ClassVar[List[str]] = ["aggregationOptionId", "parameterId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AggregationTypeParameterValueDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AggregationTypeParameterValueDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "aggregationOptionId": obj.get("aggregationOptionId"), - "parameterId": obj.get("parameterId") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_report_create_request_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_report_create_request_dto.py new file mode 100644 index 0000000000..0f7d80b69a --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_report_create_request_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersReportCreateRequestDTO(BaseModel): + """ + The request to create a new report. + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="The localized description of the report.") + title: Optional[StrictStr] = Field(default=None, description="The localized title of the report.") + __properties: ClassVar[List[str]] = ["description", "title"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersReportCreateRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersReportCreateRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "title": obj.get("title") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_report_delete_success_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_report_delete_success_dto.py new file mode 100644 index 0000000000..e49f1aff02 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_report_delete_success_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersReportDeleteSuccessDTO(BaseModel): + """ + The report that was successfully deleted. + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the deleted report.") + __properties: ClassVar[List[str]] = ["id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersReportDeleteSuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersReportDeleteSuccessDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_report_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_report_dto.py new file mode 100644 index 0000000000..21df74d17a --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_report_dto.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersReportDTO(BaseModel): + """ + The information of a single report. + """ # noqa: E501 + allowed_actions: Optional[List[StrictStr]] = Field(default=None, description="The actions that you can perform on the report. Valid values are: - `duplicate`: The user can make their own copy of this report. - `delete`: The user can delete this report. - `edit`: The user can edit this report directly. - `download`: The user can download this report as a CSV. - `share`: The user can share this report with other users or user groups.", alias="allowedActions") + description: Optional[StrictStr] = Field(default=None, description="The localized description of the report.") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the report.") + is_owned_by_user: Optional[StrictBool] = Field(default=None, description="If `true`, you are the owner of the report.", alias="isOwnedByUser") + is_published_report: Optional[StrictBool] = Field(default=None, description="If `true`, the report is published through a project.", alias="isPublishedReport") + link: Optional[StrictStr] = Field(default=None, description="The link to the report.") + owner: Optional[StrictStr] = Field(default=None, description="The owner of the report.") + title: Optional[StrictStr] = Field(default=None, description="The localized title of the report.") + updated_time: Optional[StrictStr] = Field(default=None, description="The time in epoch milliseconds when the report was last updated.", alias="updatedTime") + __properties: ClassVar[List[str]] = ["allowedActions", "description", "id", "isOwnedByUser", "isPublishedReport", "link", "owner", "title", "updatedTime"] + + @field_validator('allowed_actions') + def allowed_actions_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['duplicate', 'delete', 'edit', 'download', 'share']): + raise ValueError("each list item must be one of ('duplicate', 'delete', 'edit', 'download', 'share')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersReportDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersReportDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowedActions": obj.get("allowedActions"), + "description": obj.get("description"), + "id": obj.get("id"), + "isOwnedByUser": obj.get("isOwnedByUser"), + "isPublishedReport": obj.get("isPublishedReport"), + "link": obj.get("link"), + "owner": obj.get("owner"), + "title": obj.get("title"), + "updatedTime": obj.get("updatedTime") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_report_list_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_report_list_response_dto.py new file mode 100644 index 0000000000..492b6d62d2 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_report_list_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.analysis_common_transfers_report_dto import AnalysisCommonTransfersReportDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersReportListResponseDTO(BaseModel): + """ + The information of all the reports you have access to in your tenant. + """ # noqa: E501 + reports: Optional[List[AnalysisCommonTransfersReportDTO]] = Field(default=None, description="A list of reports.") + __properties: ClassVar[List[str]] = ["reports"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersReportListResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in reports (list) + _items = [] + if self.reports: + for _item_reports in self.reports: + if _item_reports: + _items.append(_item_reports.to_dict()) + _dict['reports'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersReportListResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reports": [AnalysisCommonTransfersReportDTO.from_dict(_item) for _item in obj["reports"]] if obj.get("reports") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_clarification_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_clarification_dto.py new file mode 100644 index 0000000000..1a9da981ae --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_clarification_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersVeeClarificationDTO(BaseModel): + """ + AnalysisCommonTransfersVeeClarificationDTO + """ # noqa: E501 + attributes: Optional[List[StrictStr]] = Field(default=None, description="Suggested attributes to look at, that are similar or related to your question.") + dimensions: Optional[List[StrictStr]] = Field(default=None, description="Suggested dimensions to look at, that are similar or related to your question.") + filters: Optional[List[StrictStr]] = Field(default=None, description="Suggested filters that could be a better fit for the data.") + message: Optional[StrictStr] = Field(default=None, description="Returned if Vee needs more context to answer your question.") + metrics: Optional[List[StrictStr]] = Field(default=None, description="Suggested metrics to look at, that are similar or related to your question.") + questions: Optional[List[StrictStr]] = Field(default=None, description="Some related questions that could be helpful.") + __properties: ClassVar[List[str]] = ["attributes", "dimensions", "filters", "message", "metrics", "questions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeClarificationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeClarificationDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "attributes": obj.get("attributes"), + "dimensions": obj.get("dimensions"), + "filters": obj.get("filters"), + "message": obj.get("message"), + "metrics": obj.get("metrics"), + "questions": obj.get("questions") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_conversation_state_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_conversation_state_dto.py new file mode 100644 index 0000000000..985f9dedc8 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_conversation_state_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersVeeConversationStateDTO(BaseModel): + """ + AnalysisCommonTransfersVeeConversationStateDTO + """ # noqa: E501 + question_state: Optional[List[StrictStr]] = Field(default=None, description="The unique identifier of the conversation with Vee.", alias="questionState") + __properties: ClassVar[List[str]] = ["questionState"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeConversationStateDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeConversationStateDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "questionState": obj.get("questionState") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_corrections_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_corrections_dto.py new file mode 100644 index 0000000000..38b9199c61 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_corrections_dto.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.analysis_common_transfers_vee_clarification_dto import AnalysisCommonTransfersVeeClarificationDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersVeeCorrectionsDTO(BaseModel): + """ + AnalysisCommonTransfersVeeCorrectionsDTO + """ # noqa: E501 + clarifications: Optional[List[AnalysisCommonTransfersVeeClarificationDTO]] = Field(default=None, description="A list of clarifying questions if Vee needs more context to answer your question; for example, if asking about someone named Adam, Vee might clarify which Adam by asking for Adam's email address.") + warning: Optional[List[StrictStr]] = Field(default=None, description="A list of warnings from Vee that accompanies an unsure answer; for example, Vee might return a close match warning if Vee finds multiple employees named Adam that relate to your question.") + __properties: ClassVar[List[str]] = ["clarifications", "warning"] + + @field_validator('warning') + def warning_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['VEE_NO_WARNING', 'VEE_WARNING_RESPONSE_NOT_FOUND', 'VEE_WARNING_RESPONSE_LOW_CONFIDENCE', 'VEE_WARNING_RESPONSE_FOUND_CLOSE_MATCH', 'VEE_WARNING_NO_ACCESS', 'VEE_WARNING_TIME_SELECTION_ADJUSTED', 'VEE_WARNING_FILTER_DROPPED']): + raise ValueError("each list item must be one of ('VEE_NO_WARNING', 'VEE_WARNING_RESPONSE_NOT_FOUND', 'VEE_WARNING_RESPONSE_LOW_CONFIDENCE', 'VEE_WARNING_RESPONSE_FOUND_CLOSE_MATCH', 'VEE_WARNING_NO_ACCESS', 'VEE_WARNING_TIME_SELECTION_ADJUSTED', 'VEE_WARNING_FILTER_DROPPED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeCorrectionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in clarifications (list) + _items = [] + if self.clarifications: + for _item_clarifications in self.clarifications: + if _item_clarifications: + _items.append(_item_clarifications.to_dict()) + _dict['clarifications'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeCorrectionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clarifications": [AnalysisCommonTransfersVeeClarificationDTO.from_dict(_item) for _item in obj["clarifications"]] if obj.get("clarifications") is not None else None, + "warning": obj.get("warning") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_data_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_data_dto.py new file mode 100644 index 0000000000..0f9c056f5d --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_data_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersVeeDataDTO(BaseModel): + """ + AnalysisCommonTransfersVeeDataDTO + """ # noqa: E501 + context: Optional[StrictStr] = Field(default=None, description="The filter applied to the visualization generated by Vee. For example, a time filter of April 2024.") + data_json: Optional[StrictStr] = Field(default=None, description="A JSON string of fields and numerical values representing the data contributing to Vee's answer. For example, the number of employees per gender in Vee's answer.", alias="dataJson") + __properties: ClassVar[List[str]] = ["context", "dataJson"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeDataDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeDataDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "context": obj.get("context"), + "dataJson": obj.get("dataJson") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_feedback_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_feedback_dto.py new file mode 100644 index 0000000000..1bc2ad0a02 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_feedback_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.analysis_common_transfers_vee_response_dto import AnalysisCommonTransfersVeeResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersVeeFeedbackDTO(BaseModel): + """ + The request body fields to submit Vee feedback. + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="A description of how Vee should have answered the question or how Vee can improve the answer; for example, \"Expected Headcount metric, but Vee returned Average Headcount\".") + is_approved: Optional[StrictBool] = Field(default=None, description="If `true`, Vee answered the question correctly. If `false`, Vee's answer was incorrect or lacked details.", alias="isApproved") + response: Optional[AnalysisCommonTransfersVeeResponseDTO] = Field(default=None, description="Your feedback about Vee's answer. Include the response object from the `/question` call that you want to provide feedback about.") + __properties: ClassVar[List[str]] = ["description", "isApproved", "response"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeFeedbackDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of response + if self.response: + _dict['response'] = self.response.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeFeedbackDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "isApproved": obj.get("isApproved"), + "response": AnalysisCommonTransfersVeeResponseDTO.from_dict(obj["response"]) if obj.get("response") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_options_dto.py new file mode 100644 index 0000000000..7b1b7611d2 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_options_dto.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.analysis_common_transfers_vee_visual_options_dto import AnalysisCommonTransfersVeeVisualOptionsDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersVeeOptionsDTO(BaseModel): + """ + AnalysisCommonTransfersVeeOptionsDTO + """ # noqa: E501 + data_format: Optional[StrictStr] = Field(default=None, description="The format to return visualization data in. Valid values: `json`.", alias="dataFormat") + include_data: Optional[StrictBool] = Field(default=None, description="If `true`, returns additional data relevant to the question, including `dataJson` (visualization data) and `context` (filters applied to the visualization). Default is `false`.", alias="includeData") + include_reworded_question: Optional[StrictBool] = Field(default=None, description="If `true`, returns Vee's plain language interpretation of the original question. For example, if you asked \"what is the headcount by gender in each org?\", Vee might reword the question as \"What is the gender breakdown of our workforce by organization this month?\". Default is `false`.", alias="includeRewordedQuestion") + include_visual: Optional[StrictBool] = Field(default=None, description="If `true`, returns a base64 string-encoded PNG of a rendered visualization with Vee's answer. Default is `false`.", alias="includeVisual") + visual_options: Optional[AnalysisCommonTransfersVeeVisualOptionsDTO] = Field(default=None, description="Specify how to render the visualization.", alias="visualOptions") + __properties: ClassVar[List[str]] = ["dataFormat", "includeData", "includeRewordedQuestion", "includeVisual", "visualOptions"] + + @field_validator('data_format') + def data_format_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['json']): + raise ValueError("must be one of enum values ('json')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of visual_options + if self.visual_options: + _dict['visualOptions'] = self.visual_options.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeOptionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataFormat": obj.get("dataFormat"), + "includeData": obj.get("includeData"), + "includeRewordedQuestion": obj.get("includeRewordedQuestion"), + "includeVisual": obj.get("includeVisual"), + "visualOptions": AnalysisCommonTransfersVeeVisualOptionsDTO.from_dict(obj["visualOptions"]) if obj.get("visualOptions") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_question_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_question_dto.py new file mode 100644 index 0000000000..649b8deecb --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_question_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.analysis_common_transfers_vee_conversation_state_dto import AnalysisCommonTransfersVeeConversationStateDTO +from visier_api_data_out.models.analysis_common_transfers_vee_options_dto import AnalysisCommonTransfersVeeOptionsDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersVeeQuestionDTO(BaseModel): + """ + The request body fields to ask Vee a question. + """ # noqa: E501 + conversation_state: Optional[AnalysisCommonTransfersVeeConversationStateDTO] = Field(default=None, description="The unique identifier of the conversation with Vee. If empty, starts a new conversation with Vee. If asking a follow-up question or continuing a conversation with Vee, specify the `conversationState` object from the question's response. To submit feedback about Vee's answer, copy the entire response into your `/feedback` call.", alias="conversationState") + max_view_details_members: Optional[StrictInt] = Field(default=None, description="maxViewDetailsMembers to specify the maximum of view details members", alias="maxViewDetailsMembers") + options: Optional[AnalysisCommonTransfersVeeOptionsDTO] = Field(default=None, description="Options to specify how Vee should respond to a question.") + question: Optional[StrictStr] = Field(default=None, description="The question to ask Vee. If asking a follow-up question or continuing a conversation with Vee, specify the `conversationState` object from the question's response.") + __properties: ClassVar[List[str]] = ["conversationState", "maxViewDetailsMembers", "options", "question"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeQuestionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of conversation_state + if self.conversation_state: + _dict['conversationState'] = self.conversation_state.to_dict() + # override the default output from pydantic by calling `to_dict()` of options + if self.options: + _dict['options'] = self.options.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeQuestionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "conversationState": AnalysisCommonTransfersVeeConversationStateDTO.from_dict(obj["conversationState"]) if obj.get("conversationState") is not None else None, + "maxViewDetailsMembers": obj.get("maxViewDetailsMembers"), + "options": AnalysisCommonTransfersVeeOptionsDTO.from_dict(obj["options"]) if obj.get("options") is not None else None, + "question": obj.get("question") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_response_dto.py new file mode 100644 index 0000000000..a11945e7b9 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_response_dto.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.analysis_common_transfers_vee_conversation_state_dto import AnalysisCommonTransfersVeeConversationStateDTO +from visier_api_data_out.models.analysis_common_transfers_vee_corrections_dto import AnalysisCommonTransfersVeeCorrectionsDTO +from visier_api_data_out.models.analysis_common_transfers_vee_data_dto import AnalysisCommonTransfersVeeDataDTO +from visier_api_data_out.models.analysis_common_transfers_vee_response_schema_dto import AnalysisCommonTransfersVeeResponseSchemaDTO +from visier_api_data_out.models.analysis_common_transfers_vee_status_code_dto import AnalysisCommonTransfersVeeStatusCodeDTO +from visier_api_data_out.models.analysis_common_transfers_vee_visual_dto import AnalysisCommonTransfersVeeVisualDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersVeeResponseDTO(BaseModel): + """ + The response after asking Vee a question. + """ # noqa: E501 + chart_url: Optional[StrictStr] = Field(default=None, description="A URL to view the visualization in Visier.", alias="chartUrl") + conversation_state: Optional[AnalysisCommonTransfersVeeConversationStateDTO] = Field(default=None, description="The current conversation's details. To ask a follow-up question or continue the conversation with Vee, include the `conversationState` from the response in your next `/question` call. To submit feedback about Vee's answer, copy the entire response into your `/feedback` call.", alias="conversationState") + corrections: Optional[List[AnalysisCommonTransfersVeeCorrectionsDTO]] = Field(default=None, description="A list of corrections and clarifications if the question was ambiguous or Vee was unsure in the answer.") + data: Optional[AnalysisCommonTransfersVeeDataDTO] = Field(default=None, description="Returned if `includeData` is `true`. Provides additional data relevant to the question, such as the visualization data and any filters applied to the visualization.") + narrative: Optional[StrictStr] = Field(default=None, description="Vee's answer to the question.") + reworded_question: Optional[StrictStr] = Field(default=None, description="Vee's plain language interpretation of the original question. For example, if you asked \"what is the headcount by gender in each org?\", Vee might reword the question as \"What is the gender breakdown of our workforce by organization this month?\".", alias="rewordedQuestion") + var_schema: Optional[AnalysisCommonTransfersVeeResponseSchemaDTO] = Field(default=None, description="The metrics, dimensions, and concepts that contribute to Vee's answer.", alias="schema") + status_code: Optional[AnalysisCommonTransfersVeeStatusCodeDTO] = Field(default=None, description="A status code indicating whether or not Vee successfully answered the question.", alias="statusCode") + visual: Optional[AnalysisCommonTransfersVeeVisualDTO] = Field(default=None, description="A base64 string-encoded PNG of a visualization generated by Vee to answer a question. For example, Vee can return a Breakdown visualization if asked about the headcount in each organization.") + __properties: ClassVar[List[str]] = ["chartUrl", "conversationState", "corrections", "data", "narrative", "rewordedQuestion", "schema", "statusCode", "visual"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of conversation_state + if self.conversation_state: + _dict['conversationState'] = self.conversation_state.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in corrections (list) + _items = [] + if self.corrections: + for _item_corrections in self.corrections: + if _item_corrections: + _items.append(_item_corrections.to_dict()) + _dict['corrections'] = _items + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of var_schema + if self.var_schema: + _dict['schema'] = self.var_schema.to_dict() + # override the default output from pydantic by calling `to_dict()` of status_code + if self.status_code: + _dict['statusCode'] = self.status_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of visual + if self.visual: + _dict['visual'] = self.visual.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "chartUrl": obj.get("chartUrl"), + "conversationState": AnalysisCommonTransfersVeeConversationStateDTO.from_dict(obj["conversationState"]) if obj.get("conversationState") is not None else None, + "corrections": [AnalysisCommonTransfersVeeCorrectionsDTO.from_dict(_item) for _item in obj["corrections"]] if obj.get("corrections") is not None else None, + "data": AnalysisCommonTransfersVeeDataDTO.from_dict(obj["data"]) if obj.get("data") is not None else None, + "narrative": obj.get("narrative"), + "rewordedQuestion": obj.get("rewordedQuestion"), + "schema": AnalysisCommonTransfersVeeResponseSchemaDTO.from_dict(obj["schema"]) if obj.get("schema") is not None else None, + "statusCode": AnalysisCommonTransfersVeeStatusCodeDTO.from_dict(obj["statusCode"]) if obj.get("statusCode") is not None else None, + "visual": AnalysisCommonTransfersVeeVisualDTO.from_dict(obj["visual"]) if obj.get("visual") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_response_schema_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_response_schema_dto.py new file mode 100644 index 0000000000..bf4a222f5b --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_response_schema_dto.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.analysis_common_transfers_vee_response_schema_reference_dto import AnalysisCommonTransfersVeeResponseSchemaReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersVeeResponseSchemaDTO(BaseModel): + """ + AnalysisCommonTransfersVeeResponseSchemaDTO + """ # noqa: E501 + concepts: Optional[List[AnalysisCommonTransfersVeeResponseSchemaReferenceDTO]] = Field(default=None, description="A list of the concepts that contribute to Vee's answer.") + dimensions: Optional[List[AnalysisCommonTransfersVeeResponseSchemaReferenceDTO]] = Field(default=None, description="A list of the dimensions that contribute to Vee's answer.") + metrics: Optional[List[StrictStr]] = Field(default=None, description="A list of the metrics that contribute to Vee's answer.") + __properties: ClassVar[List[str]] = ["concepts", "dimensions", "metrics"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeResponseSchemaDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in concepts (list) + _items = [] + if self.concepts: + for _item_concepts in self.concepts: + if _item_concepts: + _items.append(_item_concepts.to_dict()) + _dict['concepts'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in dimensions (list) + _items = [] + if self.dimensions: + for _item_dimensions in self.dimensions: + if _item_dimensions: + _items.append(_item_dimensions.to_dict()) + _dict['dimensions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeResponseSchemaDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "concepts": [AnalysisCommonTransfersVeeResponseSchemaReferenceDTO.from_dict(_item) for _item in obj["concepts"]] if obj.get("concepts") is not None else None, + "dimensions": [AnalysisCommonTransfersVeeResponseSchemaReferenceDTO.from_dict(_item) for _item in obj["dimensions"]] if obj.get("dimensions") is not None else None, + "metrics": obj.get("metrics") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_response_schema_reference_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_response_schema_reference_dto.py new file mode 100644 index 0000000000..fb6af8b5bc --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_response_schema_reference_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersVeeResponseSchemaReferenceDTO(BaseModel): + """ + AnalysisCommonTransfersVeeResponseSchemaReferenceDTO + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="The name of an attribute in the visualization; for example, Gender.") + paths: Optional[List[StrictStr]] = Field(default=None, description="The hierarchy path of an attribute in the visualization; for example, Employee.Gender.") + __properties: ClassVar[List[str]] = ["name", "paths"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeResponseSchemaReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeResponseSchemaReferenceDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "paths": obj.get("paths") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_sample_question_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_sample_question_dto.py new file mode 100644 index 0000000000..2f65d73590 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_sample_question_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersVeeSampleQuestionDTO(BaseModel): + """ + AnalysisCommonTransfersVeeSampleQuestionDTO + """ # noqa: E501 + category_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the question category.", alias="categoryId") + is_assigned_to_user: Optional[StrictBool] = Field(default=None, description="If `true`, the sample question is assigned to at least one of the user's user groups.", alias="isAssignedToUser") + question: Optional[StrictStr] = Field(default=None, description="A question in plain language.") + question_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the sample question.", alias="questionId") + __properties: ClassVar[List[str]] = ["categoryId", "isAssignedToUser", "question", "questionId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeSampleQuestionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeSampleQuestionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "categoryId": obj.get("categoryId"), + "isAssignedToUser": obj.get("isAssignedToUser"), + "question": obj.get("question"), + "questionId": obj.get("questionId") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_sample_question_library_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_sample_question_library_dto.py new file mode 100644 index 0000000000..ad325c39e2 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_sample_question_library_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.analysis_common_transfers_vee_sample_question_dto import AnalysisCommonTransfersVeeSampleQuestionDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersVeeSampleQuestionLibraryDTO(BaseModel): + """ + A list of sample questions to ask Vee. + """ # noqa: E501 + questions: Optional[List[AnalysisCommonTransfersVeeSampleQuestionDTO]] = Field(default=None, description="A list of sample questions to help your users start using Vee.") + __properties: ClassVar[List[str]] = ["questions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeSampleQuestionLibraryDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in questions (list) + _items = [] + if self.questions: + for _item_questions in self.questions: + if _item_questions: + _items.append(_item_questions.to_dict()) + _dict['questions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeSampleQuestionLibraryDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "questions": [AnalysisCommonTransfersVeeSampleQuestionDTO.from_dict(_item) for _item in obj["questions"]] if obj.get("questions") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_status_code_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_status_code_dto.py new file mode 100644 index 0000000000..079c0de479 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_status_code_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersVeeStatusCodeDTO(BaseModel): + """ + AnalysisCommonTransfersVeeStatusCodeDTO + """ # noqa: E501 + status_code: Optional[StrictStr] = Field(default=None, description="A status code indicating whether or not Vee successfully answered the question.", alias="statusCode") + status_msg: Optional[StrictStr] = Field(default=None, description="Additional information about whether or not Vee successfully answered the question.", alias="statusMsg") + __properties: ClassVar[List[str]] = ["statusCode", "statusMsg"] + + @field_validator('status_code') + def status_code_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['UNDEFINED', 'VEE_API_SUCCESS', 'VEE_API_WARNING', 'VEE_API_ERROR']): + raise ValueError("must be one of enum values ('UNDEFINED', 'VEE_API_SUCCESS', 'VEE_API_WARNING', 'VEE_API_ERROR')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeStatusCodeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeStatusCodeDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "statusCode": obj.get("statusCode"), + "statusMsg": obj.get("statusMsg") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_visual_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_visual_dto.py new file mode 100644 index 0000000000..7ff7c51ff4 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_visual_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersVeeVisualDTO(BaseModel): + """ + AnalysisCommonTransfersVeeVisualDTO + """ # noqa: E501 + context: Optional[StrictStr] = Field(default=None, description="Any filters applied to the visualization. For example, a time filter of April 2024.") + image: Optional[StrictStr] = Field(default=None, description="A PNG visualization encoded in a base64 string.") + title: Optional[StrictStr] = Field(default=None, description="The visualization title.") + __properties: ClassVar[List[str]] = ["context", "image", "title"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeVisualDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeVisualDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "context": obj.get("context"), + "image": obj.get("image"), + "title": obj.get("title") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_visual_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_visual_options_dto.py new file mode 100644 index 0000000000..26c29f9561 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_vee_visual_options_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonTransfersVeeVisualOptionsDTO(BaseModel): + """ + AnalysisCommonTransfersVeeVisualOptionsDTO + """ # noqa: E501 + height: Optional[StrictInt] = Field(default=None, description="The pixel height of the rendered visualization. Default is 338. Valid values are between 90 and 900.") + width: Optional[StrictInt] = Field(default=None, description="The pixel width of the rendered visualization. Default is 600. Valid values are between 160 and 1600.") + __properties: ClassVar[List[str]] = ["height", "width"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeVisualOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonTransfersVeeVisualOptionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "height": obj.get("height"), + "width": obj.get("width") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/cell_distribution_bin_dto.py b/src/visier_api_data_out/visier_api_data_out/models/cell_distribution_bin_dto.py deleted file mode 100644 index 6015250e44..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/cell_distribution_bin_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CellDistributionBinDTO(BaseModel): - """ - A cell distribution bin. Each bin has a metric value (of the bin) and the number of observations contributing to the bin. - """ # noqa: E501 - support: Optional[StrictStr] = None - value: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["support", "value"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CellDistributionBinDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CellDistributionBinDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "support": obj.get("support"), - "value": obj.get("value") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/cell_distribution_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/cell_distribution_options_dto.py deleted file mode 100644 index bed5f6c9e7..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/cell_distribution_options_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CellDistributionOptionsDTO(BaseModel): - """ - Cell distribution options for queries. Include with aggregation queries to enable distribution calculation per cell. - """ # noqa: E501 - bin_count: Optional[StrictInt] = Field(default=None, description="The number of bins to return, minimum of 2, and a maximum of 100.", alias="binCount") - __properties: ClassVar[List[str]] = ["binCount"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CellDistributionOptionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CellDistributionOptionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "binCount": obj.get("binCount") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/cell_dto.py b/src/visier_api_data_out/visier_api_data_out/models/cell_dto.py deleted file mode 100644 index b743243de9..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/cell_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.cell_distribution_bin_dto import CellDistributionBinDTO -from typing import Optional, Set -from typing_extensions import Self - -class CellDTO(BaseModel): - """ - An individual value in a cell set. - """ # noqa: E501 - coordinates: Optional[List[StrictInt]] = Field(default=None, description="A list of integers representing the coordinates of this cell, identifying its position along each axis.") - distribution: Optional[List[CellDistributionBinDTO]] = Field(default=None, description="The optional distribution of this cell. This will be populated if distribution calculation is requested, and supported by the query.") - support: Optional[StrictStr] = Field(default=None, description="The number of data points contributing to this cell.") - value: Optional[StrictStr] = Field(default=None, description="The value of the cell.") - __properties: ClassVar[List[str]] = ["coordinates", "distribution", "support", "value"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CellDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in distribution (list) - _items = [] - if self.distribution: - for _item_distribution in self.distribution: - if _item_distribution: - _items.append(_item_distribution.to_dict()) - _dict['distribution'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CellDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "coordinates": obj.get("coordinates"), - "distribution": [CellDistributionBinDTO.from_dict(_item) for _item in obj["distribution"]] if obj.get("distribution") is not None else None, - "support": obj.get("support"), - "value": obj.get("value") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/cell_set_axis_dto.py b/src/visier_api_data_out/visier_api_data_out/models/cell_set_axis_dto.py deleted file mode 100644 index 93272ca0a7..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/cell_set_axis_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.cell_set_axis_position_dto import CellSetAxisPositionDTO -from visier_api_data_out.models.dimension_reference_dto import DimensionReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class CellSetAxisDTO(BaseModel): - """ - The axis of a cell set associated with a dimension. - """ # noqa: E501 - dimension: Optional[DimensionReferenceDTO] = Field(default=None, description="The dimension associated with the axis.") - positions: Optional[List[CellSetAxisPositionDTO]] = Field(default=None, description="A list of paths that represent the data's positions along the axis.") - __properties: ClassVar[List[str]] = ["dimension", "positions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CellSetAxisDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of dimension - if self.dimension: - _dict['dimension'] = self.dimension.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in positions (list) - _items = [] - if self.positions: - for _item_positions in self.positions: - if _item_positions: - _items.append(_item_positions.to_dict()) - _dict['positions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CellSetAxisDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimension": DimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None, - "positions": [CellSetAxisPositionDTO.from_dict(_item) for _item in obj["positions"]] if obj.get("positions") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/cell_set_axis_position_dto.py b/src/visier_api_data_out/visier_api_data_out/models/cell_set_axis_position_dto.py deleted file mode 100644 index 8d191d8e68..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/cell_set_axis_position_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CellSetAxisPositionDTO(BaseModel): - """ - The position along the axis of a cell set. - """ # noqa: E501 - display_name: Optional[StrictStr] = Field(default=None, description="The display name of the position. This is optional and is omitted if unavailable or not requested.", alias="displayName") - display_name_path: Optional[List[StrictStr]] = Field(default=None, description="Optional display name path of the member.", alias="displayNamePath") - path: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing the members within a dimension path. For example, a dimension for Location may have the paths \"Canada, BC, Vancouver\" and \"US, California, San Francisco\".") - __properties: ClassVar[List[str]] = ["displayName", "displayNamePath", "path"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CellSetAxisPositionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CellSetAxisPositionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "displayName": obj.get("displayName"), - "displayNamePath": obj.get("displayNamePath"), - "path": obj.get("path") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/cell_set_dto.py b/src/visier_api_data_out/visier_api_data_out/models/cell_set_dto.py deleted file mode 100644 index 1e3327c87f..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/cell_set_dto.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.cell_dto import CellDTO -from visier_api_data_out.models.cell_set_axis_dto import CellSetAxisDTO -from typing import Optional, Set -from typing_extensions import Self - -class CellSetDTO(BaseModel): - """ - The set of cells returned from executing an aggregation query. A CellSet represents a structured, multidimensional array of values. - """ # noqa: E501 - axes: Optional[List[CellSetAxisDTO]] = Field(default=None, description="The set of axes for the cell set that represent the objects the data is grouped by.") - cells: Optional[List[CellDTO]] = Field(default=None, description="The set of cells that represent the result of your query.") - lineage: Optional[LineageDTO] = Field(default=None, description="Lineage information for this cell set. This can be omitted if the cell has no lineage or the user did not request lineage information.") - __properties: ClassVar[List[str]] = ["axes", "cells", "lineage"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CellSetDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in axes (list) - _items = [] - if self.axes: - for _item_axes in self.axes: - if _item_axes: - _items.append(_item_axes.to_dict()) - _dict['axes'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in cells (list) - _items = [] - if self.cells: - for _item_cells in self.cells: - if _item_cells: - _items.append(_item_cells.to_dict()) - _dict['cells'] = _items - # override the default output from pydantic by calling `to_dict()` of lineage - if self.lineage: - _dict['lineage'] = self.lineage.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CellSetDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "axes": [CellSetAxisDTO.from_dict(_item) for _item in obj["axes"]] if obj.get("axes") is not None else None, - "cells": [CellDTO.from_dict(_item) for _item in obj["cells"]] if obj.get("cells") is not None else None, - "lineage": LineageDTO.from_dict(obj["lineage"]) if obj.get("lineage") is not None else None - }) - return _obj - -from visier_api_data_out.models.lineage_dto import LineageDTO -# TODO: Rewrite to not use raise_errors -CellSetDTO.model_rebuild(raise_errors=False) - diff --git a/src/visier_api_data_out/visier_api_data_out/models/cohort_filter_dto.py b/src/visier_api_data_out/visier_api_data_out/models/cohort_filter_dto.py deleted file mode 100644 index 2e73985027..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/cohort_filter_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.key_group_filter_dto import KeyGroupFilterDTO -from visier_api_data_out.models.query_time_interval_dto import QueryTimeIntervalDTO -from typing import Optional, Set -from typing_extensions import Self - -class CohortFilterDTO(BaseModel): - """ - Use a cohort filter to define a population as it existed during a specific time period. Cohort filters allow you to define a population in terms of a collection of filters, known as a key group. The cohort's defined time interval is independent of the query's time. The cohort's time interval is the time at which the key group should be applied. Cohorts are typically used to follow populations and understand changes to the population over time, such as promotion and resignation rates. - """ # noqa: E501 - exclude: Optional[StrictBool] = Field(default=None, description="If true, the population is defined by those excluded by the filters. Default is false.") - key_group: Optional[KeyGroupFilterDTO] = Field(default=None, description="A key group is a collection of filters that define the shape of the analysis population.", alias="keyGroup") - time_interval: Optional[QueryTimeIntervalDTO] = Field(default=None, description="The time at which to apply the key group, such as a specific day or period of months.", alias="timeInterval") - __properties: ClassVar[List[str]] = ["exclude", "keyGroup", "timeInterval"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CohortFilterDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of key_group - if self.key_group: - _dict['keyGroup'] = self.key_group.to_dict() - # override the default output from pydantic by calling `to_dict()` of time_interval - if self.time_interval: - _dict['timeInterval'] = self.time_interval.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CohortFilterDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "exclude": obj.get("exclude"), - "keyGroup": KeyGroupFilterDTO.from_dict(obj["keyGroup"]) if obj.get("keyGroup") is not None else None, - "timeInterval": QueryTimeIntervalDTO.from_dict(obj["timeInterval"]) if obj.get("timeInterval") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/data_out_list_response.py b/src/visier_api_data_out/visier_api_data_out/models/data_out_list_response.py new file mode 100644 index 0000000000..4703a73ddd --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/data_out_list_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.google_protobuf_any import GoogleProtobufAny +from typing import Optional, Set +from typing_extensions import Self + +class DataOutListResponse(BaseModel): + """ + DataOutListResponse + """ # noqa: E501 + header: Optional[GoogleProtobufAny] = None + rows: Optional[List[GoogleProtobufAny]] = None + __properties: ClassVar[List[str]] = ["header", "rows"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataOutListResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of header + if self.header: + _dict['header'] = self.header.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in rows (list) + _items = [] + if self.rows: + for _item_rows in self.rows: + if _item_rows: + _items.append(_item_rows.to_dict()) + _dict['rows'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataOutListResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "header": GoogleProtobufAny.from_dict(obj["header"]) if obj.get("header") is not None else None, + "rows": [GoogleProtobufAny.from_dict(_item) for _item in obj["rows"]] if obj.get("rows") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_column_dto.py b/src/visier_api_data_out/visier_api_data_out/models/data_version_export_column_dto.py deleted file mode 100644 index 107500dda6..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_column_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataVersionExportColumnDTO(BaseModel): - """ - DataVersionExportColumnDTO - """ # noqa: E501 - allows_null: Optional[StrictBool] = Field(default=None, description="If `true`, the column allows null values.", alias="allowsNull") - data_type: Optional[StrictStr] = Field(default=None, description="The column's data type. Possible data types are string, integer, number, date, Boolean.", alias="dataType") - is_primary_key_component: Optional[StrictBool] = Field(default=None, description="If `true`, the column is part of the primary key.", alias="isPrimaryKeyComponent") - name: Optional[StrictStr] = Field(default=None, description="The column's name.") - __properties: ClassVar[List[str]] = ["allowsNull", "dataType", "isPrimaryKeyComponent", "name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataVersionExportColumnDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataVersionExportColumnDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "allowsNull": obj.get("allowsNull"), - "dataType": obj.get("dataType"), - "isPrimaryKeyComponent": obj.get("isPrimaryKeyComponent"), - "name": obj.get("name") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_data_version_summary_dto.py b/src/visier_api_data_out/visier_api_data_out/models/data_version_export_data_version_summary_dto.py deleted file mode 100644 index 3089a55945..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_data_version_summary_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataVersionExportDataVersionSummaryDTO(BaseModel): - """ - DataVersionExportDataVersionSummaryDTO - """ # noqa: E501 - created: Optional[StrictStr] = Field(default=None, description="The date that the data version was generated, in milliseconds since 1970-01-01T00:00:00Z.") - data_category: Optional[StrictStr] = Field(default=None, description="The data category that the data version belongs to. If empty, the data version belongs to the default data category.", alias="dataCategory") - data_version: Optional[StrictStr] = Field(default=None, description="The data version number.", alias="dataVersion") - __properties: ClassVar[List[str]] = ["created", "dataCategory", "dataVersion"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataVersionExportDataVersionSummaryDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataVersionExportDataVersionSummaryDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "created": obj.get("created"), - "dataCategory": obj.get("dataCategory"), - "dataVersion": obj.get("dataVersion") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_data_versions_dto.py b/src/visier_api_data_out/visier_api_data_out/models/data_version_export_data_versions_dto.py deleted file mode 100644 index 66efabf852..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_data_versions_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.data_version_export_data_version_summary_dto import DataVersionExportDataVersionSummaryDTO -from typing import Optional, Set -from typing_extensions import Self - -class DataVersionExportDataVersionsDTO(BaseModel): - """ - DataVersionExportDataVersionsDTO - """ # noqa: E501 - data_versions: Optional[List[DataVersionExportDataVersionSummaryDTO]] = Field(default=None, description="All the available data versions for the tenant's primary data category.", alias="dataVersions") - __properties: ClassVar[List[str]] = ["dataVersions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataVersionExportDataVersionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data_versions (list) - _items = [] - if self.data_versions: - for _item_data_versions in self.data_versions: - if _item_data_versions: - _items.append(_item_data_versions.to_dict()) - _dict['dataVersions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataVersionExportDataVersionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataVersions": [DataVersionExportDataVersionSummaryDTO.from_dict(_item) for _item in obj["dataVersions"]] if obj.get("dataVersions") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_dto.py b/src/visier_api_data_out/visier_api_data_out/models/data_version_export_dto.py deleted file mode 100644 index 4f0605c51a..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_dto.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.data_version_export_table_dto import DataVersionExportTableDTO -from typing import Optional, Set -from typing_extensions import Self - -class DataVersionExportDTO(BaseModel): - """ - DataVersionExportDTO - """ # noqa: E501 - base_data_version_number: Optional[StrictStr] = Field(default=None, description="The baseline data version number for which the export was generated. If specified, the export is a delta of the differences between `dateVersionNumber` and `baseDataVersionNumber`. If empty, a full export is generated for `dataVersionNumber`.", alias="baseDataVersionNumber") - data_version_number: Optional[StrictStr] = Field(default=None, description="The data version number for which the export was generated.", alias="dataVersionNumber") - deleted_tables: Optional[List[StrictStr]] = Field(default=None, description="Tables that do not exist in `dataVersionNumber` but did exist in `baseDataVersionNumber`.", alias="deletedTables") - new_tables: Optional[List[StrictStr]] = Field(default=None, description="Tables that exist in `dataVersionNumber` but did not exist in `baseDataVersionNumber`.", alias="newTables") - tables: Optional[List[DataVersionExportTableDTO]] = Field(default=None, description="Information about the tables in the export.") - timestamp: Optional[StrictStr] = Field(default=None, description="The date that the data version export was generated, in milliseconds since 1970-01-01T00:00:00Z.") - uuid: Optional[StrictStr] = Field(default=None, description="The unique identifier of the data version export. Must be a valid UUID.") - __properties: ClassVar[List[str]] = ["baseDataVersionNumber", "dataVersionNumber", "deletedTables", "newTables", "tables", "timestamp", "uuid"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataVersionExportDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tables (list) - _items = [] - if self.tables: - for _item_tables in self.tables: - if _item_tables: - _items.append(_item_tables.to_dict()) - _dict['tables'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataVersionExportDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "baseDataVersionNumber": obj.get("baseDataVersionNumber"), - "dataVersionNumber": obj.get("dataVersionNumber"), - "deletedTables": obj.get("deletedTables"), - "newTables": obj.get("newTables"), - "tables": [DataVersionExportTableDTO.from_dict(_item) for _item in obj["tables"]] if obj.get("tables") is not None else None, - "timestamp": obj.get("timestamp"), - "uuid": obj.get("uuid") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_file_dto.py b/src/visier_api_data_out/visier_api_data_out/models/data_version_export_file_dto.py deleted file mode 100644 index 569f52185c..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_file_dto.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.data_version_export_column_dto import DataVersionExportColumnDTO -from visier_api_data_out.models.data_version_export_part_file_dto import DataVersionExportPartFileDTO -from typing import Optional, Set -from typing_extensions import Self - -class DataVersionExportFileDTO(BaseModel): - """ - DataVersionExportFileDTO - """ # noqa: E501 - columns: Optional[List[DataVersionExportColumnDTO]] = Field(default=None, description="Information about a table's columns.") - files: Optional[List[DataVersionExportPartFileDTO]] = Field(default=None, description="Information about a table's files in the export.") - __properties: ClassVar[List[str]] = ["columns", "files"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataVersionExportFileDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in columns (list) - _items = [] - if self.columns: - for _item_columns in self.columns: - if _item_columns: - _items.append(_item_columns.to_dict()) - _dict['columns'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in files (list) - _items = [] - if self.files: - for _item_files in self.files: - if _item_files: - _items.append(_item_files.to_dict()) - _dict['files'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataVersionExportFileDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "columns": [DataVersionExportColumnDTO.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None, - "files": [DataVersionExportPartFileDTO.from_dict(_item) for _item in obj["files"]] if obj.get("files") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_job_status_dto.py b/src/visier_api_data_out/visier_api_data_out/models/data_version_export_job_status_dto.py deleted file mode 100644 index 86d68a4a0a..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_job_status_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataVersionExportJobStatusDTO(BaseModel): - """ - DataVersionExportJobStatusDTO - """ # noqa: E501 - completed: Optional[StrictBool] = Field(default=None, description="If `true`, the job completed successfully.") - export_uuid: Optional[StrictStr] = Field(default=None, description="The unique identifier of the data version export generated by the job. If empty, the job hasn't completed successfully.", alias="exportUuid") - failed: Optional[StrictBool] = Field(default=None, description="If `true`, the job failed.") - job_uuid: Optional[StrictStr] = Field(default=None, description="The unique identifier of the data version export job.", alias="jobUuid") - __properties: ClassVar[List[str]] = ["completed", "exportUuid", "failed", "jobUuid"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataVersionExportJobStatusDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataVersionExportJobStatusDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "completed": obj.get("completed"), - "exportUuid": obj.get("exportUuid"), - "failed": obj.get("failed"), - "jobUuid": obj.get("jobUuid") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_part_file_dto.py b/src/visier_api_data_out/visier_api_data_out/models/data_version_export_part_file_dto.py deleted file mode 100644 index 2cd0c56804..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_part_file_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataVersionExportPartFileDTO(BaseModel): - """ - DataVersionExportPartFileDTO - """ # noqa: E501 - file_id: Optional[StrictInt] = Field(default=None, description="The unique integer identifier of the file in the data version export.", alias="fileId") - filename: Optional[StrictStr] = Field(default=None, description="The file's name.") - __properties: ClassVar[List[str]] = ["fileId", "filename"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataVersionExportPartFileDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataVersionExportPartFileDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "fileId": obj.get("fileId"), - "filename": obj.get("filename") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_schedule_job_request_dto.py b/src/visier_api_data_out/visier_api_data_out/models/data_version_export_schedule_job_request_dto.py deleted file mode 100644 index e1d5c03b5a..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_schedule_job_request_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataVersionExportScheduleJobRequestDTO(BaseModel): - """ - DataVersionExportScheduleJobRequestDTO - """ # noqa: E501 - base_data_version_number: Optional[StrictStr] = Field(default=None, description="Optional. The baseline data version number to use to generate a delta export. Delta exports contain the differences between `baseDataVersionNumber` and `dataVersionNumber`, such as anything updated, added, or removed in `dataVersionNumber`. If `baseDataVersionNumber` is not provided, a full export generates for `dataVersionNumber`.", alias="baseDataVersionNumber") - data_version_number: Optional[StrictStr] = Field(default=None, description="The data version number to generate an export for.", alias="dataVersionNumber") - __properties: ClassVar[List[str]] = ["baseDataVersionNumber", "dataVersionNumber"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataVersionExportScheduleJobRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataVersionExportScheduleJobRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "baseDataVersionNumber": obj.get("baseDataVersionNumber"), - "dataVersionNumber": obj.get("dataVersionNumber") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_schedule_job_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/data_version_export_schedule_job_response_dto.py deleted file mode 100644 index ddba7b9ebe..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_schedule_job_response_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DataVersionExportScheduleJobResponseDTO(BaseModel): - """ - DataVersionExportScheduleJobResponseDTO - """ # noqa: E501 - job_uuid: Optional[StrictStr] = Field(default=None, description="The unique identifier of the scheduled data version export job.", alias="jobUuid") - __properties: ClassVar[List[str]] = ["jobUuid"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataVersionExportScheduleJobResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataVersionExportScheduleJobResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "jobUuid": obj.get("jobUuid") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_table_dto.py b/src/visier_api_data_out/visier_api_data_out/models/data_version_export_table_dto.py deleted file mode 100644 index f2e55f4fa4..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/data_version_export_table_dto.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.data_version_export_file_dto import DataVersionExportFileDTO -from typing import Optional, Set -from typing_extensions import Self - -class DataVersionExportTableDTO(BaseModel): - """ - DataVersionExportTableDTO - """ # noqa: E501 - common_columns: Optional[DataVersionExportFileDTO] = Field(default=None, description="Information about the columns and files that are in both `dataVersionNumber` and `baseDataVersionNumber`. Always empty for full exports where `baseDataVersionNumber` is not specified.", alias="commonColumns") - deleted_columns: Optional[List[StrictStr]] = Field(default=None, description="Information about columns that do not exist in `dataVersionNumber` but did exist in `baseDataVersionNumber`.", alias="deletedColumns") - name: Optional[StrictStr] = Field(default=None, description="The name of a table in the data version export; for example, Employee or Applicant.") - new_columns: Optional[DataVersionExportFileDTO] = Field(default=None, description="Information about new columns and files in the data version. If full export, lists all columns. If delta export, lists columns that exist in `dataVersionNumber` but not in `baseDataVersionNumber`.", alias="newColumns") - __properties: ClassVar[List[str]] = ["commonColumns", "deletedColumns", "name", "newColumns"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataVersionExportTableDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of common_columns - if self.common_columns: - _dict['commonColumns'] = self.common_columns.to_dict() - # override the default output from pydantic by calling `to_dict()` of new_columns - if self.new_columns: - _dict['newColumns'] = self.new_columns.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataVersionExportTableDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "commonColumns": DataVersionExportFileDTO.from_dict(obj["commonColumns"]) if obj.get("commonColumns") is not None else None, - "deletedColumns": obj.get("deletedColumns"), - "name": obj.get("name"), - "newColumns": DataVersionExportFileDTO.from_dict(obj["newColumns"]) if obj.get("newColumns") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/data_version_exports_dto.py b/src/visier_api_data_out/visier_api_data_out/models/data_version_exports_dto.py deleted file mode 100644 index 3fbe5395f0..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/data_version_exports_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.data_version_export_dto import DataVersionExportDTO -from typing import Optional, Set -from typing_extensions import Self - -class DataVersionExportsDTO(BaseModel): - """ - DataVersionExportsDTO - """ # noqa: E501 - data_version_exports: Optional[List[DataVersionExportDTO]] = Field(default=None, description="Information about data version exports.", alias="dataVersionExports") - __properties: ClassVar[List[str]] = ["dataVersionExports"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataVersionExportsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data_version_exports (list) - _items = [] - if self.data_version_exports: - for _item_data_version_exports in self.data_version_exports: - if _item_data_version_exports: - _items.append(_item_data_version_exports.to_dict()) - _dict['dataVersionExports'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataVersionExportsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataVersionExports": [DataVersionExportDTO.from_dict(_item) for _item in obj["dataVersionExports"]] if obj.get("dataVersionExports") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_common_dimension_member_reference_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_common_dimension_member_reference_dto.py new file mode 100644 index 0000000000..e6cafcfe34 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_common_dimension_member_reference_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesCommonDimensionMemberReferenceDTO(BaseModel): + """ + The members of a dimension. + """ # noqa: E501 + path: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing the members within a dimension path. For example, a dimension for Location may have the paths \"Canada, BC, Vancouver\" and \"US, California, San Francisco\".") + __properties: ClassVar[List[str]] = ["path"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesCommonDimensionMemberReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesCommonDimensionMemberReferenceDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "path": obj.get("path") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_common_member_values_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_common_member_values_dto.py new file mode 100644 index 0000000000..a8ae504400 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_common_member_values_dto.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_common_dimension_member_reference_dto import DataservicesCommonDimensionMemberReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesCommonMemberValuesDTO(BaseModel): + """ + Member filter values are discrete member references in a dimension filter. You can define included and excluded members simultaneously. This is typically done with filtering applied on dimensions with multiple levels. For example, a Location parameter may include “South America” and exclude “Brazil” which results in the metric being evaluated for all South American countries except Brazil. + """ # noqa: E501 + excluded: Optional[List[DataservicesCommonDimensionMemberReferenceDTO]] = Field(default=None, description="The unique IDs of members to exclude when evaluating the metric.") + included: Optional[List[DataservicesCommonDimensionMemberReferenceDTO]] = Field(default=None, description="The unique IDs of members to include when evaluating the metric.") + __properties: ClassVar[List[str]] = ["excluded", "included"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesCommonMemberValuesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in excluded (list) + _items = [] + if self.excluded: + for _item_excluded in self.excluded: + if _item_excluded: + _items.append(_item_excluded.to_dict()) + _dict['excluded'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in included (list) + _items = [] + if self.included: + for _item_included in self.included: + if _item_included: + _items.append(_item_included.to_dict()) + _dict['included'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesCommonMemberValuesDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "excluded": [DataservicesCommonDimensionMemberReferenceDTO.from_dict(_item) for _item in obj["excluded"]] if obj.get("excluded") is not None else None, + "included": [DataservicesCommonDimensionMemberReferenceDTO.from_dict(_item) for _item in obj["included"]] if obj.get("included") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_transfers_dimension_reference_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_transfers_dimension_reference_dto.py new file mode 100644 index 0000000000..396c989098 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_transfers_dimension_reference_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersDimensionReferenceDTO(BaseModel): + """ + The name and qualifying path of a dimension to query. + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="The ID of the dimension. See `Dimensions` to get the ID.") + qualifying_path: Optional[StrictStr] = Field(default=None, description="The qualifying path to the dimension in Visier, such as the analytic object or event the dimension is associated with. If the path has multiple objects, each object is separated by a period.", alias="qualifyingPath") + __properties: ClassVar[List[str]] = ["name", "qualifyingPath"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersDimensionReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersDimensionReferenceDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "qualifyingPath": obj.get("qualifyingPath") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_transfers_property_reference_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_transfers_property_reference_dto.py new file mode 100644 index 0000000000..243d75c7a8 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_transfers_property_reference_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersPropertyReferenceDTO(BaseModel): + """ + The name and qualifying path of a property to query. + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="The ID of the property. See `Properties` to get the ID.") + qualifying_path: Optional[StrictStr] = Field(default=None, description="The qualifying path to the property in Visier, such as the analytic object or event the property is associated with. If the path has multiple objects, each object is separated by a period.", alias="qualifyingPath") + __properties: ClassVar[List[str]] = ["name", "qualifyingPath"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPropertyReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersPropertyReferenceDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "qualifyingPath": obj.get("qualifyingPath") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_transfers_selection_concept_reference_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_transfers_selection_concept_reference_dto.py new file mode 100644 index 0000000000..4357ac223a --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_transfers_selection_concept_reference_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTransfersSelectionConceptReferenceDTO(BaseModel): + """ + The name and qualifying path of a selection concept to query. + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="The ID of the selection concept. See `SelectionConcepts` to get the ID.") + qualifying_path: Optional[StrictStr] = Field(default=None, description="The qualifying path to the selection concept in Visier, such as the analytic object or event the selection concept is associated with. If the path has multiple objects, each object is separated by a period.", alias="qualifyingPath") + __properties: ClassVar[List[str]] = ["name", "qualifyingPath"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersSelectionConceptReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTransfersSelectionConceptReferenceDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "qualifyingPath": obj.get("qualifyingPath") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_query_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_query_dto.py new file mode 100644 index 0000000000..f933ef09f5 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_query_dto.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_source_dto import DataservicesQueryTransfersAggregationQuerySourceDTO +from visier_api_data_out.models.dataservices_query_transfers_query_axis_dto import DataservicesQueryTransfersQueryAxisDTO +from visier_api_data_out.models.dataservices_query_transfers_query_filter_dto import DataservicesQueryTransfersQueryFilterDTO +from visier_api_data_out.models.dataservices_query_transfers_query_parameter_value_dto import DataservicesQueryTransfersQueryParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_query_time_intervals_dto import DataservicesQueryTransfersQueryTimeIntervalsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersAggregationQueryDTO(BaseModel): + """ + An AggregationQuery defines the data to query in an aggregation query and returns a `cell set` calculated from the selected data points. + """ # noqa: E501 + axes: Optional[List[DataservicesQueryTransfersQueryAxisDTO]] = Field(default=None, description="The objects by which to group the query. An axis defines the groups that the data belongs to. Omit `axes` if no grouping is required.") + filters: Optional[List[DataservicesQueryTransfersQueryFilterDTO]] = Field(default=None, description="The objects by which to filter the query, such as dimensions or concepts. A filter defines the population to retrieve data from. Omit `filters` if no filtering is required.") + parameter_values: Optional[List[DataservicesQueryTransfersQueryParameterValueDTO]] = Field(default=None, description="The values associated with parameters, if defined.", alias="parameterValues") + source: Optional[DataservicesQueryTransfersAggregationQuerySourceDTO] = Field(default=None, description="The source data, such as a metric or formula, to query.") + time_intervals: Optional[DataservicesQueryTransfersQueryTimeIntervalsDTO] = Field(default=None, description="The time intervals to query.", alias="timeIntervals") + __properties: ClassVar[List[str]] = ["axes", "filters", "parameterValues", "source", "timeIntervals"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersAggregationQueryDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in axes (list) + _items = [] + if self.axes: + for _item_axes in self.axes: + if _item_axes: + _items.append(_item_axes.to_dict()) + _dict['axes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in filters (list) + _items = [] + if self.filters: + for _item_filters in self.filters: + if _item_filters: + _items.append(_item_filters.to_dict()) + _dict['filters'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in parameter_values (list) + _items = [] + if self.parameter_values: + for _item_parameter_values in self.parameter_values: + if _item_parameter_values: + _items.append(_item_parameter_values.to_dict()) + _dict['parameterValues'] = _items + # override the default output from pydantic by calling `to_dict()` of source + if self.source: + _dict['source'] = self.source.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_intervals + if self.time_intervals: + _dict['timeIntervals'] = self.time_intervals.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersAggregationQueryDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "axes": [DataservicesQueryTransfersQueryAxisDTO.from_dict(_item) for _item in obj["axes"]] if obj.get("axes") is not None else None, + "filters": [DataservicesQueryTransfersQueryFilterDTO.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None, + "parameterValues": [DataservicesQueryTransfersQueryParameterValueDTO.from_dict(_item) for _item in obj["parameterValues"]] if obj.get("parameterValues") is not None else None, + "source": DataservicesQueryTransfersAggregationQuerySourceDTO.from_dict(obj["source"]) if obj.get("source") is not None else None, + "timeIntervals": DataservicesQueryTransfersQueryTimeIntervalsDTO.from_dict(obj["timeIntervals"]) if obj.get("timeIntervals") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_query_execution_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_query_execution_dto.py new file mode 100644 index 0000000000..adb565824a --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_query_execution_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_dto import DataservicesQueryTransfersAggregationQueryDTO +from visier_api_data_out.models.dataservices_query_transfers_query_execution_options_dto import DataservicesQueryTransfersQueryExecutionOptionsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersAggregationQueryExecutionDTO(BaseModel): + """ + An AggregationQueryExecution provides instructions to perform your aggregation query. + """ # noqa: E501 + options: Optional[DataservicesQueryTransfersQueryExecutionOptionsDTO] = Field(default=None, description="Additional instructions for your query, such as a calendar type or conversion information.") + query: Optional[DataservicesQueryTransfersAggregationQueryDTO] = Field(default=None, description="The data to perform an aggregation on, such as a metric or formula. The query must include a time interval, and may optionally include filters and axes.") + __properties: ClassVar[List[str]] = ["options", "query"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersAggregationQueryExecutionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of options + if self.options: + _dict['options'] = self.options.to_dict() + # override the default output from pydantic by calling `to_dict()` of query + if self.query: + _dict['query'] = self.query.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersAggregationQueryExecutionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "options": DataservicesQueryTransfersQueryExecutionOptionsDTO.from_dict(obj["options"]) if obj.get("options") is not None else None, + "query": DataservicesQueryTransfersAggregationQueryDTO.from_dict(obj["query"]) if obj.get("query") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_query_source_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_query_source_dto.py new file mode 100644 index 0000000000..8e97eedd7f --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_query_source_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_source_metrics_dto import DataservicesQueryTransfersAggregationQuerySourceMetricsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersAggregationQuerySourceDTO(BaseModel): + """ + An AggregationQuerySource defines the source data to query in an aggregation query. + """ # noqa: E501 + formula: Optional[StrictStr] = Field(default=None, description="An ad-hoc metric formula. The response returns the results of the aggregate. See the formula dictionary in Visier to find functions and objects you can use in a formula.") + metric: Optional[StrictStr] = Field(default=None, description="The ID of an existing metric in your Visier solution. See `Metrics` to get the ID.") + metrics: Optional[DataservicesQueryTransfersAggregationQuerySourceMetricsDTO] = Field(default=None, description="The IDs of metrics to aggregate. All metrics in the query must reference the same analytic object. For example, you cannot query Headcount and Applicant Count because one uses the Employee subject and the other uses the Applicant subject. You can query Headcount and Employee Count for Women because both reference the Employee subject. Only available when the Accept header is text/csv. For more information, see `Aggregate`.") + __properties: ClassVar[List[str]] = ["formula", "metric", "metrics"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersAggregationQuerySourceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metrics + if self.metrics: + _dict['metrics'] = self.metrics.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersAggregationQuerySourceDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "formula": obj.get("formula"), + "metric": obj.get("metric"), + "metrics": DataservicesQueryTransfersAggregationQuerySourceMetricsDTO.from_dict(obj["metrics"]) if obj.get("metrics") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_query_source_metric_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_query_source_metric_dto.py new file mode 100644 index 0000000000..ac942d6ae4 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_query_source_metric_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersAggregationQuerySourceMetricDTO(BaseModel): + """ + The column definition for a single metric within a `metrics` query. + """ # noqa: E501 + column_name: Optional[StrictStr] = Field(default=None, description="The column name in the CSV file. Default is to use id as the column name.", alias="columnName") + formula: Optional[StrictStr] = Field(default=None, description="An ad-hoc metric formula. The response returns the results of the aggregate. See the formula dictionary in Visier to find functions and objects you can use in a formula.") + id: Optional[StrictStr] = Field(default=None, description="The unique ID of the metric. Note: See `Metrics` to get the ID. If columnName is omitted, id is the column name in the CSV file.") + qualifying_path: Optional[StrictStr] = Field(default=None, description="The base qualifying path to prefix the axes and filters' qualifying paths with. You must specify the qualifying path on a metric if the convergent analytic object of the metric doesn't match the starting object in the qualifying paths of the axes and filters. For example, consider a multi-metric query that contains metrics that count the number of applicants and requisitions, grouped by the country of the recruiter's direct manager. The following sample shows how to use qualifyingPath to specify the object reference traversal path from each metric's convergent analytic object to the start of the path for the axes. In this example, there is only one convergent analytic object. ``` \"source\": { \"metrics\": { \"columns\": [ { \"id\": \"employeeCount\" }, { \"id\": \"applicantCount\", \"qualifyingPath\": \"Applicant.Requisition.Recruiter\" }, { \"id\": \"requisitionCount\", \"qualifyingPath\": \"Requisition.Recruiter\" } ] } }, \"axes\": [ { \"dimensionLevelSelection\": { \"dimension\": { \"name\": \"Location\", \"qualifyingPath\": \"Employee.Direct_Manager\" }, \"levelIds\": [ \"Location_1\" ] } } ] ``` **Note:** * `employeeCount` doesn't need a `qualifyingPath` because it's already convergent with the start of the axis path. * The metrics' qualifying paths must provide the reference name that resolves to the first object of the axis' qualifying path as their last path segment. In this case, Recruiter is a named reference pointing to Employee. The final qualifying paths for the metrics are: * `employeeCount`: Employee.Direct_Manager * `applicantCount`: Applicant.Requisition.Recruiter.Direct_Manager * `requisitionCount`: Requisition.Recruiter.Direct_Manager", alias="qualifyingPath") + __properties: ClassVar[List[str]] = ["columnName", "formula", "id", "qualifyingPath"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersAggregationQuerySourceMetricDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersAggregationQuerySourceMetricDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "columnName": obj.get("columnName"), + "formula": obj.get("formula"), + "id": obj.get("id"), + "qualifyingPath": obj.get("qualifyingPath") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_query_source_metrics_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_query_source_metrics_dto.py new file mode 100644 index 0000000000..3e76e09de0 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_query_source_metrics_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_aggregation_query_source_metric_dto import DataservicesQueryTransfersAggregationQuerySourceMetricDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersAggregationQuerySourceMetricsDTO(BaseModel): + """ + The IDs and column names of multiple metrics. **Note:** Only available when the `Accept` header is text/csv. For more information, see `Aggregate` + """ # noqa: E501 + columns: Optional[List[DataservicesQueryTransfersAggregationQuerySourceMetricDTO]] = Field(default=None, description="An array of metric columns.") + __properties: ClassVar[List[str]] = ["columns"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersAggregationQuerySourceMetricsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in columns (list) + _items = [] + if self.columns: + for _item_columns in self.columns: + if _item_columns: + _items.append(_item_columns.to_dict()) + _dict['columns'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersAggregationQuerySourceMetricsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "columns": [DataservicesQueryTransfersAggregationQuerySourceMetricDTO.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_type_parameter_value_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_type_parameter_value_dto.py new file mode 100644 index 0000000000..4db23079db --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_aggregation_type_parameter_value_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersAggregationTypeParameterValueDTO(BaseModel): + """ + The value for an aggregation parameter. + """ # noqa: E501 + aggregation_option_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the aggregation option.", alias="aggregationOptionId") + parameter_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the aggregation parameter.", alias="parameterId") + __properties: ClassVar[List[str]] = ["aggregationOptionId", "parameterId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersAggregationTypeParameterValueDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersAggregationTypeParameterValueDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "aggregationOptionId": obj.get("aggregationOptionId"), + "parameterId": obj.get("parameterId") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_distribution_bin_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_distribution_bin_dto.py new file mode 100644 index 0000000000..7f586cc3b1 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_distribution_bin_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersCellDistributionBinDTO(BaseModel): + """ + A cell distribution bin. Each bin has a metric value (of the bin) and the number of observations contributing to the bin. + """ # noqa: E501 + support: Optional[StrictStr] = None + value: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["support", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersCellDistributionBinDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersCellDistributionBinDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "support": obj.get("support"), + "value": obj.get("value") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_distribution_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_distribution_options_dto.py new file mode 100644 index 0000000000..d9baa05eb0 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_distribution_options_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersCellDistributionOptionsDTO(BaseModel): + """ + Cell distribution options for queries. Include with aggregation queries to enable distribution calculation per cell. + """ # noqa: E501 + bin_count: Optional[StrictInt] = Field(default=None, description="The number of bins to return, minimum of 2, and a maximum of 100.", alias="binCount") + __properties: ClassVar[List[str]] = ["binCount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersCellDistributionOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersCellDistributionOptionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "binCount": obj.get("binCount") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_dto.py new file mode 100644 index 0000000000..7fb4a6642c --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_cell_distribution_bin_dto import DataservicesQueryTransfersCellDistributionBinDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersCellDTO(BaseModel): + """ + An individual value in a cell set. + """ # noqa: E501 + coordinates: Optional[List[StrictInt]] = Field(default=None, description="A list of integers representing the coordinates of this cell, identifying its position along each axis.") + distribution: Optional[List[DataservicesQueryTransfersCellDistributionBinDTO]] = Field(default=None, description="The optional distribution of this cell. This will be populated if distribution calculation is requested, and supported by the query.") + support: Optional[StrictStr] = Field(default=None, description="The number of data points contributing to this cell.") + value: Optional[StrictStr] = Field(default=None, description="The value of the cell.") + __properties: ClassVar[List[str]] = ["coordinates", "distribution", "support", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersCellDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in distribution (list) + _items = [] + if self.distribution: + for _item_distribution in self.distribution: + if _item_distribution: + _items.append(_item_distribution.to_dict()) + _dict['distribution'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersCellDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "coordinates": obj.get("coordinates"), + "distribution": [DataservicesQueryTransfersCellDistributionBinDTO.from_dict(_item) for _item in obj["distribution"]] if obj.get("distribution") is not None else None, + "support": obj.get("support"), + "value": obj.get("value") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_set_axis_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_set_axis_dto.py new file mode 100644 index 0000000000..2a691e2d41 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_set_axis_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_set_axis_position_dto import DataservicesQueryTransfersCellSetAxisPositionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersCellSetAxisDTO(BaseModel): + """ + The axis of a cell set associated with a dimension. + """ # noqa: E501 + dimension: Optional[DataservicesDatamodelTransfersDimensionReferenceDTO] = Field(default=None, description="The dimension associated with the axis.") + positions: Optional[List[DataservicesQueryTransfersCellSetAxisPositionDTO]] = Field(default=None, description="A list of paths that represent the data's positions along the axis.") + __properties: ClassVar[List[str]] = ["dimension", "positions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersCellSetAxisDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of dimension + if self.dimension: + _dict['dimension'] = self.dimension.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in positions (list) + _items = [] + if self.positions: + for _item_positions in self.positions: + if _item_positions: + _items.append(_item_positions.to_dict()) + _dict['positions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersCellSetAxisDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelTransfersDimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None, + "positions": [DataservicesQueryTransfersCellSetAxisPositionDTO.from_dict(_item) for _item in obj["positions"]] if obj.get("positions") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_set_axis_position_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_set_axis_position_dto.py new file mode 100644 index 0000000000..6ca86abf9d --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_set_axis_position_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersCellSetAxisPositionDTO(BaseModel): + """ + The position along the axis of a cell set. + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the position. This is optional and is omitted if unavailable or not requested.", alias="displayName") + display_name_path: Optional[List[StrictStr]] = Field(default=None, description="Optional display name path of the member.", alias="displayNamePath") + path: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing the members within a dimension path. For example, a dimension for Location may have the paths \"Canada, BC, Vancouver\" and \"US, California, San Francisco\".") + __properties: ClassVar[List[str]] = ["displayName", "displayNamePath", "path"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersCellSetAxisPositionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersCellSetAxisPositionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName"), + "displayNamePath": obj.get("displayNamePath"), + "path": obj.get("path") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_set_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_set_dto.py new file mode 100644 index 0000000000..37207861a1 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cell_set_dto.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_cell_dto import DataservicesQueryTransfersCellDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_set_axis_dto import DataservicesQueryTransfersCellSetAxisDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersCellSetDTO(BaseModel): + """ + The set of cells returned from executing an aggregation query. A CellSet represents a structured, multidimensional array of values. + """ # noqa: E501 + axes: Optional[List[DataservicesQueryTransfersCellSetAxisDTO]] = Field(default=None, description="The set of axes for the cell set that represent the objects the data is grouped by.") + cells: Optional[List[DataservicesQueryTransfersCellDTO]] = Field(default=None, description="The set of cells that represent the result of your query.") + lineage: Optional[DataservicesQueryTransfersLineageDTO] = Field(default=None, description="Lineage information for this cell set. This can be omitted if the cell has no lineage or the user did not request lineage information.") + __properties: ClassVar[List[str]] = ["axes", "cells", "lineage"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersCellSetDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in axes (list) + _items = [] + if self.axes: + for _item_axes in self.axes: + if _item_axes: + _items.append(_item_axes.to_dict()) + _dict['axes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in cells (list) + _items = [] + if self.cells: + for _item_cells in self.cells: + if _item_cells: + _items.append(_item_cells.to_dict()) + _dict['cells'] = _items + # override the default output from pydantic by calling `to_dict()` of lineage + if self.lineage: + _dict['lineage'] = self.lineage.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersCellSetDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "axes": [DataservicesQueryTransfersCellSetAxisDTO.from_dict(_item) for _item in obj["axes"]] if obj.get("axes") is not None else None, + "cells": [DataservicesQueryTransfersCellDTO.from_dict(_item) for _item in obj["cells"]] if obj.get("cells") is not None else None, + "lineage": DataservicesQueryTransfersLineageDTO.from_dict(obj["lineage"]) if obj.get("lineage") is not None else None + }) + return _obj + +from visier_api_data_out.models.dataservices_query_transfers_lineage_dto import DataservicesQueryTransfersLineageDTO +# TODO: Rewrite to not use raise_errors +DataservicesQueryTransfersCellSetDTO.model_rebuild(raise_errors=False) + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cohort_filter_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cohort_filter_dto.py new file mode 100644 index 0000000000..d56d931b45 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_cohort_filter_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_key_group_filter_dto import DataservicesQueryTransfersKeyGroupFilterDTO +from visier_api_data_out.models.dataservices_query_transfers_query_time_interval_dto import DataservicesQueryTransfersQueryTimeIntervalDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersCohortFilterDTO(BaseModel): + """ + Use a cohort filter to define a population as it existed during a specific time period. Cohort filters allow you to define a population in terms of a collection of filters, known as a key group. The cohort's defined time interval is independent of the query's time. The cohort's time interval is the time at which the key group should be applied. Cohorts are typically used to follow populations and understand changes to the population over time, such as promotion and resignation rates. + """ # noqa: E501 + exclude: Optional[StrictBool] = Field(default=None, description="If true, the population is defined by those excluded by the filters. Default is false.") + key_group: Optional[DataservicesQueryTransfersKeyGroupFilterDTO] = Field(default=None, description="A key group is a collection of filters that define the shape of the analysis population.", alias="keyGroup") + time_interval: Optional[DataservicesQueryTransfersQueryTimeIntervalDTO] = Field(default=None, description="The time at which to apply the key group, such as a specific day or period of months.", alias="timeInterval") + __properties: ClassVar[List[str]] = ["exclude", "keyGroup", "timeInterval"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersCohortFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of key_group + if self.key_group: + _dict['keyGroup'] = self.key_group.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_interval + if self.time_interval: + _dict['timeInterval'] = self.time_interval.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersCohortFilterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "exclude": obj.get("exclude"), + "keyGroup": DataservicesQueryTransfersKeyGroupFilterDTO.from_dict(obj["keyGroup"]) if obj.get("keyGroup") is not None else None, + "timeInterval": DataservicesQueryTransfersQueryTimeIntervalDTO.from_dict(obj["timeInterval"]) if obj.get("timeInterval") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_internal_query_execution_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_internal_query_execution_options_dto.py new file mode 100644 index 0000000000..40d151a479 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_internal_query_execution_options_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersInternalQueryExecutionOptionsDTO(BaseModel): + """ + Internal options - not to be documented or used by external parties + """ # noqa: E501 + align_time_axis_to_period_end: Optional[StrictBool] = Field(default=None, description="If true, shifts the time axis members back by one millisecond. Shifting the time axis members back by one millisecond makes them valid at the end of the period instead of at the start of the next period. This aligns the returned data timestamps with the timestamps in the Visier application. Example: If the timestamps are originally [`2019-06-01T00:00:00.000Z`, `2019-05-01T00:00:00.000Z`], then `alignTimeAxisPeriodEnd` turns the timestamps into [`2019-05-31T23:59:59.999Z`, `2019-04-30T23:59:59.999Z`]. Example: If the timestamps are originally [`2019-05-01T00:00:00.000Z/2019-06-01T00:00:00.000Z`, `2019-04-01T00:00:00.000Z/2019-05-01T00:00:00.000Z`], then `alignTimeAxisPeriodEnd` turns the timestamps into [`2019-05-01T00:00:00.000Z/2019-05-31T23:59:59.999Z`, `2019-04-01T00:00:00.000Z/2019-04-30T23:59:59.999Z`].", alias="alignTimeAxisToPeriodEnd") + sparse_handling_mode: Optional[StrictStr] = Field(default=None, alias="sparseHandlingMode") + __properties: ClassVar[List[str]] = ["alignTimeAxisToPeriodEnd", "sparseHandlingMode"] + + @field_validator('sparse_handling_mode') + def sparse_handling_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['ALLOW', 'DISALLOW', 'FORCE']): + raise ValueError("must be one of enum values ('ALLOW', 'DISALLOW', 'FORCE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersInternalQueryExecutionOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersInternalQueryExecutionOptionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "alignTimeAxisToPeriodEnd": obj.get("alignTimeAxisToPeriodEnd"), + "sparseHandlingMode": obj.get("sparseHandlingMode") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_key_group_filter_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_key_group_filter_dto.py new file mode 100644 index 0000000000..d84612ba37 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_key_group_filter_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_key_group_filter_item_dto import DataservicesQueryTransfersKeyGroupFilterItemDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersKeyGroupFilterDTO(BaseModel): + """ + A collection of related filters that define a key group. + """ # noqa: E501 + filters: Optional[List[DataservicesQueryTransfersKeyGroupFilterItemDTO]] = None + __properties: ClassVar[List[str]] = ["filters"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersKeyGroupFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in filters (list) + _items = [] + if self.filters: + for _item_filters in self.filters: + if _item_filters: + _items.append(_item_filters.to_dict()) + _dict['filters'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersKeyGroupFilterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "filters": [DataservicesQueryTransfersKeyGroupFilterItemDTO.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_key_group_filter_item_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_key_group_filter_item_dto.py new file mode 100644 index 0000000000..2a662a1768 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_key_group_filter_item_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_datamodel_transfers_selection_concept_reference_dto import DataservicesDatamodelTransfersSelectionConceptReferenceDTO +from visier_api_data_out.models.dataservices_query_transfers_member_filter_dto import DataservicesQueryTransfersMemberFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersKeyGroupFilterItemDTO(BaseModel): + """ + An individual filter in a key group. + """ # noqa: E501 + formula: Optional[StrictStr] = Field(default=None, description="A filter expressed as a formula.") + member_set: Optional[DataservicesQueryTransfersMemberFilterDTO] = Field(default=None, description="A filter that includes or excludes dimension members.", alias="memberSet") + selection_concept: Optional[DataservicesDatamodelTransfersSelectionConceptReferenceDTO] = Field(default=None, description="A filter that uses an existing selection concept in Visier.", alias="selectionConcept") + __properties: ClassVar[List[str]] = ["formula", "memberSet", "selectionConcept"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersKeyGroupFilterItemDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of member_set + if self.member_set: + _dict['memberSet'] = self.member_set.to_dict() + # override the default output from pydantic by calling `to_dict()` of selection_concept + if self.selection_concept: + _dict['selectionConcept'] = self.selection_concept.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersKeyGroupFilterItemDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "formula": obj.get("formula"), + "memberSet": DataservicesQueryTransfersMemberFilterDTO.from_dict(obj["memberSet"]) if obj.get("memberSet") is not None else None, + "selectionConcept": DataservicesDatamodelTransfersSelectionConceptReferenceDTO.from_dict(obj["selectionConcept"]) if obj.get("selectionConcept") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_lineage_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_lineage_dto.py new file mode 100644 index 0000000000..c9dbd28f1c --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_lineage_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersLineageDTO(BaseModel): + """ + Lineage information for a given cell set. This describes how a cell set is created from other cell sets. + """ # noqa: E501 + cell_sets: Optional[List[DataservicesQueryTransfersCellSetDTO]] = Field(default=None, description="The cell sets that constitute this lineage.", alias="cellSets") + op: Optional[StrictStr] = Field(default=None, description="The operation used to combine the cell sets of this lineage.") + __properties: ClassVar[List[str]] = ["cellSets", "op"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersLineageDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in cell_sets (list) + _items = [] + if self.cell_sets: + for _item_cell_sets in self.cell_sets: + if _item_cell_sets: + _items.append(_item_cell_sets.to_dict()) + _dict['cellSets'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersLineageDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cellSets": [DataservicesQueryTransfersCellSetDTO.from_dict(_item) for _item in obj["cellSets"]] if obj.get("cellSets") is not None else None, + "op": obj.get("op") + }) + return _obj + +from visier_api_data_out.models.dataservices_query_transfers_cell_set_dto import DataservicesQueryTransfersCellSetDTO +# TODO: Rewrite to not use raise_errors +DataservicesQueryTransfersLineageDTO.model_rebuild(raise_errors=False) + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_list_query_execution_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_list_query_execution_dto.py new file mode 100644 index 0000000000..a969c8120d --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_list_query_execution_dto.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_list_query_execution_options_dto import DataservicesQueryTransfersListQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_list_query_source_dto import DataservicesQueryTransfersListQuerySourceDTO +from visier_api_data_out.models.dataservices_query_transfers_property_column_dto import DataservicesQueryTransfersPropertyColumnDTO +from visier_api_data_out.models.dataservices_query_transfers_query_filter_dto import DataservicesQueryTransfersQueryFilterDTO +from visier_api_data_out.models.dataservices_query_transfers_query_parameter_value_dto import DataservicesQueryTransfersQueryParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_query_time_interval_dto import DataservicesQueryTransfersQueryTimeIntervalDTO +from visier_api_data_out.models.dataservices_query_transfers_sort_option_dto import DataservicesQueryTransfersSortOptionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersListQueryExecutionDTO(BaseModel): + """ + A ListQueryExecution provides instructions to perform a list query. + """ # noqa: E501 + columns: Optional[List[DataservicesQueryTransfersPropertyColumnDTO]] = Field(default=None, description="The columns to include in the result. This must contain at least one column.") + filters: Optional[List[DataservicesQueryTransfersQueryFilterDTO]] = Field(default=None, description="The filters of this query. Omit `filters` if no filtering is required.") + options: Optional[DataservicesQueryTransfersListQueryExecutionOptionsDTO] = Field(default=None, description="Additional instructions for your query, such as a calendar type or conversion information.") + parameter_values: Optional[List[DataservicesQueryTransfersQueryParameterValueDTO]] = Field(default=None, description="The parameter values for either member or numeric parameters.", alias="parameterValues") + sort_options: Optional[List[DataservicesQueryTransfersSortOptionDTO]] = Field(default=None, description="The index and direction to sort a column in the `columns` array.", alias="sortOptions") + source: Optional[DataservicesQueryTransfersListQuerySourceDTO] = Field(default=None, description="The source data that you want to query.") + time_interval: Optional[DataservicesQueryTransfersQueryTimeIntervalDTO] = Field(default=None, description="The time that the data is valid, such as a specific day or period of months.", alias="timeInterval") + __properties: ClassVar[List[str]] = ["columns", "filters", "options", "parameterValues", "sortOptions", "source", "timeInterval"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersListQueryExecutionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in columns (list) + _items = [] + if self.columns: + for _item_columns in self.columns: + if _item_columns: + _items.append(_item_columns.to_dict()) + _dict['columns'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in filters (list) + _items = [] + if self.filters: + for _item_filters in self.filters: + if _item_filters: + _items.append(_item_filters.to_dict()) + _dict['filters'] = _items + # override the default output from pydantic by calling `to_dict()` of options + if self.options: + _dict['options'] = self.options.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in parameter_values (list) + _items = [] + if self.parameter_values: + for _item_parameter_values in self.parameter_values: + if _item_parameter_values: + _items.append(_item_parameter_values.to_dict()) + _dict['parameterValues'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in sort_options (list) + _items = [] + if self.sort_options: + for _item_sort_options in self.sort_options: + if _item_sort_options: + _items.append(_item_sort_options.to_dict()) + _dict['sortOptions'] = _items + # override the default output from pydantic by calling `to_dict()` of source + if self.source: + _dict['source'] = self.source.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_interval + if self.time_interval: + _dict['timeInterval'] = self.time_interval.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersListQueryExecutionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "columns": [DataservicesQueryTransfersPropertyColumnDTO.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None, + "filters": [DataservicesQueryTransfersQueryFilterDTO.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None, + "options": DataservicesQueryTransfersListQueryExecutionOptionsDTO.from_dict(obj["options"]) if obj.get("options") is not None else None, + "parameterValues": [DataservicesQueryTransfersQueryParameterValueDTO.from_dict(_item) for _item in obj["parameterValues"]] if obj.get("parameterValues") is not None else None, + "sortOptions": [DataservicesQueryTransfersSortOptionDTO.from_dict(_item) for _item in obj["sortOptions"]] if obj.get("sortOptions") is not None else None, + "source": DataservicesQueryTransfersListQuerySourceDTO.from_dict(obj["source"]) if obj.get("source") is not None else None, + "timeInterval": DataservicesQueryTransfersQueryTimeIntervalDTO.from_dict(obj["timeInterval"]) if obj.get("timeInterval") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_list_query_execution_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_list_query_execution_options_dto.py new file mode 100644 index 0000000000..62d26b4755 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_list_query_execution_options_dto.py @@ -0,0 +1,159 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersListQueryExecutionOptionsDTO(BaseModel): + """ + A ListQueryExecutionOptions provides additional instructions to perform a list query. + """ # noqa: E501 + calendar_type: Optional[StrictStr] = Field(default=None, description="The calendar type to use. This will be used for all time calculations unless explicitly overridden in the calculation itself. Default is TENANT_CALENDAR.", alias="calendarType") + currency_conversion_code: Optional[StrictStr] = Field(default=None, description="The optional target currency for all currency conversions. If not specified, the tenant default currency will be used.", alias="currencyConversionCode") + currency_conversion_date: Optional[StrictStr] = Field(default=None, description="The currency conversion date to use. If defined, the currency conversion will use the exchange rates as of this date.", alias="currencyConversionDate") + currency_conversion_mode: Optional[StrictStr] = Field(default=None, description="The currency conversion mode to use. This will be used for all currency conversion calculations unless explicitly overridden in the calculation itself. Default is TENANT_CURRENCY_CONVERSION.", alias="currencyConversionMode") + date_time_display_mode: Optional[StrictStr] = Field(default=None, description="Control how date-time values are displayed in the result set. Supported values: * `EPOCH`: The number of elapsed milliseconds since January 1, 1970 in UTC timezone. This is the default. * `DATETIME`: The date-time value displayed in `yyyy-MM-dd HH:mm:ssZZ` format.", alias="dateTimeDisplayMode") + limit: Optional[StrictInt] = Field(default=None, description="The maximum number of entries to return. Default is to return all entries. If `page` is defined but limit is not defined, limit will be set to a default value of 1000.") + multiple_tables: Optional[StrictBool] = Field(default=None, description="Option to return multiple table files as zipped archive for derived metrics. Default is false. If false, one table is returned for the drill-through metric.", alias="multipleTables") + omit_header: Optional[StrictBool] = Field(default=None, description="Option to omit the header from the result. If true, queryMode must be either FILL or FAIL. Default is false.", alias="omitHeader") + page: Optional[StrictInt] = Field(default=None, description="A page defines a subset of the overall result set. The number of rows per page is equal to limit with the exception of the last page in the result set which may contain fewer rows. `Page` is an index that begins at 0. The index to start retrieving results is calculated by multiplying `page` by `limit`.") + query_mode: Optional[StrictStr] = Field(default=None, description="Determines how the query should handle column definitions that the query is unable to resolve. Default is DEFAULT.", alias="queryMode") + record_mode: Optional[StrictStr] = Field(default=None, description="Influences the type of records used to build the result set, such as whether to return one record per entity that is valid in the provided time range or each change record falls in the time frame.", alias="recordMode") + __properties: ClassVar[List[str]] = ["calendarType", "currencyConversionCode", "currencyConversionDate", "currencyConversionMode", "dateTimeDisplayMode", "limit", "multipleTables", "omitHeader", "page", "queryMode", "recordMode"] + + @field_validator('calendar_type') + def calendar_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['TENANT_CALENDAR', 'GREGORIAN_CALENDAR']): + raise ValueError("must be one of enum values ('TENANT_CALENDAR', 'GREGORIAN_CALENDAR')") + return value + + @field_validator('currency_conversion_mode') + def currency_conversion_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['TENANT_CURRENCY_CONVERSION', 'VISIER_CURRENCY_CONVERSION']): + raise ValueError("must be one of enum values ('TENANT_CURRENCY_CONVERSION', 'VISIER_CURRENCY_CONVERSION')") + return value + + @field_validator('date_time_display_mode') + def date_time_display_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['EPOCH', 'DATETIME']): + raise ValueError("must be one of enum values ('EPOCH', 'DATETIME')") + return value + + @field_validator('query_mode') + def query_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['DEFAULT', 'FILL', 'FAIL']): + raise ValueError("must be one of enum values ('DEFAULT', 'FILL', 'FAIL')") + return value + + @field_validator('record_mode') + def record_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['NORMAL', 'CHANGES']): + raise ValueError("must be one of enum values ('NORMAL', 'CHANGES')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersListQueryExecutionOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersListQueryExecutionOptionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "calendarType": obj.get("calendarType"), + "currencyConversionCode": obj.get("currencyConversionCode"), + "currencyConversionDate": obj.get("currencyConversionDate"), + "currencyConversionMode": obj.get("currencyConversionMode"), + "dateTimeDisplayMode": obj.get("dateTimeDisplayMode"), + "limit": obj.get("limit"), + "multipleTables": obj.get("multipleTables"), + "omitHeader": obj.get("omitHeader"), + "page": obj.get("page"), + "queryMode": obj.get("queryMode"), + "recordMode": obj.get("recordMode") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_list_query_source_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_list_query_source_dto.py new file mode 100644 index 0000000000..c0658b7956 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_list_query_source_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersListQuerySourceDTO(BaseModel): + """ + A ListQuerySource defines the source data to query in a list query. + """ # noqa: E501 + analytic_object: Optional[StrictStr] = Field(default=None, description="The ID of an existing analytic object in your Visier solution. An analytic object source cannot have filters or time handling.", alias="analyticObject") + formula: Optional[StrictStr] = Field(default=None, description="An ad-hoc metric formula. The response returns the individual data points that make up the aggregate.") + metric: Optional[StrictStr] = Field(default=None, description="The ID of an existing metric in your Visier solution.") + text_concept: Optional[StrictStr] = Field(default=None, description="The ID of an existing text concept in your Visier solution. A concept that defines the text properties of an analytic object and includes filters to enforce aggregate thresholds.
**Note:** This field is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).", alias="textConcept") + __properties: ClassVar[List[str]] = ["analyticObject", "formula", "metric", "textConcept"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersListQuerySourceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersListQuerySourceDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObject": obj.get("analyticObject"), + "formula": obj.get("formula"), + "metric": obj.get("metric"), + "textConcept": obj.get("textConcept") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_member_filter_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_member_filter_dto.py new file mode 100644 index 0000000000..9dca86abc1 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_member_filter_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_common_member_values_dto import DataservicesCommonMemberValuesDTO +from visier_api_data_out.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersMemberFilterDTO(BaseModel): + """ + Member filters are dimension member values to filter by in your query. The member filters are defined within the filters section of a query definition. You can filter by dimension members in aggregate and list queries. + """ # noqa: E501 + dimension: Optional[DataservicesDatamodelTransfersDimensionReferenceDTO] = Field(default=None, description="The dimension in which the members belong.") + values: Optional[DataservicesCommonMemberValuesDTO] = Field(default=None, description="The dimension members to filter by.") + __properties: ClassVar[List[str]] = ["dimension", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersMemberFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of dimension + if self.dimension: + _dict['dimension'] = self.dimension.to_dict() + # override the default output from pydantic by calling `to_dict()` of values + if self.values: + _dict['values'] = self.values.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersMemberFilterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelTransfersDimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None, + "values": DataservicesCommonMemberValuesDTO.from_dict(obj["values"]) if obj.get("values") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_member_parameter_value_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_member_parameter_value_dto.py new file mode 100644 index 0000000000..7ab3ef889e --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_member_parameter_value_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_common_member_values_dto import DataservicesCommonMemberValuesDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersMemberParameterValueDTO(BaseModel): + """ + The member value of a parameter, including the parameter ID, dimension that the parameter is based on, and the included and excluded members for the parameter. + """ # noqa: E501 + dimension_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the dimension on which the parameter is based.", alias="dimensionId") + parameter_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the member parameter qualified by the object.", alias="parameterId") + reference_path: Optional[List[StrictStr]] = Field(default=None, description="The analytic object reference path from the metric to the dimension.", alias="referencePath") + values: Optional[DataservicesCommonMemberValuesDTO] = Field(default=None, description="The included and excluded member references in a dimension filter.") + __properties: ClassVar[List[str]] = ["dimensionId", "parameterId", "referencePath", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersMemberParameterValueDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of values + if self.values: + _dict['values'] = self.values.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersMemberParameterValueDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensionId": obj.get("dimensionId"), + "parameterId": obj.get("parameterId"), + "referencePath": obj.get("referencePath"), + "values": DataservicesCommonMemberValuesDTO.from_dict(obj["values"]) if obj.get("values") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_numeric_parameter_value_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_numeric_parameter_value_dto.py new file mode 100644 index 0000000000..6dbda4869f --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_numeric_parameter_value_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersNumericParameterValueDTO(BaseModel): + """ + The value of a numeric parameter, including the parameter ID and the numeric value passed into the parameter. + """ # noqa: E501 + parameter_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the numeric parameter qualified by the object.", alias="parameterId") + value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The numeric value of the parameter.") + __properties: ClassVar[List[str]] = ["parameterId", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersNumericParameterValueDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersNumericParameterValueDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "parameterId": obj.get("parameterId"), + "value": obj.get("value") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_plan_parameter_value_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_plan_parameter_value_dto.py new file mode 100644 index 0000000000..f77f539e98 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_plan_parameter_value_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersPlanParameterValueDTO(BaseModel): + """ + The value for a parameter on a planning metric, including the parameter ID and the plan the parameter is based on. + """ # noqa: E501 + parameter_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the plan parameter qualified by the object.", alias="parameterId") + plan_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the plan the parameter is based on.", alias="planId") + scenario_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the scenario the parameter is based on.", alias="scenarioId") + snapshot_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the snapshot the parameter is based on.", alias="snapshotId") + __properties: ClassVar[List[str]] = ["parameterId", "planId", "scenarioId", "snapshotId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersPlanParameterValueDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersPlanParameterValueDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "parameterId": obj.get("parameterId"), + "planId": obj.get("planId"), + "scenarioId": obj.get("scenarioId"), + "snapshotId": obj.get("snapshotId") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_property_column_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_property_column_dto.py new file mode 100644 index 0000000000..ce12ccbfe7 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_property_column_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_query_property_dto import DataservicesQueryTransfersQueryPropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersPropertyColumnDTO(BaseModel): + """ + A named, result column of a list query. + """ # noqa: E501 + column_definition: Optional[DataservicesQueryTransfersQueryPropertyDTO] = Field(default=None, description="The definition of the property to query on.", alias="columnDefinition") + column_name: Optional[StrictStr] = Field(default=None, description="The name of the column. This is optional. If not specified, the name of the property is used, or a generic column name if the property is unnamed.", alias="columnName") + __properties: ClassVar[List[str]] = ["columnDefinition", "columnName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersPropertyColumnDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of column_definition + if self.column_definition: + _dict['columnDefinition'] = self.column_definition.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersPropertyColumnDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "columnDefinition": DataservicesQueryTransfersQueryPropertyDTO.from_dict(obj["columnDefinition"]) if obj.get("columnDefinition") is not None else None, + "columnName": obj.get("columnName") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_axis_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_axis_dto.py new file mode 100644 index 0000000000..ae45264caa --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_axis_dto.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_datamodel_transfers_selection_concept_reference_dto import DataservicesDatamodelTransfersSelectionConceptReferenceDTO +from visier_api_data_out.models.dataservices_query_transfers_query_axis_options_dto import DataservicesQueryTransfersQueryAxisOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_data_member_selection_dto import DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_leaf_selection_dto import DataservicesQueryTransfersQueryDimensionLeafSelectionDTO +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_level_selection_dto import DataservicesQueryTransfersQueryDimensionLevelSelectionDTO +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_member_selection_dto import DataservicesQueryTransfersQueryDimensionMemberSelectionDTO +from visier_api_data_out.models.dataservices_query_transfers_query_member_map_selection_dto import DataservicesQueryTransfersQueryMemberMapSelectionDTO +from visier_api_data_out.models.dataservices_query_transfers_query_numeric_ranges_dto import DataservicesQueryTransfersQueryNumericRangesDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryAxisDTO(BaseModel): + """ + An axis of a query used to group data points. + """ # noqa: E501 + dimension_data_member_selection: Optional[DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO] = Field(default=None, description="An axis comprised of all leaf, including data, members of an existing dimension in Visier.", alias="dimensionDataMemberSelection") + dimension_leaf_member_selection: Optional[DataservicesQueryTransfersQueryDimensionLeafSelectionDTO] = Field(default=None, description="An axis comprised of all non-data leaf members of an existing dimension in Visier.", alias="dimensionLeafMemberSelection") + dimension_level_selection: Optional[DataservicesQueryTransfersQueryDimensionLevelSelectionDTO] = Field(default=None, description="An axis that uses levels of existing dimensions in Visier.", alias="dimensionLevelSelection") + dimension_level_with_uncategorized_value_selection: Optional[DataservicesQueryTransfersQueryDimensionLevelSelectionDTO] = Field(default=None, description="An axis that uses existing dimension levels in Visier, including uncategorized levels.", alias="dimensionLevelWithUncategorizedValueSelection") + dimension_member_selection: Optional[DataservicesQueryTransfersQueryDimensionMemberSelectionDTO] = Field(default=None, description="An axis that uses existing dimension members in Visier.", alias="dimensionMemberSelection") + formula: Optional[StrictStr] = Field(default=None, description="An axis expressed as a formula.") + member_map_selection: Optional[DataservicesQueryTransfersQueryMemberMapSelectionDTO] = Field(default=None, description="An axis that uses an existing member map in Visier.", alias="memberMapSelection") + numeric_ranges: Optional[DataservicesQueryTransfersQueryNumericRangesDTO] = Field(default=None, description="An axis that uses an existing range dimension in Visier and defines the ranges to query.", alias="numericRanges") + selection_concept: Optional[DataservicesDatamodelTransfersSelectionConceptReferenceDTO] = Field(default=None, description="An axis that uses an existing selection concept in Visier. The resulting axis consists of 3 positions: True, False, and Unknown.", alias="selectionConcept") + table_axis_options: Optional[DataservicesQueryTransfersQueryAxisOptionsDTO] = Field(default=None, description="Additional transformations to perform on this axis. Only available when the Accept header is a table format, such as text/csv or application/jsonlines.", alias="tableAxisOptions") + __properties: ClassVar[List[str]] = ["dimensionDataMemberSelection", "dimensionLeafMemberSelection", "dimensionLevelSelection", "dimensionLevelWithUncategorizedValueSelection", "dimensionMemberSelection", "formula", "memberMapSelection", "numericRanges", "selectionConcept", "tableAxisOptions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryAxisDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of dimension_data_member_selection + if self.dimension_data_member_selection: + _dict['dimensionDataMemberSelection'] = self.dimension_data_member_selection.to_dict() + # override the default output from pydantic by calling `to_dict()` of dimension_leaf_member_selection + if self.dimension_leaf_member_selection: + _dict['dimensionLeafMemberSelection'] = self.dimension_leaf_member_selection.to_dict() + # override the default output from pydantic by calling `to_dict()` of dimension_level_selection + if self.dimension_level_selection: + _dict['dimensionLevelSelection'] = self.dimension_level_selection.to_dict() + # override the default output from pydantic by calling `to_dict()` of dimension_level_with_uncategorized_value_selection + if self.dimension_level_with_uncategorized_value_selection: + _dict['dimensionLevelWithUncategorizedValueSelection'] = self.dimension_level_with_uncategorized_value_selection.to_dict() + # override the default output from pydantic by calling `to_dict()` of dimension_member_selection + if self.dimension_member_selection: + _dict['dimensionMemberSelection'] = self.dimension_member_selection.to_dict() + # override the default output from pydantic by calling `to_dict()` of member_map_selection + if self.member_map_selection: + _dict['memberMapSelection'] = self.member_map_selection.to_dict() + # override the default output from pydantic by calling `to_dict()` of numeric_ranges + if self.numeric_ranges: + _dict['numericRanges'] = self.numeric_ranges.to_dict() + # override the default output from pydantic by calling `to_dict()` of selection_concept + if self.selection_concept: + _dict['selectionConcept'] = self.selection_concept.to_dict() + # override the default output from pydantic by calling `to_dict()` of table_axis_options + if self.table_axis_options: + _dict['tableAxisOptions'] = self.table_axis_options.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryAxisDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensionDataMemberSelection": DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO.from_dict(obj["dimensionDataMemberSelection"]) if obj.get("dimensionDataMemberSelection") is not None else None, + "dimensionLeafMemberSelection": DataservicesQueryTransfersQueryDimensionLeafSelectionDTO.from_dict(obj["dimensionLeafMemberSelection"]) if obj.get("dimensionLeafMemberSelection") is not None else None, + "dimensionLevelSelection": DataservicesQueryTransfersQueryDimensionLevelSelectionDTO.from_dict(obj["dimensionLevelSelection"]) if obj.get("dimensionLevelSelection") is not None else None, + "dimensionLevelWithUncategorizedValueSelection": DataservicesQueryTransfersQueryDimensionLevelSelectionDTO.from_dict(obj["dimensionLevelWithUncategorizedValueSelection"]) if obj.get("dimensionLevelWithUncategorizedValueSelection") is not None else None, + "dimensionMemberSelection": DataservicesQueryTransfersQueryDimensionMemberSelectionDTO.from_dict(obj["dimensionMemberSelection"]) if obj.get("dimensionMemberSelection") is not None else None, + "formula": obj.get("formula"), + "memberMapSelection": DataservicesQueryTransfersQueryMemberMapSelectionDTO.from_dict(obj["memberMapSelection"]) if obj.get("memberMapSelection") is not None else None, + "numericRanges": DataservicesQueryTransfersQueryNumericRangesDTO.from_dict(obj["numericRanges"]) if obj.get("numericRanges") is not None else None, + "selectionConcept": DataservicesDatamodelTransfersSelectionConceptReferenceDTO.from_dict(obj["selectionConcept"]) if obj.get("selectionConcept") is not None else None, + "tableAxisOptions": DataservicesQueryTransfersQueryAxisOptionsDTO.from_dict(obj["tableAxisOptions"]) if obj.get("tableAxisOptions") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_axis_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_axis_options_dto.py new file mode 100644 index 0000000000..41dc9586ed --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_axis_options_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryAxisOptionsDTO(BaseModel): + """ + QueryAxisOptions allows you to customize an axis in the query, such as changing the display mode for its cell set values or providing a custom column name. Only available when the Accept header is a table format, such as text/csv or application/jsonlines. + """ # noqa: E501 + column_name: Optional[StrictStr] = Field(default=None, description="If specified, returns the column name of the axis in the response.", alias="columnName") + member_display_mode: Optional[StrictStr] = Field(default=None, description="Options to override the display mode for the axis. This overrides the query-level `memberDisplayMode` options value in the query. Only available for non-time axes. Use the QueryAxisMemberDisplayMode `memberDisplayMode` to apply different display modes to different axes. For example, let's say your query has the `memberDisplayMode` as `DISPLAY` but you want to fetch the object name for a specific dimension. With QueryAxisMemberDisplayMode `memberDisplayMode`, you can override that dimension's `memberDisplayMode` to `DEFAULT` instead of `DISPLAY`. Valid values are `UNCHANGED`, `DEFAULT`, `COMPACT`, `DISPLAY`, or `MDX`. Default is `UNCHANGED`.", alias="memberDisplayMode") + __properties: ClassVar[List[str]] = ["columnName", "memberDisplayMode"] + + @field_validator('member_display_mode') + def member_display_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['UNCHANGED', 'DEFAULT', 'COMPACT', 'DISPLAY', 'MDX']): + raise ValueError("must be one of enum values ('UNCHANGED', 'DEFAULT', 'COMPACT', 'DISPLAY', 'MDX')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryAxisOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryAxisOptionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "columnName": obj.get("columnName"), + "memberDisplayMode": obj.get("memberDisplayMode") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_dimension_data_member_selection_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_dimension_data_member_selection_dto.py new file mode 100644 index 0000000000..975f3d1d87 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_dimension_data_member_selection_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO(BaseModel): + """ + A QueryDimensionLeafSelection allows you to define a member set consisting exclusively of leaf-level, including data, members for the given dimension. Leaf members are those members that have no descendents. A member may be a leaf member regardless of the level it is positioned at. + """ # noqa: E501 + dimension: Optional[DataservicesDatamodelTransfersDimensionReferenceDTO] = Field(default=None, description="A dimension and its qualifying path to query.") + __properties: ClassVar[List[str]] = ["dimension"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of dimension + if self.dimension: + _dict['dimension'] = self.dimension.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryDimensionDataMemberSelectionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelTransfersDimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_dimension_leaf_selection_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_dimension_leaf_selection_dto.py new file mode 100644 index 0000000000..c819bb8ded --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_dimension_leaf_selection_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryDimensionLeafSelectionDTO(BaseModel): + """ + A QueryDimensionLeafSelection allows you to define a member set consisting exclusively of leaf-level members for the given dimension. Leaf members are those members that have no descendents. A member may be a leaf member regardless of the level it is positioned at. This member selection option, excludes data members. + """ # noqa: E501 + dimension: Optional[DataservicesDatamodelTransfersDimensionReferenceDTO] = Field(default=None, description="A dimension and its qualifying path to query.") + __properties: ClassVar[List[str]] = ["dimension"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryDimensionLeafSelectionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of dimension + if self.dimension: + _dict['dimension'] = self.dimension.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryDimensionLeafSelectionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelTransfersDimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_dimension_level_property_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_dimension_level_property_dto.py new file mode 100644 index 0000000000..ace2f151e6 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_dimension_level_property_dto.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryDimensionLevelPropertyDTO(BaseModel): + """ + A QueryDimensionLevelPropertyDTO defines an existing dimension level and its dimension to query. + """ # noqa: E501 + dimension: Optional[DataservicesDatamodelTransfersDimensionReferenceDTO] = Field(default=None, description="A dimension and its qualifying path to query.") + level_depth: Optional[StrictInt] = Field(default=None, description="The level depth.", alias="levelDepth") + level_id: Optional[StrictStr] = Field(default=None, description="The level ID.", alias="levelId") + member_value_mode: Optional[StrictStr] = Field(default=None, description="Controls how to display member values. Valid values are `NAME`, `PATH`. * `NAME`: Returns the member's display name. This is the default. * `PATH`: Returns the member's name path.", alias="memberValueMode") + __properties: ClassVar[List[str]] = ["dimension", "levelDepth", "levelId", "memberValueMode"] + + @field_validator('member_value_mode') + def member_value_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['NAME', 'PATH']): + raise ValueError("must be one of enum values ('NAME', 'PATH')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryDimensionLevelPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of dimension + if self.dimension: + _dict['dimension'] = self.dimension.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryDimensionLevelPropertyDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelTransfersDimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None, + "levelDepth": obj.get("levelDepth"), + "levelId": obj.get("levelId"), + "memberValueMode": obj.get("memberValueMode") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_dimension_level_selection_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_dimension_level_selection_dto.py new file mode 100644 index 0000000000..c052788228 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_dimension_level_selection_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryDimensionLevelSelectionDTO(BaseModel): + """ + A QueryDimensionLevelSelection allows you to select a dimension level and its members without explicitly listing each member. To see the correct notation for levels, see `Dimension`. + """ # noqa: E501 + dimension: Optional[DataservicesDatamodelTransfersDimensionReferenceDTO] = Field(default=None, description="A dimension and its qualifying path to query.") + level_ids: Optional[List[StrictStr]] = Field(default=None, description="The ordered collection of level identifiers for the dimension. See `Dimension`.", alias="levelIds") + __properties: ClassVar[List[str]] = ["dimension", "levelIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryDimensionLevelSelectionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of dimension + if self.dimension: + _dict['dimension'] = self.dimension.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryDimensionLevelSelectionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelTransfersDimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None, + "levelIds": obj.get("levelIds") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_dimension_member_selection_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_dimension_member_selection_dto.py new file mode 100644 index 0000000000..8ee001fcb8 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_dimension_member_selection_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_common_dimension_member_reference_dto import DataservicesCommonDimensionMemberReferenceDTO +from visier_api_data_out.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryDimensionMemberSelectionDTO(BaseModel): + """ + A QueryDimensionMemberSelection defines dimension members to select in the query. + """ # noqa: E501 + dimension: Optional[DataservicesDatamodelTransfersDimensionReferenceDTO] = Field(default=None, description="A dimension and its qualifying path to query.") + members: Optional[List[DataservicesCommonDimensionMemberReferenceDTO]] = Field(default=None, description="A collection of dimension members to select in the query. This must contain at least one member.") + __properties: ClassVar[List[str]] = ["dimension", "members"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryDimensionMemberSelectionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of dimension + if self.dimension: + _dict['dimension'] = self.dimension.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in members (list) + _items = [] + if self.members: + for _item_members in self.members: + if _item_members: + _items.append(_item_members.to_dict()) + _dict['members'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryDimensionMemberSelectionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelTransfersDimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None, + "members": [DataservicesCommonDimensionMemberReferenceDTO.from_dict(_item) for _item in obj["members"]] if obj.get("members") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_execution_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_execution_options_dto.py new file mode 100644 index 0000000000..ebba97243c --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_execution_options_dto.py @@ -0,0 +1,193 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_cell_distribution_options_dto import DataservicesQueryTransfersCellDistributionOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_internal_query_execution_options_dto import DataservicesQueryTransfersInternalQueryExecutionOptionsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryExecutionOptionsDTO(BaseModel): + """ + A QueryExecutionOptions provides additional instructions to perform a query. + """ # noqa: E501 + axes_overall_value_mode: Optional[StrictStr] = Field(default=None, description="If `axes` is defined, use `axesOverallValueMode` to specify the type of overall values to return across the axes. Valid values: * `NONE`: Returns the metric's values for the selected axes and doesn't return overall values. This is the default. * `AGGREGATE`: Returns the metric's overall values for the selected axes members. * `OVERALL`: Returns the metric's overall values for all axes members. **Note**: `AGGREGATE` is not supported for lookup overlays because the overall values of selected members cannot be calculated directly from the data. Example: Let's say you want to know the Headcount of the locations Canada and US and the genders Male and Female. When `axesOverallValueMode` is `NONE`, the query returns these values: * 100 (Canada, Male) * 100 (US, Male) * 100 (Canada, Female) * 100 (US, Female) When `axesOverallValueMode` is `AGGREGATE`, the query returns these values: * 100 (Canada, Male) * 100 (US, Male) * 100 (Canada, Female) * 100 (US, Female) * 400 (Overall, Overall) * 200 (Overall, Male) * 200 (Overall, Female) * 200 (Canada, Overall) * 200 (US, Overall) When `axesOverallValueMode` is `OVERALL`, the query returns these values: * 100 (Canada, Male) * 100 (US, Male) * 100 (Canada, Female) * 100 (US, Female) * 800 (Overall, Overall) * 400 (Overall, Male) * 400 (Overall, Female) * 400 (Canada, Overall) * 400 (US, Overall) In this example, `OVERALL` returns higher overall values than `AGGREGATE` because `AGGREGATE` returns the overall values for the selected locations (Canada, US) and genders (Male, Female), whereas `OVERALL` returns the overall values across all locations and genders in the data.", alias="axesOverallValueMode") + axis_visibility: Optional[StrictStr] = Field(default=None, description="The amount of information to return about each axis. Default is SIMPLE.", alias="axisVisibility") + calendar_type: Optional[StrictStr] = Field(default=None, description="The calendar type to use. This will be used for all time calculations unless explicitly overridden in the calculation itself. Default is TENANT_CALENDAR.", alias="calendarType") + cell_distribution_options: Optional[DataservicesQueryTransfersCellDistributionOptionsDTO] = Field(default=None, alias="cellDistributionOptions") + currency_conversion_code: Optional[StrictStr] = Field(default=None, description="The target currency for all currency conversions. If not specified, the tenant default currency will be used.", alias="currencyConversionCode") + currency_conversion_date: Optional[StrictStr] = Field(default=None, description="The currency conversion date to use. If defined, the currency conversion will use the exchange rates as of this date. Default is the exchange rate at the end of the query time interval. Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string. Note: Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="currencyConversionDate") + currency_conversion_mode: Optional[StrictStr] = Field(default=None, description="The currency conversion mode to use. This will be used for all currency conversion calculations unless explicitly overridden in the calculation itself. Default is TENANT_CURRENCY_CONVERSION.", alias="currencyConversionMode") + enable_descending_space: Optional[StrictBool] = Field(default=None, description="If true, filter non-time axis member sets to only include members that are in aggregate positions or whose previous position is a leaf", alias="enableDescendingSpace") + enable_sparse_results: Optional[StrictBool] = Field(default=None, description="Retrieve sparse cell sets. Sparse results only retrieve non-zero and non-null cells. Whether a result is truly sparse or not is determined by the Visier server.", alias="enableSparseResults") + internal: Optional[DataservicesQueryTransfersInternalQueryExecutionOptionsDTO] = None + lineage_depth: Optional[StrictInt] = Field(default=None, description="The max number of levels of nesting to unwind when determining the lineage for a derived metric value.", alias="lineageDepth") + member_display_mode: Optional[StrictStr] = Field(default=None, description="Control how member values are displayed. You can override the `memberDisplayMode` on a per-axis basis, if required. Valid values are `DEFAULT`, `COMPACT`, `DISPLAY`, or `MDX`. Default is `DEFAULT`. * `DEFAULT`: The default member name representation. For non-time members, this returns the technical member name path. For time members, this includes a bracketed member index. For example, Time instant member: `2019-06-01T00:00:00.000Z - [0]` For example, Time interval member: `2022-06-01T00:00:00.000Z/2022-07-01T00:00:00.000Z - [12]` * `COMPACT`: Shortens the member name representation. For time intervals, the member name is the end time of the interval. For example, Time instant member: `2019-06-01T00:00:00.000Z` For example, Time interval member: `2022-07-01T00:00:00.000Z` where the interval member name was `2022-06-01T00:00:00.000Z/2022-07-01T00:00:00.000Z - [12]` * `DISPLAY`: Emits the members' display names whenever possible. When combined with `axisVisibility = VERBOSE`, the full display name path will be emitted. * `MDX`: Emits member name paths where each element is enclosed in square brackets, `[]`. Multidimensional expression (MDX) display mode automatically encloses time members in square brackets and puts them in `COMPACT` format. For example, Location member `North America.United States.California` becomes `[North America].[United States].[California]` in MDX display mode. For example, Time instant member `2019-06-01T00:00:00.000Z - [0]` becomes `[2019-06-01T00:00:00.000Z]` in MDX display mode. * `COMPACT_DISPLAY`: Emit the members' display names after compacting. This applies primarily to time members for event-based metrics. Compact display is required when running multi-metric queries containing both event-based and subject-based metrics. Multi-metric queries with `DISPLAY` mode are changed automatically to `COMPACT_DISPLAY`. For example, Time interval member `2022-06-01T00:00:00.000Z/2022-07-01T00:00:00.000Z - [12]` becomes `Jun 30, 2022` in `COMPACT_DISPLAY` mode. The exact format of the compacted time member display name depends on the the user's locale.", alias="memberDisplayMode") + null_visibility: Optional[StrictStr] = Field(default=None, description="Show or hide null or N/A values in the result. Default is SHOW.", alias="nullVisibility") + zero_visibility: Optional[StrictStr] = Field(default=None, description="Show or hide zeros in the result. Default is SHOW.", alias="zeroVisibility") + __properties: ClassVar[List[str]] = ["axesOverallValueMode", "axisVisibility", "calendarType", "cellDistributionOptions", "currencyConversionCode", "currencyConversionDate", "currencyConversionMode", "enableDescendingSpace", "enableSparseResults", "internal", "lineageDepth", "memberDisplayMode", "nullVisibility", "zeroVisibility"] + + @field_validator('axes_overall_value_mode') + def axes_overall_value_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['NONE', 'AGGREGATE', 'OVERALL']): + raise ValueError("must be one of enum values ('NONE', 'AGGREGATE', 'OVERALL')") + return value + + @field_validator('axis_visibility') + def axis_visibility_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['SIMPLE', 'VERBOSE']): + raise ValueError("must be one of enum values ('SIMPLE', 'VERBOSE')") + return value + + @field_validator('calendar_type') + def calendar_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['TENANT_CALENDAR', 'GREGORIAN_CALENDAR']): + raise ValueError("must be one of enum values ('TENANT_CALENDAR', 'GREGORIAN_CALENDAR')") + return value + + @field_validator('currency_conversion_mode') + def currency_conversion_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['TENANT_CURRENCY_CONVERSION', 'VISIER_CURRENCY_CONVERSION']): + raise ValueError("must be one of enum values ('TENANT_CURRENCY_CONVERSION', 'VISIER_CURRENCY_CONVERSION')") + return value + + @field_validator('member_display_mode') + def member_display_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['DEFAULT', 'COMPACT', 'DISPLAY', 'MDX', 'COMPACT_DISPLAY']): + raise ValueError("must be one of enum values ('DEFAULT', 'COMPACT', 'DISPLAY', 'MDX', 'COMPACT_DISPLAY')") + return value + + @field_validator('null_visibility') + def null_visibility_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['SHOW', 'HIDE', 'ELIMINATE']): + raise ValueError("must be one of enum values ('SHOW', 'HIDE', 'ELIMINATE')") + return value + + @field_validator('zero_visibility') + def zero_visibility_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['SHOW', 'HIDE', 'ELIMINATE']): + raise ValueError("must be one of enum values ('SHOW', 'HIDE', 'ELIMINATE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryExecutionOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cell_distribution_options + if self.cell_distribution_options: + _dict['cellDistributionOptions'] = self.cell_distribution_options.to_dict() + # override the default output from pydantic by calling `to_dict()` of internal + if self.internal: + _dict['internal'] = self.internal.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryExecutionOptionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "axesOverallValueMode": obj.get("axesOverallValueMode"), + "axisVisibility": obj.get("axisVisibility"), + "calendarType": obj.get("calendarType"), + "cellDistributionOptions": DataservicesQueryTransfersCellDistributionOptionsDTO.from_dict(obj["cellDistributionOptions"]) if obj.get("cellDistributionOptions") is not None else None, + "currencyConversionCode": obj.get("currencyConversionCode"), + "currencyConversionDate": obj.get("currencyConversionDate"), + "currencyConversionMode": obj.get("currencyConversionMode"), + "enableDescendingSpace": obj.get("enableDescendingSpace"), + "enableSparseResults": obj.get("enableSparseResults"), + "internal": DataservicesQueryTransfersInternalQueryExecutionOptionsDTO.from_dict(obj["internal"]) if obj.get("internal") is not None else None, + "lineageDepth": obj.get("lineageDepth"), + "memberDisplayMode": obj.get("memberDisplayMode"), + "nullVisibility": obj.get("nullVisibility"), + "zeroVisibility": obj.get("zeroVisibility") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_filter_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_filter_dto.py new file mode 100644 index 0000000000..6fe2fe76b6 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_filter_dto.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_datamodel_transfers_selection_concept_reference_dto import DataservicesDatamodelTransfersSelectionConceptReferenceDTO +from visier_api_data_out.models.dataservices_query_transfers_cohort_filter_dto import DataservicesQueryTransfersCohortFilterDTO +from visier_api_data_out.models.dataservices_query_transfers_member_filter_dto import DataservicesQueryTransfersMemberFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryFilterDTO(BaseModel): + """ + A QueryFilter selects specific data points within a population. + """ # noqa: E501 + cohort: Optional[DataservicesQueryTransfersCohortFilterDTO] = Field(default=None, description="A filter that identifies a population at a specific time.") + formula: Optional[StrictStr] = Field(default=None, description="A filter expressed as a formula.") + member_set: Optional[DataservicesQueryTransfersMemberFilterDTO] = Field(default=None, description="A filter that includes or excludes dimension members.", alias="memberSet") + selection_concept: Optional[DataservicesDatamodelTransfersSelectionConceptReferenceDTO] = Field(default=None, description="A filter that uses an existing selection concept in Visier.", alias="selectionConcept") + __properties: ClassVar[List[str]] = ["cohort", "formula", "memberSet", "selectionConcept"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cohort + if self.cohort: + _dict['cohort'] = self.cohort.to_dict() + # override the default output from pydantic by calling `to_dict()` of member_set + if self.member_set: + _dict['memberSet'] = self.member_set.to_dict() + # override the default output from pydantic by calling `to_dict()` of selection_concept + if self.selection_concept: + _dict['selectionConcept'] = self.selection_concept.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryFilterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cohort": DataservicesQueryTransfersCohortFilterDTO.from_dict(obj["cohort"]) if obj.get("cohort") is not None else None, + "formula": obj.get("formula"), + "memberSet": DataservicesQueryTransfersMemberFilterDTO.from_dict(obj["memberSet"]) if obj.get("memberSet") is not None else None, + "selectionConcept": DataservicesDatamodelTransfersSelectionConceptReferenceDTO.from_dict(obj["selectionConcept"]) if obj.get("selectionConcept") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_member_map_property_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_member_map_property_dto.py new file mode 100644 index 0000000000..bec1519a61 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_member_map_property_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryMemberMapPropertyDTO(BaseModel): + """ + A QueryMemberMapProperty defines an existing member map and its dimension to query. + """ # noqa: E501 + member_map: Optional[DataservicesDatamodelTransfersDimensionReferenceDTO] = Field(default=None, description="A member map and its qualifying path to query.", alias="memberMap") + target_dimension_name: Optional[StrictStr] = Field(default=None, description="The name of the member map's dimension that you want to query. The member selection is based on this dimension.", alias="targetDimensionName") + __properties: ClassVar[List[str]] = ["memberMap", "targetDimensionName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryMemberMapPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of member_map + if self.member_map: + _dict['memberMap'] = self.member_map.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryMemberMapPropertyDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "memberMap": DataservicesDatamodelTransfersDimensionReferenceDTO.from_dict(obj["memberMap"]) if obj.get("memberMap") is not None else None, + "targetDimensionName": obj.get("targetDimensionName") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_member_map_selection_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_member_map_selection_dto.py new file mode 100644 index 0000000000..ae5dc1a465 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_member_map_selection_dto.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_common_dimension_member_reference_dto import DataservicesCommonDimensionMemberReferenceDTO +from visier_api_data_out.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryMemberMapSelectionDTO(BaseModel): + """ + A QueryMemberMapSelection groups data in a query by dimension members in a member map. This allows grouping by a dimension that isn't typically valid on the analytic object being queried by selecting a valid member map on the analytic object. Note: This is unique to the data query API and cannot be reproduced in Visier's interface. + """ # noqa: E501 + member_map: Optional[DataservicesDatamodelTransfersDimensionReferenceDTO] = Field(default=None, description="A member map and its qualifying path to query.", alias="memberMap") + members: Optional[List[DataservicesCommonDimensionMemberReferenceDTO]] = Field(default=None, description="A collection of the selected dimension members from the `targetDimension`. This must contain at least one member.") + target_dimension_name: Optional[StrictStr] = Field(default=None, description="The name of the member map's dimension that you want to query. The member selection is based on this dimension.", alias="targetDimensionName") + __properties: ClassVar[List[str]] = ["memberMap", "members", "targetDimensionName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryMemberMapSelectionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of member_map + if self.member_map: + _dict['memberMap'] = self.member_map.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in members (list) + _items = [] + if self.members: + for _item_members in self.members: + if _item_members: + _items.append(_item_members.to_dict()) + _dict['members'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryMemberMapSelectionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "memberMap": DataservicesDatamodelTransfersDimensionReferenceDTO.from_dict(obj["memberMap"]) if obj.get("memberMap") is not None else None, + "members": [DataservicesCommonDimensionMemberReferenceDTO.from_dict(_item) for _item in obj["members"]] if obj.get("members") is not None else None, + "targetDimensionName": obj.get("targetDimensionName") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_numeric_ranges_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_numeric_ranges_dto.py new file mode 100644 index 0000000000..bdc94bb974 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_numeric_ranges_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_query_property_dto import DataservicesQueryTransfersQueryPropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryNumericRangesDTO(BaseModel): + """ + A QueryNumericRanges groups data into specified ranges based on a property value. + """ # noqa: E501 + include_all_member: Optional[StrictBool] = Field(default=None, description="If `true`, a member is included that represents all members on the axis. Default is false.", alias="includeAllMember") + include_independent_zero_range: Optional[StrictBool] = Field(default=None, description="If `true`, 0 is an independent range. Default is false.", alias="includeIndependentZeroRange") + include_negative: Optional[StrictBool] = Field(default=None, description="If `true`, negative ranges are included. Default is false.", alias="includeNegative") + var_property: Optional[DataservicesQueryTransfersQueryPropertyDTO] = Field(default=None, description="The name and qualifying path of a numeric property. Non-numeric properties are not accepted.", alias="property") + ranges: Optional[StrictStr] = Field(default=None, description="The ranges to group data into, expressed as a space-separated string of range-bound values.") + __properties: ClassVar[List[str]] = ["includeAllMember", "includeIndependentZeroRange", "includeNegative", "property", "ranges"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryNumericRangesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of var_property + if self.var_property: + _dict['property'] = self.var_property.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryNumericRangesDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "includeAllMember": obj.get("includeAllMember"), + "includeIndependentZeroRange": obj.get("includeIndependentZeroRange"), + "includeNegative": obj.get("includeNegative"), + "property": DataservicesQueryTransfersQueryPropertyDTO.from_dict(obj["property"]) if obj.get("property") is not None else None, + "ranges": obj.get("ranges") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_parameter_value_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_parameter_value_dto.py new file mode 100644 index 0000000000..efc63bcf1a --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_parameter_value_dto.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_aggregation_type_parameter_value_dto import DataservicesQueryTransfersAggregationTypeParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_member_parameter_value_dto import DataservicesQueryTransfersMemberParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_numeric_parameter_value_dto import DataservicesQueryTransfersNumericParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_plan_parameter_value_dto import DataservicesQueryTransfersPlanParameterValueDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryParameterValueDTO(BaseModel): + """ + An object that contains parameter values for either member or numeric parameters. + """ # noqa: E501 + aggregation_type_value: Optional[DataservicesQueryTransfersAggregationTypeParameterValueDTO] = Field(default=None, description="A value for an aggregation parameter.", alias="aggregationTypeValue") + member_value: Optional[DataservicesQueryTransfersMemberParameterValueDTO] = Field(default=None, description="A value for a member parameter.", alias="memberValue") + numeric_value: Optional[DataservicesQueryTransfersNumericParameterValueDTO] = Field(default=None, description="A value for a numeric parameter.", alias="numericValue") + plan_value: Optional[DataservicesQueryTransfersPlanParameterValueDTO] = Field(default=None, description="A value for a plan parameter.", alias="planValue") + __properties: ClassVar[List[str]] = ["aggregationTypeValue", "memberValue", "numericValue", "planValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryParameterValueDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of aggregation_type_value + if self.aggregation_type_value: + _dict['aggregationTypeValue'] = self.aggregation_type_value.to_dict() + # override the default output from pydantic by calling `to_dict()` of member_value + if self.member_value: + _dict['memberValue'] = self.member_value.to_dict() + # override the default output from pydantic by calling `to_dict()` of numeric_value + if self.numeric_value: + _dict['numericValue'] = self.numeric_value.to_dict() + # override the default output from pydantic by calling `to_dict()` of plan_value + if self.plan_value: + _dict['planValue'] = self.plan_value.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryParameterValueDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "aggregationTypeValue": DataservicesQueryTransfersAggregationTypeParameterValueDTO.from_dict(obj["aggregationTypeValue"]) if obj.get("aggregationTypeValue") is not None else None, + "memberValue": DataservicesQueryTransfersMemberParameterValueDTO.from_dict(obj["memberValue"]) if obj.get("memberValue") is not None else None, + "numericValue": DataservicesQueryTransfersNumericParameterValueDTO.from_dict(obj["numericValue"]) if obj.get("numericValue") is not None else None, + "planValue": DataservicesQueryTransfersPlanParameterValueDTO.from_dict(obj["planValue"]) if obj.get("planValue") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_property_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_property_dto.py new file mode 100644 index 0000000000..52deeee91b --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_property_dto.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_datamodel_transfers_dimension_reference_dto import DataservicesDatamodelTransfersDimensionReferenceDTO +from visier_api_data_out.models.dataservices_datamodel_transfers_property_reference_dto import DataservicesDatamodelTransfersPropertyReferenceDTO +from visier_api_data_out.models.dataservices_datamodel_transfers_selection_concept_reference_dto import DataservicesDatamodelTransfersSelectionConceptReferenceDTO +from visier_api_data_out.models.dataservices_query_transfers_query_dimension_level_property_dto import DataservicesQueryTransfersQueryDimensionLevelPropertyDTO +from visier_api_data_out.models.dataservices_query_transfers_query_member_map_property_dto import DataservicesQueryTransfersQueryMemberMapPropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryPropertyDTO(BaseModel): + """ + A QueryProperty defines a property of a data point returned from a query. This is not the same as a `property` in Visier's data mode. + """ # noqa: E501 + dimension: Optional[DataservicesDatamodelTransfersDimensionReferenceDTO] = Field(default=None, description="A dimension-based property that returns the full name path of the dimension member that the data point is mapped to.") + dimension_level_selection: Optional[DataservicesQueryTransfersQueryDimensionLevelPropertyDTO] = Field(default=None, description="A dimension-based property that returns the member values of the dimension level.", alias="dimensionLevelSelection") + effective_date_property: Optional[Dict[str, Any]] = Field(default=None, description="A property that yields the effective date for the record", alias="effectiveDateProperty") + formula: Optional[StrictStr] = Field(default=None, description="A formula-based property.") + member_map_property: Optional[DataservicesQueryTransfersQueryMemberMapPropertyDTO] = Field(default=None, description="A member map-based property that uses an existing member map in Visier.", alias="memberMapProperty") + var_property: Optional[DataservicesDatamodelTransfersPropertyReferenceDTO] = Field(default=None, description="A property reference.", alias="property") + selection_concept: Optional[DataservicesDatamodelTransfersSelectionConceptReferenceDTO] = Field(default=None, description="A selection concept-based property that returns true or false.", alias="selectionConcept") + __properties: ClassVar[List[str]] = ["dimension", "dimensionLevelSelection", "effectiveDateProperty", "formula", "memberMapProperty", "property", "selectionConcept"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of dimension + if self.dimension: + _dict['dimension'] = self.dimension.to_dict() + # override the default output from pydantic by calling `to_dict()` of dimension_level_selection + if self.dimension_level_selection: + _dict['dimensionLevelSelection'] = self.dimension_level_selection.to_dict() + # override the default output from pydantic by calling `to_dict()` of member_map_property + if self.member_map_property: + _dict['memberMapProperty'] = self.member_map_property.to_dict() + # override the default output from pydantic by calling `to_dict()` of var_property + if self.var_property: + _dict['property'] = self.var_property.to_dict() + # override the default output from pydantic by calling `to_dict()` of selection_concept + if self.selection_concept: + _dict['selectionConcept'] = self.selection_concept.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryPropertyDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelTransfersDimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None, + "dimensionLevelSelection": DataservicesQueryTransfersQueryDimensionLevelPropertyDTO.from_dict(obj["dimensionLevelSelection"]) if obj.get("dimensionLevelSelection") is not None else None, + "effectiveDateProperty": obj.get("effectiveDateProperty"), + "formula": obj.get("formula"), + "memberMapProperty": DataservicesQueryTransfersQueryMemberMapPropertyDTO.from_dict(obj["memberMapProperty"]) if obj.get("memberMapProperty") is not None else None, + "property": DataservicesDatamodelTransfersPropertyReferenceDTO.from_dict(obj["property"]) if obj.get("property") is not None else None, + "selectionConcept": DataservicesDatamodelTransfersSelectionConceptReferenceDTO.from_dict(obj["selectionConcept"]) if obj.get("selectionConcept") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_time_interval_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_time_interval_dto.py new file mode 100644 index 0000000000..e53fe186fb --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_time_interval_dto.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_time_shift_dto import DataservicesQueryTransfersTimeShiftDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryTimeIntervalDTO(BaseModel): + """ + A QueryTimeInterval defines the time interval to query, including the \"from\" time, period type, period count, time direction, and shift to apply + """ # noqa: E501 + direction: Optional[StrictStr] = Field(default=None, description="The direction to extend. Default is BACKWARD. BACKWARD is useful when the time instant is the current date or with `dynamicDateFrom` because the query continuously retrieves the newest data from current date backwards.") + dynamic_date_from: Optional[StrictStr] = Field(default=None, description="Dynamically select the date from which to extend in the specified `direction`. Valid values are `SOURCE` or `COMPLETE_PERIOD`. Both options determine the date using the request's `source` field. Whether the source is a metric, formula, or metrics, each source has earliest and latest data available dates to use. The `direction` determines whether the earliest or latest date is used. * If `dynamicDateFrom` is `SOURCE`, the query returns data from a date determined by the `source` query definition element. If `dynamicDateFrom` is `COMPLETE_PERIOD`, the query returns data starting from the latest or earliest date with a complete period of data. `COMPLETE_PERIOD` returns periods defined by `intervalPeriodType`. If the period type is MONTH, it returns full months of data. If the period type is YEAR, it returns full years of data. When `dynamicDateFrom` is specified: * If `source` is `metric`, then `dynamicDateFrom` considers the date range of available data for the metric. * If `source` is `formula`, then `dynamicDateFrom` considers the date range of available data for the metric in the formula. * If `source` is `analyticObject`, then `dynamicDateFrom` considers the date range of available data for the analytic object. Then, if `direction` is `BACKWARD`, query backward from the data **end** date and if `direction` is `FORWARD`, query forward from the data **start** date. This allows you to keep getting the latest or earliest data without changing your query every time there's new or updated data. Example: If a tenant has Headcount metric data available from 2023-01-01 to 2024-01-01 (End date exclusive), specifying `dynamicDateFrom`: `SOURCE` with `direction`: `BACKWARD` means the query will retrieve data backward from 2024-01-01. The effect is the same as if specifying a `fromDateTime` of 2024-01-01'T'00:00:00.000. Example: If a tenant has Employee subject data available from 2023-01-01 to 2024-01-01 (End date exclusive), specifying `dynamicDateFrom`: `SOURCE` with `direction`: `FORWARD` means the query will retrieve data forward from 2023-01-01. The effect is the same as if specifying a `fromDateTime` of 2023-01-01'T'00:00:00.000. Example: If a tenant has Employee subject data available from 2023-01-10 to 2023-04-01 (End date exclusive), specifying `dynamicDateFrom`: `COMPLETE_PERIOD` with `direction`: `FORWARD` means the query will retrieve data forward from 2023-02-01. The effect is the same as if specifying a `fromDateTime` of 2023-02-01'T'00:00:00.000. Example: If a tenant has Employee subject data available from 2023-01-01 to 2023-03-15 (End date exclusive), specifying `dynamicDateFrom`: `COMPLETE_PERIOD` with `direction`: `BACKWARD` means the query will retrieve data backward from 2023-03-01. The effect is the same as if specifying a `fromDateTime` of 2023-03-01'T'00:00:00.000. Example: Retrieve a list of EmployeeIDs for the formula extending 1 month backward from the dynamic source date { \"source\": { \"formula\": \"on Employee validUntil instant filterBy(isActiveEmployee) aggregate count(Employee.EmployeeID)\" }, \"columns\": [ { \"columnDefinition\": { \"property\": { \"name\": \"Employee.EmployeeID\", \"qualifyingPath\": \"Employee\" } } }, { \"columnDefinition\": { \"effectiveDateProperty\": {} } } ], \"timeInterval\": { \"dynamicDateFrom\": \"SOURCE\", \"intervalPeriodType\": \"MONTH\", \"intervalPeriodCount\": 1, \"direction\": \"BACKWARD\" } }", alias="dynamicDateFrom") + from_date_time: Optional[StrictStr] = Field(default=None, description="The instant from which to extend in the specified `direction`, as an ISO-8601 formatted date time string. Valid formats: yyyy-MM-dd, yyyy-MM-dd'T'HH:mm:ss, yyyy-MM-dd'T'HH:mm:ss.SSS. Events that occur on this date are excluded. Subject-based data that ends on this date is included.", alias="fromDateTime") + from_instant: Optional[StrictStr] = Field(default=None, description="The instant from which to extend in the specified `direction`, in milliseconds since 1970-01-01T00:00:00Z. Events that occur on this date are excluded. Subject-based data that ends on this date is included. Note: Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="fromInstant") + interval_period_count: Optional[StrictInt] = Field(default=None, description="The number of time periods per interval.", alias="intervalPeriodCount") + interval_period_type: Optional[StrictStr] = Field(default=None, description="The time period type for each interval. Default is MONTH.", alias="intervalPeriodType") + shift: Optional[DataservicesQueryTransfersTimeShiftDTO] = Field(default=None, description="The amount of time to shift the time interval by, such as backward by one year. Default is none.") + __properties: ClassVar[List[str]] = ["direction", "dynamicDateFrom", "fromDateTime", "fromInstant", "intervalPeriodCount", "intervalPeriodType", "shift"] + + @field_validator('direction') + def direction_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['BACKWARD', 'FORWARD']): + raise ValueError("must be one of enum values ('BACKWARD', 'FORWARD')") + return value + + @field_validator('dynamic_date_from') + def dynamic_date_from_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['SOURCE', 'COMPLETE_PERIOD']): + raise ValueError("must be one of enum values ('SOURCE', 'COMPLETE_PERIOD')") + return value + + @field_validator('interval_period_type') + def interval_period_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR']): + raise ValueError("must be one of enum values ('MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryTimeIntervalDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of shift + if self.shift: + _dict['shift'] = self.shift.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryTimeIntervalDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "direction": obj.get("direction"), + "dynamicDateFrom": obj.get("dynamicDateFrom"), + "fromDateTime": obj.get("fromDateTime"), + "fromInstant": obj.get("fromInstant"), + "intervalPeriodCount": obj.get("intervalPeriodCount"), + "intervalPeriodType": obj.get("intervalPeriodType"), + "shift": DataservicesQueryTransfersTimeShiftDTO.from_dict(obj["shift"]) if obj.get("shift") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_time_intervals_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_time_intervals_dto.py new file mode 100644 index 0000000000..7b2f2d3c28 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_query_time_intervals_dto.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_time_shift_dto import DataservicesQueryTransfersTimeShiftDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersQueryTimeIntervalsDTO(BaseModel): + """ + A QueryTimeIntervals defines a series of time intervals to query, including the \"from\" time, period type, period count, number of intervals, time direction, and shift to apply to each time interval. + """ # noqa: E501 + direction: Optional[StrictStr] = Field(default=None, description="The direction to extend. Defaults is BACKWARD.") + dynamic_date_from: Optional[StrictStr] = Field(default=None, description="Dynamically select the date from which to extend. Valid values are `SOURCE` or `COMPLETE_PERIOD`. Both options use the `source` query definition element to determine the date. If `dynamicDateFrom` is `SOURCE`, the query returns data from a date determined by the `source` query definition element. If `dynamicDateFrom` is `COMPLETE_PERIOD`, the query returns data starting from the latest or earliest date with a complete period of data. When `dynamicDateFrom` is specified: * If `source` is `metric`, then `dynamicDateFrom` considers the date range of available data for the metric. * If `source` is `formula`, then `dynamicDateFrom` considers the date range of available data for the metric in the formula. * If `source` is `metrics`, then `dynamicDateFrom` considers the date range of available data for the metric in the formula. Then, if `direction` is `BACKWARD`, query backward from the data **end** date and if `direction` is `FORWARD`, query forward from the data **start** date. This allows you to keep getting the latest or earliest data without changing your query every time there's new or updated data. Note: For multi-metric queries, if `direction` is `BACKWARD`, query backward from the earliest data end date of all metrics and if `direction` is `FORWARD`, query forward from the latest data start date of all metrics. This ensures that all metrics have data in the specified time range. Example: If a tenant has Headcount metric data available from 2023-01-01 to 2024-01-01 (End date exclusive), specifying `dynamicDateFrom`: `SOURCE` with `direction`: `BACKWARD` means the query will retrieve data backward from 2024-01-01. The effect is the same as if specifying a `fromDateTime` of 2024-01-01'T'00:00:00.000. Example: If a tenant has Employee subject data available from 2023-01-10 to 2023-04-01 (End date exclusive), specifying `dynamicDateFrom`: `COMPLETE_PERIOD` with `direction`: `FORWARD` means the query will retrieve data forward from 2023-02-01. The effect is the same as if specifying a `fromDateTime` of 2023-02-01'T'00:00:00.000. Example: If a tenant has Employee subject data available from 2023-01-01 to 2023-03-15 (End date exclusive), specifying `dynamicDateFrom`: `COMPLETE_PERIOD` with `direction`: `BACKWARD` means the query will retrieve data backward from 2023-03-01. The effect is the same as if specifying a `fromDateTime` of 2023-03-01'T'00:00:00.000. Example: If a tenant has Headcount data available from 2023-01-01 to 2024-09-01 and Exit Count data available from 2023-01-01 to 2024-01-01, specifying `dynamicDateFrom`: `SOURCE` with `direction`: `BACKWARD` means the query will retrieve data backward from 2024-01-01. Exit Count has an earlier data end date than Headcount, so `dynamicDateFrom` retrieves data backward from Exit Count's data end date to ensure both metrics have data in the specified time range. Example: Retrieve Headcount (employeeCount) extending 1 month backward from Headcount's dynamic source date { \"query\": { \"source\": { \"metric\": \"employeeCount\" }, \"timeIntervals\": { \"dynamicDateFrom\": \"SOURCE\", \"intervalPeriodType\": \"MONTH\", \"intervalCount\": 1, \"direction\": \"BACKWARD\" } } }", alias="dynamicDateFrom") + from_date_time: Optional[StrictStr] = Field(default=None, description="The instant from which to extend, as an ISO-8601 formatted date time string. This value is exclusive. Valid formats: yyyy-MM-dd, yyyy-MM-dd'T'HH:mm:ss, yyyy-MM-dd'T'HH:mm:ss.SSS. Events that occur on this date are excluded. Subject-based data that ends on this date is included.", alias="fromDateTime") + from_instant: Optional[StrictStr] = Field(default=None, description="The instant from which to extend, in milliseconds since 1970-01-01T00:00:00Z. Events that occur on this date are excluded. Subject-based data that ends on this date is included. Note: Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="fromInstant") + interval_count: Optional[StrictInt] = Field(default=None, description="The number of intervals. Default is 1.", alias="intervalCount") + interval_period_count: Optional[StrictInt] = Field(default=None, description="The number of time periods per interval. Default is 1.", alias="intervalPeriodCount") + interval_period_type: Optional[StrictStr] = Field(default=None, description="The time period type for each interval. Default is MONTH.", alias="intervalPeriodType") + shift: Optional[DataservicesQueryTransfersTimeShiftDTO] = Field(default=None, description="The amount of time to shift the time interval by, such as backward by one year.") + trailing_period_count: Optional[StrictInt] = Field(default=None, description="The number of time periods per trailing period. If `trailingPeriodType` is defined and `trailingPeriodCount` is undefined, the default trailing period count is 1. Note: This parameter is only applicable to metrics that can calculate trailing time. If defined on a metric that doesn't have trailing time, the platform ignores the parameter.", alias="trailingPeriodCount") + trailing_period_type: Optional[StrictStr] = Field(default=None, description="The time period type for each trailing period. If `trailingPeriodCount` is defined and `trailingPeriodType` is undefined, the default trailing period type is `MONTH`. If both `trailingPeriodType` and `trailingPeriodCount` are undefined, `intervalPeriodCount` is used as the trailing period count. Note: This parameter is only applicable to metrics that can calculate trailing time. If defined on a metric that doesn't have trailing time, the platform ignores the parameter.", alias="trailingPeriodType") + __properties: ClassVar[List[str]] = ["direction", "dynamicDateFrom", "fromDateTime", "fromInstant", "intervalCount", "intervalPeriodCount", "intervalPeriodType", "shift", "trailingPeriodCount", "trailingPeriodType"] + + @field_validator('direction') + def direction_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['BACKWARD', 'FORWARD']): + raise ValueError("must be one of enum values ('BACKWARD', 'FORWARD')") + return value + + @field_validator('dynamic_date_from') + def dynamic_date_from_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['SOURCE', 'COMPLETE_PERIOD']): + raise ValueError("must be one of enum values ('SOURCE', 'COMPLETE_PERIOD')") + return value + + @field_validator('interval_period_type') + def interval_period_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR']): + raise ValueError("must be one of enum values ('MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR')") + return value + + @field_validator('trailing_period_type') + def trailing_period_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR']): + raise ValueError("must be one of enum values ('MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryTimeIntervalsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of shift + if self.shift: + _dict['shift'] = self.shift.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersQueryTimeIntervalsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "direction": obj.get("direction"), + "dynamicDateFrom": obj.get("dynamicDateFrom"), + "fromDateTime": obj.get("fromDateTime"), + "fromInstant": obj.get("fromInstant"), + "intervalCount": obj.get("intervalCount"), + "intervalPeriodCount": obj.get("intervalPeriodCount"), + "intervalPeriodType": obj.get("intervalPeriodType"), + "shift": DataservicesQueryTransfersTimeShiftDTO.from_dict(obj["shift"]) if obj.get("shift") is not None else None, + "trailingPeriodCount": obj.get("trailingPeriodCount"), + "trailingPeriodType": obj.get("trailingPeriodType") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_snapshot_query_execution_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_snapshot_query_execution_dto.py new file mode 100644 index 0000000000..2f6c6a0979 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_snapshot_query_execution_dto.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_list_query_source_dto import DataservicesQueryTransfersListQuerySourceDTO +from visier_api_data_out.models.dataservices_query_transfers_property_column_dto import DataservicesQueryTransfersPropertyColumnDTO +from visier_api_data_out.models.dataservices_query_transfers_query_filter_dto import DataservicesQueryTransfersQueryFilterDTO +from visier_api_data_out.models.dataservices_query_transfers_query_parameter_value_dto import DataservicesQueryTransfersQueryParameterValueDTO +from visier_api_data_out.models.dataservices_query_transfers_query_time_intervals_dto import DataservicesQueryTransfersQueryTimeIntervalsDTO +from visier_api_data_out.models.dataservices_query_transfers_snapshot_query_execution_options_dto import DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_transfers_sort_option_dto import DataservicesQueryTransfersSortOptionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersSnapshotQueryExecutionDTO(BaseModel): + """ + DataservicesQueryTransfersSnapshotQueryExecutionDTO + """ # noqa: E501 + columns: Optional[List[DataservicesQueryTransfersPropertyColumnDTO]] = Field(default=None, description="The columns to include in the result. This must contain at least one column.") + filters: Optional[List[DataservicesQueryTransfersQueryFilterDTO]] = Field(default=None, description="The filters of this query. Omit `filters` if no filtering is required.") + options: Optional[DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO] = Field(default=None, description="Additional instructions for your query, such as a calendar type or conversion information.") + parameter_values: Optional[List[DataservicesQueryTransfersQueryParameterValueDTO]] = Field(default=None, description="The parameter values for either member or numeric parameters.", alias="parameterValues") + sort_options: Optional[List[DataservicesQueryTransfersSortOptionDTO]] = Field(default=None, description="The index and direction to sort a column in the `columns` array.", alias="sortOptions") + source: Optional[DataservicesQueryTransfersListQuerySourceDTO] = Field(default=None, description="The source data that you want to query.") + time_intervals: Optional[DataservicesQueryTransfersQueryTimeIntervalsDTO] = Field(default=None, description="The time intervals to query.", alias="timeIntervals") + __properties: ClassVar[List[str]] = ["columns", "filters", "options", "parameterValues", "sortOptions", "source", "timeIntervals"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersSnapshotQueryExecutionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in columns (list) + _items = [] + if self.columns: + for _item_columns in self.columns: + if _item_columns: + _items.append(_item_columns.to_dict()) + _dict['columns'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in filters (list) + _items = [] + if self.filters: + for _item_filters in self.filters: + if _item_filters: + _items.append(_item_filters.to_dict()) + _dict['filters'] = _items + # override the default output from pydantic by calling `to_dict()` of options + if self.options: + _dict['options'] = self.options.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in parameter_values (list) + _items = [] + if self.parameter_values: + for _item_parameter_values in self.parameter_values: + if _item_parameter_values: + _items.append(_item_parameter_values.to_dict()) + _dict['parameterValues'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in sort_options (list) + _items = [] + if self.sort_options: + for _item_sort_options in self.sort_options: + if _item_sort_options: + _items.append(_item_sort_options.to_dict()) + _dict['sortOptions'] = _items + # override the default output from pydantic by calling `to_dict()` of source + if self.source: + _dict['source'] = self.source.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_intervals + if self.time_intervals: + _dict['timeIntervals'] = self.time_intervals.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersSnapshotQueryExecutionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "columns": [DataservicesQueryTransfersPropertyColumnDTO.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None, + "filters": [DataservicesQueryTransfersQueryFilterDTO.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None, + "options": DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO.from_dict(obj["options"]) if obj.get("options") is not None else None, + "parameterValues": [DataservicesQueryTransfersQueryParameterValueDTO.from_dict(_item) for _item in obj["parameterValues"]] if obj.get("parameterValues") is not None else None, + "sortOptions": [DataservicesQueryTransfersSortOptionDTO.from_dict(_item) for _item in obj["sortOptions"]] if obj.get("sortOptions") is not None else None, + "source": DataservicesQueryTransfersListQuerySourceDTO.from_dict(obj["source"]) if obj.get("source") is not None else None, + "timeIntervals": DataservicesQueryTransfersQueryTimeIntervalsDTO.from_dict(obj["timeIntervals"]) if obj.get("timeIntervals") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_snapshot_query_execution_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_snapshot_query_execution_options_dto.py new file mode 100644 index 0000000000..821305b3c7 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_snapshot_query_execution_options_dto.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO(BaseModel): + """ + A SnapshotQueryExecutionOptions provides additional instructions to perform a snapshot query. + """ # noqa: E501 + calendar_type: Optional[StrictStr] = Field(default=None, description="The calendar type to use. This will be used for all time calculations unless explicitly overridden in the calculation itself. Default is TENANT_CALENDAR.", alias="calendarType") + currency_conversion_code: Optional[StrictStr] = Field(default=None, description="The optional target currency for all currency conversions. If not specified, the tenant default currency will be used.", alias="currencyConversionCode") + currency_conversion_date: Optional[StrictStr] = Field(default=None, description="The currency conversion date to use. If defined, the currency conversion will use the exchange rates as of this date.", alias="currencyConversionDate") + date_time_display_mode: Optional[StrictStr] = Field(default=None, description="Control how date-time values are displayed in the result set. Supported values: * `EPOCH`: The number of elapsed milliseconds since January 1, 1970 in UTC timezone. This is the default. * `DATETIME`: The date-time value displayed in `yyyy-MM-dd HH:mm:ssZZ` format.", alias="dateTimeDisplayMode") + limit: Optional[StrictInt] = Field(default=None, description="The maximum number of entries to return. Default is to return all entries. If `page` is defined but limit is not defined, limit will be set to a default value of 1000.") + multiple_tables: Optional[StrictBool] = Field(default=None, description="Option to return multiple table files as zipped archive for derived metrics. Default is false. If false, one table is returned for the drill-through metric.", alias="multipleTables") + omit_header: Optional[StrictBool] = Field(default=None, description="Option to omit the header from the result. If true, queryMode must be either FILL or FAIL. Default is false.", alias="omitHeader") + page: Optional[StrictInt] = Field(default=None, description="A page defines a subset of the overall result set. The number of rows per page is equal to limit with the exception of the last page in the result set which may contain fewer rows. `Page` is an index that begins at 0. The index to start retrieving results is calculated by multiplying `page` by `limit`.") + query_mode: Optional[StrictStr] = Field(default=None, description="Determines how the query should handle column definitions that the query is unable to resolve. Default is DEFAULT.", alias="queryMode") + __properties: ClassVar[List[str]] = ["calendarType", "currencyConversionCode", "currencyConversionDate", "dateTimeDisplayMode", "limit", "multipleTables", "omitHeader", "page", "queryMode"] + + @field_validator('calendar_type') + def calendar_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['TENANT_CALENDAR', 'GREGORIAN_CALENDAR']): + raise ValueError("must be one of enum values ('TENANT_CALENDAR', 'GREGORIAN_CALENDAR')") + return value + + @field_validator('date_time_display_mode') + def date_time_display_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['EPOCH', 'DATETIME']): + raise ValueError("must be one of enum values ('EPOCH', 'DATETIME')") + return value + + @field_validator('query_mode') + def query_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['DEFAULT', 'FILL', 'FAIL']): + raise ValueError("must be one of enum values ('DEFAULT', 'FILL', 'FAIL')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersSnapshotQueryExecutionOptionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "calendarType": obj.get("calendarType"), + "currencyConversionCode": obj.get("currencyConversionCode"), + "currencyConversionDate": obj.get("currencyConversionDate"), + "dateTimeDisplayMode": obj.get("dateTimeDisplayMode"), + "limit": obj.get("limit"), + "multipleTables": obj.get("multipleTables"), + "omitHeader": obj.get("omitHeader"), + "page": obj.get("page"), + "queryMode": obj.get("queryMode") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_sort_option_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_sort_option_dto.py new file mode 100644 index 0000000000..a600beda3d --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_sort_option_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersSortOptionDTO(BaseModel): + """ + Sort option for a column of a list query. + """ # noqa: E501 + column_index: Optional[StrictInt] = Field(default=None, description="The index of the column of the list query, staring from 0.", alias="columnIndex") + sort_direction: Optional[StrictStr] = Field(default=None, description="The sort direction.", alias="sortDirection") + __properties: ClassVar[List[str]] = ["columnIndex", "sortDirection"] + + @field_validator('sort_direction') + def sort_direction_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['SORT_ASCENDING', 'SORT_DESCENDING']): + raise ValueError("must be one of enum values ('SORT_ASCENDING', 'SORT_DESCENDING')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersSortOptionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersSortOptionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "columnIndex": obj.get("columnIndex"), + "sortDirection": obj.get("sortDirection") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_sql_like_query_execution_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_sql_like_query_execution_dto.py new file mode 100644 index 0000000000..7ee8074c21 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_sql_like_query_execution_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.dataservices_query_transfers_query_execution_options_dto import DataservicesQueryTransfersQueryExecutionOptionsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersSqlLikeQueryExecutionDTO(BaseModel): + """ + * Request body for SQL-like query executions + """ # noqa: E501 + options: Optional[DataservicesQueryTransfersQueryExecutionOptionsDTO] = Field(default=None, description="Optional options that currently that cannot be expressed in SQL-like") + query: Optional[StrictStr] = Field(default=None, description="The SQL-like query string") + __properties: ClassVar[List[str]] = ["options", "query"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersSqlLikeQueryExecutionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of options + if self.options: + _dict['options'] = self.options.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersSqlLikeQueryExecutionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "options": DataservicesQueryTransfersQueryExecutionOptionsDTO.from_dict(obj["options"]) if obj.get("options") is not None else None, + "query": obj.get("query") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_time_shift_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_time_shift_dto.py new file mode 100644 index 0000000000..a5c5ff050e --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_time_shift_dto.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryTransfersTimeShiftDTO(BaseModel): + """ + The amount of time to shift the time interval by, such as backward by one year. + """ # noqa: E501 + direction: Optional[StrictStr] = Field(default=None, description="The direction to extend. Default is BACKWARD.") + period_count: Optional[StrictInt] = Field(default=None, description="The number of intervals. Default is 1.", alias="periodCount") + period_type: Optional[StrictStr] = Field(default=None, description="The time period type for the shift.", alias="periodType") + __properties: ClassVar[List[str]] = ["direction", "periodCount", "periodType"] + + @field_validator('direction') + def direction_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['BACKWARD', 'FORWARD']): + raise ValueError("must be one of enum values ('BACKWARD', 'FORWARD')") + return value + + @field_validator('period_type') + def period_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR']): + raise ValueError("must be one of enum values ('MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersTimeShiftDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTransfersTimeShiftDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "direction": obj.get("direction"), + "periodCount": obj.get("periodCount"), + "periodType": obj.get("periodType") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_column_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_column_dto.py new file mode 100644 index 0000000000..c19600362f --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_column_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDataVersionExportColumnDTO(BaseModel): + """ + DesignerTransfersDataVersionExportColumnDTO + """ # noqa: E501 + allows_null: Optional[StrictBool] = Field(default=None, description="If `true`, the column allows null values.", alias="allowsNull") + data_type: Optional[StrictStr] = Field(default=None, description="The column's data type. Possible data types are string, integer, number, date, Boolean.", alias="dataType") + is_primary_key_component: Optional[StrictBool] = Field(default=None, description="If `true`, the column is part of the primary key.", alias="isPrimaryKeyComponent") + name: Optional[StrictStr] = Field(default=None, description="The column's name.") + __properties: ClassVar[List[str]] = ["allowsNull", "dataType", "isPrimaryKeyComponent", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportColumnDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportColumnDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowsNull": obj.get("allowsNull"), + "dataType": obj.get("dataType"), + "isPrimaryKeyComponent": obj.get("isPrimaryKeyComponent"), + "name": obj.get("name") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_data_version_summary_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_data_version_summary_dto.py new file mode 100644 index 0000000000..dd1c5c4f78 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_data_version_summary_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDataVersionExportDataVersionSummaryDTO(BaseModel): + """ + DesignerTransfersDataVersionExportDataVersionSummaryDTO + """ # noqa: E501 + created: Optional[StrictStr] = Field(default=None, description="The date that the data version was generated, in milliseconds since 1970-01-01T00:00:00Z.") + data_category: Optional[StrictStr] = Field(default=None, description="The data category that the data version belongs to. If empty, the data version belongs to the default data category.", alias="dataCategory") + data_version: Optional[StrictStr] = Field(default=None, description="The data version number.", alias="dataVersion") + __properties: ClassVar[List[str]] = ["created", "dataCategory", "dataVersion"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportDataVersionSummaryDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportDataVersionSummaryDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "created": obj.get("created"), + "dataCategory": obj.get("dataCategory"), + "dataVersion": obj.get("dataVersion") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_data_versions_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_data_versions_dto.py new file mode 100644 index 0000000000..1c21463f64 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_data_versions_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.designer_transfers_data_version_export_data_version_summary_dto import DesignerTransfersDataVersionExportDataVersionSummaryDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDataVersionExportDataVersionsDTO(BaseModel): + """ + DesignerTransfersDataVersionExportDataVersionsDTO + """ # noqa: E501 + data_versions: Optional[List[DesignerTransfersDataVersionExportDataVersionSummaryDTO]] = Field(default=None, description="All the available data versions for the tenant's primary data category.", alias="dataVersions") + __properties: ClassVar[List[str]] = ["dataVersions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportDataVersionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data_versions (list) + _items = [] + if self.data_versions: + for _item_data_versions in self.data_versions: + if _item_data_versions: + _items.append(_item_data_versions.to_dict()) + _dict['dataVersions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportDataVersionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataVersions": [DesignerTransfersDataVersionExportDataVersionSummaryDTO.from_dict(_item) for _item in obj["dataVersions"]] if obj.get("dataVersions") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_dto.py new file mode 100644 index 0000000000..a8514dc9a2 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_dto.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.designer_transfers_data_version_export_table_dto import DesignerTransfersDataVersionExportTableDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDataVersionExportDTO(BaseModel): + """ + DesignerTransfersDataVersionExportDTO + """ # noqa: E501 + base_data_version_number: Optional[StrictStr] = Field(default=None, description="The baseline data version number for which the export was generated. If specified, the export is a delta of the differences between `dateVersionNumber` and `baseDataVersionNumber`. If empty, a full export is generated for `dataVersionNumber`.", alias="baseDataVersionNumber") + data_version_number: Optional[StrictStr] = Field(default=None, description="The data version number for which the export was generated.", alias="dataVersionNumber") + deleted_tables: Optional[List[StrictStr]] = Field(default=None, description="Tables that do not exist in `dataVersionNumber` but did exist in `baseDataVersionNumber`.", alias="deletedTables") + new_tables: Optional[List[StrictStr]] = Field(default=None, description="Tables that exist in `dataVersionNumber` but did not exist in `baseDataVersionNumber`.", alias="newTables") + tables: Optional[List[DesignerTransfersDataVersionExportTableDTO]] = Field(default=None, description="Information about the tables in the export.") + timestamp: Optional[StrictStr] = Field(default=None, description="The date that the data version export was generated, in milliseconds since 1970-01-01T00:00:00Z.") + uuid: Optional[StrictStr] = Field(default=None, description="The unique identifier of the data version export. Must be a valid UUID.") + __properties: ClassVar[List[str]] = ["baseDataVersionNumber", "dataVersionNumber", "deletedTables", "newTables", "tables", "timestamp", "uuid"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tables (list) + _items = [] + if self.tables: + for _item_tables in self.tables: + if _item_tables: + _items.append(_item_tables.to_dict()) + _dict['tables'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "baseDataVersionNumber": obj.get("baseDataVersionNumber"), + "dataVersionNumber": obj.get("dataVersionNumber"), + "deletedTables": obj.get("deletedTables"), + "newTables": obj.get("newTables"), + "tables": [DesignerTransfersDataVersionExportTableDTO.from_dict(_item) for _item in obj["tables"]] if obj.get("tables") is not None else None, + "timestamp": obj.get("timestamp"), + "uuid": obj.get("uuid") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_file_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_file_dto.py new file mode 100644 index 0000000000..ae9b38c156 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_file_dto.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.designer_transfers_data_version_export_column_dto import DesignerTransfersDataVersionExportColumnDTO +from visier_api_data_out.models.designer_transfers_data_version_export_part_file_dto import DesignerTransfersDataVersionExportPartFileDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDataVersionExportFileDTO(BaseModel): + """ + DesignerTransfersDataVersionExportFileDTO + """ # noqa: E501 + columns: Optional[List[DesignerTransfersDataVersionExportColumnDTO]] = Field(default=None, description="Information about a table's columns.") + files: Optional[List[DesignerTransfersDataVersionExportPartFileDTO]] = Field(default=None, description="Information about a table's files in the export.") + __properties: ClassVar[List[str]] = ["columns", "files"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportFileDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in columns (list) + _items = [] + if self.columns: + for _item_columns in self.columns: + if _item_columns: + _items.append(_item_columns.to_dict()) + _dict['columns'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in files (list) + _items = [] + if self.files: + for _item_files in self.files: + if _item_files: + _items.append(_item_files.to_dict()) + _dict['files'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportFileDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "columns": [DesignerTransfersDataVersionExportColumnDTO.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None, + "files": [DesignerTransfersDataVersionExportPartFileDTO.from_dict(_item) for _item in obj["files"]] if obj.get("files") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_job_status_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_job_status_dto.py new file mode 100644 index 0000000000..c787f1ff4b --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_job_status_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDataVersionExportJobStatusDTO(BaseModel): + """ + DesignerTransfersDataVersionExportJobStatusDTO + """ # noqa: E501 + completed: Optional[StrictBool] = Field(default=None, description="If `true`, the job completed successfully.") + export_uuid: Optional[StrictStr] = Field(default=None, description="The unique identifier of the data version export generated by the job. If empty, the job hasn't completed successfully.", alias="exportUuid") + failed: Optional[StrictBool] = Field(default=None, description="If `true`, the job failed.") + job_uuid: Optional[StrictStr] = Field(default=None, description="The unique identifier of the data version export job.", alias="jobUuid") + __properties: ClassVar[List[str]] = ["completed", "exportUuid", "failed", "jobUuid"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportJobStatusDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportJobStatusDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "completed": obj.get("completed"), + "exportUuid": obj.get("exportUuid"), + "failed": obj.get("failed"), + "jobUuid": obj.get("jobUuid") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_part_file_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_part_file_dto.py new file mode 100644 index 0000000000..f795181620 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_part_file_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDataVersionExportPartFileDTO(BaseModel): + """ + DesignerTransfersDataVersionExportPartFileDTO + """ # noqa: E501 + file_id: Optional[StrictInt] = Field(default=None, description="The unique integer identifier of the file in the data version export.", alias="fileId") + filename: Optional[StrictStr] = Field(default=None, description="The file's name.") + __properties: ClassVar[List[str]] = ["fileId", "filename"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportPartFileDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportPartFileDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fileId": obj.get("fileId"), + "filename": obj.get("filename") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_schedule_job_request_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_schedule_job_request_dto.py new file mode 100644 index 0000000000..30bfb4a8f9 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_schedule_job_request_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDataVersionExportScheduleJobRequestDTO(BaseModel): + """ + DesignerTransfersDataVersionExportScheduleJobRequestDTO + """ # noqa: E501 + base_data_version_number: Optional[StrictStr] = Field(default=None, description="Optional. The baseline data version number to use to generate a delta export. Delta exports contain the differences between `baseDataVersionNumber` and `dataVersionNumber`, such as anything updated, added, or removed in `dataVersionNumber`. If `baseDataVersionNumber` is not provided, a full export generates for `dataVersionNumber`.", alias="baseDataVersionNumber") + data_version_number: Optional[StrictStr] = Field(default=None, description="The data version number to generate an export for.", alias="dataVersionNumber") + __properties: ClassVar[List[str]] = ["baseDataVersionNumber", "dataVersionNumber"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportScheduleJobRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportScheduleJobRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "baseDataVersionNumber": obj.get("baseDataVersionNumber"), + "dataVersionNumber": obj.get("dataVersionNumber") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_schedule_job_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_schedule_job_response_dto.py new file mode 100644 index 0000000000..7f28411057 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_schedule_job_response_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDataVersionExportScheduleJobResponseDTO(BaseModel): + """ + DesignerTransfersDataVersionExportScheduleJobResponseDTO + """ # noqa: E501 + job_uuid: Optional[StrictStr] = Field(default=None, description="The unique identifier of the scheduled data version export job.", alias="jobUuid") + __properties: ClassVar[List[str]] = ["jobUuid"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportScheduleJobResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportScheduleJobResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobUuid": obj.get("jobUuid") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_table_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_table_dto.py new file mode 100644 index 0000000000..12eccf62ff --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_export_table_dto.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.designer_transfers_data_version_export_file_dto import DesignerTransfersDataVersionExportFileDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDataVersionExportTableDTO(BaseModel): + """ + DesignerTransfersDataVersionExportTableDTO + """ # noqa: E501 + common_columns: Optional[DesignerTransfersDataVersionExportFileDTO] = Field(default=None, description="Information about the columns and files that are in both `dataVersionNumber` and `baseDataVersionNumber`. Always empty for full exports where `baseDataVersionNumber` is not specified.", alias="commonColumns") + deleted_columns: Optional[List[StrictStr]] = Field(default=None, description="Information about columns that do not exist in `dataVersionNumber` but did exist in `baseDataVersionNumber`.", alias="deletedColumns") + name: Optional[StrictStr] = Field(default=None, description="The name of a table in the data version export; for example, Employee or Applicant.") + new_columns: Optional[DesignerTransfersDataVersionExportFileDTO] = Field(default=None, description="Information about new columns and files in the data version. If full export, lists all columns. If delta export, lists columns that exist in `dataVersionNumber` but not in `baseDataVersionNumber`.", alias="newColumns") + __properties: ClassVar[List[str]] = ["commonColumns", "deletedColumns", "name", "newColumns"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportTableDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of common_columns + if self.common_columns: + _dict['commonColumns'] = self.common_columns.to_dict() + # override the default output from pydantic by calling `to_dict()` of new_columns + if self.new_columns: + _dict['newColumns'] = self.new_columns.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportTableDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "commonColumns": DesignerTransfersDataVersionExportFileDTO.from_dict(obj["commonColumns"]) if obj.get("commonColumns") is not None else None, + "deletedColumns": obj.get("deletedColumns"), + "name": obj.get("name"), + "newColumns": DesignerTransfersDataVersionExportFileDTO.from_dict(obj["newColumns"]) if obj.get("newColumns") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_exports_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_exports_dto.py new file mode 100644 index 0000000000..0f004a62e2 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_data_version_exports_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.designer_transfers_data_version_export_dto import DesignerTransfersDataVersionExportDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDataVersionExportsDTO(BaseModel): + """ + DesignerTransfersDataVersionExportsDTO + """ # noqa: E501 + data_version_exports: Optional[List[DesignerTransfersDataVersionExportDTO]] = Field(default=None, description="Information about data version exports.", alias="dataVersionExports") + __properties: ClassVar[List[str]] = ["dataVersionExports"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data_version_exports (list) + _items = [] + if self.data_version_exports: + for _item_data_version_exports in self.data_version_exports: + if _item_data_version_exports: + _items.append(_item_data_version_exports.to_dict()) + _dict['dataVersionExports'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDataVersionExportsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataVersionExports": [DesignerTransfersDataVersionExportDTO.from_dict(_item) for _item in obj["dataVersionExports"]] if obj.get("dataVersionExports") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_download_source_files_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_download_source_files_dto.py new file mode 100644 index 0000000000..d08f26702d --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_download_source_files_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDownloadSourceFilesDTO(BaseModel): + """ + DesignerTransfersDownloadSourceFilesDTO + """ # noqa: E501 + download_all: Optional[StrictBool] = Field(default=None, description="If `true`, downloads all uploaded files for all sources. Default is `false`.", alias="downloadAll") + max_timestamp: Optional[StrictStr] = Field(default=None, description="The latest upload time to download files up to in ISO-8601 format, such as `\"2001-10-25T13:45:35.999\"`. If omitted, downloads files up to the latest available time.", alias="maxTimestamp") + min_timestamp: Optional[StrictStr] = Field(default=None, description="The earliest upload time to download files from in ISO-8601 format, such as `\"2001-10-25T13:45:35.999\"`. If omitted, downloads files from the earliest available time.", alias="minTimestamp") + source_ids: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings representing the unique identifier of each source to download.", alias="sourceIds") + sources: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings representing the object name of each source to download.") + __properties: ClassVar[List[str]] = ["downloadAll", "maxTimestamp", "minTimestamp", "sourceIds", "sources"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDownloadSourceFilesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDownloadSourceFilesDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "downloadAll": obj.get("downloadAll"), + "maxTimestamp": obj.get("maxTimestamp"), + "minTimestamp": obj.get("minTimestamp"), + "sourceIds": obj.get("sourceIds"), + "sources": obj.get("sources") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_download_source_files_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_download_source_files_response_dto.py new file mode 100644 index 0000000000..906201b9a1 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_download_source_files_response_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTransfersDownloadSourceFilesResponseDTO(BaseModel): + """ + DesignerTransfersDownloadSourceFilesResponseDTO + """ # noqa: E501 + messages: Optional[StrictStr] = Field(default=None, description="A description of the request status.") + status: Optional[StrictStr] = Field(default=None, description="The download request status, such as `Error`.") + __properties: ClassVar[List[str]] = ["messages", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DesignerTransfersDownloadSourceFilesResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerTransfersDownloadSourceFilesResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "messages": obj.get("messages"), + "status": obj.get("status") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dimension_member_reference_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dimension_member_reference_dto.py deleted file mode 100644 index 1048f51ce2..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dimension_member_reference_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DimensionMemberReferenceDTO(BaseModel): - """ - The members of a dimension. - """ # noqa: E501 - path: Optional[List[StrictStr]] = Field(default=None, description="A list of strings representing the members within a dimension path. For example, a dimension for Location may have the paths \"Canada, BC, Vancouver\" and \"US, California, San Francisco\".") - __properties: ClassVar[List[str]] = ["path"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DimensionMemberReferenceDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DimensionMemberReferenceDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "path": obj.get("path") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/dimension_reference_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dimension_reference_dto.py deleted file mode 100644 index 796003f424..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dimension_reference_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DimensionReferenceDTO(BaseModel): - """ - The name and qualifying path of a dimension to query. - """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, description="The ID of the dimension. See `Dimensions` to get the ID.") - qualifying_path: Optional[StrictStr] = Field(default=None, description="The qualifying path to the dimension in Visier, such as the analytic object or event the dimension is associated with. If the path has multiple objects, each object is separated by a period.", alias="qualifyingPath") - __properties: ClassVar[List[str]] = ["name", "qualifyingPath"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DimensionReferenceDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DimensionReferenceDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "qualifyingPath": obj.get("qualifyingPath") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/document_search_link_dto.py b/src/visier_api_data_out/visier_api_data_out/models/document_search_link_dto.py deleted file mode 100644 index 0c67c813d3..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/document_search_link_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DocumentSearchLinkDTO(BaseModel): - """ - Defines the attributes of a web request to reference documents in the search results. - """ # noqa: E501 - href: Optional[StrictStr] = Field(default=None, description="The URL pointing to the specific document.") - verb: Optional[StrictStr] = Field(default=None, description="The verb to use when formulating the web request. This is commonly `GET`.") - __properties: ClassVar[List[str]] = ["href", "verb"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DocumentSearchLinkDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DocumentSearchLinkDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "href": obj.get("href"), - "verb": obj.get("verb") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/download_source_files_dto.py b/src/visier_api_data_out/visier_api_data_out/models/download_source_files_dto.py deleted file mode 100644 index 539e4b0f02..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/download_source_files_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DownloadSourceFilesDTO(BaseModel): - """ - DownloadSourceFilesDTO - """ # noqa: E501 - download_all: Optional[StrictBool] = Field(default=None, description="If `true`, downloads all uploaded files for all sources. Default is `false`.", alias="downloadAll") - max_timestamp: Optional[StrictStr] = Field(default=None, description="The latest upload time to download files up to in ISO-8601 format, such as `\"2001-10-25T13:45:35.999\"`. If omitted, downloads files up to the latest available time.", alias="maxTimestamp") - min_timestamp: Optional[StrictStr] = Field(default=None, description="The earliest upload time to download files from in ISO-8601 format, such as `\"2001-10-25T13:45:35.999\"`. If omitted, downloads files from the earliest available time.", alias="minTimestamp") - source_ids: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings representing the unique identifier of each source to download.", alias="sourceIds") - sources: Optional[List[StrictStr]] = Field(default=None, description="A comma-separated list of strings representing the object name of each source to download.") - __properties: ClassVar[List[str]] = ["downloadAll", "maxTimestamp", "minTimestamp", "sourceIds", "sources"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DownloadSourceFilesDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DownloadSourceFilesDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "downloadAll": obj.get("downloadAll"), - "maxTimestamp": obj.get("maxTimestamp"), - "minTimestamp": obj.get("minTimestamp"), - "sourceIds": obj.get("sourceIds"), - "sources": obj.get("sources") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/download_source_files_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/download_source_files_response_dto.py deleted file mode 100644 index 24f294fa0e..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/download_source_files_response_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DownloadSourceFilesResponseDTO(BaseModel): - """ - DownloadSourceFilesResponseDTO - """ # noqa: E501 - messages: Optional[StrictStr] = Field(default=None, description="A description of the request status.") - status: Optional[StrictStr] = Field(default=None, description="The download request status, such as `Error`.") - __properties: ClassVar[List[str]] = ["messages", "status"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DownloadSourceFilesResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DownloadSourceFilesResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "messages": obj.get("messages"), - "status": obj.get("status") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/dv_export_status.py b/src/visier_api_data_out/visier_api_data_out/models/dv_export_status.py index 847c8db837..f676a9d73a 100644 --- a/src/visier_api_data_out/visier_api_data_out/models/dv_export_status.py +++ b/src/visier_api_data_out/visier_api_data_out/models/dv_export_status.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/visier_api_data_out/models/google_protobuf_any.py b/src/visier_api_data_out/visier_api_data_out/models/google_protobuf_any.py index 9c8f5225e4..5f82b41cef 100644 --- a/src/visier_api_data_out/visier_api_data_out/models/google_protobuf_any.py +++ b/src/visier_api_data_out/visier_api_data_out/models/google_protobuf_any.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/visier_api_data_out/models/internal_query_execution_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/internal_query_execution_options_dto.py deleted file mode 100644 index 79f46a50ac..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/internal_query_execution_options_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class InternalQueryExecutionOptionsDTO(BaseModel): - """ - Internal options - not to be documented or used by external parties - """ # noqa: E501 - align_time_axis_to_period_end: Optional[StrictBool] = Field(default=None, description="If true, shifts the time axis members back by one millisecond. Shifting the time axis members back by one millisecond makes them valid at the end of the period instead of at the start of the next period. This aligns the returned data timestamps with the timestamps in the Visier application. Example: If the timestamps are originally [`2019-06-01T00:00:00.000Z`, `2019-05-01T00:00:00.000Z`], then `alignTimeAxisPeriodEnd` turns the timestamps into [`2019-05-31T23:59:59.999Z`, `2019-04-30T23:59:59.999Z`]. Example: If the timestamps are originally [`2019-05-01T00:00:00.000Z/2019-06-01T00:00:00.000Z`, `2019-04-01T00:00:00.000Z/2019-05-01T00:00:00.000Z`], then `alignTimeAxisPeriodEnd` turns the timestamps into [`2019-05-01T00:00:00.000Z/2019-05-31T23:59:59.999Z`, `2019-04-01T00:00:00.000Z/2019-04-30T23:59:59.999Z`].", alias="alignTimeAxisToPeriodEnd") - sparse_handling_mode: Optional[StrictStr] = Field(default=None, alias="sparseHandlingMode") - __properties: ClassVar[List[str]] = ["alignTimeAxisToPeriodEnd", "sparseHandlingMode"] - - @field_validator('sparse_handling_mode') - def sparse_handling_mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['ALLOW', 'DISALLOW', 'FORCE']): - raise ValueError("must be one of enum values ('ALLOW', 'DISALLOW', 'FORCE')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of InternalQueryExecutionOptionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of InternalQueryExecutionOptionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "alignTimeAxisToPeriodEnd": obj.get("alignTimeAxisToPeriodEnd"), - "sparseHandlingMode": obj.get("sparseHandlingMode") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/key_group_filter_dto.py b/src/visier_api_data_out/visier_api_data_out/models/key_group_filter_dto.py deleted file mode 100644 index a9ff8de83a..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/key_group_filter_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.key_group_filter_item_dto import KeyGroupFilterItemDTO -from typing import Optional, Set -from typing_extensions import Self - -class KeyGroupFilterDTO(BaseModel): - """ - A collection of related filters that define a key group. - """ # noqa: E501 - filters: Optional[List[KeyGroupFilterItemDTO]] = None - __properties: ClassVar[List[str]] = ["filters"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of KeyGroupFilterDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in filters (list) - _items = [] - if self.filters: - for _item_filters in self.filters: - if _item_filters: - _items.append(_item_filters.to_dict()) - _dict['filters'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of KeyGroupFilterDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "filters": [KeyGroupFilterItemDTO.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/key_group_filter_item_dto.py b/src/visier_api_data_out/visier_api_data_out/models/key_group_filter_item_dto.py deleted file mode 100644 index 562200d6be..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/key_group_filter_item_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.member_filter_dto import MemberFilterDTO -from visier_api_data_out.models.selection_concept_reference_dto import SelectionConceptReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class KeyGroupFilterItemDTO(BaseModel): - """ - An individual filter in a key group. - """ # noqa: E501 - formula: Optional[StrictStr] = Field(default=None, description="A filter expressed as a formula.") - member_set: Optional[MemberFilterDTO] = Field(default=None, description="A filter that includes or excludes dimension members.", alias="memberSet") - selection_concept: Optional[SelectionConceptReferenceDTO] = Field(default=None, description="A filter that uses an existing selection concept in Visier.", alias="selectionConcept") - __properties: ClassVar[List[str]] = ["formula", "memberSet", "selectionConcept"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of KeyGroupFilterItemDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of member_set - if self.member_set: - _dict['memberSet'] = self.member_set.to_dict() - # override the default output from pydantic by calling `to_dict()` of selection_concept - if self.selection_concept: - _dict['selectionConcept'] = self.selection_concept.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of KeyGroupFilterItemDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "formula": obj.get("formula"), - "memberSet": MemberFilterDTO.from_dict(obj["memberSet"]) if obj.get("memberSet") is not None else None, - "selectionConcept": SelectionConceptReferenceDTO.from_dict(obj["selectionConcept"]) if obj.get("selectionConcept") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/lineage_dto.py b/src/visier_api_data_out/visier_api_data_out/models/lineage_dto.py deleted file mode 100644 index e47d15c71f..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/lineage_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class LineageDTO(BaseModel): - """ - Lineage information for a given cell set. This describes how a cell set is created from other cell sets. - """ # noqa: E501 - cell_sets: Optional[List[CellSetDTO]] = Field(default=None, description="The cell sets that constitute this lineage.", alias="cellSets") - op: Optional[StrictStr] = Field(default=None, description="The operation used to combine the cell sets of this lineage.") - __properties: ClassVar[List[str]] = ["cellSets", "op"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of LineageDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in cell_sets (list) - _items = [] - if self.cell_sets: - for _item_cell_sets in self.cell_sets: - if _item_cell_sets: - _items.append(_item_cell_sets.to_dict()) - _dict['cellSets'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of LineageDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "cellSets": [CellSetDTO.from_dict(_item) for _item in obj["cellSets"]] if obj.get("cellSets") is not None else None, - "op": obj.get("op") - }) - return _obj - -from visier_api_data_out.models.cell_set_dto import CellSetDTO -# TODO: Rewrite to not use raise_errors -LineageDTO.model_rebuild(raise_errors=False) - diff --git a/src/visier_api_data_out/visier_api_data_out/models/list_query_execution_dto.py b/src/visier_api_data_out/visier_api_data_out/models/list_query_execution_dto.py deleted file mode 100644 index f2196b9726..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/list_query_execution_dto.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.list_query_execution_options_dto import ListQueryExecutionOptionsDTO -from visier_api_data_out.models.list_query_source_dto import ListQuerySourceDTO -from visier_api_data_out.models.property_column_dto import PropertyColumnDTO -from visier_api_data_out.models.query_filter_dto import QueryFilterDTO -from visier_api_data_out.models.query_parameter_value_dto import QueryParameterValueDTO -from visier_api_data_out.models.query_time_interval_dto import QueryTimeIntervalDTO -from visier_api_data_out.models.sort_option_dto import SortOptionDTO -from typing import Optional, Set -from typing_extensions import Self - -class ListQueryExecutionDTO(BaseModel): - """ - A ListQueryExecution provides instructions to perform a list query. - """ # noqa: E501 - columns: Optional[List[PropertyColumnDTO]] = Field(default=None, description="The columns to include in the result. This must contain at least one column.") - filters: Optional[List[QueryFilterDTO]] = Field(default=None, description="The filters of this query. Omit `filters` if no filtering is required.") - options: Optional[ListQueryExecutionOptionsDTO] = Field(default=None, description="Additional instructions for your query, such as a calendar type or conversion information.") - parameter_values: Optional[List[QueryParameterValueDTO]] = Field(default=None, description="The parameter values for either member or numeric parameters.", alias="parameterValues") - sort_options: Optional[List[SortOptionDTO]] = Field(default=None, description="The index and direction to sort a column in the `columns` array.", alias="sortOptions") - source: Optional[ListQuerySourceDTO] = Field(default=None, description="The source data that you want to query.") - time_interval: Optional[QueryTimeIntervalDTO] = Field(default=None, description="The time that the data is valid, such as a specific day or period of months.", alias="timeInterval") - __properties: ClassVar[List[str]] = ["columns", "filters", "options", "parameterValues", "sortOptions", "source", "timeInterval"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ListQueryExecutionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in columns (list) - _items = [] - if self.columns: - for _item_columns in self.columns: - if _item_columns: - _items.append(_item_columns.to_dict()) - _dict['columns'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in filters (list) - _items = [] - if self.filters: - for _item_filters in self.filters: - if _item_filters: - _items.append(_item_filters.to_dict()) - _dict['filters'] = _items - # override the default output from pydantic by calling `to_dict()` of options - if self.options: - _dict['options'] = self.options.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in parameter_values (list) - _items = [] - if self.parameter_values: - for _item_parameter_values in self.parameter_values: - if _item_parameter_values: - _items.append(_item_parameter_values.to_dict()) - _dict['parameterValues'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in sort_options (list) - _items = [] - if self.sort_options: - for _item_sort_options in self.sort_options: - if _item_sort_options: - _items.append(_item_sort_options.to_dict()) - _dict['sortOptions'] = _items - # override the default output from pydantic by calling `to_dict()` of source - if self.source: - _dict['source'] = self.source.to_dict() - # override the default output from pydantic by calling `to_dict()` of time_interval - if self.time_interval: - _dict['timeInterval'] = self.time_interval.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ListQueryExecutionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "columns": [PropertyColumnDTO.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None, - "filters": [QueryFilterDTO.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None, - "options": ListQueryExecutionOptionsDTO.from_dict(obj["options"]) if obj.get("options") is not None else None, - "parameterValues": [QueryParameterValueDTO.from_dict(_item) for _item in obj["parameterValues"]] if obj.get("parameterValues") is not None else None, - "sortOptions": [SortOptionDTO.from_dict(_item) for _item in obj["sortOptions"]] if obj.get("sortOptions") is not None else None, - "source": ListQuerySourceDTO.from_dict(obj["source"]) if obj.get("source") is not None else None, - "timeInterval": QueryTimeIntervalDTO.from_dict(obj["timeInterval"]) if obj.get("timeInterval") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/list_query_execution_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/list_query_execution_options_dto.py deleted file mode 100644 index 42ffaa6fe1..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/list_query_execution_options_dto.py +++ /dev/null @@ -1,159 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ListQueryExecutionOptionsDTO(BaseModel): - """ - A ListQueryExecutionOptions provides additional instructions to perform a list query. - """ # noqa: E501 - calendar_type: Optional[StrictStr] = Field(default=None, description="The calendar type to use. This will be used for all time calculations unless explicitly overridden in the calculation itself. Default is TENANT_CALENDAR.", alias="calendarType") - currency_conversion_code: Optional[StrictStr] = Field(default=None, description="The optional target currency for all currency conversions. If not specified, the tenant default currency will be used.", alias="currencyConversionCode") - currency_conversion_date: Optional[StrictStr] = Field(default=None, description="The currency conversion date to use. If defined, the currency conversion will use the exchange rates as of this date.", alias="currencyConversionDate") - currency_conversion_mode: Optional[StrictStr] = Field(default=None, description="The currency conversion mode to use. This will be used for all currency conversion calculations unless explicitly overridden in the calculation itself. Default is TENANT_CURRENCY_CONVERSION.", alias="currencyConversionMode") - date_time_display_mode: Optional[StrictStr] = Field(default=None, description="Control how date-time values are displayed in the result set. Supported values: * `EPOCH`: The number of elapsed milliseconds since January 1, 1970 in UTC timezone. This is the default. * `DATETIME`: The date-time value displayed in `yyyy-MM-dd HH:mm:ssZZ` format.", alias="dateTimeDisplayMode") - limit: Optional[StrictInt] = Field(default=None, description="The maximum number of entries to return. Default is to return all entries. If `page` is defined but limit is not defined, limit will be set to a default value of 1000.") - multiple_tables: Optional[StrictBool] = Field(default=None, description="Option to return multiple table files as zipped archive for derived metrics. Default is false. If false, one table is returned for the drill-through metric.", alias="multipleTables") - omit_header: Optional[StrictBool] = Field(default=None, description="Option to omit the header from the result. If true, queryMode must be either FILL or FAIL. Default is false.", alias="omitHeader") - page: Optional[StrictInt] = Field(default=None, description="A page defines a subset of the overall result set. The number of rows per page is equal to limit with the exception of the last page in the result set which may contain fewer rows. `Page` is an index that begins at 0. The index to start retrieving results is calculated by multiplying `page` by `limit`.") - query_mode: Optional[StrictStr] = Field(default=None, description="Determines how the query should handle column definitions that the query is unable to resolve. Default is DEFAULT.", alias="queryMode") - record_mode: Optional[StrictStr] = Field(default=None, description="Influences the type of records used to build the result set, such as whether to return one record per entity that is valid in the provided time range or each change record falls in the time frame.", alias="recordMode") - __properties: ClassVar[List[str]] = ["calendarType", "currencyConversionCode", "currencyConversionDate", "currencyConversionMode", "dateTimeDisplayMode", "limit", "multipleTables", "omitHeader", "page", "queryMode", "recordMode"] - - @field_validator('calendar_type') - def calendar_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['TENANT_CALENDAR', 'GREGORIAN_CALENDAR']): - raise ValueError("must be one of enum values ('TENANT_CALENDAR', 'GREGORIAN_CALENDAR')") - return value - - @field_validator('currency_conversion_mode') - def currency_conversion_mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['TENANT_CURRENCY_CONVERSION', 'VISIER_CURRENCY_CONVERSION']): - raise ValueError("must be one of enum values ('TENANT_CURRENCY_CONVERSION', 'VISIER_CURRENCY_CONVERSION')") - return value - - @field_validator('date_time_display_mode') - def date_time_display_mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['EPOCH', 'DATETIME']): - raise ValueError("must be one of enum values ('EPOCH', 'DATETIME')") - return value - - @field_validator('query_mode') - def query_mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['DEFAULT', 'FILL', 'FAIL']): - raise ValueError("must be one of enum values ('DEFAULT', 'FILL', 'FAIL')") - return value - - @field_validator('record_mode') - def record_mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['NORMAL', 'CHANGES']): - raise ValueError("must be one of enum values ('NORMAL', 'CHANGES')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ListQueryExecutionOptionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ListQueryExecutionOptionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "calendarType": obj.get("calendarType"), - "currencyConversionCode": obj.get("currencyConversionCode"), - "currencyConversionDate": obj.get("currencyConversionDate"), - "currencyConversionMode": obj.get("currencyConversionMode"), - "dateTimeDisplayMode": obj.get("dateTimeDisplayMode"), - "limit": obj.get("limit"), - "multipleTables": obj.get("multipleTables"), - "omitHeader": obj.get("omitHeader"), - "page": obj.get("page"), - "queryMode": obj.get("queryMode"), - "recordMode": obj.get("recordMode") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/list_query_source_dto.py b/src/visier_api_data_out/visier_api_data_out/models/list_query_source_dto.py deleted file mode 100644 index 58f9b2e5e3..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/list_query_source_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ListQuerySourceDTO(BaseModel): - """ - A ListQuerySource defines the source data to query in a list query. - """ # noqa: E501 - analytic_object: Optional[StrictStr] = Field(default=None, description="The ID of an existing analytic object in your Visier solution. An analytic object source cannot have filters or time handling.", alias="analyticObject") - formula: Optional[StrictStr] = Field(default=None, description="An ad-hoc metric formula. The response returns the individual data points that make up the aggregate.") - metric: Optional[StrictStr] = Field(default=None, description="The ID of an existing metric in your Visier solution.") - text_concept: Optional[StrictStr] = Field(default=None, description="The ID of an existing text concept in your Visier solution. A concept that defines the text properties of an analytic object and includes filters to enforce aggregate thresholds.
**Note:** This field is in **limited availability**. If you are interested in using it, please contact your Customer Success Manager (CSM).", alias="textConcept") - __properties: ClassVar[List[str]] = ["analyticObject", "formula", "metric", "textConcept"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ListQuerySourceDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ListQuerySourceDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analyticObject": obj.get("analyticObject"), - "formula": obj.get("formula"), - "metric": obj.get("metric"), - "textConcept": obj.get("textConcept") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/list_response.py b/src/visier_api_data_out/visier_api_data_out/models/list_response.py deleted file mode 100644 index 0ab7b2b8c8..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/list_response.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.google_protobuf_any import GoogleProtobufAny -from typing import Optional, Set -from typing_extensions import Self - -class ListResponse(BaseModel): - """ - ListResponse - """ # noqa: E501 - header: Optional[GoogleProtobufAny] = None - rows: Optional[List[GoogleProtobufAny]] = None - __properties: ClassVar[List[str]] = ["header", "rows"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of header - if self.header: - _dict['header'] = self.header.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in rows (list) - _items = [] - if self.rows: - for _item_rows in self.rows: - if _item_rows: - _items.append(_item_rows.to_dict()) - _dict['rows'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "header": GoogleProtobufAny.from_dict(obj["header"]) if obj.get("header") is not None else None, - "rows": [GoogleProtobufAny.from_dict(_item) for _item in obj["rows"]] if obj.get("rows") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/member_filter_dto.py b/src/visier_api_data_out/visier_api_data_out/models/member_filter_dto.py deleted file mode 100644 index cc1985c583..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/member_filter_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.dimension_reference_dto import DimensionReferenceDTO -from visier_api_data_out.models.member_values_dto import MemberValuesDTO -from typing import Optional, Set -from typing_extensions import Self - -class MemberFilterDTO(BaseModel): - """ - Member filters are dimension member values to filter by in your query. The member filters are defined within the filters section of a query definition. You can filter by dimension members in aggregate and list queries. - """ # noqa: E501 - dimension: Optional[DimensionReferenceDTO] = Field(default=None, description="The dimension in which the members belong.") - values: Optional[MemberValuesDTO] = Field(default=None, description="The dimension members to filter by.") - __properties: ClassVar[List[str]] = ["dimension", "values"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MemberFilterDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of dimension - if self.dimension: - _dict['dimension'] = self.dimension.to_dict() - # override the default output from pydantic by calling `to_dict()` of values - if self.values: - _dict['values'] = self.values.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MemberFilterDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimension": DimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None, - "values": MemberValuesDTO.from_dict(obj["values"]) if obj.get("values") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/member_parameter_value_dto.py b/src/visier_api_data_out/visier_api_data_out/models/member_parameter_value_dto.py deleted file mode 100644 index a1ffbed45c..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/member_parameter_value_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.member_values_dto import MemberValuesDTO -from typing import Optional, Set -from typing_extensions import Self - -class MemberParameterValueDTO(BaseModel): - """ - The member value of a parameter, including the parameter ID, dimension that the parameter is based on, and the included and excluded members for the parameter. - """ # noqa: E501 - dimension_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the dimension on which the parameter is based.", alias="dimensionId") - parameter_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the member parameter qualified by the object.", alias="parameterId") - reference_path: Optional[List[StrictStr]] = Field(default=None, description="The analytic object reference path from the metric to the dimension.", alias="referencePath") - values: Optional[MemberValuesDTO] = Field(default=None, description="The included and excluded member references in a dimension filter.") - __properties: ClassVar[List[str]] = ["dimensionId", "parameterId", "referencePath", "values"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MemberParameterValueDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of values - if self.values: - _dict['values'] = self.values.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MemberParameterValueDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimensionId": obj.get("dimensionId"), - "parameterId": obj.get("parameterId"), - "referencePath": obj.get("referencePath"), - "values": MemberValuesDTO.from_dict(obj["values"]) if obj.get("values") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/member_values_dto.py b/src/visier_api_data_out/visier_api_data_out/models/member_values_dto.py deleted file mode 100644 index 06d2a859fa..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/member_values_dto.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.dimension_member_reference_dto import DimensionMemberReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class MemberValuesDTO(BaseModel): - """ - Member filter values are discrete member references in a dimension filter. You can define included and excluded members simultaneously. This is typically done with filtering applied on dimensions with multiple levels. For example, a Location parameter may include “South America” and exclude “Brazil” which results in the metric being evaluated for all South American countries except Brazil. - """ # noqa: E501 - excluded: Optional[List[DimensionMemberReferenceDTO]] = Field(default=None, description="The unique IDs of members to exclude when evaluating the metric.") - included: Optional[List[DimensionMemberReferenceDTO]] = Field(default=None, description="The unique IDs of members to include when evaluating the metric.") - __properties: ClassVar[List[str]] = ["excluded", "included"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MemberValuesDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in excluded (list) - _items = [] - if self.excluded: - for _item_excluded in self.excluded: - if _item_excluded: - _items.append(_item_excluded.to_dict()) - _dict['excluded'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in included (list) - _items = [] - if self.included: - for _item_included in self.included: - if _item_included: - _items.append(_item_included.to_dict()) - _dict['included'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MemberValuesDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "excluded": [DimensionMemberReferenceDTO.from_dict(_item) for _item in obj["excluded"]] if obj.get("excluded") is not None else None, - "included": [DimensionMemberReferenceDTO.from_dict(_item) for _item in obj["included"]] if obj.get("included") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/numeric_parameter_value_dto.py b/src/visier_api_data_out/visier_api_data_out/models/numeric_parameter_value_dto.py deleted file mode 100644 index 1c0b7ec032..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/numeric_parameter_value_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class NumericParameterValueDTO(BaseModel): - """ - The value of a numeric parameter, including the parameter ID and the numeric value passed into the parameter. - """ # noqa: E501 - parameter_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the numeric parameter qualified by the object.", alias="parameterId") - value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The numeric value of the parameter.") - __properties: ClassVar[List[str]] = ["parameterId", "value"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of NumericParameterValueDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of NumericParameterValueDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "parameterId": obj.get("parameterId"), - "value": obj.get("value") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/plan_parameter_value_dto.py b/src/visier_api_data_out/visier_api_data_out/models/plan_parameter_value_dto.py deleted file mode 100644 index c822ab5c62..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/plan_parameter_value_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PlanParameterValueDTO(BaseModel): - """ - The value for a parameter on a planning metric, including the parameter ID and the plan the parameter is based on. - """ # noqa: E501 - parameter_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the plan parameter qualified by the object.", alias="parameterId") - plan_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the plan the parameter is based on.", alias="planId") - scenario_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the scenario the parameter is based on.", alias="scenarioId") - snapshot_id: Optional[StrictStr] = Field(default=None, description="The unique ID of the snapshot the parameter is based on.", alias="snapshotId") - __properties: ClassVar[List[str]] = ["parameterId", "planId", "scenarioId", "snapshotId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlanParameterValueDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlanParameterValueDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "parameterId": obj.get("parameterId"), - "planId": obj.get("planId"), - "scenarioId": obj.get("scenarioId"), - "snapshotId": obj.get("snapshotId") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/property_column_dto.py b/src/visier_api_data_out/visier_api_data_out/models/property_column_dto.py deleted file mode 100644 index a07fed87b9..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/property_column_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.query_property_dto import QueryPropertyDTO -from typing import Optional, Set -from typing_extensions import Self - -class PropertyColumnDTO(BaseModel): - """ - A named, result column of a list query. - """ # noqa: E501 - column_definition: Optional[QueryPropertyDTO] = Field(default=None, description="The definition of the property to query on.", alias="columnDefinition") - column_name: Optional[StrictStr] = Field(default=None, description="The name of the column. This is optional. If not specified, the name of the property is used, or a generic column name if the property is unnamed.", alias="columnName") - __properties: ClassVar[List[str]] = ["columnDefinition", "columnName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertyColumnDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of column_definition - if self.column_definition: - _dict['columnDefinition'] = self.column_definition.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertyColumnDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "columnDefinition": QueryPropertyDTO.from_dict(obj["columnDefinition"]) if obj.get("columnDefinition") is not None else None, - "columnName": obj.get("columnName") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/property_reference_dto.py b/src/visier_api_data_out/visier_api_data_out/models/property_reference_dto.py deleted file mode 100644 index dda7081824..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/property_reference_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PropertyReferenceDTO(BaseModel): - """ - The name and qualifying path of a property to query. - """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, description="The ID of the property. See `Properties` to get the ID.") - qualifying_path: Optional[StrictStr] = Field(default=None, description="The qualifying path to the property in Visier, such as the analytic object or event the property is associated with. If the path has multiple objects, each object is separated by a period.", alias="qualifyingPath") - __properties: ClassVar[List[str]] = ["name", "qualifyingPath"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PropertyReferenceDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PropertyReferenceDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "qualifyingPath": obj.get("qualifyingPath") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_axis_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_axis_dto.py deleted file mode 100644 index 137b220cf5..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_axis_dto.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.query_axis_options_dto import QueryAxisOptionsDTO -from visier_api_data_out.models.query_dimension_data_member_selection_dto import QueryDimensionDataMemberSelectionDTO -from visier_api_data_out.models.query_dimension_leaf_selection_dto import QueryDimensionLeafSelectionDTO -from visier_api_data_out.models.query_dimension_level_selection_dto import QueryDimensionLevelSelectionDTO -from visier_api_data_out.models.query_dimension_member_selection_dto import QueryDimensionMemberSelectionDTO -from visier_api_data_out.models.query_member_map_selection_dto import QueryMemberMapSelectionDTO -from visier_api_data_out.models.query_numeric_ranges_dto import QueryNumericRangesDTO -from visier_api_data_out.models.selection_concept_reference_dto import SelectionConceptReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class QueryAxisDTO(BaseModel): - """ - An axis of a query used to group data points. - """ # noqa: E501 - dimension_data_member_selection: Optional[QueryDimensionDataMemberSelectionDTO] = Field(default=None, description="An axis comprised of all leaf, including data, members of an existing dimension in Visier.", alias="dimensionDataMemberSelection") - dimension_leaf_member_selection: Optional[QueryDimensionLeafSelectionDTO] = Field(default=None, description="An axis comprised of all non-data leaf members of an existing dimension in Visier.", alias="dimensionLeafMemberSelection") - dimension_level_selection: Optional[QueryDimensionLevelSelectionDTO] = Field(default=None, description="An axis that uses levels of existing dimensions in Visier.", alias="dimensionLevelSelection") - dimension_level_with_uncategorized_value_selection: Optional[QueryDimensionLevelSelectionDTO] = Field(default=None, description="An axis that uses existing dimension levels in Visier, including uncategorized levels.", alias="dimensionLevelWithUncategorizedValueSelection") - dimension_member_selection: Optional[QueryDimensionMemberSelectionDTO] = Field(default=None, description="An axis that uses existing dimension members in Visier.", alias="dimensionMemberSelection") - formula: Optional[StrictStr] = Field(default=None, description="An axis expressed as a formula.") - member_map_selection: Optional[QueryMemberMapSelectionDTO] = Field(default=None, description="An axis that uses an existing member map in Visier.", alias="memberMapSelection") - numeric_ranges: Optional[QueryNumericRangesDTO] = Field(default=None, description="An axis that uses an existing range dimension in Visier and defines the ranges to query.", alias="numericRanges") - selection_concept: Optional[SelectionConceptReferenceDTO] = Field(default=None, description="An axis that uses an existing selection concept in Visier. The resulting axis consists of 3 positions: True, False, and Unknown.", alias="selectionConcept") - table_axis_options: Optional[QueryAxisOptionsDTO] = Field(default=None, description="Additional transformations to perform on this axis. Only available when the Accept header is a table format, such as text/csv or application/jsonlines.", alias="tableAxisOptions") - __properties: ClassVar[List[str]] = ["dimensionDataMemberSelection", "dimensionLeafMemberSelection", "dimensionLevelSelection", "dimensionLevelWithUncategorizedValueSelection", "dimensionMemberSelection", "formula", "memberMapSelection", "numericRanges", "selectionConcept", "tableAxisOptions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryAxisDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of dimension_data_member_selection - if self.dimension_data_member_selection: - _dict['dimensionDataMemberSelection'] = self.dimension_data_member_selection.to_dict() - # override the default output from pydantic by calling `to_dict()` of dimension_leaf_member_selection - if self.dimension_leaf_member_selection: - _dict['dimensionLeafMemberSelection'] = self.dimension_leaf_member_selection.to_dict() - # override the default output from pydantic by calling `to_dict()` of dimension_level_selection - if self.dimension_level_selection: - _dict['dimensionLevelSelection'] = self.dimension_level_selection.to_dict() - # override the default output from pydantic by calling `to_dict()` of dimension_level_with_uncategorized_value_selection - if self.dimension_level_with_uncategorized_value_selection: - _dict['dimensionLevelWithUncategorizedValueSelection'] = self.dimension_level_with_uncategorized_value_selection.to_dict() - # override the default output from pydantic by calling `to_dict()` of dimension_member_selection - if self.dimension_member_selection: - _dict['dimensionMemberSelection'] = self.dimension_member_selection.to_dict() - # override the default output from pydantic by calling `to_dict()` of member_map_selection - if self.member_map_selection: - _dict['memberMapSelection'] = self.member_map_selection.to_dict() - # override the default output from pydantic by calling `to_dict()` of numeric_ranges - if self.numeric_ranges: - _dict['numericRanges'] = self.numeric_ranges.to_dict() - # override the default output from pydantic by calling `to_dict()` of selection_concept - if self.selection_concept: - _dict['selectionConcept'] = self.selection_concept.to_dict() - # override the default output from pydantic by calling `to_dict()` of table_axis_options - if self.table_axis_options: - _dict['tableAxisOptions'] = self.table_axis_options.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryAxisDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimensionDataMemberSelection": QueryDimensionDataMemberSelectionDTO.from_dict(obj["dimensionDataMemberSelection"]) if obj.get("dimensionDataMemberSelection") is not None else None, - "dimensionLeafMemberSelection": QueryDimensionLeafSelectionDTO.from_dict(obj["dimensionLeafMemberSelection"]) if obj.get("dimensionLeafMemberSelection") is not None else None, - "dimensionLevelSelection": QueryDimensionLevelSelectionDTO.from_dict(obj["dimensionLevelSelection"]) if obj.get("dimensionLevelSelection") is not None else None, - "dimensionLevelWithUncategorizedValueSelection": QueryDimensionLevelSelectionDTO.from_dict(obj["dimensionLevelWithUncategorizedValueSelection"]) if obj.get("dimensionLevelWithUncategorizedValueSelection") is not None else None, - "dimensionMemberSelection": QueryDimensionMemberSelectionDTO.from_dict(obj["dimensionMemberSelection"]) if obj.get("dimensionMemberSelection") is not None else None, - "formula": obj.get("formula"), - "memberMapSelection": QueryMemberMapSelectionDTO.from_dict(obj["memberMapSelection"]) if obj.get("memberMapSelection") is not None else None, - "numericRanges": QueryNumericRangesDTO.from_dict(obj["numericRanges"]) if obj.get("numericRanges") is not None else None, - "selectionConcept": SelectionConceptReferenceDTO.from_dict(obj["selectionConcept"]) if obj.get("selectionConcept") is not None else None, - "tableAxisOptions": QueryAxisOptionsDTO.from_dict(obj["tableAxisOptions"]) if obj.get("tableAxisOptions") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_axis_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_axis_options_dto.py deleted file mode 100644 index f8fb327282..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_axis_options_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class QueryAxisOptionsDTO(BaseModel): - """ - QueryAxisOptions allows you to customize an axis in the query, such as changing the display mode for its cell set values or providing a custom column name. Only available when the Accept header is a table format, such as text/csv or application/jsonlines. - """ # noqa: E501 - column_name: Optional[StrictStr] = Field(default=None, description="If specified, returns the column name of the axis in the response.", alias="columnName") - member_display_mode: Optional[StrictStr] = Field(default=None, description="Options to override the display mode for the axis. This overrides the query-level `memberDisplayMode` options value in the query. Only available for non-time axes. Use the QueryAxisMemberDisplayMode `memberDisplayMode` to apply different display modes to different axes. For example, let's say your query has the `memberDisplayMode` as `DISPLAY` but you want to fetch the object name for a specific dimension. With QueryAxisMemberDisplayMode `memberDisplayMode`, you can override that dimension's `memberDisplayMode` to `DEFAULT` instead of `DISPLAY`. Valid values are `UNCHANGED`, `DEFAULT`, `COMPACT`, `DISPLAY`, or `MDX`. Default is `UNCHANGED`.", alias="memberDisplayMode") - __properties: ClassVar[List[str]] = ["columnName", "memberDisplayMode"] - - @field_validator('member_display_mode') - def member_display_mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['UNCHANGED', 'DEFAULT', 'COMPACT', 'DISPLAY', 'MDX']): - raise ValueError("must be one of enum values ('UNCHANGED', 'DEFAULT', 'COMPACT', 'DISPLAY', 'MDX')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryAxisOptionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryAxisOptionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "columnName": obj.get("columnName"), - "memberDisplayMode": obj.get("memberDisplayMode") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_dimension_data_member_selection_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_dimension_data_member_selection_dto.py deleted file mode 100644 index dc963fee97..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_dimension_data_member_selection_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.dimension_reference_dto import DimensionReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class QueryDimensionDataMemberSelectionDTO(BaseModel): - """ - A QueryDimensionLeafSelection allows you to define a member set consisting exclusively of leaf-level, including data, members for the given dimension. Leaf members are those members that have no descendents. A member may be a leaf member regardless of the level it is positioned at. - """ # noqa: E501 - dimension: Optional[DimensionReferenceDTO] = Field(default=None, description="A dimension and its qualifying path to query.") - __properties: ClassVar[List[str]] = ["dimension"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryDimensionDataMemberSelectionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of dimension - if self.dimension: - _dict['dimension'] = self.dimension.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryDimensionDataMemberSelectionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimension": DimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_dimension_leaf_selection_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_dimension_leaf_selection_dto.py deleted file mode 100644 index deb68cff72..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_dimension_leaf_selection_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.dimension_reference_dto import DimensionReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class QueryDimensionLeafSelectionDTO(BaseModel): - """ - A QueryDimensionLeafSelection allows you to define a member set consisting exclusively of leaf-level members for the given dimension. Leaf members are those members that have no descendents. A member may be a leaf member regardless of the level it is positioned at. This member selection option, excludes data members. - """ # noqa: E501 - dimension: Optional[DimensionReferenceDTO] = Field(default=None, description="A dimension and its qualifying path to query.") - __properties: ClassVar[List[str]] = ["dimension"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryDimensionLeafSelectionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of dimension - if self.dimension: - _dict['dimension'] = self.dimension.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryDimensionLeafSelectionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimension": DimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_dimension_level_property_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_dimension_level_property_dto.py deleted file mode 100644 index a7d6a93f9f..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_dimension_level_property_dto.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.dimension_reference_dto import DimensionReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class QueryDimensionLevelPropertyDTO(BaseModel): - """ - A QueryDimensionLevelPropertyDTO defines an existing dimension level and its dimension to query. - """ # noqa: E501 - dimension: Optional[DimensionReferenceDTO] = Field(default=None, description="A dimension and its qualifying path to query.") - level_depth: Optional[StrictInt] = Field(default=None, description="The level depth.", alias="levelDepth") - level_id: Optional[StrictStr] = Field(default=None, description="The level ID.", alias="levelId") - member_value_mode: Optional[StrictStr] = Field(default=None, description="Controls how to display member values. Valid values are `NAME`, `PATH`. * `NAME`: Returns the member's display name. This is the default. * `PATH`: Returns the member's name path.", alias="memberValueMode") - __properties: ClassVar[List[str]] = ["dimension", "levelDepth", "levelId", "memberValueMode"] - - @field_validator('member_value_mode') - def member_value_mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['NAME', 'PATH']): - raise ValueError("must be one of enum values ('NAME', 'PATH')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryDimensionLevelPropertyDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of dimension - if self.dimension: - _dict['dimension'] = self.dimension.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryDimensionLevelPropertyDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimension": DimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None, - "levelDepth": obj.get("levelDepth"), - "levelId": obj.get("levelId"), - "memberValueMode": obj.get("memberValueMode") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_dimension_level_selection_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_dimension_level_selection_dto.py deleted file mode 100644 index 2cea05c451..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_dimension_level_selection_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.dimension_reference_dto import DimensionReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class QueryDimensionLevelSelectionDTO(BaseModel): - """ - A QueryDimensionLevelSelection allows you to select a dimension level and its members without explicitly listing each member. To see the correct notation for levels, see `Dimension`. - """ # noqa: E501 - dimension: Optional[DimensionReferenceDTO] = Field(default=None, description="A dimension and its qualifying path to query.") - level_ids: Optional[List[StrictStr]] = Field(default=None, description="The ordered collection of level identifiers for the dimension. See `Dimension`.", alias="levelIds") - __properties: ClassVar[List[str]] = ["dimension", "levelIds"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryDimensionLevelSelectionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of dimension - if self.dimension: - _dict['dimension'] = self.dimension.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryDimensionLevelSelectionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimension": DimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None, - "levelIds": obj.get("levelIds") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_dimension_member_selection_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_dimension_member_selection_dto.py deleted file mode 100644 index 6705018c40..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_dimension_member_selection_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.dimension_member_reference_dto import DimensionMemberReferenceDTO -from visier_api_data_out.models.dimension_reference_dto import DimensionReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class QueryDimensionMemberSelectionDTO(BaseModel): - """ - A QueryDimensionMemberSelection defines dimension members to select in the query. - """ # noqa: E501 - dimension: Optional[DimensionReferenceDTO] = Field(default=None, description="A dimension and its qualifying path to query.") - members: Optional[List[DimensionMemberReferenceDTO]] = Field(default=None, description="A collection of dimension members to select in the query. This must contain at least one member.") - __properties: ClassVar[List[str]] = ["dimension", "members"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryDimensionMemberSelectionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of dimension - if self.dimension: - _dict['dimension'] = self.dimension.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in members (list) - _items = [] - if self.members: - for _item_members in self.members: - if _item_members: - _items.append(_item_members.to_dict()) - _dict['members'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryDimensionMemberSelectionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimension": DimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None, - "members": [DimensionMemberReferenceDTO.from_dict(_item) for _item in obj["members"]] if obj.get("members") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_execution_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_execution_options_dto.py deleted file mode 100644 index ef3aead3b4..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_execution_options_dto.py +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.cell_distribution_options_dto import CellDistributionOptionsDTO -from visier_api_data_out.models.internal_query_execution_options_dto import InternalQueryExecutionOptionsDTO -from typing import Optional, Set -from typing_extensions import Self - -class QueryExecutionOptionsDTO(BaseModel): - """ - A QueryExecutionOptions provides additional instructions to perform a query. - """ # noqa: E501 - axes_overall_value_mode: Optional[StrictStr] = Field(default=None, description="If `axes` is defined, use `axesOverallValueMode` to specify the type of overall values to return across the axes. Valid values: * `NONE`: Returns the metric's values for the selected axes and doesn't return overall values. This is the default. * `AGGREGATE`: Returns the metric's overall values for the selected axes members. * `OVERALL`: Returns the metric's overall values for all axes members. **Note**: `AGGREGATE` is not supported for lookup overlays because the overall values of selected members cannot be calculated directly from the data. Example: Let's say you want to know the Headcount of the locations Canada and US and the genders Male and Female. When `axesOverallValueMode` is `NONE`, the query returns these values: * 100 (Canada, Male) * 100 (US, Male) * 100 (Canada, Female) * 100 (US, Female) When `axesOverallValueMode` is `AGGREGATE`, the query returns these values: * 100 (Canada, Male) * 100 (US, Male) * 100 (Canada, Female) * 100 (US, Female) * 400 (Overall, Overall) * 200 (Overall, Male) * 200 (Overall, Female) * 200 (Canada, Overall) * 200 (US, Overall) When `axesOverallValueMode` is `OVERALL`, the query returns these values: * 100 (Canada, Male) * 100 (US, Male) * 100 (Canada, Female) * 100 (US, Female) * 800 (Overall, Overall) * 400 (Overall, Male) * 400 (Overall, Female) * 400 (Canada, Overall) * 400 (US, Overall) In this example, `OVERALL` returns higher overall values than `AGGREGATE` because `AGGREGATE` returns the overall values for the selected locations (Canada, US) and genders (Male, Female), whereas `OVERALL` returns the overall values across all locations and genders in the data.", alias="axesOverallValueMode") - axis_visibility: Optional[StrictStr] = Field(default=None, description="The amount of information to return about each axis. Default is SIMPLE.", alias="axisVisibility") - calendar_type: Optional[StrictStr] = Field(default=None, description="The calendar type to use. This will be used for all time calculations unless explicitly overridden in the calculation itself. Default is TENANT_CALENDAR.", alias="calendarType") - cell_distribution_options: Optional[CellDistributionOptionsDTO] = Field(default=None, alias="cellDistributionOptions") - currency_conversion_code: Optional[StrictStr] = Field(default=None, description="The target currency for all currency conversions. If not specified, the tenant default currency will be used.", alias="currencyConversionCode") - currency_conversion_date: Optional[StrictStr] = Field(default=None, description="The currency conversion date to use. If defined, the currency conversion will use the exchange rates as of this date. Default is the exchange rate at the end of the query time interval. Format is the number of milliseconds since midnight 01 January, 1970 UTC as a string. Note: Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="currencyConversionDate") - currency_conversion_mode: Optional[StrictStr] = Field(default=None, description="The currency conversion mode to use. This will be used for all currency conversion calculations unless explicitly overridden in the calculation itself. Default is TENANT_CURRENCY_CONVERSION.", alias="currencyConversionMode") - enable_descending_space: Optional[StrictBool] = Field(default=None, description="If true, filter non-time axis member sets to only include members that are in aggregate positions or whose previous position is a leaf", alias="enableDescendingSpace") - enable_sparse_results: Optional[StrictBool] = Field(default=None, description="Retrieve sparse cell sets. Sparse results only retrieve non-zero and non-null cells. Whether a result is truly sparse or not is determined by the Visier server.", alias="enableSparseResults") - internal: Optional[InternalQueryExecutionOptionsDTO] = None - lineage_depth: Optional[StrictInt] = Field(default=None, description="The max number of levels of nesting to unwind when determining the lineage for a derived metric value.", alias="lineageDepth") - member_display_mode: Optional[StrictStr] = Field(default=None, description="Control how member values are displayed. You can override the `memberDisplayMode` on a per-axis basis, if required. Valid values are `DEFAULT`, `COMPACT`, `DISPLAY`, or `MDX`. Default is `DEFAULT`. * `DEFAULT`: The default member name representation. For non-time members, this returns the technical member name path. For time members, this includes a bracketed member index. For example, Time instant member: `2019-06-01T00:00:00.000Z - [0]` For example, Time interval member: `2022-06-01T00:00:00.000Z/2022-07-01T00:00:00.000Z - [12]` * `COMPACT`: Shortens the member name representation. For time intervals, the member name is the end time of the interval. For example, Time instant member: `2019-06-01T00:00:00.000Z` For example, Time interval member: `2022-07-01T00:00:00.000Z` where the interval member name was `2022-06-01T00:00:00.000Z/2022-07-01T00:00:00.000Z - [12]` * `DISPLAY`: Emits the members' display names whenever possible. When combined with `axisVisibility = VERBOSE`, the full display name path will be emitted. * `MDX`: Emits member name paths where each element is enclosed in square brackets, `[]`. Multidimensional expression (MDX) display mode automatically encloses time members in square brackets and puts them in `COMPACT` format. For example, Location member `North America.United States.California` becomes `[North America].[United States].[California]` in MDX display mode. For example, Time instant member `2019-06-01T00:00:00.000Z - [0]` becomes `[2019-06-01T00:00:00.000Z]` in MDX display mode. * `COMPACT_DISPLAY`: Emit the members' display names after compacting. This applies primarily to time members for event-based metrics. Compact display is required when running multi-metric queries containing both event-based and subject-based metrics. Multi-metric queries with `DISPLAY` mode are changed automatically to `COMPACT_DISPLAY`. For example, Time interval member `2022-06-01T00:00:00.000Z/2022-07-01T00:00:00.000Z - [12]` becomes `Jun 30, 2022` in `COMPACT_DISPLAY` mode. The exact format of the compacted time member display name depends on the the user's locale.", alias="memberDisplayMode") - null_visibility: Optional[StrictStr] = Field(default=None, description="Show or hide null or N/A values in the result. Default is SHOW.", alias="nullVisibility") - zero_visibility: Optional[StrictStr] = Field(default=None, description="Show or hide zeros in the result. Default is SHOW.", alias="zeroVisibility") - __properties: ClassVar[List[str]] = ["axesOverallValueMode", "axisVisibility", "calendarType", "cellDistributionOptions", "currencyConversionCode", "currencyConversionDate", "currencyConversionMode", "enableDescendingSpace", "enableSparseResults", "internal", "lineageDepth", "memberDisplayMode", "nullVisibility", "zeroVisibility"] - - @field_validator('axes_overall_value_mode') - def axes_overall_value_mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['NONE', 'AGGREGATE', 'OVERALL']): - raise ValueError("must be one of enum values ('NONE', 'AGGREGATE', 'OVERALL')") - return value - - @field_validator('axis_visibility') - def axis_visibility_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['SIMPLE', 'VERBOSE']): - raise ValueError("must be one of enum values ('SIMPLE', 'VERBOSE')") - return value - - @field_validator('calendar_type') - def calendar_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['TENANT_CALENDAR', 'GREGORIAN_CALENDAR']): - raise ValueError("must be one of enum values ('TENANT_CALENDAR', 'GREGORIAN_CALENDAR')") - return value - - @field_validator('currency_conversion_mode') - def currency_conversion_mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['TENANT_CURRENCY_CONVERSION', 'VISIER_CURRENCY_CONVERSION']): - raise ValueError("must be one of enum values ('TENANT_CURRENCY_CONVERSION', 'VISIER_CURRENCY_CONVERSION')") - return value - - @field_validator('member_display_mode') - def member_display_mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['DEFAULT', 'COMPACT', 'DISPLAY', 'MDX', 'COMPACT_DISPLAY']): - raise ValueError("must be one of enum values ('DEFAULT', 'COMPACT', 'DISPLAY', 'MDX', 'COMPACT_DISPLAY')") - return value - - @field_validator('null_visibility') - def null_visibility_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['SHOW', 'HIDE', 'ELIMINATE']): - raise ValueError("must be one of enum values ('SHOW', 'HIDE', 'ELIMINATE')") - return value - - @field_validator('zero_visibility') - def zero_visibility_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['SHOW', 'HIDE', 'ELIMINATE']): - raise ValueError("must be one of enum values ('SHOW', 'HIDE', 'ELIMINATE')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryExecutionOptionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of cell_distribution_options - if self.cell_distribution_options: - _dict['cellDistributionOptions'] = self.cell_distribution_options.to_dict() - # override the default output from pydantic by calling `to_dict()` of internal - if self.internal: - _dict['internal'] = self.internal.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryExecutionOptionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "axesOverallValueMode": obj.get("axesOverallValueMode"), - "axisVisibility": obj.get("axisVisibility"), - "calendarType": obj.get("calendarType"), - "cellDistributionOptions": CellDistributionOptionsDTO.from_dict(obj["cellDistributionOptions"]) if obj.get("cellDistributionOptions") is not None else None, - "currencyConversionCode": obj.get("currencyConversionCode"), - "currencyConversionDate": obj.get("currencyConversionDate"), - "currencyConversionMode": obj.get("currencyConversionMode"), - "enableDescendingSpace": obj.get("enableDescendingSpace"), - "enableSparseResults": obj.get("enableSparseResults"), - "internal": InternalQueryExecutionOptionsDTO.from_dict(obj["internal"]) if obj.get("internal") is not None else None, - "lineageDepth": obj.get("lineageDepth"), - "memberDisplayMode": obj.get("memberDisplayMode"), - "nullVisibility": obj.get("nullVisibility"), - "zeroVisibility": obj.get("zeroVisibility") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_filter_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_filter_dto.py deleted file mode 100644 index 0081ec9741..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_filter_dto.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.cohort_filter_dto import CohortFilterDTO -from visier_api_data_out.models.member_filter_dto import MemberFilterDTO -from visier_api_data_out.models.selection_concept_reference_dto import SelectionConceptReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class QueryFilterDTO(BaseModel): - """ - A QueryFilter selects specific data points within a population. - """ # noqa: E501 - cohort: Optional[CohortFilterDTO] = Field(default=None, description="A filter that identifies a population at a specific time.") - formula: Optional[StrictStr] = Field(default=None, description="A filter expressed as a formula.") - member_set: Optional[MemberFilterDTO] = Field(default=None, description="A filter that includes or excludes dimension members.", alias="memberSet") - selection_concept: Optional[SelectionConceptReferenceDTO] = Field(default=None, description="A filter that uses an existing selection concept in Visier.", alias="selectionConcept") - __properties: ClassVar[List[str]] = ["cohort", "formula", "memberSet", "selectionConcept"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryFilterDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of cohort - if self.cohort: - _dict['cohort'] = self.cohort.to_dict() - # override the default output from pydantic by calling `to_dict()` of member_set - if self.member_set: - _dict['memberSet'] = self.member_set.to_dict() - # override the default output from pydantic by calling `to_dict()` of selection_concept - if self.selection_concept: - _dict['selectionConcept'] = self.selection_concept.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryFilterDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "cohort": CohortFilterDTO.from_dict(obj["cohort"]) if obj.get("cohort") is not None else None, - "formula": obj.get("formula"), - "memberSet": MemberFilterDTO.from_dict(obj["memberSet"]) if obj.get("memberSet") is not None else None, - "selectionConcept": SelectionConceptReferenceDTO.from_dict(obj["selectionConcept"]) if obj.get("selectionConcept") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_member_map_property_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_member_map_property_dto.py deleted file mode 100644 index 2cfe61b35d..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_member_map_property_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.dimension_reference_dto import DimensionReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class QueryMemberMapPropertyDTO(BaseModel): - """ - A QueryMemberMapProperty defines an existing member map and its dimension to query. - """ # noqa: E501 - member_map: Optional[DimensionReferenceDTO] = Field(default=None, description="A member map and its qualifying path to query.", alias="memberMap") - target_dimension_name: Optional[StrictStr] = Field(default=None, description="The name of the member map's dimension that you want to query. The member selection is based on this dimension.", alias="targetDimensionName") - __properties: ClassVar[List[str]] = ["memberMap", "targetDimensionName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryMemberMapPropertyDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of member_map - if self.member_map: - _dict['memberMap'] = self.member_map.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryMemberMapPropertyDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "memberMap": DimensionReferenceDTO.from_dict(obj["memberMap"]) if obj.get("memberMap") is not None else None, - "targetDimensionName": obj.get("targetDimensionName") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_member_map_selection_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_member_map_selection_dto.py deleted file mode 100644 index bf12725c77..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_member_map_selection_dto.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.dimension_member_reference_dto import DimensionMemberReferenceDTO -from visier_api_data_out.models.dimension_reference_dto import DimensionReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class QueryMemberMapSelectionDTO(BaseModel): - """ - A QueryMemberMapSelection groups data in a query by dimension members in a member map. This allows grouping by a dimension that isn't typically valid on the analytic object being queried by selecting a valid member map on the analytic object. Note: This is unique to the data query API and cannot be reproduced in Visier's interface. - """ # noqa: E501 - member_map: Optional[DimensionReferenceDTO] = Field(default=None, description="A member map and its qualifying path to query.", alias="memberMap") - members: Optional[List[DimensionMemberReferenceDTO]] = Field(default=None, description="A collection of the selected dimension members from the `targetDimension`. This must contain at least one member.") - target_dimension_name: Optional[StrictStr] = Field(default=None, description="The name of the member map's dimension that you want to query. The member selection is based on this dimension.", alias="targetDimensionName") - __properties: ClassVar[List[str]] = ["memberMap", "members", "targetDimensionName"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryMemberMapSelectionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of member_map - if self.member_map: - _dict['memberMap'] = self.member_map.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in members (list) - _items = [] - if self.members: - for _item_members in self.members: - if _item_members: - _items.append(_item_members.to_dict()) - _dict['members'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryMemberMapSelectionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "memberMap": DimensionReferenceDTO.from_dict(obj["memberMap"]) if obj.get("memberMap") is not None else None, - "members": [DimensionMemberReferenceDTO.from_dict(_item) for _item in obj["members"]] if obj.get("members") is not None else None, - "targetDimensionName": obj.get("targetDimensionName") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_numeric_ranges_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_numeric_ranges_dto.py deleted file mode 100644 index 836f5e2a12..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_numeric_ranges_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.query_property_dto import QueryPropertyDTO -from typing import Optional, Set -from typing_extensions import Self - -class QueryNumericRangesDTO(BaseModel): - """ - A QueryNumericRanges groups data into specified ranges based on a property value. - """ # noqa: E501 - include_all_member: Optional[StrictBool] = Field(default=None, description="If `true`, a member is included that represents all members on the axis. Default is false.", alias="includeAllMember") - include_independent_zero_range: Optional[StrictBool] = Field(default=None, description="If `true`, 0 is an independent range. Default is false.", alias="includeIndependentZeroRange") - include_negative: Optional[StrictBool] = Field(default=None, description="If `true`, negative ranges are included. Default is false.", alias="includeNegative") - var_property: Optional[QueryPropertyDTO] = Field(default=None, description="The name and qualifying path of a numeric property. Non-numeric properties are not accepted.", alias="property") - ranges: Optional[StrictStr] = Field(default=None, description="The ranges to group data into, expressed as a space-separated string of range-bound values.") - __properties: ClassVar[List[str]] = ["includeAllMember", "includeIndependentZeroRange", "includeNegative", "property", "ranges"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryNumericRangesDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of var_property - if self.var_property: - _dict['property'] = self.var_property.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryNumericRangesDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "includeAllMember": obj.get("includeAllMember"), - "includeIndependentZeroRange": obj.get("includeIndependentZeroRange"), - "includeNegative": obj.get("includeNegative"), - "property": QueryPropertyDTO.from_dict(obj["property"]) if obj.get("property") is not None else None, - "ranges": obj.get("ranges") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_parameter_value_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_parameter_value_dto.py deleted file mode 100644 index cbbb52a0ff..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_parameter_value_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.aggregation_type_parameter_value_dto import AggregationTypeParameterValueDTO -from visier_api_data_out.models.member_parameter_value_dto import MemberParameterValueDTO -from visier_api_data_out.models.numeric_parameter_value_dto import NumericParameterValueDTO -from visier_api_data_out.models.plan_parameter_value_dto import PlanParameterValueDTO -from typing import Optional, Set -from typing_extensions import Self - -class QueryParameterValueDTO(BaseModel): - """ - An object that contains parameter values for either member or numeric parameters. - """ # noqa: E501 - aggregation_type_value: Optional[AggregationTypeParameterValueDTO] = Field(default=None, description="A value for an aggregation parameter.", alias="aggregationTypeValue") - member_value: Optional[MemberParameterValueDTO] = Field(default=None, description="A value for a member parameter.", alias="memberValue") - numeric_value: Optional[NumericParameterValueDTO] = Field(default=None, description="A value for a numeric parameter.", alias="numericValue") - plan_value: Optional[PlanParameterValueDTO] = Field(default=None, description="A value for a plan parameter.", alias="planValue") - __properties: ClassVar[List[str]] = ["aggregationTypeValue", "memberValue", "numericValue", "planValue"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryParameterValueDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of aggregation_type_value - if self.aggregation_type_value: - _dict['aggregationTypeValue'] = self.aggregation_type_value.to_dict() - # override the default output from pydantic by calling `to_dict()` of member_value - if self.member_value: - _dict['memberValue'] = self.member_value.to_dict() - # override the default output from pydantic by calling `to_dict()` of numeric_value - if self.numeric_value: - _dict['numericValue'] = self.numeric_value.to_dict() - # override the default output from pydantic by calling `to_dict()` of plan_value - if self.plan_value: - _dict['planValue'] = self.plan_value.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryParameterValueDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "aggregationTypeValue": AggregationTypeParameterValueDTO.from_dict(obj["aggregationTypeValue"]) if obj.get("aggregationTypeValue") is not None else None, - "memberValue": MemberParameterValueDTO.from_dict(obj["memberValue"]) if obj.get("memberValue") is not None else None, - "numericValue": NumericParameterValueDTO.from_dict(obj["numericValue"]) if obj.get("numericValue") is not None else None, - "planValue": PlanParameterValueDTO.from_dict(obj["planValue"]) if obj.get("planValue") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_property_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_property_dto.py deleted file mode 100644 index f77973fd94..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_property_dto.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.dimension_reference_dto import DimensionReferenceDTO -from visier_api_data_out.models.property_reference_dto import PropertyReferenceDTO -from visier_api_data_out.models.query_dimension_level_property_dto import QueryDimensionLevelPropertyDTO -from visier_api_data_out.models.query_member_map_property_dto import QueryMemberMapPropertyDTO -from visier_api_data_out.models.selection_concept_reference_dto import SelectionConceptReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class QueryPropertyDTO(BaseModel): - """ - A QueryProperty defines a property of a data point returned from a query. This is not the same as a `property` in Visier's data mode. - """ # noqa: E501 - dimension: Optional[DimensionReferenceDTO] = Field(default=None, description="A dimension-based property that returns the full name path of the dimension member that the data point is mapped to.") - dimension_level_selection: Optional[QueryDimensionLevelPropertyDTO] = Field(default=None, description="A dimension-based property that returns the member values of the dimension level.", alias="dimensionLevelSelection") - effective_date_property: Optional[Dict[str, Any]] = Field(default=None, description="A property that yields the effective date for the record", alias="effectiveDateProperty") - formula: Optional[StrictStr] = Field(default=None, description="A formula-based property.") - member_map_property: Optional[QueryMemberMapPropertyDTO] = Field(default=None, description="A member map-based property that uses an existing member map in Visier.", alias="memberMapProperty") - var_property: Optional[PropertyReferenceDTO] = Field(default=None, description="A property reference.", alias="property") - selection_concept: Optional[SelectionConceptReferenceDTO] = Field(default=None, description="A selection concept-based property that returns true or false.", alias="selectionConcept") - __properties: ClassVar[List[str]] = ["dimension", "dimensionLevelSelection", "effectiveDateProperty", "formula", "memberMapProperty", "property", "selectionConcept"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryPropertyDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of dimension - if self.dimension: - _dict['dimension'] = self.dimension.to_dict() - # override the default output from pydantic by calling `to_dict()` of dimension_level_selection - if self.dimension_level_selection: - _dict['dimensionLevelSelection'] = self.dimension_level_selection.to_dict() - # override the default output from pydantic by calling `to_dict()` of member_map_property - if self.member_map_property: - _dict['memberMapProperty'] = self.member_map_property.to_dict() - # override the default output from pydantic by calling `to_dict()` of var_property - if self.var_property: - _dict['property'] = self.var_property.to_dict() - # override the default output from pydantic by calling `to_dict()` of selection_concept - if self.selection_concept: - _dict['selectionConcept'] = self.selection_concept.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryPropertyDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dimension": DimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None, - "dimensionLevelSelection": QueryDimensionLevelPropertyDTO.from_dict(obj["dimensionLevelSelection"]) if obj.get("dimensionLevelSelection") is not None else None, - "effectiveDateProperty": obj.get("effectiveDateProperty"), - "formula": obj.get("formula"), - "memberMapProperty": QueryMemberMapPropertyDTO.from_dict(obj["memberMapProperty"]) if obj.get("memberMapProperty") is not None else None, - "property": PropertyReferenceDTO.from_dict(obj["property"]) if obj.get("property") is not None else None, - "selectionConcept": SelectionConceptReferenceDTO.from_dict(obj["selectionConcept"]) if obj.get("selectionConcept") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_time_interval_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_time_interval_dto.py deleted file mode 100644 index 9b318dc15d..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_time_interval_dto.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.time_shift_dto import TimeShiftDTO -from typing import Optional, Set -from typing_extensions import Self - -class QueryTimeIntervalDTO(BaseModel): - """ - A QueryTimeInterval defines the time interval to query, including the \"from\" time, period type, period count, time direction, and shift to apply - """ # noqa: E501 - direction: Optional[StrictStr] = Field(default=None, description="The direction to extend. Default is BACKWARD. BACKWARD is useful when the time instant is the current date or with `dynamicDateFrom` because the query continuously retrieves the newest data from current date backwards.") - dynamic_date_from: Optional[StrictStr] = Field(default=None, description="Dynamically select the date from which to extend in the specified `direction`. Valid values are `SOURCE` or `COMPLETE_PERIOD`. Both options determine the date using the request's `source` field. Whether the source is a metric, formula, or metrics, each source has earliest and latest data available dates to use. The `direction` determines whether the earliest or latest date is used. * If `dynamicDateFrom` is `SOURCE`, the query returns data from a date determined by the `source` query definition element. If `dynamicDateFrom` is `COMPLETE_PERIOD`, the query returns data starting from the latest or earliest date with a complete period of data. `COMPLETE_PERIOD` returns periods defined by `intervalPeriodType`. If the period type is MONTH, it returns full months of data. If the period type is YEAR, it returns full years of data. When `dynamicDateFrom` is specified: * If `source` is `metric`, then `dynamicDateFrom` considers the date range of available data for the metric. * If `source` is `formula`, then `dynamicDateFrom` considers the date range of available data for the metric in the formula. * If `source` is `analyticObject`, then `dynamicDateFrom` considers the date range of available data for the analytic object. Then, if `direction` is `BACKWARD`, query backward from the data **end** date and if `direction` is `FORWARD`, query forward from the data **start** date. This allows you to keep getting the latest or earliest data without changing your query every time there's new or updated data. Example: If a tenant has Headcount metric data available from 2023-01-01 to 2024-01-01 (End date exclusive), specifying `dynamicDateFrom`: `SOURCE` with `direction`: `BACKWARD` means the query will retrieve data backward from 2024-01-01. The effect is the same as if specifying a `fromDateTime` of 2024-01-01'T'00:00:00.000. Example: If a tenant has Employee subject data available from 2023-01-01 to 2024-01-01 (End date exclusive), specifying `dynamicDateFrom`: `SOURCE` with `direction`: `FORWARD` means the query will retrieve data forward from 2023-01-01. The effect is the same as if specifying a `fromDateTime` of 2023-01-01'T'00:00:00.000. Example: If a tenant has Employee subject data available from 2023-01-10 to 2023-04-01 (End date exclusive), specifying `dynamicDateFrom`: `COMPLETE_PERIOD` with `direction`: `FORWARD` means the query will retrieve data forward from 2023-02-01. The effect is the same as if specifying a `fromDateTime` of 2023-02-01'T'00:00:00.000. Example: If a tenant has Employee subject data available from 2023-01-01 to 2023-03-15 (End date exclusive), specifying `dynamicDateFrom`: `COMPLETE_PERIOD` with `direction`: `BACKWARD` means the query will retrieve data backward from 2023-03-01. The effect is the same as if specifying a `fromDateTime` of 2023-03-01'T'00:00:00.000. Example: Retrieve a list of EmployeeIDs for the formula extending 1 month backward from the dynamic source date { \"source\": { \"formula\": \"on Employee validUntil instant filterBy(isActiveEmployee) aggregate count(Employee.EmployeeID)\" }, \"columns\": [ { \"columnDefinition\": { \"property\": { \"name\": \"Employee.EmployeeID\", \"qualifyingPath\": \"Employee\" } } }, { \"columnDefinition\": { \"effectiveDateProperty\": {} } } ], \"timeInterval\": { \"dynamicDateFrom\": \"SOURCE\", \"intervalPeriodType\": \"MONTH\", \"intervalPeriodCount\": 1, \"direction\": \"BACKWARD\" } }", alias="dynamicDateFrom") - from_date_time: Optional[StrictStr] = Field(default=None, description="The instant from which to extend in the specified `direction`, as an ISO-8601 formatted date time string. Valid formats: yyyy-MM-dd, yyyy-MM-dd'T'HH:mm:ss, yyyy-MM-dd'T'HH:mm:ss.SSS. Events that occur on this date are excluded. Subject-based data that ends on this date is included.", alias="fromDateTime") - from_instant: Optional[StrictStr] = Field(default=None, description="The instant from which to extend in the specified `direction`, in milliseconds since 1970-01-01T00:00:00Z. Events that occur on this date are excluded. Subject-based data that ends on this date is included. Note: Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="fromInstant") - interval_period_count: Optional[StrictInt] = Field(default=None, description="The number of time periods per interval.", alias="intervalPeriodCount") - interval_period_type: Optional[StrictStr] = Field(default=None, description="The time period type for each interval. Default is MONTH.", alias="intervalPeriodType") - shift: Optional[TimeShiftDTO] = Field(default=None, description="The amount of time to shift the time interval by, such as backward by one year. Default is none.") - __properties: ClassVar[List[str]] = ["direction", "dynamicDateFrom", "fromDateTime", "fromInstant", "intervalPeriodCount", "intervalPeriodType", "shift"] - - @field_validator('direction') - def direction_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['BACKWARD', 'FORWARD']): - raise ValueError("must be one of enum values ('BACKWARD', 'FORWARD')") - return value - - @field_validator('dynamic_date_from') - def dynamic_date_from_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['SOURCE', 'COMPLETE_PERIOD']): - raise ValueError("must be one of enum values ('SOURCE', 'COMPLETE_PERIOD')") - return value - - @field_validator('interval_period_type') - def interval_period_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR']): - raise ValueError("must be one of enum values ('MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryTimeIntervalDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of shift - if self.shift: - _dict['shift'] = self.shift.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryTimeIntervalDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "direction": obj.get("direction"), - "dynamicDateFrom": obj.get("dynamicDateFrom"), - "fromDateTime": obj.get("fromDateTime"), - "fromInstant": obj.get("fromInstant"), - "intervalPeriodCount": obj.get("intervalPeriodCount"), - "intervalPeriodType": obj.get("intervalPeriodType"), - "shift": TimeShiftDTO.from_dict(obj["shift"]) if obj.get("shift") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/query_time_intervals_dto.py b/src/visier_api_data_out/visier_api_data_out/models/query_time_intervals_dto.py deleted file mode 100644 index 5b18e8a0a9..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/query_time_intervals_dto.py +++ /dev/null @@ -1,151 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.time_shift_dto import TimeShiftDTO -from typing import Optional, Set -from typing_extensions import Self - -class QueryTimeIntervalsDTO(BaseModel): - """ - A QueryTimeIntervals defines a series of time intervals to query, including the \"from\" time, period type, period count, number of intervals, time direction, and shift to apply to each time interval. - """ # noqa: E501 - direction: Optional[StrictStr] = Field(default=None, description="The direction to extend. Defaults is BACKWARD.") - dynamic_date_from: Optional[StrictStr] = Field(default=None, description="Dynamically select the date from which to extend. Valid values are `SOURCE` or `COMPLETE_PERIOD`. Both options use the `source` query definition element to determine the date. If `dynamicDateFrom` is `SOURCE`, the query returns data from a date determined by the `source` query definition element. If `dynamicDateFrom` is `COMPLETE_PERIOD`, the query returns data starting from the latest or earliest date with a complete period of data. When `dynamicDateFrom` is specified: * If `source` is `metric`, then `dynamicDateFrom` considers the date range of available data for the metric. * If `source` is `formula`, then `dynamicDateFrom` considers the date range of available data for the metric in the formula. * If `source` is `metrics`, then `dynamicDateFrom` considers the date range of available data for the metric in the formula. Then, if `direction` is `BACKWARD`, query backward from the data **end** date and if `direction` is `FORWARD`, query forward from the data **start** date. This allows you to keep getting the latest or earliest data without changing your query every time there's new or updated data. Note: For multi-metric queries, if `direction` is `BACKWARD`, query backward from the earliest data end date of all metrics and if `direction` is `FORWARD`, query forward from the latest data start date of all metrics. This ensures that all metrics have data in the specified time range. Example: If a tenant has Headcount metric data available from 2023-01-01 to 2024-01-01 (End date exclusive), specifying `dynamicDateFrom`: `SOURCE` with `direction`: `BACKWARD` means the query will retrieve data backward from 2024-01-01. The effect is the same as if specifying a `fromDateTime` of 2024-01-01'T'00:00:00.000. Example: If a tenant has Employee subject data available from 2023-01-10 to 2023-04-01 (End date exclusive), specifying `dynamicDateFrom`: `COMPLETE_PERIOD` with `direction`: `FORWARD` means the query will retrieve data forward from 2023-02-01. The effect is the same as if specifying a `fromDateTime` of 2023-02-01'T'00:00:00.000. Example: If a tenant has Employee subject data available from 2023-01-01 to 2023-03-15 (End date exclusive), specifying `dynamicDateFrom`: `COMPLETE_PERIOD` with `direction`: `BACKWARD` means the query will retrieve data backward from 2023-03-01. The effect is the same as if specifying a `fromDateTime` of 2023-03-01'T'00:00:00.000. Example: If a tenant has Headcount data available from 2023-01-01 to 2024-09-01 and Exit Count data available from 2023-01-01 to 2024-01-01, specifying `dynamicDateFrom`: `SOURCE` with `direction`: `BACKWARD` means the query will retrieve data backward from 2024-01-01. Exit Count has an earlier data end date than Headcount, so `dynamicDateFrom` retrieves data backward from Exit Count's data end date to ensure both metrics have data in the specified time range. Example: Retrieve Headcount (employeeCount) extending 1 month backward from Headcount's dynamic source date { \"query\": { \"source\": { \"metric\": \"employeeCount\" }, \"timeIntervals\": { \"dynamicDateFrom\": \"SOURCE\", \"intervalPeriodType\": \"MONTH\", \"intervalCount\": 1, \"direction\": \"BACKWARD\" } } }", alias="dynamicDateFrom") - from_date_time: Optional[StrictStr] = Field(default=None, description="The instant from which to extend, as an ISO-8601 formatted date time string. This value is exclusive. Valid formats: yyyy-MM-dd, yyyy-MM-dd'T'HH:mm:ss, yyyy-MM-dd'T'HH:mm:ss.SSS. Events that occur on this date are excluded. Subject-based data that ends on this date is included.", alias="fromDateTime") - from_instant: Optional[StrictStr] = Field(default=None, description="The instant from which to extend, in milliseconds since 1970-01-01T00:00:00Z. Events that occur on this date are excluded. Subject-based data that ends on this date is included. Note: Epochs are expressed as 64-bit integers and represented as stringified longs in JSON due to JSON's inherent limitation in representing large numbers.", alias="fromInstant") - interval_count: Optional[StrictInt] = Field(default=None, description="The number of intervals. Default is 1.", alias="intervalCount") - interval_period_count: Optional[StrictInt] = Field(default=None, description="The number of time periods per interval. Default is 1.", alias="intervalPeriodCount") - interval_period_type: Optional[StrictStr] = Field(default=None, description="The time period type for each interval. Default is MONTH.", alias="intervalPeriodType") - shift: Optional[TimeShiftDTO] = Field(default=None, description="The amount of time to shift the time interval by, such as backward by one year.") - trailing_period_count: Optional[StrictInt] = Field(default=None, description="The number of time periods per trailing period. If `trailingPeriodType` is defined and `trailingPeriodCount` is undefined, the default trailing period count is 1. Note: This parameter is only applicable to metrics that can calculate trailing time. If defined on a metric that doesn't have trailing time, the platform ignores the parameter.", alias="trailingPeriodCount") - trailing_period_type: Optional[StrictStr] = Field(default=None, description="The time period type for each trailing period. If `trailingPeriodCount` is defined and `trailingPeriodType` is undefined, the default trailing period type is `MONTH`. If both `trailingPeriodType` and `trailingPeriodCount` are undefined, `intervalPeriodCount` is used as the trailing period count. Note: This parameter is only applicable to metrics that can calculate trailing time. If defined on a metric that doesn't have trailing time, the platform ignores the parameter.", alias="trailingPeriodType") - __properties: ClassVar[List[str]] = ["direction", "dynamicDateFrom", "fromDateTime", "fromInstant", "intervalCount", "intervalPeriodCount", "intervalPeriodType", "shift", "trailingPeriodCount", "trailingPeriodType"] - - @field_validator('direction') - def direction_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['BACKWARD', 'FORWARD']): - raise ValueError("must be one of enum values ('BACKWARD', 'FORWARD')") - return value - - @field_validator('dynamic_date_from') - def dynamic_date_from_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['SOURCE', 'COMPLETE_PERIOD']): - raise ValueError("must be one of enum values ('SOURCE', 'COMPLETE_PERIOD')") - return value - - @field_validator('interval_period_type') - def interval_period_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR']): - raise ValueError("must be one of enum values ('MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR')") - return value - - @field_validator('trailing_period_type') - def trailing_period_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR']): - raise ValueError("must be one of enum values ('MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryTimeIntervalsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of shift - if self.shift: - _dict['shift'] = self.shift.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryTimeIntervalsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "direction": obj.get("direction"), - "dynamicDateFrom": obj.get("dynamicDateFrom"), - "fromDateTime": obj.get("fromDateTime"), - "fromInstant": obj.get("fromInstant"), - "intervalCount": obj.get("intervalCount"), - "intervalPeriodCount": obj.get("intervalPeriodCount"), - "intervalPeriodType": obj.get("intervalPeriodType"), - "shift": TimeShiftDTO.from_dict(obj["shift"]) if obj.get("shift") is not None else None, - "trailingPeriodCount": obj.get("trailingPeriodCount"), - "trailingPeriodType": obj.get("trailingPeriodType") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/report_create_request_dto.py b/src/visier_api_data_out/visier_api_data_out/models/report_create_request_dto.py deleted file mode 100644 index e2ae2fbf7a..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/report_create_request_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ReportCreateRequestDTO(BaseModel): - """ - The request to create a new report. - """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="The localized description of the report.") - title: Optional[StrictStr] = Field(default=None, description="The localized title of the report.") - __properties: ClassVar[List[str]] = ["description", "title"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ReportCreateRequestDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ReportCreateRequestDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "title": obj.get("title") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/report_delete_success_dto.py b/src/visier_api_data_out/visier_api_data_out/models/report_delete_success_dto.py deleted file mode 100644 index 15922b4ff9..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/report_delete_success_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ReportDeleteSuccessDTO(BaseModel): - """ - The report that was successfully deleted. - """ # noqa: E501 - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the deleted report.") - __properties: ClassVar[List[str]] = ["id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ReportDeleteSuccessDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ReportDeleteSuccessDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/report_dto.py b/src/visier_api_data_out/visier_api_data_out/models/report_dto.py deleted file mode 100644 index 8b8fbaef4d..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/report_dto.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ReportDTO(BaseModel): - """ - The information of a single report. - """ # noqa: E501 - allowed_actions: Optional[List[StrictStr]] = Field(default=None, description="The actions that you can perform on the report. Valid values are: - `duplicate`: The user can make their own copy of this report. - `delete`: The user can delete this report. - `edit`: The user can edit this report directly. - `download`: The user can download this report as a CSV. - `share`: The user can share this report with other users or user groups.", alias="allowedActions") - description: Optional[StrictStr] = Field(default=None, description="The localized description of the report.") - id: Optional[StrictStr] = Field(default=None, description="The unique ID of the report.") - is_owned_by_user: Optional[StrictBool] = Field(default=None, description="If `true`, you are the owner of the report.", alias="isOwnedByUser") - is_published_report: Optional[StrictBool] = Field(default=None, description="If `true`, the report is published through a project.", alias="isPublishedReport") - link: Optional[StrictStr] = Field(default=None, description="The link to the report.") - owner: Optional[StrictStr] = Field(default=None, description="The owner of the report.") - title: Optional[StrictStr] = Field(default=None, description="The localized title of the report.") - updated_time: Optional[StrictStr] = Field(default=None, description="The time in epoch milliseconds when the report was last updated.", alias="updatedTime") - __properties: ClassVar[List[str]] = ["allowedActions", "description", "id", "isOwnedByUser", "isPublishedReport", "link", "owner", "title", "updatedTime"] - - @field_validator('allowed_actions') - def allowed_actions_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - for i in value: - if i not in set(['duplicate', 'delete', 'edit', 'download', 'share']): - raise ValueError("each list item must be one of ('duplicate', 'delete', 'edit', 'download', 'share')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ReportDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ReportDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "allowedActions": obj.get("allowedActions"), - "description": obj.get("description"), - "id": obj.get("id"), - "isOwnedByUser": obj.get("isOwnedByUser"), - "isPublishedReport": obj.get("isPublishedReport"), - "link": obj.get("link"), - "owner": obj.get("owner"), - "title": obj.get("title"), - "updatedTime": obj.get("updatedTime") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/report_list_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/report_list_response_dto.py deleted file mode 100644 index d9758da790..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/report_list_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.report_dto import ReportDTO -from typing import Optional, Set -from typing_extensions import Self - -class ReportListResponseDTO(BaseModel): - """ - The information of all the reports you have access to in your tenant. - """ # noqa: E501 - reports: Optional[List[ReportDTO]] = Field(default=None, description="A list of reports.") - __properties: ClassVar[List[str]] = ["reports"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ReportListResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in reports (list) - _items = [] - if self.reports: - for _item_reports in self.reports: - if _item_reports: - _items.append(_item_reports.to_dict()) - _dict['reports'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ReportListResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "reports": [ReportDTO.from_dict(_item) for _item in obj["reports"]] if obj.get("reports") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/selection_concept_reference_dto.py b/src/visier_api_data_out/visier_api_data_out/models/selection_concept_reference_dto.py deleted file mode 100644 index 2980164d4e..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/selection_concept_reference_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SelectionConceptReferenceDTO(BaseModel): - """ - The name and qualifying path of a selection concept to query. - """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, description="The ID of the selection concept. See `SelectionConcepts` to get the ID.") - qualifying_path: Optional[StrictStr] = Field(default=None, description="The qualifying path to the selection concept in Visier, such as the analytic object or event the selection concept is associated with. If the path has multiple objects, each object is separated by a period.", alias="qualifyingPath") - __properties: ClassVar[List[str]] = ["name", "qualifyingPath"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SelectionConceptReferenceDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SelectionConceptReferenceDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "qualifyingPath": obj.get("qualifyingPath") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/servicing_publicapi_transfers_document_search_link_dto.py b/src/visier_api_data_out/visier_api_data_out/models/servicing_publicapi_transfers_document_search_link_dto.py new file mode 100644 index 0000000000..3d711fe7c4 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/servicing_publicapi_transfers_document_search_link_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersDocumentSearchLinkDTO(BaseModel): + """ + Defines the attributes of a web request to reference documents in the search results. + """ # noqa: E501 + href: Optional[StrictStr] = Field(default=None, description="The URL pointing to the specific document.") + verb: Optional[StrictStr] = Field(default=None, description="The verb to use when formulating the web request. This is commonly `GET`.") + __properties: ClassVar[List[str]] = ["href", "verb"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDocumentSearchLinkDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersDocumentSearchLinkDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "href": obj.get("href"), + "verb": obj.get("verb") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/servicing_publicapi_transfers_simple_document_header_search_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/servicing_publicapi_transfers_simple_document_header_search_response_dto.py new file mode 100644 index 0000000000..a2f14f8a07 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/servicing_publicapi_transfers_simple_document_header_search_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from visier_api_data_out.models.servicing_publicapi_transfers_simple_document_header_search_result_dto import ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO(BaseModel): + """ + The response body structure for Simple document header search operations. + """ # noqa: E501 + document_headers: Optional[List[ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO]] = Field(default=None, description="The ordered collection of document header search results. The results are sorted according to their relevance in a descending order.", alias="documentHeaders") + __properties: ClassVar[List[str]] = ["documentHeaders"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in document_headers (list) + _items = [] + if self.document_headers: + for _item_document_headers in self.document_headers: + if _item_document_headers: + _items.append(_item_document_headers.to_dict()) + _dict['documentHeaders'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "documentHeaders": [ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO.from_dict(_item) for _item in obj["documentHeaders"]] if obj.get("documentHeaders") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/servicing_publicapi_transfers_simple_document_header_search_result_dto.py b/src/visier_api_data_out/visier_api_data_out/models/servicing_publicapi_transfers_simple_document_header_search_result_dto.py new file mode 100644 index 0000000000..888cc089db --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/servicing_publicapi_transfers_simple_document_header_search_result_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from visier_api_data_out.models.servicing_publicapi_transfers_document_search_link_dto import ServicingPublicapiTransfersDocumentSearchLinkDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO(BaseModel): + """ + Structure of a single document header search using the Simple search operation. + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="The `Web Template Framework` representation of the search result element. This commonly displayed alongside the result by search portals.") + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the element in the search result.", alias="displayName") + relevance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The relevance of the search result and a number between `0` and `100`.") + view_link: Optional[ServicingPublicapiTransfersDocumentSearchLinkDTO] = Field(default=None, description="Use the `viewLink` to build a web request to view this document.", alias="viewLink") + __properties: ClassVar[List[str]] = ["description", "displayName", "relevance", "viewLink"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of view_link + if self.view_link: + _dict['viewLink'] = self.view_link.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPublicapiTransfersSimpleDocumentHeaderSearchResultDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "relevance": obj.get("relevance"), + "viewLink": ServicingPublicapiTransfersDocumentSearchLinkDTO.from_dict(obj["viewLink"]) if obj.get("viewLink") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/simple_document_header_search_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/simple_document_header_search_response_dto.py deleted file mode 100644 index f498fc2021..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/simple_document_header_search_response_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.simple_document_header_search_result_dto import SimpleDocumentHeaderSearchResultDTO -from typing import Optional, Set -from typing_extensions import Self - -class SimpleDocumentHeaderSearchResponseDTO(BaseModel): - """ - The response body structure for Simple document header search operations. - """ # noqa: E501 - document_headers: Optional[List[SimpleDocumentHeaderSearchResultDTO]] = Field(default=None, description="The ordered collection of document header search results. The results are sorted according to their relevance in a descending order.", alias="documentHeaders") - __properties: ClassVar[List[str]] = ["documentHeaders"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SimpleDocumentHeaderSearchResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in document_headers (list) - _items = [] - if self.document_headers: - for _item_document_headers in self.document_headers: - if _item_document_headers: - _items.append(_item_document_headers.to_dict()) - _dict['documentHeaders'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SimpleDocumentHeaderSearchResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "documentHeaders": [SimpleDocumentHeaderSearchResultDTO.from_dict(_item) for _item in obj["documentHeaders"]] if obj.get("documentHeaders") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/simple_document_header_search_result_dto.py b/src/visier_api_data_out/visier_api_data_out/models/simple_document_header_search_result_dto.py deleted file mode 100644 index d64cd7ed98..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/simple_document_header_search_result_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from visier_api_data_out.models.document_search_link_dto import DocumentSearchLinkDTO -from typing import Optional, Set -from typing_extensions import Self - -class SimpleDocumentHeaderSearchResultDTO(BaseModel): - """ - Structure of a single document header search using the Simple search operation. - """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="The `Web Template Framework` representation of the search result element. This commonly displayed alongside the result by search portals.") - display_name: Optional[StrictStr] = Field(default=None, description="The display name of the element in the search result.", alias="displayName") - relevance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The relevance of the search result and a number between `0` and `100`.") - view_link: Optional[DocumentSearchLinkDTO] = Field(default=None, description="Use the `viewLink` to build a web request to view this document.", alias="viewLink") - __properties: ClassVar[List[str]] = ["description", "displayName", "relevance", "viewLink"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SimpleDocumentHeaderSearchResultDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of view_link - if self.view_link: - _dict['viewLink'] = self.view_link.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SimpleDocumentHeaderSearchResultDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "displayName": obj.get("displayName"), - "relevance": obj.get("relevance"), - "viewLink": DocumentSearchLinkDTO.from_dict(obj["viewLink"]) if obj.get("viewLink") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/snapshot_query_execution_dto.py b/src/visier_api_data_out/visier_api_data_out/models/snapshot_query_execution_dto.py deleted file mode 100644 index 125cab9d34..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/snapshot_query_execution_dto.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.list_query_source_dto import ListQuerySourceDTO -from visier_api_data_out.models.property_column_dto import PropertyColumnDTO -from visier_api_data_out.models.query_filter_dto import QueryFilterDTO -from visier_api_data_out.models.query_parameter_value_dto import QueryParameterValueDTO -from visier_api_data_out.models.query_time_intervals_dto import QueryTimeIntervalsDTO -from visier_api_data_out.models.snapshot_query_execution_options_dto import SnapshotQueryExecutionOptionsDTO -from visier_api_data_out.models.sort_option_dto import SortOptionDTO -from typing import Optional, Set -from typing_extensions import Self - -class SnapshotQueryExecutionDTO(BaseModel): - """ - SnapshotQueryExecutionDTO - """ # noqa: E501 - columns: Optional[List[PropertyColumnDTO]] = Field(default=None, description="The columns to include in the result. This must contain at least one column.") - filters: Optional[List[QueryFilterDTO]] = Field(default=None, description="The filters of this query. Omit `filters` if no filtering is required.") - options: Optional[SnapshotQueryExecutionOptionsDTO] = Field(default=None, description="Additional instructions for your query, such as a calendar type or conversion information.") - parameter_values: Optional[List[QueryParameterValueDTO]] = Field(default=None, description="The parameter values for either member or numeric parameters.", alias="parameterValues") - sort_options: Optional[List[SortOptionDTO]] = Field(default=None, description="The index and direction to sort a column in the `columns` array.", alias="sortOptions") - source: Optional[ListQuerySourceDTO] = Field(default=None, description="The source data that you want to query.") - time_intervals: Optional[QueryTimeIntervalsDTO] = Field(default=None, description="The time intervals to query.", alias="timeIntervals") - __properties: ClassVar[List[str]] = ["columns", "filters", "options", "parameterValues", "sortOptions", "source", "timeIntervals"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SnapshotQueryExecutionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in columns (list) - _items = [] - if self.columns: - for _item_columns in self.columns: - if _item_columns: - _items.append(_item_columns.to_dict()) - _dict['columns'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in filters (list) - _items = [] - if self.filters: - for _item_filters in self.filters: - if _item_filters: - _items.append(_item_filters.to_dict()) - _dict['filters'] = _items - # override the default output from pydantic by calling `to_dict()` of options - if self.options: - _dict['options'] = self.options.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in parameter_values (list) - _items = [] - if self.parameter_values: - for _item_parameter_values in self.parameter_values: - if _item_parameter_values: - _items.append(_item_parameter_values.to_dict()) - _dict['parameterValues'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in sort_options (list) - _items = [] - if self.sort_options: - for _item_sort_options in self.sort_options: - if _item_sort_options: - _items.append(_item_sort_options.to_dict()) - _dict['sortOptions'] = _items - # override the default output from pydantic by calling `to_dict()` of source - if self.source: - _dict['source'] = self.source.to_dict() - # override the default output from pydantic by calling `to_dict()` of time_intervals - if self.time_intervals: - _dict['timeIntervals'] = self.time_intervals.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SnapshotQueryExecutionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "columns": [PropertyColumnDTO.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None, - "filters": [QueryFilterDTO.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None, - "options": SnapshotQueryExecutionOptionsDTO.from_dict(obj["options"]) if obj.get("options") is not None else None, - "parameterValues": [QueryParameterValueDTO.from_dict(_item) for _item in obj["parameterValues"]] if obj.get("parameterValues") is not None else None, - "sortOptions": [SortOptionDTO.from_dict(_item) for _item in obj["sortOptions"]] if obj.get("sortOptions") is not None else None, - "source": ListQuerySourceDTO.from_dict(obj["source"]) if obj.get("source") is not None else None, - "timeIntervals": QueryTimeIntervalsDTO.from_dict(obj["timeIntervals"]) if obj.get("timeIntervals") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/snapshot_query_execution_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/snapshot_query_execution_options_dto.py deleted file mode 100644 index e889b7d5ac..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/snapshot_query_execution_options_dto.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SnapshotQueryExecutionOptionsDTO(BaseModel): - """ - A SnapshotQueryExecutionOptions provides additional instructions to perform a snapshot query. - """ # noqa: E501 - calendar_type: Optional[StrictStr] = Field(default=None, description="The calendar type to use. This will be used for all time calculations unless explicitly overridden in the calculation itself. Default is TENANT_CALENDAR.", alias="calendarType") - currency_conversion_code: Optional[StrictStr] = Field(default=None, description="The optional target currency for all currency conversions. If not specified, the tenant default currency will be used.", alias="currencyConversionCode") - currency_conversion_date: Optional[StrictStr] = Field(default=None, description="The currency conversion date to use. If defined, the currency conversion will use the exchange rates as of this date.", alias="currencyConversionDate") - date_time_display_mode: Optional[StrictStr] = Field(default=None, description="Control how date-time values are displayed in the result set. Supported values: * `EPOCH`: The number of elapsed milliseconds since January 1, 1970 in UTC timezone. This is the default. * `DATETIME`: The date-time value displayed in `yyyy-MM-dd HH:mm:ssZZ` format.", alias="dateTimeDisplayMode") - limit: Optional[StrictInt] = Field(default=None, description="The maximum number of entries to return. Default is to return all entries. If `page` is defined but limit is not defined, limit will be set to a default value of 1000.") - multiple_tables: Optional[StrictBool] = Field(default=None, description="Option to return multiple table files as zipped archive for derived metrics. Default is false. If false, one table is returned for the drill-through metric.", alias="multipleTables") - omit_header: Optional[StrictBool] = Field(default=None, description="Option to omit the header from the result. If true, queryMode must be either FILL or FAIL. Default is false.", alias="omitHeader") - page: Optional[StrictInt] = Field(default=None, description="A page defines a subset of the overall result set. The number of rows per page is equal to limit with the exception of the last page in the result set which may contain fewer rows. `Page` is an index that begins at 0. The index to start retrieving results is calculated by multiplying `page` by `limit`.") - query_mode: Optional[StrictStr] = Field(default=None, description="Determines how the query should handle column definitions that the query is unable to resolve. Default is DEFAULT.", alias="queryMode") - __properties: ClassVar[List[str]] = ["calendarType", "currencyConversionCode", "currencyConversionDate", "dateTimeDisplayMode", "limit", "multipleTables", "omitHeader", "page", "queryMode"] - - @field_validator('calendar_type') - def calendar_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['TENANT_CALENDAR', 'GREGORIAN_CALENDAR']): - raise ValueError("must be one of enum values ('TENANT_CALENDAR', 'GREGORIAN_CALENDAR')") - return value - - @field_validator('date_time_display_mode') - def date_time_display_mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['EPOCH', 'DATETIME']): - raise ValueError("must be one of enum values ('EPOCH', 'DATETIME')") - return value - - @field_validator('query_mode') - def query_mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['DEFAULT', 'FILL', 'FAIL']): - raise ValueError("must be one of enum values ('DEFAULT', 'FILL', 'FAIL')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SnapshotQueryExecutionOptionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SnapshotQueryExecutionOptionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "calendarType": obj.get("calendarType"), - "currencyConversionCode": obj.get("currencyConversionCode"), - "currencyConversionDate": obj.get("currencyConversionDate"), - "dateTimeDisplayMode": obj.get("dateTimeDisplayMode"), - "limit": obj.get("limit"), - "multipleTables": obj.get("multipleTables"), - "omitHeader": obj.get("omitHeader"), - "page": obj.get("page"), - "queryMode": obj.get("queryMode") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/sort_option_dto.py b/src/visier_api_data_out/visier_api_data_out/models/sort_option_dto.py deleted file mode 100644 index b7d2d61d3f..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/sort_option_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SortOptionDTO(BaseModel): - """ - Sort option for a column of a list query. - """ # noqa: E501 - column_index: Optional[StrictInt] = Field(default=None, description="The index of the column of the list query, staring from 0.", alias="columnIndex") - sort_direction: Optional[StrictStr] = Field(default=None, description="The sort direction.", alias="sortDirection") - __properties: ClassVar[List[str]] = ["columnIndex", "sortDirection"] - - @field_validator('sort_direction') - def sort_direction_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['SORT_ASCENDING', 'SORT_DESCENDING']): - raise ValueError("must be one of enum values ('SORT_ASCENDING', 'SORT_DESCENDING')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SortOptionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SortOptionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "columnIndex": obj.get("columnIndex"), - "sortDirection": obj.get("sortDirection") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/sql_like200_response.py b/src/visier_api_data_out/visier_api_data_out/models/sql_like200_response.py index 2a114d58d9..19f710ea54 100644 --- a/src/visier_api_data_out/visier_api_data_out/models/sql_like200_response.py +++ b/src/visier_api_data_out/visier_api_data_out/models/sql_like200_response.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -19,13 +19,13 @@ import pprint from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional -from visier_api_data_out.models.cell_set_dto import CellSetDTO +from visier_api_data_out.models.dataservices_query_transfers_cell_set_dto import DataservicesQueryTransfersCellSetDTO from visier_api_data_out.models.table_response_dto import TableResponseDTO from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict, ClassVar from typing_extensions import Literal, Self -SQLLIKE200RESPONSE_ONE_OF_SCHEMAS = ["CellSetDTO", "TableResponseDTO"] +SQLLIKE200RESPONSE_ONE_OF_SCHEMAS = ["DataservicesQueryTransfersCellSetDTO", "TableResponseDTO"] class SqlLike200Response(BaseModel): """ @@ -33,11 +33,11 @@ class SqlLike200Response(BaseModel): """ # data type: TableResponseDTO oneof_schema_1_validator: Optional[TableResponseDTO] = None - # data type: CellSetDTO - oneof_schema_2_validator: Optional[CellSetDTO] = None - actual_instance: Optional[Union[CellSetDTO, TableResponseDTO]] = None - one_of_schemas: Set[str] = { "CellSetDTO", "TableResponseDTO" } - _default_values: ClassVar[Dict[str, Any]] = { "CellSetDTO": CellSetDTO(), "TableResponseDTO": TableResponseDTO() } + # data type: DataservicesQueryTransfersCellSetDTO + oneof_schema_2_validator: Optional[DataservicesQueryTransfersCellSetDTO] = None + actual_instance: Optional[Union[DataservicesQueryTransfersCellSetDTO, TableResponseDTO]] = None + one_of_schemas: Set[str] = { "DataservicesQueryTransfersCellSetDTO", "TableResponseDTO" } + _default_values: ClassVar[Dict[str, Any]] = { "DataservicesQueryTransfersCellSetDTO": DataservicesQueryTransfersCellSetDTO(), "TableResponseDTO": TableResponseDTO() } model_config = ConfigDict( validate_assignment=True, @@ -65,17 +65,17 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `TableResponseDTO`") else: match += 1 - # validate data type: CellSetDTO - if not isinstance(v, CellSetDTO): - error_messages.append(f"Error! Input type `{type(v)}` is not `CellSetDTO`") + # validate data type: DataservicesQueryTransfersCellSetDTO + if not isinstance(v, DataservicesQueryTransfersCellSetDTO): + error_messages.append(f"Error! Input type `{type(v)}` is not `DataservicesQueryTransfersCellSetDTO`") else: match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in SqlLike200Response with oneOf schemas: CellSetDTO, TableResponseDTO. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in SqlLike200Response with oneOf schemas: DataservicesQueryTransfersCellSetDTO, TableResponseDTO. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in SqlLike200Response with oneOf schemas: CellSetDTO, TableResponseDTO. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in SqlLike200Response with oneOf schemas: DataservicesQueryTransfersCellSetDTO, TableResponseDTO. Details: " + ", ".join(error_messages)) else: return v @@ -98,10 +98,10 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into CellSetDTO + # deserialize data into DataservicesQueryTransfersCellSetDTO try: - actual_instance = CellSetDTO.from_json(json_str) - if actual_instance and actual_instance != cls._default_values[CellSetDTO.__name__]: + actual_instance = DataservicesQueryTransfersCellSetDTO.from_json(json_str) + if actual_instance and actual_instance != cls._default_values[DataservicesQueryTransfersCellSetDTO.__name__]: instance.actual_instance = actual_instance match += 1 except (ValidationError, ValueError) as e: @@ -109,10 +109,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into SqlLike200Response with oneOf schemas: CellSetDTO, TableResponseDTO. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into SqlLike200Response with oneOf schemas: DataservicesQueryTransfersCellSetDTO, TableResponseDTO. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into SqlLike200Response with oneOf schemas: CellSetDTO, TableResponseDTO. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into SqlLike200Response with oneOf schemas: DataservicesQueryTransfersCellSetDTO, TableResponseDTO. Details: " + ", ".join(error_messages)) else: return instance @@ -126,7 +126,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], CellSetDTO, TableResponseDTO]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], DataservicesQueryTransfersCellSetDTO, TableResponseDTO]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/src/visier_api_data_out/visier_api_data_out/models/sql_like_query_execution_dto.py b/src/visier_api_data_out/visier_api_data_out/models/sql_like_query_execution_dto.py deleted file mode 100644 index 992b099bd9..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/sql_like_query_execution_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.query_execution_options_dto import QueryExecutionOptionsDTO -from typing import Optional, Set -from typing_extensions import Self - -class SqlLikeQueryExecutionDTO(BaseModel): - """ - * Request body for SQL-like query executions - """ # noqa: E501 - options: Optional[QueryExecutionOptionsDTO] = Field(default=None, description="Optional options that currently that cannot be expressed in SQL-like") - query: Optional[StrictStr] = Field(default=None, description="The SQL-like query string") - __properties: ClassVar[List[str]] = ["options", "query"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SqlLikeQueryExecutionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of options - if self.options: - _dict['options'] = self.options.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SqlLikeQueryExecutionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "options": QueryExecutionOptionsDTO.from_dict(obj["options"]) if obj.get("options") is not None else None, - "query": obj.get("query") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/status.py b/src/visier_api_data_out/visier_api_data_out/models/status.py index 441ecbaf17..f8ea090adc 100644 --- a/src/visier_api_data_out/visier_api_data_out/models/status.py +++ b/src/visier_api_data_out/visier_api_data_out/models/status.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -19,7 +19,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -28,10 +28,12 @@ class Status(BaseModel): """ The response structure for errors. """ # noqa: E501 - error_code: Optional[StrictStr] = Field(default=None, description="Error classification.", alias="errorCode") - message: Optional[StrictStr] = Field(default=None, description="Error message describing the root cause of the error.") + code: Optional[StrictStr] = Field(default=None, description="Error classification.") + localized_message: Optional[StrictStr] = Field(default=None, description="Localized error message describing the root cause of the error.", alias="localizedMessage") + message: Optional[StrictStr] = Field(default=None, description="Not used.") rci: Optional[StrictStr] = Field(default=None, description="Optional root cause identifier.") - __properties: ClassVar[List[str]] = ["errorCode", "message", "rci"] + user_error: Optional[StrictBool] = Field(default=None, description="Indicates whether the error is a user error.", alias="userError") + __properties: ClassVar[List[str]] = ["code", "localizedMessage", "message", "rci", "userError"] model_config = ConfigDict( populate_by_name=True, @@ -84,9 +86,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "errorCode": obj.get("errorCode"), + "code": obj.get("code"), + "localizedMessage": obj.get("localizedMessage"), "message": obj.get("message"), - "rci": obj.get("rci") + "rci": obj.get("rci"), + "userError": obj.get("userError") }) return _obj diff --git a/src/visier_api_data_out/visier_api_data_out/models/systemstatus_publicapi_transfers_vee_status_dto.py b/src/visier_api_data_out/visier_api_data_out/models/systemstatus_publicapi_transfers_vee_status_dto.py new file mode 100644 index 0000000000..009638e65e --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/systemstatus_publicapi_transfers_vee_status_dto.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Visier Data Out APIs + + Visier APIs for getting data out of Visier, such as aggregate data and data version information. + + The version of the OpenAPI document: 22222222.99201.1793 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SystemstatusPublicapiTransfersVeeStatusDTO(BaseModel): + """ + SystemstatusPublicapiTransfersVeeStatusDTO + """ # noqa: E501 + overall: Optional[StrictStr] = Field(default=None, description="The overall status of Vee.") + __properties: ClassVar[List[str]] = ["overall"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SystemstatusPublicapiTransfersVeeStatusDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SystemstatusPublicapiTransfersVeeStatusDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "overall": obj.get("overall") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/table_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/table_response_dto.py index e398f3e278..aa86dc2fb1 100644 --- a/src/visier_api_data_out/visier_api_data_out/models/table_response_dto.py +++ b/src/visier_api_data_out/visier_api_data_out/models/table_response_dto.py @@ -5,7 +5,7 @@ Visier APIs for getting data out of Visier, such as aggregate data and data version information. - The version of the OpenAPI document: 22222222.99201.1772 + The version of the OpenAPI document: 22222222.99201.1793 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/visier_api_data_out/models/time_shift_dto.py b/src/visier_api_data_out/visier_api_data_out/models/time_shift_dto.py deleted file mode 100644 index a6d94529d8..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/time_shift_dto.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class TimeShiftDTO(BaseModel): - """ - The amount of time to shift the time interval by, such as backward by one year. - """ # noqa: E501 - direction: Optional[StrictStr] = Field(default=None, description="The direction to extend. Default is BACKWARD.") - period_count: Optional[StrictInt] = Field(default=None, description="The number of intervals. Default is 1.", alias="periodCount") - period_type: Optional[StrictStr] = Field(default=None, description="The time period type for the shift.", alias="periodType") - __properties: ClassVar[List[str]] = ["direction", "periodCount", "periodType"] - - @field_validator('direction') - def direction_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['BACKWARD', 'FORWARD']): - raise ValueError("must be one of enum values ('BACKWARD', 'FORWARD')") - return value - - @field_validator('period_type') - def period_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR']): - raise ValueError("must be one of enum values ('MONTH', 'DAY', 'WEEK', 'QUARTER', 'YEAR')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TimeShiftDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TimeShiftDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "direction": obj.get("direction"), - "periodCount": obj.get("periodCount"), - "periodType": obj.get("periodType") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_clarification_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_clarification_dto.py deleted file mode 100644 index e58043df1d..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_clarification_dto.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class VeeClarificationDTO(BaseModel): - """ - VeeClarificationDTO - """ # noqa: E501 - attributes: Optional[List[StrictStr]] = Field(default=None, description="Suggested attributes to look at, that are similar or related to your question.") - dimensions: Optional[List[StrictStr]] = Field(default=None, description="Suggested dimensions to look at, that are similar or related to your question.") - filters: Optional[List[StrictStr]] = Field(default=None, description="Suggested filters that could be a better fit for the data.") - message: Optional[StrictStr] = Field(default=None, description="Returned if Vee needs more context to answer your question.") - metrics: Optional[List[StrictStr]] = Field(default=None, description="Suggested metrics to look at, that are similar or related to your question.") - questions: Optional[List[StrictStr]] = Field(default=None, description="Some related questions that could be helpful.") - __properties: ClassVar[List[str]] = ["attributes", "dimensions", "filters", "message", "metrics", "questions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeClarificationDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeClarificationDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "attributes": obj.get("attributes"), - "dimensions": obj.get("dimensions"), - "filters": obj.get("filters"), - "message": obj.get("message"), - "metrics": obj.get("metrics"), - "questions": obj.get("questions") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_conversation_state_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_conversation_state_dto.py deleted file mode 100644 index 8196651f0f..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_conversation_state_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class VeeConversationStateDTO(BaseModel): - """ - VeeConversationStateDTO - """ # noqa: E501 - question_state: Optional[List[StrictStr]] = Field(default=None, description="The unique identifier of the conversation with Vee.", alias="questionState") - __properties: ClassVar[List[str]] = ["questionState"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeConversationStateDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeConversationStateDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "questionState": obj.get("questionState") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_corrections_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_corrections_dto.py deleted file mode 100644 index 8cde9799bf..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_corrections_dto.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.vee_clarification_dto import VeeClarificationDTO -from typing import Optional, Set -from typing_extensions import Self - -class VeeCorrectionsDTO(BaseModel): - """ - VeeCorrectionsDTO - """ # noqa: E501 - clarifications: Optional[List[VeeClarificationDTO]] = Field(default=None, description="A list of clarifying questions if Vee needs more context to answer your question; for example, if asking about someone named Adam, Vee might clarify which Adam by asking for Adam's email address.") - warning: Optional[List[StrictStr]] = Field(default=None, description="A list of warnings from Vee that accompanies an unsure answer; for example, Vee might return a close match warning if Vee finds multiple employees named Adam that relate to your question.") - __properties: ClassVar[List[str]] = ["clarifications", "warning"] - - @field_validator('warning') - def warning_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - for i in value: - if i not in set(['VEE_NO_WARNING', 'VEE_WARNING_RESPONSE_NOT_FOUND', 'VEE_WARNING_RESPONSE_LOW_CONFIDENCE', 'VEE_WARNING_RESPONSE_FOUND_CLOSE_MATCH', 'VEE_WARNING_NO_ACCESS', 'VEE_WARNING_TIME_SELECTION_ADJUSTED', 'VEE_WARNING_FILTER_DROPPED']): - raise ValueError("each list item must be one of ('VEE_NO_WARNING', 'VEE_WARNING_RESPONSE_NOT_FOUND', 'VEE_WARNING_RESPONSE_LOW_CONFIDENCE', 'VEE_WARNING_RESPONSE_FOUND_CLOSE_MATCH', 'VEE_WARNING_NO_ACCESS', 'VEE_WARNING_TIME_SELECTION_ADJUSTED', 'VEE_WARNING_FILTER_DROPPED')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeCorrectionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in clarifications (list) - _items = [] - if self.clarifications: - for _item_clarifications in self.clarifications: - if _item_clarifications: - _items.append(_item_clarifications.to_dict()) - _dict['clarifications'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeCorrectionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "clarifications": [VeeClarificationDTO.from_dict(_item) for _item in obj["clarifications"]] if obj.get("clarifications") is not None else None, - "warning": obj.get("warning") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_data_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_data_dto.py deleted file mode 100644 index 2a916064ca..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_data_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class VeeDataDTO(BaseModel): - """ - VeeDataDTO - """ # noqa: E501 - context: Optional[StrictStr] = Field(default=None, description="The filter applied to the visualization generated by Vee. For example, a time filter of April 2024.") - data_json: Optional[StrictStr] = Field(default=None, description="A JSON string of fields and numerical values representing the data contributing to Vee's answer. For example, the number of employees per gender in Vee's answer.", alias="dataJson") - __properties: ClassVar[List[str]] = ["context", "dataJson"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeDataDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeDataDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "context": obj.get("context"), - "dataJson": obj.get("dataJson") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_feedback_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_feedback_dto.py deleted file mode 100644 index 7320aac107..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_feedback_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.vee_response_dto import VeeResponseDTO -from typing import Optional, Set -from typing_extensions import Self - -class VeeFeedbackDTO(BaseModel): - """ - The request body fields to submit Vee feedback. - """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="A description of how Vee should have answered the question or how Vee can improve the answer; for example, \"Expected Headcount metric, but Vee returned Average Headcount\".") - is_approved: Optional[StrictBool] = Field(default=None, description="If `true`, Vee answered the question correctly. If `false`, Vee's answer was incorrect or lacked details.", alias="isApproved") - response: Optional[VeeResponseDTO] = Field(default=None, description="Your feedback about Vee's answer. Include the response object from the `/question` call that you want to provide feedback about.") - __properties: ClassVar[List[str]] = ["description", "isApproved", "response"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeFeedbackDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of response - if self.response: - _dict['response'] = self.response.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeFeedbackDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "isApproved": obj.get("isApproved"), - "response": VeeResponseDTO.from_dict(obj["response"]) if obj.get("response") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_options_dto.py deleted file mode 100644 index f18bc80644..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_options_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.vee_visual_options_dto import VeeVisualOptionsDTO -from typing import Optional, Set -from typing_extensions import Self - -class VeeOptionsDTO(BaseModel): - """ - VeeOptionsDTO - """ # noqa: E501 - data_format: Optional[StrictStr] = Field(default=None, description="The format to return visualization data in. Valid values: `json`.", alias="dataFormat") - include_data: Optional[StrictBool] = Field(default=None, description="If `true`, returns additional data relevant to the question, including `dataJson` (visualization data) and `context` (filters applied to the visualization). Default is `false`.", alias="includeData") - include_reworded_question: Optional[StrictBool] = Field(default=None, description="If `true`, returns Vee's plain language interpretation of the original question. For example, if you asked \"what is the headcount by gender in each org?\", Vee might reword the question as \"What is the gender breakdown of our workforce by organization this month?\". Default is `false`.", alias="includeRewordedQuestion") - include_visual: Optional[StrictBool] = Field(default=None, description="If `true`, returns a base64 string-encoded PNG of a rendered visualization with Vee's answer. Default is `false`.", alias="includeVisual") - visual_options: Optional[VeeVisualOptionsDTO] = Field(default=None, description="Specify how to render the visualization.", alias="visualOptions") - __properties: ClassVar[List[str]] = ["dataFormat", "includeData", "includeRewordedQuestion", "includeVisual", "visualOptions"] - - @field_validator('data_format') - def data_format_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['json']): - raise ValueError("must be one of enum values ('json')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeOptionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of visual_options - if self.visual_options: - _dict['visualOptions'] = self.visual_options.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeOptionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dataFormat": obj.get("dataFormat"), - "includeData": obj.get("includeData"), - "includeRewordedQuestion": obj.get("includeRewordedQuestion"), - "includeVisual": obj.get("includeVisual"), - "visualOptions": VeeVisualOptionsDTO.from_dict(obj["visualOptions"]) if obj.get("visualOptions") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_question_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_question_dto.py deleted file mode 100644 index ab93ba6f95..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_question_dto.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.vee_conversation_state_dto import VeeConversationStateDTO -from visier_api_data_out.models.vee_options_dto import VeeOptionsDTO -from typing import Optional, Set -from typing_extensions import Self - -class VeeQuestionDTO(BaseModel): - """ - The request body fields to ask Vee a question. - """ # noqa: E501 - conversation_state: Optional[VeeConversationStateDTO] = Field(default=None, description="The unique identifier of the conversation with Vee. If empty, starts a new conversation with Vee. If asking a follow-up question or continuing a conversation with Vee, specify the `conversationState` object from the question's response. To submit feedback about Vee's answer, copy the entire response into your `/feedback` call.", alias="conversationState") - max_view_details_members: Optional[StrictInt] = Field(default=None, description="maxViewDetailsMembers to specify the maximum of view details members", alias="maxViewDetailsMembers") - options: Optional[VeeOptionsDTO] = Field(default=None, description="Options to specify how Vee should respond to a question.") - question: Optional[StrictStr] = Field(default=None, description="The question to ask Vee. If asking a follow-up question or continuing a conversation with Vee, specify the `conversationState` object from the question's response.") - __properties: ClassVar[List[str]] = ["conversationState", "maxViewDetailsMembers", "options", "question"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeQuestionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of conversation_state - if self.conversation_state: - _dict['conversationState'] = self.conversation_state.to_dict() - # override the default output from pydantic by calling `to_dict()` of options - if self.options: - _dict['options'] = self.options.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeQuestionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "conversationState": VeeConversationStateDTO.from_dict(obj["conversationState"]) if obj.get("conversationState") is not None else None, - "maxViewDetailsMembers": obj.get("maxViewDetailsMembers"), - "options": VeeOptionsDTO.from_dict(obj["options"]) if obj.get("options") is not None else None, - "question": obj.get("question") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_response_dto.py deleted file mode 100644 index 4914a4451b..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_response_dto.py +++ /dev/null @@ -1,133 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.vee_conversation_state_dto import VeeConversationStateDTO -from visier_api_data_out.models.vee_corrections_dto import VeeCorrectionsDTO -from visier_api_data_out.models.vee_data_dto import VeeDataDTO -from visier_api_data_out.models.vee_response_schema_dto import VeeResponseSchemaDTO -from visier_api_data_out.models.vee_status_code_dto import VeeStatusCodeDTO -from visier_api_data_out.models.vee_visual_dto import VeeVisualDTO -from typing import Optional, Set -from typing_extensions import Self - -class VeeResponseDTO(BaseModel): - """ - The response after asking Vee a question. - """ # noqa: E501 - chart_url: Optional[StrictStr] = Field(default=None, description="A URL to view the visualization in Visier.", alias="chartUrl") - conversation_state: Optional[VeeConversationStateDTO] = Field(default=None, description="The current conversation's details. To ask a follow-up question or continue the conversation with Vee, include the `conversationState` from the response in your next `/question` call. To submit feedback about Vee's answer, copy the entire response into your `/feedback` call.", alias="conversationState") - corrections: Optional[List[VeeCorrectionsDTO]] = Field(default=None, description="A list of corrections and clarifications if the question was ambiguous or Vee was unsure in the answer.") - data: Optional[VeeDataDTO] = Field(default=None, description="Returned if `includeData` is `true`. Provides additional data relevant to the question, such as the visualization data and any filters applied to the visualization.") - narrative: Optional[StrictStr] = Field(default=None, description="Vee's answer to the question.") - reworded_question: Optional[StrictStr] = Field(default=None, description="Vee's plain language interpretation of the original question. For example, if you asked \"what is the headcount by gender in each org?\", Vee might reword the question as \"What is the gender breakdown of our workforce by organization this month?\".", alias="rewordedQuestion") - var_schema: Optional[VeeResponseSchemaDTO] = Field(default=None, description="The metrics, dimensions, and concepts that contribute to Vee's answer.", alias="schema") - status_code: Optional[VeeStatusCodeDTO] = Field(default=None, description="A status code indicating whether or not Vee successfully answered the question.", alias="statusCode") - visual: Optional[VeeVisualDTO] = Field(default=None, description="A base64 string-encoded PNG of a visualization generated by Vee to answer a question. For example, Vee can return a Breakdown visualization if asked about the headcount in each organization.") - __properties: ClassVar[List[str]] = ["chartUrl", "conversationState", "corrections", "data", "narrative", "rewordedQuestion", "schema", "statusCode", "visual"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeResponseDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of conversation_state - if self.conversation_state: - _dict['conversationState'] = self.conversation_state.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in corrections (list) - _items = [] - if self.corrections: - for _item_corrections in self.corrections: - if _item_corrections: - _items.append(_item_corrections.to_dict()) - _dict['corrections'] = _items - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of var_schema - if self.var_schema: - _dict['schema'] = self.var_schema.to_dict() - # override the default output from pydantic by calling `to_dict()` of status_code - if self.status_code: - _dict['statusCode'] = self.status_code.to_dict() - # override the default output from pydantic by calling `to_dict()` of visual - if self.visual: - _dict['visual'] = self.visual.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeResponseDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "chartUrl": obj.get("chartUrl"), - "conversationState": VeeConversationStateDTO.from_dict(obj["conversationState"]) if obj.get("conversationState") is not None else None, - "corrections": [VeeCorrectionsDTO.from_dict(_item) for _item in obj["corrections"]] if obj.get("corrections") is not None else None, - "data": VeeDataDTO.from_dict(obj["data"]) if obj.get("data") is not None else None, - "narrative": obj.get("narrative"), - "rewordedQuestion": obj.get("rewordedQuestion"), - "schema": VeeResponseSchemaDTO.from_dict(obj["schema"]) if obj.get("schema") is not None else None, - "statusCode": VeeStatusCodeDTO.from_dict(obj["statusCode"]) if obj.get("statusCode") is not None else None, - "visual": VeeVisualDTO.from_dict(obj["visual"]) if obj.get("visual") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_response_schema_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_response_schema_dto.py deleted file mode 100644 index a58fbe4c69..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_response_schema_dto.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.vee_response_schema_reference_dto import VeeResponseSchemaReferenceDTO -from typing import Optional, Set -from typing_extensions import Self - -class VeeResponseSchemaDTO(BaseModel): - """ - VeeResponseSchemaDTO - """ # noqa: E501 - concepts: Optional[List[VeeResponseSchemaReferenceDTO]] = Field(default=None, description="A list of the concepts that contribute to Vee's answer.") - dimensions: Optional[List[VeeResponseSchemaReferenceDTO]] = Field(default=None, description="A list of the dimensions that contribute to Vee's answer.") - metrics: Optional[List[StrictStr]] = Field(default=None, description="A list of the metrics that contribute to Vee's answer.") - __properties: ClassVar[List[str]] = ["concepts", "dimensions", "metrics"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeResponseSchemaDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in concepts (list) - _items = [] - if self.concepts: - for _item_concepts in self.concepts: - if _item_concepts: - _items.append(_item_concepts.to_dict()) - _dict['concepts'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in dimensions (list) - _items = [] - if self.dimensions: - for _item_dimensions in self.dimensions: - if _item_dimensions: - _items.append(_item_dimensions.to_dict()) - _dict['dimensions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeResponseSchemaDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "concepts": [VeeResponseSchemaReferenceDTO.from_dict(_item) for _item in obj["concepts"]] if obj.get("concepts") is not None else None, - "dimensions": [VeeResponseSchemaReferenceDTO.from_dict(_item) for _item in obj["dimensions"]] if obj.get("dimensions") is not None else None, - "metrics": obj.get("metrics") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_response_schema_reference_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_response_schema_reference_dto.py deleted file mode 100644 index 63400119e0..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_response_schema_reference_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class VeeResponseSchemaReferenceDTO(BaseModel): - """ - VeeResponseSchemaReferenceDTO - """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, description="The name of an attribute in the visualization; for example, Gender.") - paths: Optional[List[StrictStr]] = Field(default=None, description="The hierarchy path of an attribute in the visualization; for example, Employee.Gender.") - __properties: ClassVar[List[str]] = ["name", "paths"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeResponseSchemaReferenceDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeResponseSchemaReferenceDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "paths": obj.get("paths") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_sample_question_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_sample_question_dto.py deleted file mode 100644 index d3debc36cb..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_sample_question_dto.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class VeeSampleQuestionDTO(BaseModel): - """ - VeeSampleQuestionDTO - """ # noqa: E501 - category_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the question category.", alias="categoryId") - is_assigned_to_user: Optional[StrictBool] = Field(default=None, description="If `true`, the sample question is assigned to at least one of the user's user groups.", alias="isAssignedToUser") - question: Optional[StrictStr] = Field(default=None, description="A question in plain language.") - question_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the sample question.", alias="questionId") - __properties: ClassVar[List[str]] = ["categoryId", "isAssignedToUser", "question", "questionId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeSampleQuestionDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeSampleQuestionDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "categoryId": obj.get("categoryId"), - "isAssignedToUser": obj.get("isAssignedToUser"), - "question": obj.get("question"), - "questionId": obj.get("questionId") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_sample_question_library_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_sample_question_library_dto.py deleted file mode 100644 index 99beb7fddb..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_sample_question_library_dto.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from visier_api_data_out.models.vee_sample_question_dto import VeeSampleQuestionDTO -from typing import Optional, Set -from typing_extensions import Self - -class VeeSampleQuestionLibraryDTO(BaseModel): - """ - A list of sample questions to ask Vee. - """ # noqa: E501 - questions: Optional[List[VeeSampleQuestionDTO]] = Field(default=None, description="A list of sample questions to help your users start using Vee.") - __properties: ClassVar[List[str]] = ["questions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeSampleQuestionLibraryDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in questions (list) - _items = [] - if self.questions: - for _item_questions in self.questions: - if _item_questions: - _items.append(_item_questions.to_dict()) - _dict['questions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeSampleQuestionLibraryDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "questions": [VeeSampleQuestionDTO.from_dict(_item) for _item in obj["questions"]] if obj.get("questions") is not None else None - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_status_code_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_status_code_dto.py deleted file mode 100644 index 9f3f5ba8af..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_status_code_dto.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class VeeStatusCodeDTO(BaseModel): - """ - VeeStatusCodeDTO - """ # noqa: E501 - status_code: Optional[StrictStr] = Field(default=None, description="A status code indicating whether or not Vee successfully answered the question.", alias="statusCode") - status_msg: Optional[StrictStr] = Field(default=None, description="Additional information about whether or not Vee successfully answered the question.", alias="statusMsg") - __properties: ClassVar[List[str]] = ["statusCode", "statusMsg"] - - @field_validator('status_code') - def status_code_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['UNDEFINED', 'VEE_API_SUCCESS', 'VEE_API_WARNING', 'VEE_API_ERROR']): - raise ValueError("must be one of enum values ('UNDEFINED', 'VEE_API_SUCCESS', 'VEE_API_WARNING', 'VEE_API_ERROR')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeStatusCodeDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeStatusCodeDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "statusCode": obj.get("statusCode"), - "statusMsg": obj.get("statusMsg") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_status_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_status_dto.py deleted file mode 100644 index 6edbe12347..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_status_dto.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class VeeStatusDTO(BaseModel): - """ - VeeStatusDTO - """ # noqa: E501 - overall: Optional[StrictStr] = Field(default=None, description="The overall status of Vee.") - __properties: ClassVar[List[str]] = ["overall"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeStatusDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeStatusDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "overall": obj.get("overall") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_visual_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_visual_dto.py deleted file mode 100644 index 4a86baa859..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_visual_dto.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class VeeVisualDTO(BaseModel): - """ - VeeVisualDTO - """ # noqa: E501 - context: Optional[StrictStr] = Field(default=None, description="Any filters applied to the visualization. For example, a time filter of April 2024.") - image: Optional[StrictStr] = Field(default=None, description="A PNG visualization encoded in a base64 string.") - title: Optional[StrictStr] = Field(default=None, description="The visualization title.") - __properties: ClassVar[List[str]] = ["context", "image", "title"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeVisualDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeVisualDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "context": obj.get("context"), - "image": obj.get("image"), - "title": obj.get("title") - }) - return _obj - - diff --git a/src/visier_api_data_out/visier_api_data_out/models/vee_visual_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/vee_visual_options_dto.py deleted file mode 100644 index fcaf5948cf..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/vee_visual_options_dto.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Visier Data Out APIs - - Visier APIs for getting data out of Visier, such as aggregate data and data version information. - - The version of the OpenAPI document: 22222222.99201.1772 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class VeeVisualOptionsDTO(BaseModel): - """ - VeeVisualOptionsDTO - """ # noqa: E501 - height: Optional[StrictInt] = Field(default=None, description="The pixel height of the rendered visualization. Default is 338. Valid values are between 90 and 900.") - width: Optional[StrictInt] = Field(default=None, description="The pixel width of the rendered visualization. Default is 600. Valid values are between 160 and 1600.") - __properties: ClassVar[List[str]] = ["height", "width"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of VeeVisualOptionsDTO from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of VeeVisualOptionsDTO from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "height": obj.get("height"), - "width": obj.get("width") - }) - return _obj - -